maint.mk: fix tight-scope.mk generation in VPATH builds.
[gnulib.git] / ChangeLog
1 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2
3         maint.mk: fix tight-scope.mk generation in VPATH builds.
4         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5         reference with $(srcdir) so that the file is found correctly even
6         when running `make syntax-check' in a VPATH build.
7
8 2011-11-13  Bruno Haible  <bruno@clisp.org>
9             Jim Meyering  <meyering@redhat.com>
10
11         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
12         * tests/init.sh (compare): Remove "No differences encountered" or
13         synonymous output from the 'diff' program.
14
15 2011-11-13  Bruno Haible  <bruno@clisp.org>
16
17         Makefile: Tweak indentation.
18         * Makefile: Use tab as first character in every line that contains rule
19         commands.
20
21 2011-11-13  Bruno Haible  <bruno@clisp.org>
22
23         Syntax check for copyright statements.
24         * check-copyright: New file.
25         * Makefile (sc_check_copyright): New rule.
26
27 2011-11-13  Simon Josefsson  <simon@josefsson.org>
28
29         * build-aux/git-version-gen: Add --prefix to configure the tag
30         match string.
31
32 2011-11-13  Simon Josefsson  <simon@josefsson.org>
33
34         * build-aux/git-version-gen: Add --help and --version.
35
36 2011-11-12  Jim Meyering  <meyering@redhat.com>
37
38         revamp the other test-exclude?.sh scripts to use init.sh, too
39         * tests/test-exclude1.sh: Use init.sh.
40         * tests/test-exclude2.sh: Likewise.
41         * tests/test-exclude3.sh: Likewise.
42         * tests/test-exclude4.sh: Likewise.
43         * tests/test-exclude5.sh: Likewise.
44         * tests/test-exclude6.sh: Likewise.
45         * tests/test-exclude7.sh: Likewise.
46         * tests/test-exclude8.sh: Likewise.
47         * modules/exclude-tests (Files): List init.sh.
48
49         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
50         These shell scripts ignored failure of the binary test-exclude,
51         so making the latter return 77 didn't cause them to be skipped.
52         * tests/test-exclude5.sh: Exit with test-exclude's error status
53         when that program fails.  Revamp to use init.sh.
54         * tests/test-exclude2.sh: Likewise.
55
56         test-exclude: fix a typo
57         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
58
59 2011-11-11  Bruno Haible  <bruno@clisp.org>
60
61         obstack: Fix compilation error on MSVC 9.
62         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
63
64 2011-11-11  Jim Meyering  <meyering@redhat.com>
65
66         test-exclude: skip tests rather than failing on deficient systems
67         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
68         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
69         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
70         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
71
72 2011-11-10  Bruno Haible  <bruno@clisp.org>
73
74         ptsname_r test: Avoid gcc warning on glibc systems.
75         * tests/test-ptsname_r.c (null_ptr): New function.
76         (test_errors): Use it.
77
78 2011-11-10  Bruno Haible  <bruno@clisp.org>
79
80         ptsname_r: Avoid compilation error on OSF/1 5.1.
81         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
82         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
83         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
84         function is not declared or incompatibly declared.
85         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
86         * modules/ptsname_r (Depends-on, configure.ac): Update.
87         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
88
89 2011-11-10  Bruno Haible  <bruno@clisp.org>
90
91         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
92         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
93         When cross-compiling, guess yes on all platforms except AIX.
94         Reported by Ludovic Courtès <ludo@gnu.org>.
95
96 2011-11-09  Bruno Haible  <bruno@clisp.org>
97
98         ptsname_r tests: Fix bugs.
99         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
100         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
101
102 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103
104         fstatat: work with cross-compilation
105         Problem reported by Ludovic Courtès in
106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
107         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
108         "cross-compiling" and assume the bug is present.  Replace
109         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
110         an inverted sense, to be more conservative about our assumptions.
111         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
112
113 2011-11-09  Bruno Haible  <bruno@clisp.org>
114
115         Improve MODULES.html output.
116         * modules/mkfifoat (Description): Use the word "function".
117         * modules/readlinkat (Description): Likewise.
118         * modules/symlinkat (Description): Likewise.
119
120 2011-11-09  Eric Blake  <eblake@redhat.com>
121
122         ptsname_r-tests: new test module
123         * modules/ptsname_r-tests: New module.
124         * tests/test-ptsname_r.c: New file.
125
126         ptsname_r: new module
127         * modules/ptsname_r: New module.
128         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
129         * lib/ptsname.c (__ptsname_r): Split...
130         * lib/ptsname_r.c: ...into new file.
131         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
132         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
133         * modules/stdlib (Makefile.am): Substitute witnesses.
134         * lib/stdlib.in.h (ptsname_r): Declare it.
135         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
136         * MODULES.html.sh (Misc): Likewise.
137         * modules/ptsname (Depends-on): Alter dependency.
138         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
139
140 2011-11-09  Jim Meyering  <meyering@redhat.com>
141
142         announce-gen: be more concise when there's only one URL+tarball
143         * build-aux/announce-gen (get_tool_versions): When you distribute
144         only one type of tarball, combine the first two "Here are..."
145         sections and make the key-checking grammar independent of
146         how many tarballs there are.
147
148 2011-11-09  Eric Blake  <eblake@redhat.com>
149
150         openpty: provide a stub on mingw
151         * lib/pty.in.h (includes): Provide forward declarations.
152         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
153
154         raise: fix mingw handling of SIGPIPE
155         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
156
157 2011-11-08  Bruno Haible  <bruno@clisp.org>
158
159         More conditional dependencies.
160         * modules/faccessat (Depends-on): Add conditions.
161         * modules/fchmodat (Depends-on): Likewise.
162         * modules/fchownat (Depends-on): Likewise.
163         * modules/fstatat (Depends-on): Likewise.
164         * modules/mkfifoat (Depends-on): Likewise.
165         * modules/readlinkat (Depends-on): Likewise.
166         * modules/symlinkat (Depends-on): Likewise.
167         * modules/unlinkat (Depends-on): Likewise.
168         * modules/utimensat (Depends-on): Likewise.
169         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
170         * modules/linkat (Depends-on): Refine the conditions.
171         * modules/renameat (Depends-on): Likewise.
172
173 2011-11-08  Bruno Haible  <bruno@clisp.org>
174
175         faccessat: Move AC_LIBOBJ invocation to module description.
176         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
177         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
178         invocation from here...
179         * modules/faccessat (configure.ac): ... to here. Invoke
180         gl_PREREQ_FACCESSAT.
181
182 2011-11-08  Bruno Haible  <bruno@clisp.org>
183
184         faccessat: Simplify autoconf macro.
185         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
186         gl_FUNC_EUIDACCESS.
187
188 2011-11-08  Bruno Haible  <bruno@clisp.org>
189
190         renameat: Fix dependencies.
191         * modules/renameat (Depends-on): Add stdbool.
192
193 2011-11-08  Bruno Haible  <bruno@clisp.org>
194
195         mkfifoat: Fix module description.
196         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
197         not gl_UNISTD_MODULE_INDICATOR.
198
199 2011-11-08  Bruno Haible  <bruno@clisp.org>
200
201         fstatat: Remove unused dependency.
202         * modules/fstatat (Depends-on): Remove fstat.
203
204 2011-11-08  Simon Josefsson  <simon@josefsson.org>
205
206         GNUmakefile: behave when Makefile is missing.
207         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
208
209 2011-11-08  Bruno Haible  <bruno@clisp.org>
210
211         openat: Conditionalize dependencies.
212         * lib/openat.c: Reduce the scope of some #includes.
213         * modules/openat (Depends-on): Add conditions.
214
215 2011-11-07  Jim Meyering  <meyering@redhat.com>
216
217         maint.mk: extract GPG key ID without using a temporary file
218         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
219         without using a temporary file.  Based on a suggestion from Werner Koch
220         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
221
222 2011-11-07  Eric Blake  <eblake@redhat.com>
223
224         grantpt: fix typo
225         * lib/stdlib.in.h (grantpt): Check correct function.
226
227         maint.mk: silence new syntax check
228         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
229
230 2011-11-06  Bruno Haible  <bruno@clisp.org>
231
232         Doc about floating-point and math API.
233         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
234         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
235
236 2011-11-06  Bruno Haible  <bruno@clisp.org>
237
238         stdalign tests: Skip the test when compiled by Sun C.
239         * tests/test-stdalign.c (main): Skip the test on Sun C.
240
241 2011-11-06  Bruno Haible  <bruno@clisp.org>
242
243         ansi-c++-opt: Complete the 2011-06-05 change.
244         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
245         does not support namespaces, set the variable to "no", not to ":".
246
247 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
248
249         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
250
251 2011-11-06  Bruno Haible  <bruno@clisp.org>
252
253         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
254         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
255         (minus_zerol) [HP-UX]: New macro.
256         (unary_minus) [HP-UX]: New function.
257         (copysignl) [HP-UX]: Use unary_minus function.
258
259 2011-11-06  Bruno Haible  <bruno@clisp.org>
260
261         ldexp, ldexpf, ldexpl: Enhance tests.
262         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
263         and tests/test-ldexpl.c.
264         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
265         LDEXP, MIN_EXP, MAX_EXP): New macros.
266         Include test-ldexp.h.
267         (main): Just call test_function.
268         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
269         infinity.h, nan.h.
270         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
271         MAX_EXP): New macros.
272         Include test-ldexp.h.
273         (x, y): Remove variables.
274         (main): Just call test_function.
275         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
276         infinity.h, nan.h.
277         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
278         MAX_EXP): New macros.
279         Include test-ldexp.h.
280         (x, y): Remove variables.
281         (main): Just call test_function.
282         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
283         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
284         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
285         (Depends-on): Add isnand-nolibm, signbit, float.
286         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
287         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
288         (Depends-on): Add isnanf-nolibm, signbit, float.
289
290 2011-11-06  Bruno Haible  <bruno@clisp.org>
291
292         math tests: Cosmetics.
293         * tests/test-math-c++.cc: Reorder declarations.
294
295 2011-11-05  Bruno Haible  <bruno@clisp.org>
296
297         fma*: Simplify test.
298         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
299         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
300
301         Tests for module 'fmal'.
302         * modules/fmal-tests: New file.
303         * tests/test-fmal1.c: New file.
304         * tests/test-fmal2.c: New file.
305
306         New module 'fmal'.
307         * lib/math.in.h (fmal): New declaration.
308         * lib/fmal.c: New file.
309         * m4/fmal.m4: New file.
310         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
312         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
313         REPLACE_FMAL.
314         * modules/fmal: New file.
315         * doc/posix-functions/fmal.texi: Mention the new module and the various
316         bugs.
317
318         Tests for module 'fmaf'.
319         * modules/fmaf-tests: New file.
320         * tests/test-fmaf1.c: New file.
321         * tests/test-fmaf2.c: New file.
322
323         New module 'fmaf'.
324         * lib/math.in.h (fmaf): New declaration.
325         * lib/fmaf.c: New file.
326         * m4/fmaf.m4: New file.
327         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
329         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
330         REPLACE_FMAF.
331         * modules/fmaf: New file.
332         * doc/posix-functions/fmaf.texi: Mention the new module and the various
333         bugs.
334
335         Tests for module 'fma'.
336         * modules/fma-tests: New file.
337         * tests/test-fma1.c: New file.
338         * tests/test-fma1.h: New file.
339         * tests/test-fma2.c: New file.
340         * tests/test-fma2.h: New file.
341
342         New module 'fma'.
343         * lib/math.in.h (fma): New declaration.
344         * lib/fma.c: New file.
345         * m4/fma.m4: New file.
346         * m4/fegetround.m4: New file.
347         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
349         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
350         REPLACE_FMA.
351         * modules/fma: New file.
352         * doc/posix-functions/fma.texi: Mention the new module and the various
353         bugs.
354
355         Extend gl_MATHFUNC.
356         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
357         Support 'void' as argument type.
358         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
359
360 2011-11-05  Jim Meyering  <meyering@redhat.com>
361
362         maint.mk: also prohibit inclusion of dirent.h without use
363         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
364
365 2011-11-05  Bruno Haible  <bruno@clisp.org>
366
367         ldexpl tests: Avoid test failure on MSVC 9.
368         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
369         value. Needed in order to enforce the conversion from a value greater
370         than LDBL_MAX to Infinity.
371
372 2011-11-05  Bruno Haible  <bruno@clisp.org>
373
374         New modules 'at-internal', 'openat-h', split off from module 'openat'.
375         * modules/at-internal: New file, extracted from modules/openat.
376         * modules/openat-h: New file.
377         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
378         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
379         * modules/openat (Description): Add reference to POSIX function.
380         (Files): Remove lib/openat.h, lib/openat-proc.c.
381         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
382         intprops, unistd.
383         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
384         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
385         gl_FCNTL_MODULE_INDICATOR.
386         (Include): Remove unistd.h, openat.h.
387         * modules/areadlinkat (Files): Add lib/at-func.c.
388         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
389         openat-die, openat-h, save-cwd.
390         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
391         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
392         openat-die, openat-h, save-cwd, unistd.
393         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
394         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
395         openat-h, save-cwd. Remove fcntl-h, openat.
396         * modules/fchmodat (Files): Remove lib/openat.h.
397         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
398         openat, stdbool, unistd.
399         * modules/fchownat (Files): Remove lib/openat.h.
400         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
401         openat, stdbool, sys_stat.
402         * modules/fdopendir (Files): Remove lib/openat-priv.h,
403         lib/openat-proc.c.
404         (Depends-on): Add at-internal.
405         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
406         * modules/fstatat (Files): Remove lib/openat.h.
407         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
408         stdbool, unistd.
409         * modules/fts (Depends-on): Add openat-h.
410         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
411         openat.
412         * modules/mkdirat (Files): Remove lib/openat.h.
413         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
414         openat, stdbool, sys_stat.
415         * modules/mkfifoat (Files): Add lib/at-func.c.
416         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
417         openat-h, save-cwd. Remove fcntl-h, openat.
418         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
419         * modules/readlinkat (Files): Add lib/at-func.c.
420         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
421         openat-h, save-cwd. Remove fcntl-h, openat.
422         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
423         openat.
424         * modules/selinux-at (Files): Add lib/at-func.c.
425         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
426         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
427         * modules/symlinkat (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/unlinkat (Files): Remove lib/openat.h.
431         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
432         stdbool.
433         * modules/utimensat (Files): Add lib/at-func.c.
434         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
435         openat-die, openat-h, save-cwd.
436         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
437         * modules/fdutimensat-tests (Depends-on): Add openat.
438         * modules/fstatat-tests (Depends-on): Add openat-h.
439         * modules/readlinkat-tests (Depends-on): Add openat.
440         * modules/symlinkat-tests (Depends-on): Add openat.
441
442 2011-11-05  Bruno Haible  <bruno@clisp.org>
443
444         openat: Include <stdbool.h>.
445         * lib/openat.c: Include <stdbool.h>.
446
447 2011-11-04  Bruno Haible  <bruno@clisp.org>
448
449         fchownat, renameat, unlinkat: Fix dependencies.
450         * modules/fchownat (Depends-on): Add fstatat.
451         * modules/renameat (Depends-on): Likewise.
452         * modules/unlinkat (Depends-on): Likewise.
453
454 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
455
456         openat: remove direct dependency on dirent
457         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
458         and hasn't been needed ever since fdopendir was split into its own
459         module on 2009-08-31.
460         * modules/openat (Depends-on): Remove dirent.
461
462 2011-11-04  Bruno Haible  <bruno@clisp.org>
463
464         renameat: Optimize code size.
465         * modules/renameat (configure.ac): Don't compile at-func2.c if
466         REPLACE_RENAMEAT is 1.
467
468 2011-11-04  Bruno Haible  <bruno@clisp.org>
469
470         openat tests: Fix file list.
471         * modules/openat-tests (Files): Add tests/test-open.h.
472
473 2011-11-04  Bruno Haible  <bruno@clisp.org>
474
475         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
476         * modules/fchmodat (Depends-on): Add openat-die.
477         * modules/fchownat (Depends-on): Likewise.
478         * modules/linkat (Depends-on): Likewise.
479         * modules/renameat (Depends-on): Likewise.
480         * modules/openat (Depends-on): Add dirent.
481
482 2011-11-04  Jim Meyering  <meyering@redhat.com>
483
484         at-func*.c: fix comments
485         * lib/at-func2.c: Correct/improve first-line comment.
486         * lib/at-func.c: Correct grammar in first-line comment.
487
488 2011-11-04  Bruno Haible  <bruno@clisp.org>
489
490         New module 'mkdirat', split off from module 'openat'.
491         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
492         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
493         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
494         * modules/mkdirat: New file, extracted from modules/openat.
495         * modules/openat (Files): Remove lib/mkdirat.c.
496         (Depends-on): Remove mkdir.
497         (configure.ac): Remove AC_LIBOBJ of mkdirat.
498         (Include): Remove <sys/stat.h>.
499         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
500         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
501         tests/test-mkdir.h.
502         (Depends-on): Remove ignore-value.
503         (Makefile.am): Remove rules for test-mkdirat.
504         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
505         of module 'openat'.
506         * NEWS: Mention the change.
507
508 2011-11-04  Bruno Haible  <bruno@clisp.org>
509
510         closedir: Avoid warning on mingw.
511         * lib/closedir.c: Include <unistd.h>.
512
513 2011-11-04  Bruno Haible  <bruno@clisp.org>
514
515         New module 'fstatat', split off from module 'openat'.
516         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
517         defined.
518         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
519         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
520         gl_FUNC_FSTATAT.
521         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
522         * modules/fstatat: New file, extracted from modules/openat.
523         * modules/openat (Files): Remove lib/fstatat.c.
524         (Depends-on): Remove lstat.
525         (configure.ac): Remove AC_LIBOBJ of fstatat.
526         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
527         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
528         tests/test-lstat.h, tests/test-stat.h.
529         (Depends-on): Remove getcwd-lgpl.
530         (Makefile.am): Remove rules for test-fstatat.
531         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
532         of module 'openat'.
533         * NEWS: Mention the change.
534         * modules/getcwd (Depends-on): Add fstatat.
535         * modules/linkat (Depends-on): Likewise.
536         * modules/mkfifoat-tests (Depends-on): Likewise.
537         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
538
539 2011-11-03  Bruno Haible  <bruno@clisp.org>
540
541         New module 'unlinkat', split off from module 'openat'.
542         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
543         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
544         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
545         * modules/unlinkat: New file, extracted from modules/openat. Correct
546         the dependency conditions.
547         * modules/openat (Files): Remove lib/unlinkat.c.
548         (Depends-on): Remove rmdir, unlink.
549         (configure.ac): Remove AC_LIBOBJ of unlinkat.
550         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
551         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
552         tests/test-rmdir.h, tests/test-unlink.h.
553         (Depends-on): Remove unlinkdir.
554         (Makefile.am): Remove rules for test-unlinkat.
555         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
556         of module 'openat'.
557         * NEWS: Mention the change.
558         * modules/linkat-tests (Depends-on): Add unlinkat.
559         * modules/mkfifoat-tests (Depends-on): Likewise.
560         * modules/readlinkat-tests (Depends-on): Likewise.
561
562 2011-11-02  Bruno Haible  <bruno@clisp.org>
563
564         New module 'fchmodat', split off from module 'openat'.
565         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
566         defined.
567         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
569         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
570         * modules/fchmodat: New file, extracted from modules/openat.
571         * modules/openat (Files): Remove lib/fchmodat.c.
572         (configure.ac): Remove AC_LIBOBJ of fchmodat.
573         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
574         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
575         (Makefile.am): Remove rules for test-fchmodat.
576         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
577         of module 'openat'.
578         * NEWS: Mention the change.
579
580 2011-11-02  Jim Meyering  <meyering@redhat.com>
581
582         putenv: indent #definition of "environ" to placate cppi
583         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
584
585         gitlog-to-changelog: provide a ChangeLog-repair mechanism
586         Git logs are often treated as immutable, because editing them
587         changes the SHA1 checksums of all descendants.  Thus, errors in
588         git logs tend to stay there forever.  However, when we generate
589         a ChangeLog file -- typically for distribution -- from that git log,
590         we can actually make corrections in the generated file.  The key
591         lies in recording in machine-readable/applicable form the desired
592         corrections.  See --help for description and an example.
593         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
594         (usage): Describe it; alphabetize option descriptions.
595         (main): Honor the new option, carefully.
596
597 2011-11-01  Jim Meyering  <meyering@redhat.com>
598
599         gitlog-to-changelog: avoid an infloop
600         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
601         that ends up being empty.
602
603 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
604
605         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
606         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
607         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
608         contains (possibly-quoted) backslashes.  This should avoid
609         all-too-common shell bugs if COMPLICATED contains backslashes in
610         the "wrong" places.  Reported by David Evans in
611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
612         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
613         because we want ASCII ranges.  Is there some reason we don't use
614         the C locale everywhere in this script?
615         (func_module, top level): Avoid unwanted pathname expansion when
616         $repo_url_prefix or $repo_url_suffix_repl contain shell
617         metacharacters like '?' and '*'.
618
619 2011-11-01  Bruno Haible  <bruno@clisp.org>
620
621         fchownat: Improve description.
622         * modules/fchownat (Description): Add link to function.
623
624 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
625
626         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
627         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
629         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
630
631 2011-11-01  Bruno Haible  <bruno@clisp.org>
632
633         alignof: Avoid collision with stdalign module.
634         * lib/alignof.h (alignof): Remove macro.
635         * NEWS: Mention the change.
636         Reported by Paul Eggert.
637
638 2011-11-01  Bruno Haible  <bruno@clisp.org>
639
640         New module 'fchownat', split off from module 'openat'.
641         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
642         defined.
643         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
644         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
645         invoke gl_FUNC_FCHOWNAT.
646         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
647         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
648         * modules/fchownat: New file, extracted from modules/openat.
649         * modules/openat (Files): Remove lib/fchownat.c.
650         (Depends-on): Remove lchown.
651         (configure.ac): Remove AC_LIBOBJ of fchownat.
652         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
653         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
654         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
655         (Depends-on): Remove mgetgroups, usleep, stat-time.
656         (configure.ac): Remove test for getegid.
657         (Makefile.am): Remove rules for test-fchownat.
658         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
659         of module 'openat'.
660         * NEWS: Mention the change.
661
662 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
663
664         stdalign: port better to MSVC and to Sun C 5.11
665         This fixes some of the problems reported by Bruno Haible in
666         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
667         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
668         shortcomings of MSVC and of Sun C 5.11.
669         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
670         around __declspec arg.
671         * modules/stdalign-tests (Files): Add tests/macros.h.
672         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
673         Include macros.h, for ASSERT.
674         (DECLARE_ALIGNED): Remove.
675         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
676         to catch bug), and to 1 if not (simplifies the rest of the code).
677         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
678         (CHECK_AUTO): Remove.
679         (CHECK_ALIGNED): Check only the alignment of the static vars,
680         since auto var alignment isn't supported by Sun C 5.11.
681         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
682         ASSERT failures are easier to diagnose.
683
684 2011-10-31  Bruno Haible  <bruno@clisp.org>
685
686         doc about some IRIX 5.3 problems.
687         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
688         on IRIX 5.3.
689         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
690         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
691         5.3.
692         * doc/posix-functions/grantpt.texi: Likewise.
693         * doc/posix-functions/unlockpt.texi: Likewise.
694         * doc/posix-functions/lgamma.texi: Likewise.
695         * doc/posix-functions/nextafter.texi: Likewise.
696         * doc/posix-functions/remainder.texi: Likewise.
697         * doc/posix-functions/select.texi: Mention misplaced declaration on
698         IRIX 5.3.
699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
700
701 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
702
703         gitlog-to-changelog: fix git-log invocation.
704         git-log mishandles date strings before 1970-01-01 UTC, and there is
705         no use to specify --since=1970-01-01 by default anyway.
706         * build-aux/gitlog-to-changelog: By default, when no --since option
707         was given, do not specify explicit --since option to git-log.
708
709 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
710
711         gitlog-to-changelog: new option --append-dot.
712         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
713         first non-blank line of each commit message terminated with a dot.
714
715 2011-10-30  Bruno Haible  <bruno@clisp.org>
716
717         ffsl, ffsll: Avoid compilation error due to 'restrict'.
718         * lib/ffsl.h: Include <config.h>.
719         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
720
721 2011-10-30  Jim Meyering  <meyering@redhat.com>
722
723         GNUmakefile: reenable "make syntax-check" for most projects
724         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
725         build-aux variable", "syntax-check" would do nothing but succeed with
726         the "No version control files detected..." diagnostic (unless you
727         happened to override _build-aux via cfg.mk).
728         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
729         to precede inclusion of maint.mk.  Otherwise, these variables would
730         be used undefined in any project that does not override the default.
731
732 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
733
734         gitlog-to-changelog: treat a message with only blank lines as empty.
735         * build-aux/gitlog-to-changelog: Move the code that removes leading and
736         trailing blank lines before the code that issues a warning about an
737         empty commit message.
738
739 2011-10-30  Jim Meyering  <meyering@redhat.com>
740
741         test-parse-datetime.c: avoid new DST-related false positive test failure
742         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
743         based on the time/date we'll convert, not the current time.
744         Otherwise, the moment we cross a DST boundary like today's in
745         Europe, (CEST to CET), that offset ends up being one hour off.
746
747 2011-10-27  Bruno Haible  <bruno@clisp.org>
748
749         fstat: Tweak documentation.
750         * modules/fstat (Description): More precise description.
751
752 2011-10-27  Bruno Haible  <bruno@clisp.org>
753
754         Update documentation regarding 'largefile' module.
755         * doc/posix-functions/fstat.texi: Tweak wording.
756         * doc/posix-functions/opendir.texi: Mention that the module fixes the
757         problems with huge directories and/or small ino_t types.
758         * doc/posix-functions/readdir.texi: Likewise.
759         * doc/posix-functions/rewinddir.texi: Likewise.
760
761 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
762
763         maint.mk: don't maintain a second build-aux variable.
764         * maint.mk (build_aux): Removed.  The maintainer-makefile module
765         depends on GNUmakefile, which already maintains a cfg.mk
766         overridable $(_build-aux) for projects with a non-standard
767         build-aux directory location, although without the $(srcdir)
768         prefix.  Use that variable consistently instead of introducing a
769         second one.  Adjust all call sites.
770
771 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
772
773         Add stdalign module and use it in other modules.
774         This is based on a previous proposal by Bruno Haible
775         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
776
777         stdalign: new module
778         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
779         * modules/stdalign: New files.
780         * MODULES.html.sh (c1x_core_properties): Add stdalign.
781         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
782
783         stdalign-tests: new module
784         * modules/stdalign-tests, tests/test-stdalign.c: New files.
785
786         argp: use stdalign
787         * lib/argp-parse.c: Include <stdalign.h>.
788         (alignof): Remove.
789         * modules/argp (Depends-on): Add stdalign.
790
791         crypto libraries: use stdalign
792         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
793         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
794         Do not include <stdlib.h> twice, in md4.c.
795         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
796         because we are accessing a pointer's bit-pattern, not a size.
797         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
798         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
799         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
800         * modules/crypto/sha512: Likewise.
801
802         sys_socket: use stdalign, not alignof
803         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
804         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
805
806 2011-10-27  Bruno Haible  <bruno@clisp.org>
807
808         raise test: Avoid a test failure on Linux/MIPS.
809         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
810         because 99 is a valid signal on Linux/MIPS.
811
812 2011-10-27  Bruno Haible  <bruno@clisp.org>
813
814         nonblocking tests: Fix test failure on Linux/MIPS.
815         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
816         Set to 270000.
817
818 2011-10-27  Bruno Haible  <bruno@clisp.org>
819
820         utimensat: Work around problem on Linux/hppa.
821         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
822         values.
823         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
824
825 2011-10-25  Jim Meyering  <meyering@redhat.com>
826
827         maint.mk: fix a bug in sc_prohibit_stddef_without_use
828         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
829         after symbols like NULL, size_t, etc.
830         Reported by Alfred M. Szmidt.
831
832         maint.mk: exempt ENODATA from a syntax-check rule
833         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
834         from the sc_prohibit_always-defined_macros syntax-check rule.
835         Add a comment.  See this for more details:
836         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
837
838 2011-10-23  Jim Meyering  <meyering@redhat.com>
839
840         fts: close parent dir FD before returning from post-traversal fts_read
841         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
842         unlink A, even though an FD open on A remained.  This is suboptimal
843         (holding a file descriptor open longer than needed), but otherwise not
844         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
845         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
846         that represents a real problem: it causes the removal of A to fail
847         with e.g., "rm: cannot remove `A': Device or resource busy"
848
849         fts visits each directory twice and keeps a cache (fts_fd_ring) of
850         directory file descriptors.  After completing the final, FTS_DP,
851         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
852         cache, but then proceeded to add a new FD to it via the subsequent
853         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
854         final file descriptor would be closed only via fts_close's call to
855         fd_ring_clear.  Now, it is usually closed earlier, via the final
856         FTS_DP-returning fts_read call.
857         * lib/fts.c (restore_initial_cwd): New function, converted from
858         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
859         Update callers.
860         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
861         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
862
863 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
864             Bruno Haible  <bruno@clisp.org>
865             Jim Meyering  <jim@meyering.net>
866
867         readme-release: improve safety of release prep instructions.
868         * README-release: Don't git pull all branches when only master
869         is needed for the release process.
870         Run make maintainer-clean before changing trees and merging.
871         Don't try to run ./configure right after git pull in case files
872         that influence the bootstrap process have changed, move the
873         ./configure step to after running ./bootstrap.
874         Don't bootstrap "one last time"... it's the first time!
875
876 2011-10-22  Bruno Haible  <bruno@clisp.org>
877
878         errno, strerror-override: Support for MSVC 10.
879         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
880         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
881         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
882         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
883         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
884         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
885         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
886         Assign values compatible with MSVC 10.
887         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
888         New macros.
889         (GNULIB_defined_EWINSOCK): New macro.
890         * lib/strerror-override.c (strerror_override): Update accordingly.
891         * lib/strerror-override.h: Likewise.
892         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
893         longer equal to the corresponding errno value.
894         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
895
896 2011-10-22  Bruno Haible  <bruno@clisp.org>
897
898         perror: Recognize when test program crashes.
899         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
900         strerror, set gl_cv_func_perror_works to no.
901         Reported by Daniel Richard G. <skunk@iskunk.org>.
902
903         perror: Fix indentation.
904         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
905
906 2011-10-22  Bruno Haible  <bruno@clisp.org>
907
908         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
909         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
910         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
911         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
912         functions, not as a macro.
913         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
914         macros.
915         (isfinite, isinf, isnan, signbit): Check overloaded functions and
916         absence of macro.
917         Suggested by Eric Blake.
918         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
919
920 2011-10-21  Bruno Haible  <bruno@clisp.org>
921
922         relocatable-prog-wrapper: Don't leave object files behind.
923         * build-aux/install-reloc: Re-synchronize list of .o files to be
924         removed with list of compilation units.
925
926 2011-10-20  Bruno Haible  <bruno@clisp.org>
927
928         openpty, posix_openpt: Remove code duplication.
929         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
930         * lib/openpty.c: Include <stdlib.h>.
931         (openpty): Use posix_openpt on all platforms except IRIX.
932         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
933
934 2011-10-20  Bruno Haible  <bruno@clisp.org>
935
936         unlockpt: Detect invalid argument.
937         * lib/unlockpt.c: Include <fcntl.h>.
938         (unlockpt): Check whether fd is valid, using fcntl().
939         * modules/unlockpt (Depends-on): Add fcntl-h.
940
941 2011-10-20  Bruno Haible  <bruno@clisp.org>
942
943         openpty: Avoid compilation error on AIX 6.1.
944         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
945
946 2011-10-20  Bruno Haible  <bruno@clisp.org>
947
948         posix_openpt: Support for OpenBSD.
949         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
950         (posix_openpt) [OpenBSD]: New code.
951         * lib/grantpt.c: Include <fcntl.h>.
952         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
953         * modules/grantpt (Depends-on): Add fcntl-h.
954
955 2011-10-20  Bruno Haible  <bruno@clisp.org>
956
957         posix_openpt test: Coding style.
958         * tests/test-posix_openpt.c: Use GNU coding style.
959
960 2011-10-20  Bruno Haible  <bruno@clisp.org>
961
962         grantpt: Support --avoid=pt_chown.
963         * modules/grantpt (Files): Add lib/pty-private.h.
964
965 2011-10-20  Bruno Haible  <bruno@clisp.org>
966
967         posix_openpt: Fix autoconf macro.
968         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
969         unneeded check for _getpty.
970
971 2011-10-20  Bruno Haible  <bruno@clisp.org>
972
973         openpty: Update comments.
974         * lib/openpty.c: Add comments about Minix.
975
976 2011-10-19  Eric Blake  <eblake@redhat.com>
977
978         openpty: relax license
979         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
980
981         pt_chown: use configmake to simplify build
982         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
983
984         ptsname and others: relax license
985         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
986         * modules/unlockpt (License): Likewise.
987         * modules/pt_chown (License): Likewise.
988         * modules/ptsname (License): Likewise.
989         * modules/ttyname_r (License): Likewise.
990
991 2011-10-19  Jim Meyering  <meyering@redhat.com>
992
993         posix_openpt: remove spurious #endif
994         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
995
996 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
997
998         maint.mk: Respect $(build_aux) in web-manual rule.
999         * top/maint.mk (web-manual): Find gen-announce script in user's
1000         $(build_aux) directory instead of hard-coding 'build-aux'.
1001
1002 2011-10-19  Bruno Haible  <bruno@clisp.org>
1003
1004         posix_openpt: Fix compilation error.
1005         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1006         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1007         Mention the openpty module as an alternative.
1008
1009 2011-10-19  Bruno Haible  <bruno@clisp.org>
1010
1011         Support for old NeXTstep 3.3 frexp().
1012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1013         execution time of the test to 5 seconds.
1014         Reported by Daniel Richard G. <skunk@iskunk.org>.
1015
1016 2011-10-19  Bruno Haible  <bruno@clisp.org>
1017
1018         Support for old NeXTstep 3.3 sed.
1019         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1020         part, use /.../, not \|...|. Escape periods in the header file name.
1021         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1022         Reported by Daniel Richard G. <skunk@iskunk.org>.
1023
1024 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1025
1026         Support for old NeXTstep 3.3 gcc.
1027         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1028         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1029         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1030         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1031         * lib/regex.h (_Restrict_arr_): Likewise.
1032         * lib/regex_internal.h (re_token_t): Likewise.
1033         * lib/regexec.c (check_node_accept_bytes): Likewise.
1034         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1035
1036 2011-10-18  Eric Blake  <eblake@redhat.com>
1037
1038         posix_openpt: new module
1039         * modules/posix_openpt: New module.
1040         * m4/posix_openpt.m4: New file.
1041         * lib/posix_openpt.c: Likewise.
1042         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1043         (gl_STDLIB_H_DEFAULTS): Set defaults.
1044         * modules/stdlib (Makefile.am): Substitute macros.
1045         * lib/stdlib.in.h (posix_openpt): Declare.
1046         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1047         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1048         * modules/posix_openpt-tests: New test module.
1049         * tests/test-posix_openpt.c: New test.
1050
1051 2011-10-15  Bruno Haible  <bruno@clisp.org>
1052
1053         xstrtoll: Fix compilation failure.
1054         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1055         from lib/strtol.c.
1056         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1057         some platforms.
1058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1059
1060 2011-10-15  Bruno Haible  <bruno@clisp.org>
1061
1062         vasnprintf: Optimize bit search operation.
1063         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1065         gl_DOUBLE_EXPONENT_LOCATION.
1066         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1067         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1068         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1069         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1070         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1071         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1072         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1073         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1074         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1075
1076 2011-10-15  Bruno Haible  <bruno@clisp.org>
1077
1078         vasnprintf: Fix comments.
1079         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1080
1081 2011-10-14  Bruno Haible  <bruno@clisp.org>
1082
1083         Tests for module 'integer_length_ll'.
1084         * modules/integer_length_ll-tests: New file.
1085         * tests/test-integer_length_ll.c: New file.
1086
1087         New module 'integer_length_ll'.
1088         * lib/integer_length_ll.c: New file.
1089         * modules/integer_length_ll: New file.
1090
1091 2011-10-14  Bruno Haible  <bruno@clisp.org>
1092
1093         Tests for module 'integer_length_l'.
1094         * modules/integer_length_l-tests: New file.
1095         * tests/test-integer_length_l.c: New file.
1096
1097         New module 'integer_length_l'.
1098         * lib/integer_length_l.c: New file.
1099         * modules/integer_length_l: New file.
1100
1101 2011-10-14  Bruno Haible  <bruno@clisp.org>
1102
1103         Tests for module 'integer_length'.
1104         * modules/integer_length-tests: New file.
1105         * tests/test-integer_length.c: New file.
1106
1107         New module 'integer_length'.
1108         * lib/integer_length.h: New file.
1109         * lib/integer_length.c: New file.
1110         * modules/integer_length: New file.
1111
1112 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1113
1114         popen: Fix dependency conditions.
1115         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1116
1117 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1118
1119         perror: Fix autoconf test.
1120         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1121         <stdlib.h> and <string.h>.
1122
1123 2011-10-14  Bruno Haible  <bruno@clisp.org>
1124
1125         ffsl: Optimize on 64-bit platforms.
1126         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1127         unrolling.
1128
1129 2011-10-13  Bruno Haible  <bruno@clisp.org>
1130
1131         ffsl: Optimize on 32-bit platforms.
1132         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1133         use ffs() without a loop.
1134
1135         ffsl, ffsll: Optimize for GCC.
1136         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1137         * lib/ffsl.c (GCC_BUILTIN): New macro.
1138         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1139
1140 2011-10-13  Bruno Haible  <bruno@clisp.org>
1141
1142         ffs, bcopy, memset: Support symbol renaming via config.h.
1143         * lib/ffs.c: Include <config.h>.
1144         * lib/bcopy.c: Likewise.
1145         * lib/memset.c: Likewise.
1146
1147 2011-10-10  Bruno Haible  <bruno@clisp.org>
1148
1149         atanl: Simplify for platforms where 'long double' == 'double'.
1150         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1151         alternative implementation.
1152         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1153         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1154         * modules/atanl (Depends-on): Add atan. Update conditions.
1155
1156 2011-10-10  Bruno Haible  <bruno@clisp.org>
1157
1158         acosl: Simplify for platforms where 'long double' == 'double'.
1159         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1160         alternative implementation.
1161         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1162         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1163         * modules/acosl (Depends-on): Add acos. Update conditions.
1164
1165 2011-10-10  Bruno Haible  <bruno@clisp.org>
1166
1167         asinl: Simplify for platforms where 'long double' == 'double'.
1168         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1169         alternative implementation.
1170         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1171         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1172         * modules/asinl (Depends-on): Add asin. Update conditions.
1173
1174 2011-10-10  Bruno Haible  <bruno@clisp.org>
1175
1176         tanl: Simplify for platforms where 'long double' == 'double'.
1177         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1178         implementation.
1179         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1180         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1181         * modules/tanl (Depends-on): Add tan. Update conditions.
1182         (configure.ac): Don't compile trigl.c if
1183         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1184
1185 2011-10-10  Bruno Haible  <bruno@clisp.org>
1186
1187         cosl: Simplify for platforms where 'long double' == 'double'.
1188         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1189         implementation.
1190         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1191         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1192         * modules/cosl (Depends-on): Add cos. Update conditions.
1193         (configure.ac): Don't compile sincosl.c and trigl.c if
1194         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1195
1196 2011-10-10  Bruno Haible  <bruno@clisp.org>
1197
1198         sinl: Simplify for platforms where 'long double' == 'double'.
1199         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1200         implementation.
1201         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1202         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1203         * modules/sinl (Depends-on): Add sin. Update conditions.
1204         (configure.ac): Don't compile sincosl.c and trigl.c if
1205         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1206
1207 2011-10-10  Bruno Haible  <bruno@clisp.org>
1208
1209         logl: Simplify for platforms where 'long double' == 'double'.
1210         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1211         implementation.
1212         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1213         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1214         * modules/logl (Depends-on): Add log. Update conditions.
1215
1216 2011-10-10  Bruno Haible  <bruno@clisp.org>
1217
1218         expl: Simplify for platforms where 'long double' == 'double'.
1219         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1220         implementation.
1221         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1222         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1223         * modules/expl (Depends-on): Add exp. Update conditions.
1224
1225 2011-10-10  Bruno Haible  <bruno@clisp.org>
1226
1227         sqrtl: Simplify for platforms where 'long double' == 'double'.
1228         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1229         alternative implementation.
1230         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1231         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1232         * modules/sqrtl (Depends-on): Update conditions.
1233
1234 2011-10-10  Bruno Haible  <bruno@clisp.org>
1235
1236         ldexpl: Simplify for platforms where 'long double' == 'double'.
1237         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1238         alternative implementation.
1239         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1240         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1241         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1242
1243 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1244
1245         ffsll: set correct witness
1246         * modules/ffsll (configure.ac): Fix typo.
1247
1248 2011-10-10  Bruno Haible  <bruno@clisp.org>
1249
1250         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1251         * lib/printf-frexpl.c: Include <config.h>.
1252         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1253         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1254         second time.
1255         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1256         gl_LONG_DOUBLE_VS_DOUBLE.
1257         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1258         conditions.
1259
1260 2011-10-10  Bruno Haible  <bruno@clisp.org>
1261
1262         frexpl: Simplify for platforms where 'long double' == 'double'.
1263         * lib/frexpl.c: Include <config.h>.
1264         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1265         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1266         time.
1267         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1268         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1269         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1270         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1271         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1272         conditions.
1273
1274 2011-10-10  Jim Meyering  <meyering@redhat.com>
1275
1276         test-renameat: don't leave behind a temporary file
1277         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1278           ERROR: files left in build directory after distclean:
1279           ./gltests/test-renameat.too
1280           make[1]: *** [distcleancheck] Error 1
1281         Reported by Tom G. Christensen.
1282
1283 2011-10-09  Bruno Haible  <bruno@clisp.org>
1284
1285         rint: Determine RINT_LIBM correctly on AIX 7.
1286         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1287         directly, not only through a function pointer. Also accept an optional
1288         4th argument with extra code.
1289         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1290         rintf() call by gcc when optimizing.
1291
1292         mathfunc.m4: Refactor.
1293         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1294         m4 variable.
1295
1296 2011-10-09  Bruno Haible  <bruno@clisp.org>
1297
1298         rintl: Simplify for platforms where 'long double' == 'double'.
1299         * lib/rintl.c: Include <config.h>.
1300         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1301         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1302         time.
1303         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1304         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1305         * modules/rintl (Depends-on): Add rint. Update conditions.
1306
1307 2011-10-09  Bruno Haible  <bruno@clisp.org>
1308
1309         roundl: Simplify for platforms where 'long double' == 'double'.
1310         * lib/roundl.c: Include <config.h>.
1311         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1312         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1313         time.
1314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1315         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1316         * modules/roundl (Depends-on): Add round. Update conditions.
1317
1318 2011-10-09  Bruno Haible  <bruno@clisp.org>
1319
1320         truncl: Simplify for platforms where 'long double' == 'double'.
1321         * lib/truncl.c: Include <config.h>.
1322         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1323         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1324         time.
1325         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1326         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1327         * modules/truncl (Depends-on): Add trunc. Update conditions.
1328
1329 2011-10-09  Bruno Haible  <bruno@clisp.org>
1330
1331         ceill: Simplify for platforms where 'long double' == 'double'.
1332         * lib/ceill.c: Include <config.h>.
1333         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1334         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1335         time.
1336         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1337         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1338         * modules/ceill (Depends-on): Add ceil. Update conditions.
1339
1340 2011-10-09  Bruno Haible  <bruno@clisp.org>
1341
1342         floorl: Simplify for platforms where 'long double' == 'double'.
1343         * lib/floorl.c: Include <config.h>.
1344         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1345         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1346         time.
1347         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1348         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1349         * modules/floorl (Depends-on): Add floor. Update conditions.
1350
1351 2011-10-09  Bruno Haible  <bruno@clisp.org>
1352
1353         rint: Fix ordering constraints.
1354         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1355         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1356         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1357
1358 2011-10-09  Bruno Haible  <bruno@clisp.org>
1359
1360         copysignl: Simplify for platforms where 'long double' == 'double'.
1361         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1362         alternative.
1363         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1364         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1365         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1366
1367 2011-10-09  Bruno Haible  <bruno@clisp.org>
1368
1369         Tests for module 'rintl'.
1370         * modules/rintl-tests: New file.
1371         * tests/test-rintl.c: New file.
1372
1373         New module 'rintl'.
1374         * lib/math.in.h (rintl): New declaration.
1375         * lib/rintl.c: New file.
1376         * m4/rintl.m4: New file.
1377         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1379         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1380         * modules/rintl: New file.
1381         * tests/test-math-c++.cc: Check the declaration of rintl.
1382         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1383         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1384         * doc/posix-functions/rintl.texi: Mention the new module.
1385
1386 2011-10-09  Bruno Haible  <bruno@clisp.org>
1387
1388         Tests for module 'rintf'.
1389         * modules/rintf-tests: New file.
1390         * tests/test-rintf.c: New file.
1391
1392         New module 'rintf'.
1393         * lib/math.in.h (rintf): New declaration.
1394         * lib/rintf.c: New file.
1395         * m4/rintf.m4: New file.
1396         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1398         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1399         * modules/rintf: New file.
1400         * tests/test-math-c++.cc: Check the declaration of rintf.
1401         * doc/posix-functions/rintf.texi: Mention the new module.
1402
1403 2011-10-09  Bruno Haible  <bruno@clisp.org>
1404
1405         rint: Support for MSVC.
1406         * lib/math.in.h (rint): New declaration.
1407         * lib/rint.c: New file.
1408         * m4/rint.m4: New file.
1409         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1411         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1412         * modules/rint (Description): Fix.
1413         (Files): Add lib/rint.c, m4/rint.m4.
1414         (Depends-on): Add math.
1415         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1416         gl_MATH_MODULE_INDICATOR.
1417         * tests/test-math-c++.cc: Check the declaration of rint.
1418         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1419         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1420         * doc/posix-functions/rint.texi: Mention the replacement provided by
1421         the module.
1422
1423         rint tests: More tests.
1424         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1425         minus-zero.h, infinity.h, nan.h.
1426         (main): Skip the test if the current rounding mode is not standard. Add
1427         tests for negative numbers, minus zero, infinity, NaN.
1428         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1429         tests/nan.h.
1430         (Depends-on): Add isnand-nolibm.
1431
1432 2011-10-09  Bruno Haible  <bruno@clisp.org>
1433
1434         Tests for module 'copysignl'.
1435         * modules/copysignl-tests: New file.
1436         * tests/test-copysignl.c: New file.
1437
1438         New module 'copysignl'.
1439         * lib/math.in.h (copysignl): New declaration.
1440         * lib/copysignl.c: New file.
1441         * m4/copysignl.m4: New file.
1442         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1444         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1445         HAVE_COPYSIGNL.
1446         * modules/copysignl: New file.
1447         * tests/test-math-c++.cc: Check the declaration of copysignl.
1448         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1449         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
1450         * doc/posix-functions/copysignl.texi: Mention the new module.
1451
1452 2011-10-09  Bruno Haible  <bruno@clisp.org>
1453
1454         Tests for module 'copysignf'.
1455         * modules/copysignf-tests: New file.
1456         * tests/test-copysignf.c: New file.
1457
1458         New module 'copysignf'.
1459         * lib/math.in.h (copysignf): New declaration.
1460         * lib/copysignf.c: New file.
1461         * m4/copysignf.m4: New file.
1462         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
1463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
1464         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
1465         HAVE_COPYSIGNF.
1466         * modules/copysignf: New file.
1467         * tests/test-math-c++.cc: Check the declaration of copysignf.
1468         * doc/posix-functions/copysignf.texi: Mention the new module.
1469
1470 2011-10-09  Bruno Haible  <bruno@clisp.org>
1471
1472         Ensure that HAVE_* variables are set to 1 before they are set to 0.
1473         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
1474         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
1475         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1476         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
1477         gl_SIGNAL_H_DEFAULTS.
1478
1479 2011-10-09  Bruno Haible  <bruno@clisp.org>
1480
1481         poll: Make macro safer.
1482         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
1483         ac_cv_header_poll_h is not set.
1484
1485 2011-10-09  Bruno Haible  <bruno@clisp.org>
1486
1487         copysign: Provide replacement.
1488         * lib/math.in.h (copysign): New declaration.
1489         * lib/copysign.c: New file.
1490         * m4/copysign.m4: New file.
1491         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
1492         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
1493         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
1494         HAVE_COPYSIGN.
1495         * modules/copysign (Description): Clarify.
1496         (Files): Add lib/copysign.c, m4/copysign.m4.
1497         (Depends-on): Add math, signbit.
1498         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
1499         gl_MATH_MODULE_INDICATOR.
1500         * tests/test-math-c++.cc: Check the declaration of copysign.
1501         * doc/posix-functions/copysign.texi: Mention the effects of the module
1502         on Minix and MSVC.
1503
1504 2011-10-09  Bruno Haible  <bruno@clisp.org>
1505
1506         isinf: Ensure macro on AIX 5.1.
1507         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
1508         macro.
1509         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
1510
1511 2011-10-09  Bruno Haible  <bruno@clisp.org>
1512
1513         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
1514         * modules/snprintf-posix-tests (configure.ac): Require
1515         gl_LONG_DOUBLE_VS_DOUBLE.
1516         * modules/sprintf-posix-tests (configure.ac): Likewise.
1517         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
1518         * modules/vasprintf-posix-tests (configure.ac): Likewise.
1519         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
1520         * modules/vsprintf-posix-tests (configure.ac): Likewise.
1521         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
1522         tests on platforms where 'long double' is the same as 'double'.
1523         * tests/test-sprintf-posix.h (test_function): Likewise.
1524         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1525         * tests/test-vasprintf-posix.c (test_function): Likewise.
1526
1527         *printf: Fix for platforms where 'long double' == 'double'.
1528         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
1529         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
1530         * modules/dprintf-posix (Files): Add m4/math_h.m4.
1531         * modules/fprintf-posix (Files): Likewise.
1532         * modules/obstack-printf-posix (Files): Likewise.
1533         * modules/snprintf-posix (Files): Likewise.
1534         * modules/sprintf-posix (Files): Likewise.
1535         * modules/vasnprintf (Files): Likewise.
1536         * modules/vasnprintf-posix (Files): Likewise.
1537         * modules/vasprintf-posix (Files): Likewise.
1538         * modules/vdprintf-posix (Files): Likewise.
1539         * modules/vfprintf-posix (Files): Likewise.
1540         * modules/vsnprintf-posix (Files): Likewise.
1541         * modules/vsprintf-posix (Files): Likewise.
1542         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1543         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1544         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1545         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1546         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1547         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1548         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1549
1550         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
1551         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
1552         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1553         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
1554         'long double'.
1555         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
1556
1557         isinf: Fix for platforms where 'long double' == 'double'.
1558         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1559         Don't blindly assume 80-bit 'long double'.
1560
1561         isfinite: Fix for platforms where 'long double' == 'double'.
1562         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
1563         Don't blindly assume 80-bit 'long double'.
1564
1565         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
1566         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
1567         * modules/isfinite-tests (configure.ac): Require
1568         gl_LONG_DOUBLE_VS_DOUBLE.
1569         * modules/isinf-tests (configure.ac): Likewise.
1570         * modules/isnan-tests (configure.ac): Likewise.
1571         * modules/isnanl-tests (configure.ac): Likewise.
1572         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
1573         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
1574         tests on platforms where 'long double' is the same as 'double'.
1575         * tests/test-isinf.c (test_isinfl): Likewise.
1576         * tests/test-isnan.c (test_long_double): Likewise.
1577         * tests/test-isnanl.h (main): Likewise.
1578
1579 2011-10-08  Bruno Haible  <bruno@clisp.org>
1580
1581         Tests for module 'tanhf'.
1582         * modules/tanhf-tests: New file.
1583         * tests/test-tanhf.c: New file.
1584
1585         New module 'tanhf'.
1586         * lib/math.in.h (tanhf): New declaration.
1587         * lib/tanhf.c: New file.
1588         * m4/tanhf.m4: New file.
1589         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
1590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
1591         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
1592         * modules/tanhf: New file.
1593         * tests/test-math-c++.cc: Check the declaration of tanhf.
1594         * doc/posix-functions/tanhf.texi: Mention the new module.
1595
1596         tanh: Use a .m4 file.
1597         * m4/tanh.m4: New file.
1598         * modules/tanh (Files): Add it.
1599         (configure.ac): Just invoke gl_FUNC_TANH.
1600
1601 2011-10-08  Bruno Haible  <bruno@clisp.org>
1602
1603         Tests for module 'coshf'.
1604         * modules/coshf-tests: New file.
1605         * tests/test-coshf.c: New file.
1606
1607         New module 'coshf'.
1608         * lib/math.in.h (coshf): New declaration.
1609         * lib/coshf.c: New file.
1610         * m4/coshf.m4: New file.
1611         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
1612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
1613         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
1614         * modules/coshf: New file.
1615         * tests/test-math-c++.cc: Check the declaration of coshf.
1616         * doc/posix-functions/coshf.texi: Mention the new module.
1617
1618         cosh: Use a .m4 file.
1619         * m4/cosh.m4: New file.
1620         * modules/cosh (Files): Add it.
1621         (configure.ac): Just invoke gl_FUNC_COSH.
1622
1623 2011-10-08  Bruno Haible  <bruno@clisp.org>
1624
1625         Tests for module 'sinhf'.
1626         * modules/sinhf-tests: New file.
1627         * tests/test-sinhf.c: New file.
1628
1629         New module 'sinhf'.
1630         * lib/math.in.h (sinhf): New declaration.
1631         * lib/sinhf.c: New file.
1632         * m4/sinhf.m4: New file.
1633         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
1634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
1635         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
1636         * modules/sinhf: New file.
1637         * tests/test-math-c++.cc: Check the declaration of sinhf.
1638         * doc/posix-functions/sinhf.texi: Mention the new module.
1639
1640         sinh: Use a .m4 file.
1641         * m4/sinh.m4: New file.
1642         * modules/sinh (Files): Add it.
1643         (configure.ac): Just invoke gl_FUNC_SINH.
1644
1645 2011-10-08  Bruno Haible  <bruno@clisp.org>
1646
1647         Tests for module 'atan2f'.
1648         * modules/atan2f-tests: New file.
1649         * tests/test-atan2f.c: New file.
1650
1651         New module 'atan2f'.
1652         * lib/math.in.h (atan2f): New declaration.
1653         * lib/atan2f.c: New file.
1654         * m4/atan2f.m4: New file.
1655         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
1656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
1657         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
1658         * modules/atan2f: New file.
1659         * tests/test-math-c++.cc: Check the declaration of atan2f.
1660         * doc/posix-functions/atan2f.texi: Mention the new module.
1661
1662         atan2: Use a .m4 file.
1663         * m4/atan2.m4: New file.
1664         * modules/atan2 (Files): Add it.
1665         (configure.ac): Just invoke gl_FUNC_ATAN2.
1666
1667 2011-10-08  Bruno Haible  <bruno@clisp.org>
1668
1669         Tests for module 'atanf'.
1670         * modules/atanf-tests: New file.
1671         * tests/test-atanf.c: New file.
1672
1673         New module 'atanf'.
1674         * lib/math.in.h (atanf): New declaration.
1675         * lib/atanf.c: New file.
1676         * m4/atanf.m4: New file.
1677         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
1678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
1679         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
1680         * modules/atanf: New file.
1681         * tests/test-math-c++.cc: Check the declaration of atanf.
1682         * doc/posix-functions/atanf.texi: Mention the new module.
1683
1684         atan: Use a .m4 file.
1685         * m4/atan.m4: New file.
1686         * modules/atan (Files): Add it.
1687         (configure.ac): Just invoke gl_FUNC_ATAN.
1688
1689 2011-10-08  Bruno Haible  <bruno@clisp.org>
1690
1691         Tests for module 'acosf'.
1692         * modules/acosf-tests: New file.
1693         * tests/test-acosf.c: New file.
1694
1695         New module 'acosf'.
1696         * lib/math.in.h (acosf): New declaration.
1697         * lib/acosf.c: New file.
1698         * m4/acosf.m4: New file.
1699         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
1700         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
1701         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
1702         * modules/acosf: New file.
1703         * tests/test-math-c++.cc: Check the declaration of acosf.
1704         * doc/posix-functions/acosf.texi: Mention the new module.
1705
1706         acos: Use a .m4 file.
1707         * m4/acos.m4: New file.
1708         * modules/acos (Files): Add it.
1709         (configure.ac): Just invoke gl_FUNC_ACOS.
1710
1711 2011-10-08  Bruno Haible  <bruno@clisp.org>
1712
1713         Tests for module 'asinf'.
1714         * modules/asinf-tests: New file.
1715         * tests/test-asinf.c: New file.
1716
1717         New module 'asinf'.
1718         * lib/math.in.h (asinf): New declaration.
1719         * lib/asinf.c: New file.
1720         * m4/asinf.m4: New file.
1721         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
1722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
1723         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
1724         * modules/asinf: New file.
1725         * tests/test-math-c++.cc: Check the declaration of asinf.
1726         * doc/posix-functions/asinf.texi: Mention the new module.
1727
1728         asin: Use a .m4 file.
1729         * m4/asin.m4: New file.
1730         * modules/asin (Files): Add it.
1731         (configure.ac): Just invoke gl_FUNC_ASIN.
1732
1733 2011-10-08  Bruno Haible  <bruno@clisp.org>
1734
1735         Tests for module 'tanf'.
1736         * modules/tanf-tests: New file.
1737         * tests/test-tanf.c: New file.
1738
1739         New module 'tanf'.
1740         * lib/math.in.h (tanf): New declaration.
1741         * lib/tanf.c: New file.
1742         * m4/tanf.m4: New file.
1743         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
1744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
1745         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
1746         * modules/tanf: New file.
1747         * tests/test-math-c++.cc: Check the declaration of tanf.
1748         * doc/posix-functions/tanf.texi: Mention the new module.
1749
1750         tan: Use a .m4 file.
1751         * m4/tan.m4: New file.
1752         * modules/tan (Files): Add it.
1753         (configure.ac): Just invoke gl_FUNC_TAN.
1754
1755 2011-10-08  Bruno Haible  <bruno@clisp.org>
1756
1757         Tests for module 'cosf'.
1758         * modules/cosf-tests: New file.
1759         * tests/test-cosf.c: New file.
1760
1761         New module 'cosf'.
1762         * lib/math.in.h (cosf): New declaration.
1763         * lib/cosf.c: New file.
1764         * m4/cosf.m4: New file.
1765         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
1766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
1767         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
1768         * modules/cosf: New file.
1769         * tests/test-math-c++.cc: Check the declaration of cosf.
1770         * doc/posix-functions/cosf.texi: Mention the new module.
1771
1772         cos: Use a .m4 file.
1773         * m4/cos.m4: New file.
1774         * modules/cos (Files): Add it.
1775         (configure.ac): Just invoke gl_FUNC_COS.
1776
1777 2011-10-08  Bruno Haible  <bruno@clisp.org>
1778
1779         Tests for module 'sinf'.
1780         * modules/sinf-tests: New file.
1781         * tests/test-sinf.c: New file.
1782
1783         New module 'sinf'.
1784         * lib/math.in.h (sinf): New declaration.
1785         * lib/sinf.c: New file.
1786         * m4/sinf.m4: New file.
1787         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
1788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
1789         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
1790         * modules/sinf: New file.
1791         * tests/test-math-c++.cc: Check the declaration of sinf.
1792         * doc/posix-functions/sinf.texi: Mention the new module.
1793
1794         sin: Use a .m4 file.
1795         * m4/sin.m4: New file.
1796         * modules/sin (Files): Add it.
1797         (configure.ac): Just invoke gl_FUNC_SIN.
1798
1799 2011-10-08  Bruno Haible  <bruno@clisp.org>
1800
1801         Tests for module 'powf'.
1802         * modules/powf-tests: New file.
1803         * tests/test-powf.c: New file.
1804
1805         New module 'powf'.
1806         * lib/math.in.h (powf): New declaration.
1807         * lib/powf.c: New file.
1808         * m4/powf.m4: New file.
1809         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
1810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
1811         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
1812         * modules/powf: New file.
1813         * tests/test-math-c++.cc: Check the declaration of powf.
1814         * doc/posix-functions/powf.texi: Mention the new module.
1815
1816         pow: Use a .m4 file.
1817         * m4/pow.m4: New file.
1818         * modules/pow (Files): Add it.
1819         (configure.ac): Just invoke gl_FUNC_POW.
1820
1821 2011-10-08  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests for module 'log10f'.
1824         * modules/log10f-tests: New file.
1825         * tests/test-log10f.c: New file.
1826
1827         New module 'log10f'.
1828         * lib/math.in.h (log10f): New declaration.
1829         * lib/log10f.c: New file.
1830         * m4/log10f.m4: New file.
1831         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
1832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
1833         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
1834         * modules/log10f: New file.
1835         * tests/test-math-c++.cc: Check the declaration of log10f.
1836         * doc/posix-functions/log10f.texi: Mention the new module.
1837
1838         log10: Use a .m4 file.
1839         * m4/log10.m4: New file.
1840         * modules/log10 (Files): Add it.
1841         (configure.ac): Just invoke gl_FUNC_LOG10.
1842
1843 2011-10-08  Bruno Haible  <bruno@clisp.org>
1844
1845         Tests for module 'logf'.
1846         * modules/logf-tests: New file.
1847         * tests/test-logf.c: New file.
1848
1849         New module 'logf'.
1850         * lib/math.in.h (logf): New declaration.
1851         * lib/logf.c: New file.
1852         * m4/logf.m4: New file.
1853         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
1854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
1855         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
1856         * modules/logf: New file.
1857         * tests/test-math-c++.cc: Check the declaration of logf.
1858         * doc/posix-functions/logf.texi: Mention the new module.
1859
1860         log: Use a .m4 file.
1861         * m4/log.m4: New file.
1862         * modules/log (Files): Add it.
1863         (configure.ac): Just invoke gl_FUNC_LOG.
1864
1865 2011-10-08  Bruno Haible  <bruno@clisp.org>
1866
1867         Tests for module 'expf'.
1868         * modules/expf-tests: New file.
1869         * tests/test-expf.c: New file.
1870
1871         New module 'expf'.
1872         * lib/math.in.h (expf): New declaration.
1873         * lib/expf.c: New file.
1874         * m4/expf.m4: New file.
1875         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
1876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
1877         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
1878         * modules/expf: New file.
1879         * tests/test-math-c++.cc: Check the declaration of expf.
1880         * doc/posix-functions/expf.texi: Mention the new module.
1881
1882         exp: Use a .m4 file.
1883         * m4/exp.m4: New file.
1884         * modules/exp (Files): Add it.
1885         (configure.ac): Just invoke gl_FUNC_EXP.
1886
1887 2011-10-08  Bruno Haible  <bruno@clisp.org>
1888
1889         Tests for module 'sqrtf'.
1890         * modules/sqrtf-tests: New file.
1891         * tests/test-sqrtf.c: New file.
1892
1893         New module 'sqrtf'.
1894         * lib/math.in.h (sqrtf): New declaration.
1895         * lib/sqrtf.c: New file.
1896         * m4/sqrtf.m4: New file.
1897         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
1898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
1899         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
1900         * modules/sqrtf: New file.
1901         * tests/test-math-c++.cc: Check the declaration of sqrtf.
1902         * doc/posix-functions/sqrtf.texi: Mention the new module.
1903
1904 2011-10-08  Bruno Haible  <bruno@clisp.org>
1905
1906         Tests: Avoid link failures w.r.t. libintl.
1907         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
1908         $(LIBINTL).
1909         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
1910         $(LIBINTL).
1911         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
1912         against $(LIBINTL).
1913         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
1914         $(LIBINTL).
1915         * modules/openat-tests (Makefile.am): Link test-fchmodat against
1916         $(LIBINTL).
1917         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
1918
1919 2011-10-08  Bruno Haible  <bruno@clisp.org>
1920
1921         pow tests: Defeat compiler optimizations.
1922         * tests/test-pow.c (main): Assign arguments to x and y before use.
1923
1924 2011-10-08  Bruno Haible  <bruno@clisp.org>
1925
1926         gnulib-tool: Improve last commit.
1927         * gnulib-tool (func_modules_transitive_closure): Simplify code.
1928         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
1929         ignore dependencies that are not among the modules list.
1930
1931 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
1932
1933         gnulib-tool: don't follow dependencies to avoided modules
1934         This fixes a bug that is related to the previous one.
1935         * gnulib-tool (func_modules_transitive_closure)
1936         (func_emit_autoconf_snippets):
1937         Check whether a dependency is acceptable before using it.
1938         (--extract-dependencies): Report an error if --avoid is also used,
1939         since this combination of options is not yet supported.
1940
1941         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
1942         Problem reported by Peter Dyballa in
1943         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
1944         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
1945         when echoing "$condition".
1946
1947 2011-10-07  Bruno Haible  <bruno@clisp.org>
1948
1949         Fix documentation about math functions on MacOS X.
1950         * doc/posix-functions/exp2.texi: Don't say the function is missing on
1951         MacOS X 10.5.
1952         * doc/posix-functions/fdim.texi: Likewise.
1953         * doc/posix-functions/feclearexcept.texi: Likewise.
1954         * doc/posix-functions/fegetenv.texi: Likewise.
1955         * doc/posix-functions/fegetround.texi: Likewise.
1956         * doc/posix-functions/feholdexcept.texi: Likewise.
1957         * doc/posix-functions/feraiseexcept.texi: Likewise.
1958         * doc/posix-functions/fesetenv.texi: Likewise.
1959         * doc/posix-functions/fesetround.texi: Likewise.
1960         * doc/posix-functions/fetestexcept.texi: Likewise.
1961         * doc/posix-functions/feupdateenv.texi: Likewise.
1962         * doc/posix-functions/fmax.texi: Likewise.
1963         * doc/posix-functions/fmin.texi: Likewise.
1964         * doc/posix-functions/log2.texi: Likewise.
1965         * doc/posix-functions/modff.texi: Likewise.
1966         * doc/posix-functions/nan.texi: Likewise.
1967         * doc/posix-functions/nanf.texi: Likewise.
1968         * doc/posix-functions/nextafterf.texi: Likewise.
1969         * doc/posix-functions/remquo.texi: Likewise.
1970
1971 2011-10-07  Bruno Haible  <bruno@clisp.org>
1972
1973         modff: Drop assumption about library that defines modff.
1974         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
1975         AC_CHECK_FUNCS.
1976         * modules/modff (Files): Add m4/mathfunc.m4.
1977
1978 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
1979
1980         raise tests: Avoid a GCC warning.
1981         * tests/test-raise.c (handler): Use _Noreturn.
1982
1983 2011-10-07  Bruno Haible  <bruno@clisp.org>
1984
1985         Tests for module 'ldexpf'.
1986         * modules/ldexpf-tests: New file.
1987         * tests/test-ldexpf.c: New file.
1988
1989         New module 'ldexpf'.
1990         * lib/math.in.h (ldexpf): New declaration.
1991         * lib/ldexpf.c: New file.
1992         * m4/ldexpf.m4: New file.
1993         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
1994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
1995         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
1996         * modules/ldexpf: New file.
1997         * tests/test-math-c++.cc: Check the declaration of ldexpf.
1998         * doc/posix-functions/ldexpf.texi: Mention the new module.
1999
2000 2011-10-06  Bruno Haible  <bruno@clisp.org>
2001
2002         frexpf: Work around problems on IRIX and mingw.
2003         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2005         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2006         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2007         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2008         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2009         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2010
2011 2011-10-06  Bruno Haible  <bruno@clisp.org>
2012
2013         fabsf: Drop assumption about library that defines fabsf.
2014         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2015         AC_CHECK_FUNCS.
2016         * modules/fabsf (Files): Add m4/mathfunc.m4.
2017
2018 2011-10-06  Bruno Haible  <bruno@clisp.org>
2019
2020         frexpf: Drop assumption about library that defines frexpf.
2021         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2022         'int *', 'float *', 'long double *', 'float', 'long double'.
2023         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2024         AC_CHECK_FUNCS.
2025         * modules/frexpf (Files): Add m4/mathfunc.m4.
2026
2027         Tests for module 'frexpf'.
2028         * modules/frexpf-tests: New file.
2029         * tests/test-frexpf.c: New file.
2030
2031         New module 'frexpf'.
2032         * lib/math.in.h (frexpf): New declaration.
2033         * lib/frexpf.c: New file.
2034         * m4/frexpf.m4: New file.
2035         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2037         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2038         * modules/frexpf: New file.
2039         * tests/test-math-c++.cc: Check the declaration of frexpf.
2040         * doc/posix-functions/frexpf.texi: Mention the new module.
2041
2042 2011-10-06  Bruno Haible  <bruno@clisp.org>
2043
2044         math: Sort function declarations of math.in.h.
2045         * lib/math.in.h (frexp, logb): Move declarations.
2046
2047 2011-10-05  Bruno Haible  <bruno@clisp.org>
2048
2049         Tests for module 'modff'.
2050         * modules/modff-tests: New file.
2051         * tests/test-modff.c: New file.
2052
2053         New module 'modff'.
2054         * lib/math.in.h (modff): New declaration.
2055         * lib/modff.c: New file.
2056         * m4/modff.m4: New file.
2057         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2059         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2060         * modules/modff: New file.
2061         * tests/test-math-c++.cc: Check the declaration of modff.
2062         * doc/posix-functions/modff.texi: Mention the new module.
2063
2064         modf tests: Make test sharper.
2065         * tests/test-modf.c (main): Strengthen upper bound.
2066
2067         modf: Use a .m4 file.
2068         * m4/modf.m4: New file.
2069         * modules/modf (Files): Add it.
2070         (configure.ac): Just invoke gl_FUNC_MODF.
2071
2072 2011-10-05  Bruno Haible  <bruno@clisp.org>
2073
2074         Tests for module 'fmodf'.
2075         * modules/fmodf-tests: New file.
2076         * tests/test-fmodf.c: New file.
2077
2078         New module 'fmodf'.
2079         * lib/math.in.h (fmodf): New declaration.
2080         * lib/fmodf.c: New file.
2081         * m4/fmodf.m4: New file.
2082         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2084         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2085         * modules/fmodf: New file.
2086         * tests/test-math-c++.cc: Check the declaration of fmodf.
2087         * doc/posix-functions/fmodf.texi: Mention the new module.
2088
2089         fmod: Use a .m4 file.
2090         * m4/fmod.m4: New file.
2091         * modules/fmod (Files): Add it.
2092         (configure.ac): Just invoke gl_FUNC_FMOD.
2093
2094 2011-10-05  Bruno Haible  <bruno@clisp.org>
2095
2096         Tests for module 'fabsf'.
2097         * modules/fabsf-tests: New file.
2098         * tests/test-fabsf.c: New file.
2099
2100         New module 'fabsf'.
2101         * lib/math.in.h (fabsf): New declaration.
2102         * lib/fabsf.c: New file.
2103         * m4/fabsf.m4: New file.
2104         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2106         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2107         * modules/fabsf: New file.
2108         * tests/test-math-c++.cc: Check the declaration of fabsf.
2109         * doc/posix-functions/fabsf.texi: Mention the new module.
2110
2111         fabs: Use a .m4 file.
2112         * m4/fabs.m4: New file.
2113         * modules/fabs (Files): Add it.
2114         (configure.ac): Just invoke gl_FUNC_FABS.
2115
2116 2011-10-05  Jim Meyering  <meyering@redhat.com>
2117
2118         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2119         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2120         ls -lL regression introduced in coreutils-8.12, it does so at the
2121         cost of an additional stat call in the common case.  Besides, now
2122         that the kernel change that prompted commit 95f7c57f has been reverted
2123         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2124         we have no use for commit 95f7c57f, "file-has-acl: use
2125         acl_extended_file_nofollow if available".
2126
2127 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2128
2129         file-has-acl: revert unintended change in behavior of ls -L
2130         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2131         derived from...
2132         (file_has_acl): ...code here.  Call it.
2133         This problem was introduced with 2011-07-22 commit 95f7c57f,
2134         "file-has-acl: use acl_extended_file_nofollow if available".
2135         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2136
2137 2011-10-03  Bruno Haible  <bruno@clisp.org>
2138
2139         poll: Avoid link errors on MSVC.
2140         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2141         * modules/poll (Depends-on): Add sockets.
2142         (Link): New section.
2143         * NEWS: Mention the change.
2144         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2145         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2146         $(LIB_POLL) instead of $(LIBSOCKET).
2147
2148 2011-10-03  Bruno Haible  <bruno@clisp.org>
2149
2150         sys_select tests: Fix link error on MSVC 9.
2151         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2152         with $(LIB_SELECT) instead of $(LIBSOCKET).
2153
2154 2011-10-03  Bruno Haible  <bruno@clisp.org>
2155
2156         sys_select: Fix compilation error on mingw.
2157         * lib/sys_select.in.h: On native Windows, include <io.h>.
2158
2159 2011-10-03  Bruno Haible  <bruno@clisp.org>
2160
2161         wmemset: Support for MSVC.
2162         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2163         whether wmemset() exists.
2164
2165 2011-10-03  Bruno Haible  <bruno@clisp.org>
2166
2167         wmemmove: Support for MSVC.
2168         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2169         whether wmemmove() exists.
2170
2171 2011-10-03  Bruno Haible  <bruno@clisp.org>
2172
2173         wmemcpy: Support for MSVC.
2174         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2175         whether wmemcpy() exists.
2176
2177 2011-10-03  Bruno Haible  <bruno@clisp.org>
2178
2179         wmemcmp: Support for MSVC.
2180         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2181         whether wmemcmp() exists.
2182
2183 2011-10-03  Bruno Haible  <bruno@clisp.org>
2184
2185         wmemchr: Support for MSVC.
2186         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2187         whether wmemchr() exists.
2188
2189 2011-10-03  Bruno Haible  <bruno@clisp.org>
2190
2191         glthread/*, strsignal: Support for MSVC.
2192         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2193         including <winsock.h> on MSVC 9.
2194         * lib/glthread/lock.h: Likewise.
2195         * lib/glthread/thread.h: Likewise.
2196         * lib/glthread/tls.h: Likewise.
2197         * lib/glthread/yield.h: Likewise.
2198         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2199         if HAVE_UNISTD_H is false.
2200         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2201
2202 2011-10-03  Bruno Haible  <bruno@clisp.org>
2203
2204         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2205         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2206         Set to 100000.
2207
2208 2011-10-03  Bruno Haible  <bruno@clisp.org>
2209
2210         acl: Fix specification.
2211         * lib/file-has-acl.c (file_has_acl): Fix specification.
2212
2213 2011-10-03  Bruno Haible  <bruno@clisp.org>
2214
2215         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2216         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2217         (compute_curr_prefix, shared_library_fullname,
2218         find_shared_library_fullname, get_shared_library_fullname, relocate):
2219         Use it together with PIC && INSTALLDIR.
2220         Reported by <jojelino@gmail.com>
2221         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2222
2223 2011-10-01  Jim Meyering  <meyering@redhat.com>
2224
2225         maint.mk: adjust a release-related rule not to require use of gzip
2226         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2227         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2228         projects that build only .tar.xz files.  Also fix an erroneous test.
2229
2230         test-linkat: don't leave behind a temporary file
2231         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2232         Otherwise, coreutils' "make distcheck" would fail with this:
2233           Only in /c/cu/tests/torture/coreutils/test/\
2234             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2235           make[2]: *** [my-distcheck] Error 1
2236
2237         float, math: add omitted file
2238         * lib/itold.c: Add file, required for yesterday's float change.
2239
2240 2011-10-01  Bruno Haible  <bruno@clisp.org>
2241
2242         isinf: Fix for OpenBSD/x86.
2243         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2244         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2245         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2246
2247 2011-10-01  Bruno Haible  <bruno@clisp.org>
2248
2249         isfinite: Fix syntax error in configure test.
2250         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2251
2252         isfinite: Fix typo.
2253         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2254         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2255
2256 2011-10-01  Bruno Haible  <bruno@clisp.org>
2257
2258         nonblocking tests: Fix test failure on Linux/IA-64.
2259         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2260         Set to 270000.
2261
2262 2011-10-01  Bruno Haible  <bruno@clisp.org>
2263
2264         mkfifoat tests: Fix a test failure on mingw.
2265         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2266         with error ENOSYS.
2267
2268 2011-09-30  Bruno Haible  <bruno@clisp.org>
2269
2270         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2271         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2272         'long double'. Set REPLACE_ITOLD.
2273         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2274         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2275         * lib/itold.c: New file.
2276         * modules/float (Files): Add lib/itold.c.
2277         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2278         (Makefile.am): Substitute REPLACE_ITOLD.
2279         * modules/math (Depends-on): Add float.
2280         (Makefile.am): Substitute REPLACE_ITOLD.
2281         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2282         * doc/posix-headers/math.texi: Likewise.
2283         * doc/posix-functions/logl.texi: Likewise.
2284
2285 2011-09-30  Bruno Haible  <bruno@clisp.org>
2286
2287         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2288         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2289         Set to 140000.
2290
2291 2011-09-30  Bruno Haible  <bruno@clisp.org>
2292
2293         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2294         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2295         invocation, say "right after AC_PROG_CC_STDC", not "right after
2296         AC_PROG_CC".
2297         Reported by Gary V. Vaughan <gary@gnu.org>.
2298
2299 2011-09-30  Bruno Haible  <bruno@clisp.org>
2300
2301         Centralize C99 requirement.
2302         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2303         * modules/stdarg (configure.ac-early): Invoke it instead of
2304         AC_PROG_CC_STDC.
2305         Reported by Gary V. Vaughan and Paul Eggert.
2306
2307 2011-09-29  Bruno Haible  <bruno@clisp.org>
2308
2309         float: Fix LDBL_MAX value on Linux/PowerPC.
2310         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2311         on Linux/PowerPC.
2312         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2313         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2314         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2315         platform.
2316         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2317
2318 2011-09-29  Bruno Haible  <bruno@clisp.org>
2319
2320         doc: Improve doc about gl_EARLY.
2321         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2322         AC_PROG_CC_STDC invocation.
2323         Reported by Gary V. Vaughan <gary@gnu.org>.
2324
2325 2011-09-28  Bruno Haible  <bruno@clisp.org>
2326
2327         fgetc, fputc, fread, fwrite tests: Fix link error.
2328         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2329         on non-MSVC platforms.
2330         * tests/test-fputc.c (main): Likewise.
2331         * tests/test-fread.c (main): Likewise.
2332         * tests/test-fwrite.c (main): Likewise.
2333         Reported by Jim Meyering.
2334
2335 2011-09-27  Bruno Haible  <bruno@clisp.org>
2336
2337         fputc, fwrite tests: Avoid test failure on MSVC.
2338         * tests/test-fgetc.c: Include msvc-inval.h.
2339         (main): Invoke gl_msvc_inval_ensure_handler.
2340         * tests/test-fputc.c: Include msvc-inval.h.
2341         (main): Invoke gl_msvc_inval_ensure_handler.
2342         * tests/test-fread.c: Include msvc-inval.h.
2343         (main): Invoke gl_msvc_inval_ensure_handler.
2344         * tests/test-fwrite.c: Include msvc-inval.h.
2345         (main): Invoke gl_msvc_inval_ensure_handler.
2346         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2347         * modules/fputc-tests (Depends-on): Likewise.
2348         * modules/fread-tests (Depends-on): Likewise.
2349         * modules/fwrite-tests (Depends-on): Likewise.
2350
2351 2011-09-27  Bruno Haible  <bruno@clisp.org>
2352
2353         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2354         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2355         (raise): Remove older, duplicated declaration.
2356         (_gl_raise_SIGPIPE): New declaration.
2357         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2358         (rpl_raise): Remove function.
2359         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2360         a gnulib-defined SIGPIPE here.
2361         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2362         'sigprocmask' has detected missing signal-blocking and the module
2363         'sigpipe' is enabled.
2364         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2365
2366 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2367
2368         base64-tests: avoid memory leak
2369         * tests/test-base64.c (main): Plug memory leak.
2370
2371         base32: new module
2372         * modules/base32: New module.
2373         * lib/base32.c: New file.
2374         * lib/base32.h: Likewise.
2375         * m4/base32.m4: Likewise.
2376         * modules/base32-tests: New test.
2377         * tests/test-base32.c: Likewise.
2378         * MODULES.html.sh (Misc): Mention it.
2379
2380 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2381
2382         gnulib: use more-standard license notice wording
2383         * gnulib-tool (func_emit_copyright_notice): When emitting a
2384         license notice into a file, use the standard wording as suggested
2385         by the current information for GNU maintainers, except say "file"
2386         rather than "program".  The new wording gives a license version
2387         number, which addresses an issue raised by Glenn Morris in
2388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2389         * m4/onceonly.m4: Use that same wording here, too.
2390
2391         dup2: minor simplification
2392         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2393         as lib/dup2.c no longer uses 'inline'.
2394
2395 2011-09-25  Bruno Haible  <bruno@clisp.org>
2396
2397         strings: Fix compilation error on MSVC.
2398         * lib/strings.in.h: Include <stddef.h> for size_t.
2399
2400 2011-09-25  Bruno Haible  <bruno@clisp.org>
2401
2402         fflush et al.: Document limitation on MSVC.
2403         * doc/posix-functions/fflush.texi: Document possible crash in handling
2404         mode other than DEFAULT_HANDLING.
2405         * doc/posix-functions/fgetc.texi: Likewise.
2406         * doc/posix-functions/fputc.texi: Likewise.
2407         * doc/posix-functions/fread.texi: Likewise.
2408         * doc/posix-functions/fwrite.texi: Likewise.
2409
2410 2011-09-25  Bruno Haible  <bruno@clisp.org>
2411
2412         msvc-inval: Allow three invalid parameter handling modes.
2413         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2414         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2415         macros.
2416         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2417         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2418         SANE_LIBRARY_HANDLING as a no-op.
2419         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2420         <stdlib.h>.
2421         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2422
2423 2011-09-25  Bruno Haible  <bruno@clisp.org>
2424
2425         msvc-inval: Make handler multithread-safe.
2426         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2427         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2428         declarations.
2429         (gl_msvc_inval_current): New declaration.
2430         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2431         Operate on the structure returned by gl_msvc_inval_current().
2432         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2433         Remove varaiables.
2434         (tls_index, tls_initialized): New variables.
2435         (not_per_thread): New variable.
2436         (gl_msvc_inval_current): New function.
2437         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2438         returned by gl_msvc_inval_current().
2439
2440 2011-09-25  Bruno Haible  <bruno@clisp.org>
2441
2442         msvc-inval: Install handler globally.
2443         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2444         !_MSC_VER.
2445         (gl_msvc_invalid_parameter_handler): Remove declaration.
2446         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
2447         declarations.
2448         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2449         Install the handler globally, don't uninstall it.
2450         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
2451         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
2452         currently valid, call RaiseException instead.
2453         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
2454         for !_MSC_VER.
2455
2456 2011-09-25  Bruno Haible  <bruno@clisp.org>
2457
2458         strerror_r-posix: Fix for MSVC 9.
2459         * lib/strerror_r.c (local_snprintf): New function.
2460         (snprintf): Define to local_snprintf, not to _snprintf.
2461
2462 2011-09-25  Bruno Haible  <bruno@clisp.org>
2463
2464         ftruncate: Support for MSVC 9.
2465         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
2466         (chsize_nothrow): New function.
2467         (chsize): Redefine as a macro.
2468         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
2469         * modules/ftruncate (Depends-on): Add msvc-inval.
2470
2471 2011-09-25  Bruno Haible  <bruno@clisp.org>
2472
2473         New module 'fstat'.
2474         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
2475         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
2476         * lib/fchdir.c (rpl_fstat): Remove function.
2477         * m4/fstat.m4: New file.
2478         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
2479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
2480         declared.
2481         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
2482         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
2483         * modules/fstat: New file.
2484         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
2485         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
2486         is set.
2487         * doc/posix-functions/fstat.texi: Mention the new module and the
2488         problem on MSVC.
2489         * NEWS: Mention the change.
2490         * modules/acl (Depends-on): Add fstat.
2491         * modules/chdir-safer (Depends-on): Likewise.
2492         * modules/chown (Depends-on): Likewise.
2493         * modules/copy-file (Depends-on): Likewise.
2494         * modules/fchdir (Depends-on): Likewise.
2495         * modules/fdopendir (Depends-on): Likewise.
2496         * modules/fopen (Depends-on): Likewise.
2497         * modules/fts (Depends-on): Likewise.
2498         * modules/getcwd (Depends-on): Likewise.
2499         * modules/isapipe (Depends-on): Likewise.
2500         * modules/linkat (Depends-on): Likewise.
2501         * modules/lseek (Depends-on): Likewise.
2502         * modules/mkdir-p (Depends-on): Likewise.
2503         * modules/open (Depends-on): Likewise.
2504         * modules/openat (Depends-on): Likewise.
2505         * modules/read-file (Depends-on): Likewise.
2506         * modules/renameat (Depends-on): Likewise.
2507         * modules/utimens (Depends-on): Likewise.
2508
2509 2011-09-25  Bruno Haible  <bruno@clisp.org>
2510
2511         linkat: Fix compilation on MSVC 9.
2512         * lib/linkat.c: Don't include <stdint.h>.
2513
2514 2011-09-25  Bruno Haible  <bruno@clisp.org>
2515
2516         fclose: Support for MSVC 9.
2517         * lib/fclose.c: Include msvc-inval.h.
2518         (fclose_nothrow): New function.
2519         (rpl_fclose): Use it.
2520         * modules/fclose (Depends-on): Add msvc-inval.
2521         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
2522
2523 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2524
2525         dup2: minor simplifications
2526         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
2527         that it's a performance win.
2528         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
2529         ! defined __CYGWIN__)" to "ifdef F_GETFL".
2530
2531 2011-09-24  Jim Meyering  <meyering@redhat.com>
2532
2533         test-futimens: avoid a warning from gcc -Wshadow
2534         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
2535         to avoid a shadowing warning.
2536
2537 2011-09-24  Bruno Haible  <bruno@clisp.org>
2538
2539         fdopen: Support for MSVC 9.
2540         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
2541         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
2542         * lib/fdopen.c: Include msvc-inval.h.
2543         (fdopen_nothrow): New function.
2544         (rpl_fdopen): Use it.
2545         * modules/fdopen (Depends-on): Add msvc-inval.
2546         * modules/fclose-tests (Depends-on): Add fdopen.
2547         * modules/fflush-tests (Depends-on): Likewise.
2548         * modules/fgetc-tests (Depends-on): Likewise.
2549         * modules/fputc-tests (Depends-on): Likewise.
2550         * modules/fread-tests (Depends-on): Likewise.
2551         * modules/freopen-tests (Depends-on): Likewise.
2552         * modules/fseeko-tests (Depends-on): Likewise.
2553         * modules/ftello-tests (Depends-on): Likewise.
2554         * modules/fwrite-tests  (Depends-on): Likewise.
2555         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
2556
2557 2011-09-24  Bruno Haible  <bruno@clisp.org>
2558
2559         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
2560         * modules/fgetc-tests (Depends-on): Add unistd.
2561         * modules/fputc-tests (Depends-on): Likewise.
2562         * modules/fread-tests (Depends-on): Likewise.
2563         * modules/fwrite-tests (Depends-on): Likewise.
2564
2565 2011-09-24  Bruno Haible  <bruno@clisp.org>
2566
2567         dup: Simplify autoconf test.
2568         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
2569         on gl_MSVC_INVAL's result.
2570
2571 2011-09-24  Bruno Haible  <bruno@clisp.org>
2572
2573         Tests for function fwrite().
2574         * modules/fwrite-tests: New file.
2575         * tests/test-fwrite.c: New file.
2576         * modules/stdio-tests (Depends-on): Add fwrite-tests.
2577
2578         Tests for function fread().
2579         * modules/fread-tests: New file.
2580         * tests/test-fread.c: New file.
2581         * modules/stdio-tests (Depends-on): Add fread-tests.
2582
2583         Activate fputc tests.
2584         * modules/stdio-tests (Depends-on): Add fputc-tests.
2585
2586         Enhance fgetc, fputc tests.
2587         * tests/test-fgetc.c (main): Also test the stream's error indicator.
2588         * tests/test-fputc.c (main): Likewise.
2589
2590 2011-09-24  Bruno Haible  <bruno@clisp.org>
2591
2592         write: Support for MSVC 9.
2593         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2594         is not 1.
2595         * lib/write.c (write_nothrow): New function.
2596         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
2597         not 1. Use write_nothrow.
2598         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
2599         invalid parameter handler.
2600         (gl_PREREQ_WRITE): New macro.
2601         * modules/write (Depends-on): Add msvc-inval.
2602         (configure.ac): Invoke gl_PREREQ_WRITE.
2603         * doc/posix-functions/write.texi: Mention the problem on MSVC.
2604
2605 2011-09-24  Bruno Haible  <bruno@clisp.org>
2606
2607         read: Fix last commit.
2608         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
2609
2610 2011-09-24  Bruno Haible  <bruno@clisp.org>
2611
2612         dup2: Fix last commit.
2613         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
2614         (rpl_dup2): Disable fcntl workaround on native Windows.
2615
2616         sigprocmask: Make code safer.
2617         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
2618         section that changes macro definitions for this compilation unit.
2619
2620 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2621
2622         dup2: clarify by coalescing Windows-specific material
2623         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
2624         "msvc-nothrow.h"' to the Windows-specific section, so that the
2625         Emacs source need not contain these include files.
2626         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
2627         Windows-specific fixes into this function rather than just the
2628         nothrow fix, as this shortens and clarifies the code.  Always
2629         define as a function, as that's a bit cleaner than having it be
2630         sometimes a function and sometimes a macro.
2631         (rpl_dup2): Move the Windows-specific stuff out of here and into
2632         ms_windows_dup2.  Don't protect the Haiku-related fix with
2633         "#if !defined __linux__", as the same code also works around
2634         a Linux kernel bug, and it doesn't add any system calls on any
2635         platform.  Add comment about FreeBSD 6.1.
2636
2637         sigprocmask: move #include directive
2638         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
2639         Windows-specific section, so that the Emacs source need not
2640         contain msvc-inval.h.
2641
2642 2011-09-23  Bruno Haible  <bruno@clisp.org>
2643
2644         read: Support for MSVC 9.
2645         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
2646         is not 1.
2647         * lib/read.c (read_nothrow): New function.
2648         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
2649         read_nothrow.
2650         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
2651         invalid parameter handler.
2652         (gl_PREREQ_READ): New macro.
2653         * modules/read (Depends-on): Add msvc-inval.
2654         (configure.ac): Invoke gl_PREREQ_READ.
2655         * doc/posix-functions/read.texi: Mention the problem on MSVC.
2656
2657 2011-09-23  Bruno Haible  <bruno@clisp.org>
2658
2659         close: Support for MSVC 9.
2660         * lib/close.c: Include <errno.h>, msvc-inval.h.
2661         (close_nothrow): New function.
2662         (rpl_close): Use it.
2663         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
2664         invalid parameter handler.
2665         * modules/close (Depends-on): Add msvc-inval.
2666         * modules/dup2-tests (Depends-on): Add close.
2667         * modules/dup3-tests (Depends-on): Likewise.
2668         * modules/fcntl-tests (Depends-on): Likewise.
2669         * modules/spawn-pipe-tests (Depends-on): Likewise.
2670         * modules/unistd-safer-tests (Depends-on): Likewise.
2671         * doc/posix-functions/close.texi: Mention the problem on MSVC.
2672
2673 2011-09-23  Bruno Haible  <bruno@clisp.org>
2674
2675         New module 'dup'.
2676         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
2677         Allow replacement.
2678         * lib/dup.c: New file.
2679         * lib/fchdir.c (rpl_dup): Remove function.
2680         * m4/dup.m4: New file.
2681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
2682         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
2683         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
2684         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
2685         * modules/dup: New file.
2686         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
2687         'dup' module is in use.
2688         * modules/fdopendir (Depends-on): Add dup.
2689         * modules/fdutimensat-tests (Depends-on): Likewise.
2690         * modules/fts (Depends-on): Likewise.
2691         * modules/futimens-tests (Depends-on): Likewise.
2692         * modules/posix_spawnp-tests (Depends-on): Likewise.
2693         * modules/unistd-safer-tests (Depends-on): Likewise.
2694         * modules/utimens-tests (Depends-on): Likewise.
2695         * doc/posix-functions/dup.texi: Mention the new module and the problem
2696         on MSVC.
2697
2698 2011-09-23  Bruno Haible  <bruno@clisp.org>
2699
2700         getdtablesize: Support for MSVC 9.
2701         * lib/getdtablesize.c: Include msvc-inval.h.
2702         (_setmaxstdio_nothrow): New function.
2703         (_setmaxstdio): Redefine it.
2704         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
2705         * modules/getdtablesize (Depends-on): Add msvc-inval.
2706         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
2707
2708 2011-09-23  Bruno Haible  <bruno@clisp.org>
2709
2710         signal-h: Rename from signal.
2711         * modules/signal-h: Renamed from modules/signal.
2712         * modules/pthread_sigmask (Depends-on): Update.
2713         * modules/raise (Depends-on): Likewise.
2714         * modules/sigaction (Depends-on): Likewise.
2715         * modules/sigpipe (Depends-on): Likewise.
2716         * modules/sigprocmask (Depends-on): Likewise.
2717         * modules/sys_select (Depends-on): Likewise.
2718         * modules/signal-h-tests: Renamed from modules/signal-tests.
2719         (Files, Depends-on, Makefile.am): Update.
2720         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
2721         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
2722         (Files, Makefile.am): Update.
2723         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
2724         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
2725         * modules/signal: New placeholder file.
2726         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
2727         * doc/posix-headers/signal.texi: Update.
2728         * NEWS: Mention the change.
2729
2730 2011-09-23  Bruno Haible  <bruno@clisp.org>
2731
2732         sigprocmask: Avoid crashes through signal() on MSVC 9.
2733         * lib/sigprocmask.c: Include msvc-inval.h.
2734         (signal_nothrow): New function.
2735         (signal): Redefine it.
2736         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
2737         * modules/sigprocmask (Depends-on): Add msvc-inval.
2738         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
2739
2740 2011-09-23  Bruno Haible  <bruno@clisp.org>
2741
2742         Tests for module 'raise'.
2743         * modules/raise-tests: New file.
2744         * tests/test-raise.c: New file.
2745
2746         raise: Support for MSVC.
2747         * lib/signal.in.h (raise): New declaration.
2748         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
2749         for native Windows platforms.
2750         * m4/raise.m4: New file.
2751         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
2752         HAVE_RAISE, REPLACE_RAISE.
2753         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
2754         REPLACE_RAISE.
2755         * modules/raise (Status, Notice): Remove fields.
2756         (Files): Add m4/raise.m4.
2757         (Depends-on): Add signal, msvc-inval.
2758         (configure.ac): Use the common idioms.
2759         (Maintainer): Add me.
2760         * tests/test-signal-c++.cc: Check the signature of raise.
2761         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
2762
2763 2011-09-23  Bruno Haible  <bruno@clisp.org>
2764
2765         pipe2: Fix compilation on pre-C99 compilers.
2766         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
2767
2768 2011-09-23  Bruno Haible  <bruno@clisp.org>
2769
2770         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
2771         * lib/msvc-nothrow.h: New file.
2772         * lib/msvc-nothrow.c: New file.
2773         * m4/msvc-nothrow.m4: New file.
2774         * modules/msvc-nothrow: New file.
2775         * lib/dup2.c: Include msvc-nothrow.h.
2776         (rpl_dup2): No need to protect _get_osfhandle call here.
2777         * lib/accept4.c: Include msvc-nothrow.h.
2778         * lib/error.c: Likewise.
2779         * lib/fcntl.c: Likewise.
2780         * lib/lseek.c: Likewise.
2781         * lib/nonblocking.c: Likewise.
2782         * lib/poll.c: Likewise.
2783         * lib/read.c: Likewise.
2784         * lib/select.c: Likewise.
2785         * lib/sockets.h: Likewise.
2786         * lib/sockets.c: Likewise.
2787         * lib/stdio-read.c: Likewise.
2788         * lib/stdio-write.c: Likewise.
2789         * lib/write.c: Likewise.
2790         * lib/w32sock.h: Likewise.
2791         * lib/w32spawn.h: Likewise.
2792         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
2793         * lib/fsync.c: Likewise.
2794         * lib/isapipe.c: Likewise.
2795         * modules/dup2 (Depends-on): Add msvc-nothrow.
2796         * modules/accept4 (Depends-on): Likewise.
2797         * modules/error (Depends-on): Likewise.
2798         * modules/fcntl (Depends-on): Likewise.
2799         * modules/lseek (Depends-on): Likewise.
2800         * modules/nonblocking (Depends-on): Likewise.
2801         * modules/poll (Depends-on): Likewise.
2802         * modules/read (Depends-on): Likewise.
2803         * modules/select (Depends-on): Likewise.
2804         * modules/sockets (Depends-on): Likewise.
2805         * modules/sigpipe (Depends-on): Likewise.
2806         * modules/write (Depends-on): Likewise.
2807         * modules/accept (Depends-on): Likewise.
2808         * modules/bind (Depends-on): Likewise.
2809         * modules/connect (Depends-on): Likewise.
2810         * modules/gethostname (Depends-on): Likewise.
2811         * modules/getpeername (Depends-on): Likewise.
2812         * modules/getsockname (Depends-on): Likewise.
2813         * modules/getsockopt (Depends-on): Likewise.
2814         * modules/ioctl (Depends-on): Likewise.
2815         * modules/listen (Depends-on): Likewise.
2816         * modules/recv (Depends-on): Likewise.
2817         * modules/recvfrom (Depends-on): Likewise.
2818         * modules/send (Depends-on): Likewise.
2819         * modules/sendto (Depends-on): Likewise.
2820         * modules/setsockopt (Depends-on): Likewise.
2821         * modules/shutdown (Depends-on): Likewise.
2822         * modules/socket (Depends-on): Likewise.
2823         * modules/execute (Depends-on): Likewise.
2824         * modules/spawn-pipe (Depends-on): Likewise.
2825         * modules/flock (Depends-on): Likewise.
2826         * modules/fsync (Depends-on): Likewise.
2827         * modules/isapipe (Depends-on): Likewise.
2828         * tests/test-cloexec.c: Include msvc-nothrow.h.
2829         * tests/test-dup-safer.c: Likewise.
2830         * tests/test-dup2.c: Likewise.
2831         * tests/test-dup3.c: Likewise.
2832         * tests/test-fcntl.c: Likewise.
2833         * tests/test-pipe.c: Likewise.
2834         * tests/test-pipe2.c: Likewise.
2835         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
2836         * modules/unistd-safer-tests (Depends-on): Likewise.
2837         * modules/dup2-tests (Depends-on): Likewise.
2838         * modules/dup3-tests (Depends-on): Likewise.
2839         * modules/fcntl-tests (Depends-on): Likewise.
2840         * modules/pipe-posix-tests (Depends-on): Likewise.
2841         * modules/pipe2-tests (Depends-on): Likewise.
2842
2843 2011-09-23  Bruno Haible  <bruno@clisp.org>
2844
2845         dup2: Make code more maintainable.
2846         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
2847         (rpl_dup2): Use it.
2848         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
2849         * modules/dup2 (configure.ac): Invoke it.
2850         Reported by Paul Eggert.
2851
2852 2011-09-23  Bruno Haible  <bruno@clisp.org>
2853
2854         msvc-inval: Fix compilation error.
2855         * lib/msvc-inval.h: Include <excpt.h>.
2856
2857 2011-09-23  Bruno Haible  <bruno@clisp.org>
2858
2859         mkdir: Tweak for MSVC 9.
2860         * lib/sys_stat.in.h: Update comments.
2861         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
2862
2863         Tests for module 'chdir'.
2864         * modules/chdir-tests: New file.
2865         * tests/test-chdir.c: New file.
2866
2867         New module 'chdir'.
2868         * modules/chdir: New file.
2869         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
2870         (chdir): New declaration.
2871         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
2872         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
2873         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
2874         * tests/test-unistd-c++.cc: Check signature of chdir.
2875         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
2876         * modules/chdir-long (Depends-on): Add chdir.
2877         * modules/fchdir (Depends-on): Likewise.
2878         * modules/rename (Depends-on): Likewise.
2879         * modules/savewd (Depends-on): Likewise.
2880
2881         rmdir: Support for mingw, MSVC 9.
2882         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
2883         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
2884
2885         getcwd: Tweak for MSVC 9.
2886         * lib/unistd.in.h: Update comments.
2887         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
2888
2889 2011-09-22  Bruno Haible  <bruno@clisp.org>
2890
2891         strerror_r-posix: Avoid a link error on MSVC.
2892         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
2893         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
2894
2895 2011-09-22  Bruno Haible  <bruno@clisp.org>
2896
2897         select: Avoid link errors on MSVC.
2898         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
2899         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
2900         * modules/pselect (Link): Likewise.
2901         * NEWS: Mention the change.
2902         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
2903         test-select-stdin against $(LIB_SELECT).
2904         * modules/pselect-tests (Makefile.am): Link test-pselect against
2905         $(LIB_SELECT).
2906
2907 2011-09-22  Bruno Haible  <bruno@clisp.org>
2908
2909         select: Avoid compilation error on MSVC.
2910         * lib/select.c: Don't include <stdbool.h>.
2911
2912 2011-09-21  Bruno Haible  <bruno@clisp.org>
2913
2914         Consolidate all uses of PATH_MAX in *.m4 files.
2915         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
2916         macros.
2917         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
2918         and gl_PATHMAX_SNIPPET.
2919         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2921         * modules/chdir-long (Files): Add m4/pathmax.m4.
2922         * modules/getcwd (Files): Likewise.
2923
2924 2011-09-21  Bruno Haible  <bruno@clisp.org>
2925
2926         ftruncate: Un-deprecate, concentrate on Win32 support.
2927         * modules/ftruncate (Status, Notice): Remove sections.
2928         (Depends-on): Add largefile.
2929         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
2930         non-mingw platforms.
2931         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
2932         include <io.h>.
2933         * modules/perror-tests (Depends-on): Add ftruncate.
2934         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
2935         'ftruncate' module.
2936
2937 2011-09-21  Bruno Haible  <bruno@clisp.org>
2938
2939         Add dependencies to new dirent related modules.
2940         * modules/opendir (Depends-on): Add closedir.
2941         * modules/getcwd (Depends-on): Add opendir, closedir.
2942         * modules/dirent-safer-tests (Depends-on): Likewise.
2943         * modules/fdopendir-tests (Depends-on): Likewise.
2944         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
2945         * modules/renameat-tests (Depends-on): Likewise.
2946
2947 2011-09-21  Bruno Haible  <bruno@clisp.org>
2948
2949         opendir: Avoid compilation error on mingw.
2950         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
2951         * modules/opendir (Depends-on): Add unistd.
2952
2953 2011-09-21  Bruno Haible  <bruno@clisp.org>
2954
2955         ftruncate tests: Avoid a test failure on mingw.
2956         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
2957
2958 2011-09-21  Bruno Haible  <bruno@clisp.org>
2959
2960         select tests: Avoid test failures on OSF/1 5.1 and mingw.
2961         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
2962         native Windows.
2963
2964 2011-09-21  Bruno Haible  <bruno@clisp.org>
2965
2966         New module 'fdopen'.
2967         * lib/stdio.in.h (fdopen): New declaration.
2968         * lib/fdopen.c: New file.
2969         * m4/fdopen.m4: New file.
2970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
2971         REPLACE_FDOPEN.
2972         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
2973         REPLACE_FDOPEN.
2974         * modules/fdopen: New file.
2975         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
2976         * tests/test-stdio-c++.cc: Check signature of fdopen.
2977         * doc/posix-functions/fdopen.texi: Mention the new module.
2978
2979 2011-09-21  Bruno Haible  <bruno@clisp.org>
2980
2981         unlockpt tests: Avoid test failure on NetBSD 5.1.
2982         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
2983         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
2984
2985 2011-09-21  Bruno Haible  <bruno@clisp.org>
2986
2987         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
2988         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
2989         * tests/test-getlogin_r.c (main): Likewise.
2990
2991 2011-09-20  Bruno Haible  <bruno@clisp.org>
2992
2993         time tests: Don't require pid_t.
2994         * doc/posix-headers/time.texi: Revert last change.
2995         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
2996         * tests/test-time.c: Comment out the check for pid_t.
2997
2998 2011-09-20  Bruno Haible  <bruno@clisp.org>
2999
3000         fsync tests: Avoid a test failure on mingw.
3001         * tests/test-fsync.c (main): Allow a failure with EIO.
3002
3003 2011-09-20  Bruno Haible  <bruno@clisp.org>
3004
3005         euidaccess: Update comments.
3006         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3007
3008 2011-09-20  Bruno Haible  <bruno@clisp.org>
3009
3010         Ensure EBADF returns for socket functions on mingw.
3011         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3012         descriptor is invalid.
3013         * lib/bind.c (rpl_bind): Likewise.
3014         * lib/connect.c (rpl_connect): Likewise.
3015         * lib/getpeername.c (rpl_getpeername): Likewise.
3016         * lib/getsockname.c (rpl_getsockname): Likewise.
3017         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3018         * lib/listen.c (rpl_listen): Likewise.
3019         * lib/recv.c (rpl_recv): Likewise.
3020         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3021         * lib/send.c (rpl_send): Likewise.
3022         * lib/sendto.c (rpl_sendto): Likewise.
3023         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3024         * lib/shutdown.c (rpl_shutdown): Likewise.
3025
3026 2011-09-20  Bruno Haible  <bruno@clisp.org>
3027
3028         select tests: EBADF tests.
3029         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3030         test_bad_fd): New functions.
3031         (test_function): Invoke also test_bad_fd.
3032
3033 2011-09-20  Bruno Haible  <bruno@clisp.org>
3034
3035         Tests for module 'posix_spawn_file_actions_addopen.
3036         * modules/posix_spawn_file_actions_addopen-tests: New file.
3037         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3038
3039         Tests for module 'posix_spawn_file_actions_adddup2'.
3040         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3041         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3042
3043         Tests for module 'posix_spawn_file_actions_addclose'.
3044         * modules/posix_spawn_file_actions_addclose-tests: New file.
3045         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3046
3047 2011-09-20  Bruno Haible  <bruno@clisp.org>
3048
3049         Tests for module 'unlockpt'.
3050         * modules/unlockpt-tests: New file.
3051         * tests/test-unlockpt.c: New file.
3052         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3053
3054         Tests for module 'grantpt'.
3055         * modules/grantpt-tests: New file.
3056         * tests/test-grantpt.c: New file.
3057         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3058
3059 2011-09-20  Bruno Haible  <bruno@clisp.org>
3060
3061         freopen tests: EBADF tests.
3062         * tests/test-freopen.c: Include errno.h, unistd.h.
3063         (main): Add tests for EBADF, commented out for the moment.
3064
3065         fclose tests: EBADF tests.
3066         * tests/test-fclose.c (main): Add tests for EBADF.
3067
3068         fflush tests: EBADF tests.
3069         * tests/test-fflush.c: Include errno.h, macros.h.
3070         (main): Add tests for EBADF.
3071
3072         ftello tests: EBADF tests.
3073         * tests/test-ftello4.sh: New file.
3074         * tests/test-ftello4.c: New file.
3075         * modules/ftello-tests (Files): Add them.
3076         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3077
3078         fseeko tests: EBADF tests.
3079         * tests/test-fseeko4.sh: New file.
3080         * tests/test-fseeko4.c: New file.
3081         * modules/fseeko-tests (Files): Add them.
3082         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3083
3084         Tests for function fputc().
3085         * modules/fputc-tests: New file.
3086         * tests/test-fputc.c: New file.
3087         * modules/stdio-tests (Depends-on): Add fputc-tests.
3088
3089         Tests for function fgetc().
3090         * modules/fgetc-tests: New file.
3091         * tests/test-fgetc.c: New file.
3092         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3093
3094         Tests for function fdopen().
3095         * modules/fdopen-tests: New file.
3096         * tests/test-fdopen.c: New file.
3097         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3098
3099         Tests for module 'vdprintf'.
3100         * modules/vdprintf-tests: New file.
3101         * tests/test-vdprintf.c: New file.
3102
3103         Tests for module 'dprintf'.
3104         * modules/dprintf-tests: New file.
3105         * tests/test-dprintf.c: New file.
3106
3107 2011-09-20  Bruno Haible  <bruno@clisp.org>
3108
3109         Tests for module 'ioctl'.
3110         * modules/ioctl-tests: New file.
3111         * tests/test-ioctl.c: New file.
3112
3113 2011-09-20  Bruno Haible  <bruno@clisp.org>
3114
3115         fcntl tests: EBADF tests.
3116         * tests/test-fcntl.c (main): Add more tests for EBADF.
3117
3118 2011-09-20  Bruno Haible  <bruno@clisp.org>
3119
3120         utimensat tests: EBADF tests.
3121         * tests/test-utimensat.c (main): Add tests for EBADF.
3122
3123         renameat tests: EBADF tests.
3124         * tests/test-renameat.c (main): Add tests for EBADF.
3125
3126         mkfifoat tests: EBADF tests.
3127         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3128
3129         readlinkat tests: EBADF tests.
3130         * tests/test-readlinkat.c (main): Add tests for EBADF.
3131
3132         symlinkat tests: EBADF tests.
3133         * tests/test-symlinkat.c (main): Add tests for EBADF.
3134
3135         linkat tests: EBADF tests.
3136         * tests/test-linkat.c (main): Add tests for EBADF.
3137
3138         Tests for module 'faccessat'.
3139         * modules/faccessat-tests: New file.
3140         * tests/test-faccessat.c: New file.
3141
3142         fdopendir tests: EBADF tests.
3143         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3144
3145         openat tests: EBADF tests.
3146         * tests/test-fchownat.c (main): Add tests for EBADF.
3147         * tests/test-fstatat.c (main): Likewise.
3148         * tests/test-mkdirat.c (main): Likewise.
3149         * tests/test-openat.c (main): Likewise.
3150         * tests/test-unlinkat.c (main): Likewise.
3151         * tests/test-fchmodat.c: New file.
3152         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3153         (Makefile.am): Also run 'test-fchmodat'.
3154
3155 2011-09-20  Bruno Haible  <bruno@clisp.org>
3156
3157         utimens, futimens, fdutimensat tests: EBADF tests.
3158         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3159
3160         Tests for function fstat().
3161         * modules/fstat-tests: New file.
3162         * tests/test-fstat.c: New file.
3163         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3164
3165 2011-09-20  Bruno Haible  <bruno@clisp.org>
3166
3167         test-ttyname_r tests: EBADF tests.
3168         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3169
3170         Tests for module 'isatty'.
3171         * modules/isatty-tests: New file.
3172         * tests/test-isatty.c: New file.
3173
3174         Tests for module 'write'.
3175         * modules/write-tests: New file.
3176         * tests/test-write.c: New file.
3177
3178         Tests for module 'read'.
3179         * modules/read-tests: New file.
3180         * tests/test-read.c: New file.
3181
3182         pwrite tests: EBADF tests.
3183         * tests/test-pwrite.c (main): Add tests for EBADF.
3184
3185         pread tests: EBADF tests.
3186         * tests/test-pread.c (main): Add tests for EBADF.
3187
3188         lseek tests: EBADF tests.
3189         * tests/test-lseek.c (main): Add more tests for EBADF.
3190
3191         Tests for module 'ftruncate'.
3192         * modules/ftruncate-tests: New file.
3193         * tests/test-ftruncate.sh: New file.
3194         * tests/test-ftruncate.c: New file.
3195
3196         fsync tests: EBADF tests.
3197         * tests/test-fsync.c (main): Add more tests for EBADF.
3198
3199         fdatasync tests: EBADF tests.
3200         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3201
3202         Tests for module 'fchown'.
3203         * modules/fchown-tests: New file.
3204         * tests/test-fchown.c: New file.
3205
3206         Tests for module 'fchmod'.
3207         * modules/fchmod-tests: New file.
3208         * tests/test-fchmod.c: New file.
3209
3210         fchdir tests: EBADF tests.
3211         * tests/test-fchdir.c (main): Add more tests for EBADF.
3212
3213         dup2 tests: EBADF tests.
3214         * tests/test-dup2.c (main): Add more tests for EBADF.
3215
3216         Tests for module 'dup'.
3217         * modules/dup-tests: New file.
3218         * tests/test-dup.c: New file.
3219
3220         Tests for module 'close'.
3221         * modules/close-tests: New file.
3222         * tests/test-close.c: New file.
3223
3224 2011-09-20  Bruno Haible  <bruno@clisp.org>
3225
3226         Tests for module 'shutdown'.
3227         * modules/shutdown-tests: New file.
3228         * tests/test-shutdown.c: New file.
3229
3230         Tests for module 'setsockopt'.
3231         * modules/setsockopt-tests: New file.
3232         * tests/test-setsockopt.c: New file.
3233
3234         Tests for module 'sendto'.
3235         * modules/sendto-tests: New file.
3236         * tests/test-sendto.c: New file.
3237
3238         Tests for module 'send'.
3239         * modules/send-tests: New file.
3240         * tests/test-send.c: New file.
3241
3242         Tests for module 'recvfrom'.
3243         * modules/recvfrom-tests: New file.
3244         * tests/test-recvfrom.c: New file.
3245
3246         Tests for module 'recv'.
3247         * modules/recv-tests: New file.
3248         * tests/test-recv.c: New file.
3249
3250         Tests for module 'listen'.
3251         * modules/listen-tests: New file.
3252         * tests/test-listen.c: New file.
3253
3254         Tests for module 'getsockopt'.
3255         * modules/getsockopt-tests: New file.
3256         * tests/test-getsockopt.c: New file.
3257
3258         Tests for module 'getsockname'.
3259         * modules/getsockname-tests: New file.
3260         * tests/test-getsockname.c: New file.
3261
3262         Tests for module 'getpeername'.
3263         * modules/getpeername-tests: New file.
3264         * tests/test-getpeername.c: New file.
3265
3266         Tests for module 'connect'.
3267         * modules/connect-tests: New file.
3268         * tests/test-connect.c: New file.
3269
3270         Tests for module 'bind'.
3271         * modules/bind-tests: New file.
3272         * tests/test-bind.c: New file.
3273
3274         accept4 tests: Fix for native Windows.
3275         * tests/test-accept4.c: Include sockets.h.
3276         (main): Invoke gl_sockets_startup.
3277         * modules/accept4-tests (Depends-on): Add sockets.
3278
3279         accept tests: Fix for native Windows.
3280         * tests/test-accept.c: Include sockets.h.
3281         (main): Invoke gl_sockets_startup.
3282         * modules/accept-tests (Depends-on): Add sockets.
3283
3284 2011-09-19  Bruno Haible  <bruno@clisp.org>
3285
3286         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3287         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3288         do...while(0).
3289         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3290         Suggested by Paul Eggert.
3291
3292 2011-09-19  Bruno Haible  <bruno@clisp.org>
3293
3294         sched: Ensure pid_t is defined.
3295         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3296         not define pid_t.
3297         * lib/sched.in.h: Include <sys/types.h>.
3298         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3300
3301 2011-09-19  Bruno Haible  <bruno@clisp.org>
3302
3303         msvc-inval: Ensure the entire expansion is a single statement.
3304         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3305         of braces.
3306
3307 2011-09-19  Jim Meyering  <meyering@redhat.com>
3308
3309         tests: use printf, not echo in init.sh's warn_ function
3310         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3311         misbehave when given strings containing a backslash or starting
3312         with e.g., -n.  James Youngman suggested setting IFS.
3313
3314 2011-09-19  Eric Blake  <eblake@redhat.com>
3315
3316         futimens: enhance test
3317         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3318         closed non-negative fd.
3319
3320         date: accept 'hence' as opposite of 'ago'
3321         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3322         * tests/test-parse-datetime.c (main): Enhance test.
3323         Suggested by Jesse Wilson.
3324
3325 2011-09-19  Jim Meyering  <meyering@redhat.com>
3326
3327         getcwd: don't fail in a deep directory on a system without openat
3328         Before this change, getcwd would fail when called from a directory
3329         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3330         the non-openat implementation used "..", "../..", "../../..", etc.
3331         to access ancestor directories.  With too many, that string would
3332         be longer than PATH_MAX.
3333         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3334         using gnulib's openat replacement.
3335         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3336         we're using the replacement function.
3337
3338 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3339
3340         maint.mk: avoid warnings from perl about missing files
3341         * top/maint.mk (def_sym_regex): Ignore files listed in
3342         $(gl_other_headers_) that do not exist, say because a project
3343         does not use a corresponding module.
3344
3345 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3346
3347         stat: use pathmax.h only if needed
3348         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3349         This is better for Emacs, which does not have a mingw port and
3350         therefore can avoid the pathmax module.
3351
3352         utimens: remove dependency on dup2
3353         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3354         to work around the Linux kernel bug.
3355         * modules/utimens (Depends-on): Remove dup2.
3356
3357 2011-09-18  Bruno Haible  <bruno@clisp.org>
3358
3359         inet_ntop, inet_pton: Look for it also in libresolv.
3360         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3361         libnsl, search for it in libresolv.
3362         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3363         Needed on Solaris 7.
3364
3365 2011-09-18  Bruno Haible  <bruno@clisp.org>
3366
3367         accept, accept4 tests: Avoid link error on Solaris.
3368         * modules/accept-tests (Makefile.am): Link test-accept against
3369         $(LIBSOCKET).
3370         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3371         $(LIBSOCKET).
3372
3373         accept4: Avoid link error on Solaris.
3374         * modules/accept4 (Link): New section.
3375
3376         socket functions: Avoid link errors on Solaris.
3377         * modules/accept (Depends-on): Add socketlib.
3378         (Link): New section.
3379         * modules/bind (Depends-on): Add socketlib.
3380         (Link): New section.
3381         * modules/connect (Depends-on): Add socketlib.
3382         (Link): New section.
3383         * modules/getpeername (Depends-on): Add socketlib.
3384         (Link): New section.
3385         * modules/getsockname (Depends-on): Add socketlib.
3386         (Link): New section.
3387         * modules/getsockopt (Depends-on): Add socketlib.
3388         (Link): New section.
3389         * modules/listen (Depends-on): Add socketlib.
3390         (Link): New section.
3391         * modules/recv (Depends-on): Add socketlib.
3392         (Link): New section.
3393         * modules/recvfrom (Depends-on): Add socketlib.
3394         (Link): New section.
3395         * modules/send (Depends-on): Add socketlib.
3396         (Link): New section.
3397         * modules/sendto (Depends-on): Add socketlib.
3398         (Link): New section.
3399         * modules/setsockopt (Depends-on): Add socketlib.
3400         (Link): New section.
3401         * modules/shutdown (Depends-on): Add socketlib.
3402         (Link): New section.
3403         * modules/socket (Depends-on): Add socketlib.
3404         (Link): New section.
3405
3406 2011-09-18  Bruno Haible  <bruno@clisp.org>
3407
3408         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3409         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3410         than 5 seconds.
3411         * modules/ptsname-tests (configure.ac): Test for alarm.
3412
3413 2011-09-18  Bruno Haible  <bruno@clisp.org>
3414
3415         posix_spawn_file_actions_add*: Fix module dependencies.
3416         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3417         posix_spawn_file_actions_init.
3418         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3419         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3420
3421 2011-09-18  Bruno Haible  <bruno@clisp.org>
3422
3423         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3424         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3425         * tests/test-renameat.c (main): Likewise.
3426
3427 2011-09-18  Bruno Haible  <bruno@clisp.org>
3428
3429         Tests for module 'accept4'.
3430         * modules/accept4-tests: New file.
3431         * tests/test-accept4.c: New file.
3432
3433 2011-09-18  Bruno Haible  <bruno@clisp.org>
3434
3435         Tests for module 'accept'.
3436         * modules/accept-tests: New file.
3437         * tests/test-accept.c: New file.
3438
3439 2011-09-18  Bruno Haible  <bruno@clisp.org>
3440
3441         dup2: Support for MSVC.
3442         * lib/dup2.c: Include msvc-inval.h.
3443         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3444         _get_osfhandle calls.
3445         * modules/dup2 (Depends-on): Add msvc-inval.
3446         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
3447
3448         New module 'msvc-inval'.
3449         * lib/msvc-inval.h: New file.
3450         * lib/msvc-inval.c: New file.
3451         * m4/msvc-inval.m4: New file.
3452         * modules/msvc-inval: New file.
3453
3454 2011-09-17  Bruno Haible  <bruno@clisp.org>
3455
3456         Tests for module 'pclose'.
3457         * modules/pclose-tests: New file.
3458
3459         New module 'pclose'.
3460         * lib/stdio.in.h (pclose): New declaration.
3461         * lib/pclose.c: New file.
3462         * m4/pclose.m4: New file.
3463         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
3464         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
3465         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
3466         * modules/pclose: New file.
3467         * modules/popen-tests (Depends-on): Add pclose.
3468         * modules/popen-safer-tests (Depends-on): Likewise.
3469         * doc/posix-functions/pclose.texi: Mention the new module.
3470
3471 2011-09-17  Bruno Haible  <bruno@clisp.org>
3472
3473         popen: Support for MSVC.
3474         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
3475         * lib/popen.c (popen): Provide alternate definition for native Windows.
3476         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
3477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
3478         * modules/popen (Depends-on, configure.ac): Update condition.
3479         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
3480         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
3481         fixed.
3482
3483 2011-09-17  Bruno Haible  <bruno@clisp.org>
3484
3485         isnanl, isnand, isnanf: Work around MSVC bug.
3486         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
3487
3488 2011-09-17  Bruno Haible  <bruno@clisp.org>
3489
3490         sys_socket tests: Fix recent mistake.
3491         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
3492
3493 2011-09-17  Bruno Haible  <bruno@clisp.org>
3494
3495         putenv: Support for MSVC.
3496         * modules/putenv (Depends-on): Add environ.
3497         * lib/putenv.c (environ): Disable declaration.
3498         * lib/unistd.in.h: Update comment.
3499
3500 2011-09-17  Bruno Haible  <bruno@clisp.org>
3501
3502         math: Avoid macro redefinition warnings on MSVC.
3503         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
3504         Undefine before redefining.
3505
3506 2011-09-17  Bruno Haible  <bruno@clisp.org>
3507
3508         doc: Mention functions which are declared as macros.
3509         * doc/posix-functions/*[fl].texi: Mention that some functions are
3510         defined as macros with arguments only.
3511
3512 2011-09-17  Bruno Haible  <bruno@clisp.org>
3513
3514         Add dependencies to new dirent related modules.
3515         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
3516         * modules/fts (Depends-on): Likewise.
3517         * modules/glob (Depends-on): Likewise.
3518         * modules/savedir (Depends-on): Likewise.
3519         * modules/scandir (Depends-on): Likewise.
3520         * modules/dirent-safer (Depends-on): Add opendir, closedir.
3521         * modules/fdopendir (Depends-on): Add opendir.
3522
3523 2011-09-17  Bruno Haible  <bruno@clisp.org>
3524
3525         inet_pton: Support for MSVC on Windows Vista or newer.
3526         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
3527         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
3528         HAVE_DECL_INET_PTON is defined.
3529         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3530         On platforms with <winsock2.h>, test whether inet_pton is declared in
3531         <ws2tcpip.h>. If so, arrange to replace it.
3532         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3533         REPLACE_INET_PTON.
3534         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
3535         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
3536         (Depends-on, configure.ac): Update condition.
3537         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
3538
3539 2011-09-17  Bruno Haible  <bruno@clisp.org>
3540
3541         inet_ntop: Support for MSVC on Windows Vista or newer.
3542         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
3543         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
3544         HAVE_DECL_INET_NTOP is defined.
3545         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3546         On platforms with <winsock2.h>, test whether inet_ntop is declared in
3547         <ws2tcpip.h>. If so, arrange to replace it.
3548         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
3549         REPLACE_INET_NTOP.
3550         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
3551         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
3552         (Depends-on, configure.ac): Update condition.
3553         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
3554
3555 2011-09-16  Eric Blake  <eblake@redhat.com>
3556
3557         test-fsync: yet another enhancement
3558         * tests/test-fsync.c (main): Also test behavior on read-only text
3559         file.
3560
3561 2011-09-16  Bruno Haible  <bruno@clisp.org>
3562
3563         Enhance fsync, fdatasync tests.
3564         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
3565         * tests/test-fdatasync.c (main): Likewise.
3566
3567 2011-09-16  Bruno Haible  <bruno@clisp.org>
3568
3569         Support for MSVC compiler: Ensure mode_t gets defined.
3570         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
3571         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3572         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3573         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
3574         * tests/test-fcntl-h.c: Check that mode_t is defined.
3575         * tests/test-sys_stat.c: Likewise.
3576         * tests/test-sys_types.c: Likewise.
3577         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
3578         * doc/posix-headers/sys_stat.texi: Likewise.
3579         * doc/posix-headers/sys_types.texi: Likewise.
3580
3581 2011-09-16  Bruno Haible  <bruno@clisp.org>
3582
3583         sys_stat: Support for MSVC.
3584         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
3585         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
3586         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
3587         MSVC.
3588
3589 2011-09-16  Bruno Haible  <bruno@clisp.org>
3590
3591         Support for MSVC compiler: Ensure off_t gets defined.
3592         * lib/unistd.in.h: Include <sys/types.h>.
3593         * tests/test-fcntl-h.c: Check that off_t is defined.
3594         * tests/test-sys_stat.c: Likewise.
3595         * tests/test-sys_types.c: Likewise.
3596
3597 2011-09-16  Eric Blake  <eblake@redhat.com>
3598
3599         fdatasync: port to Solaris
3600         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
3601         * modules/fdatasync (Link): Document it.
3602         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
3603
3604         fdatasync: port to MacOS X 10.7
3605         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
3606         declared.
3607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
3608         * modules/unistd (Makefile.am): Substitute it.
3609         * lib/unistd.in.h (fdatasync): Declare on MacOS.
3610         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
3611
3612         fdatasync: minor improvements
3613         * modules/fdatasync (Depends-on): Add condition for fsync.
3614         * lib/fdatasync.c (fdatasync): Add comment.
3615         * tests/test-unistd-c++.cc: Test fdatasync.
3616
3617         unistd: update refs to newer POSIX
3618         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
3619         Suggested by Bruno Haible.
3620
3621         fdatasync: new module
3622         * modules/fsync (Description): Document difference to fdatasync.
3623         * modules/fdatasync: New module.
3624         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
3625         * lib/fdatasync.c (fdatasync): Likewise.
3626         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
3627         defaults.
3628         * modules/unistd (Makefile.am): Set witnesses.
3629         * lib/unistd.in.h (fdatasync): Declare.
3630         * MODULES.html.sh: Document it.
3631         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
3632         * modules/fdatasync-tests: New test.
3633         * tests/test-fdatasync.c: Likewise.
3634
3635 2011-09-16  Eric Blake  <eblake@redhat.com>
3636
3637         test-fsync: enhance tests
3638         * modules/fsync-tests (Depends-on): Add errno, for mingw.
3639         * tests/test-fsync.c (main): Enhance test.
3640
3641 2011-09-15  Bruno Haible  <bruno@clisp.org>
3642
3643         Support for MSVC compiler: Ensure ssize_t gets defined.
3644         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
3645         * doc/posix-headers/stdio.texi: Likewise.
3646         * modules/stdio (Depends-on): Add ssize_t.
3647         * modules/sys_socket (Depends-on): Likewise.
3648         * modules/sys_types (Depends-on): Likewise.
3649         * modules/sys_uio (Depends-on): Likewise.
3650         * modules/unistd (Depends-on): Likewise.
3651         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
3652         * tests/test-sys_types.c: Check that ssize_t is defined.
3653
3654 2011-09-14  Bruno Haible  <bruno@clisp.org>
3655
3656         Avoid using #, the m4 comment starter character, near brackets.
3657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
3658         delimiter character in sed expressions.
3659         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3660         Suggested by Eric Blake.
3661
3662         Properly quote AC_CHECK_DECLS' 4th argument.
3663         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
3664         argument.
3665         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3666         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3667         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3668         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3669         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3670         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
3671         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
3672         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
3673         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
3674         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3675         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
3676         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3677         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3678         * m4/isinf.m4 (gl_ISINF): Likewise.
3679         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3680         * m4/readutmp.m4 (gl_READUTMP): Likewise.
3681         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3682         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3683         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3685         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3686         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
3687         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
3688         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3689         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3691         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
3692         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3694         Reported by Eric Blake.
3695
3696         Properly quote AC_CHECK_DECL's 4th argument.
3697         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
3698         argument.
3699         * m4/argp.m4 (gl_ARGP): Likewise.
3700         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3701         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3702         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3703         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3704         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
3705         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
3706         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3707         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3708         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3709         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3710         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3711         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3712         Reported by Eric Blake.
3713
3714 2011-09-14  Eric Blake  <eblake@redhat.com>
3715
3716         opendir: avoid compile warning
3717         * lib/opendir.c (includes): Always include errno.h.
3718         Reported by Tatsuro MATSUOKA.
3719
3720 2011-09-14  Jim Meyering  <meyering@redhat.com>
3721
3722         maint.mk: sc_tight_scope: propagate failure from sub-make
3723         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
3724         Reported by Martin von Gagern.
3725
3726 2011-09-13  Bruno Haible  <bruno@clisp.org>
3727
3728         tempname: Support for MSVC.
3729         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
3730         MSVC.
3731         * modules/tempname (Depends-on): Add fcntl-h.
3732
3733 2011-09-13  Bruno Haible  <bruno@clisp.org>
3734
3735         sys_time: Support for MSVC.
3736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
3737         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
3738         include <winsock2.h>.
3739         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
3740         function declarations that collide with POSIX.
3741         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
3742         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3743
3744 2011-09-13  Bruno Haible  <bruno@clisp.org>
3745
3746         stat: Support for MSVC.
3747         * lib/stat.c: Include pathmax.h.
3748         * modules/stat (Depends-on): Add pathmax.
3749
3750         pathmax: Support for native Windows.
3751         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
3752
3753 2011-09-12  Bruno Haible  <bruno@clisp.org>
3754
3755         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
3756         * lib/dirent.in.h (struct dirent): New type.
3757         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
3758         DT_WHT): New macros.
3759         (DIR): New type.
3760         (opendir, closedir): Declare only if the module 'opendir' is enabled.
3761         (readdir, rewinddir): New declarations.
3762         * lib/dirent-private.h: New file.
3763         * lib/opendir.c: New file.
3764         * lib/readdir.c: New file.
3765         * lib/rewinddir.c: New file.
3766         * lib/closedir.c: New file.
3767         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
3768         * m4/opendir.m4: New file.
3769         * m4/readdir.m4: New file.
3770         * m4/rewinddir.m4: New file.
3771         * m4/closedir.m4: New file.
3772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
3773         REPLACE_CLOSEDIR here.
3774         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
3775         readdir, rewinddir are declared.
3776         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
3777         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
3778         HAVE_REWINDDIR, HAVE_CLOSEDIR.
3779         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
3780         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
3781         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
3782         * modules/opendir: New file.
3783         * modules/readdir: New file.
3784         * modules/rewinddir: New file.
3785         * modules/closedir: New file.
3786         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
3787         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
3788         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
3789         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
3790         * NEWS: Mention the 'fchdir' change.
3791
3792 2011-09-11  Bruno Haible  <bruno@clisp.org>
3793
3794         asm-underscore.m4: Support for MSVC.
3795         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
3796         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
3797
3798 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
3799
3800         Doc about crypt functions.
3801         * doc/posix-functions/crypt.texi: Expand range of glibc versions
3802         needing for _GNU_SOURCE to get crypt.
3803         * doc/posix-functions/encrypt.texi: Likewise.
3804         * doc/posix-functions/setkey.texi: Likewise.
3805
3806 2011-09-11  Bruno Haible  <bruno@clisp.org>
3807
3808         doc: Update regarding MSVC 9.
3809         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
3810         tested".
3811         * doc/posix-functions/*.texi: Update with info about MSVC 9.
3812         * doc/posix-headers/*.texi: Likewise.
3813         * doc/pastposix-functions/*.texi: Likewise.
3814         * doc/glibc-functions/*.texi: Likewise.
3815         * doc/glibc-headers/*.texi: Likewise.
3816
3817 2011-09-11  Bruno Haible  <bruno@clisp.org>
3818
3819         unistd et al.: Don't assume <unistd.h> exists.
3820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
3821         does not exist.
3822         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
3823         exist. But include <stdlib.h>.
3824         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
3825         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
3826         symlink() does not exist.
3827         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
3828         include <io.h> instead.
3829         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
3830         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
3831         include <direct.h> instead.
3832         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3833         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3834         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
3835         <io.h> instead.
3836         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
3837         correctly if the system does not have hard links.
3838         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
3839         <direct.h> instead.
3840         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
3841         it when looking for function declarations.
3842         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
3843         <direct.h> and <io.h> instead.
3844         * doc/posix-headers/unistd.texi: More details about MSVC problem.
3845
3846 2011-09-11  Bruno Haible  <bruno@clisp.org>
3847
3848         strcase: Support for MSVC.
3849         * modules/strcase (Status, Notice): Remove obsoletion mark.
3850         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
3851         * doc/posix-functions/strncasecmp.texi: Likewise.
3852
3853         strings: Don't assume <strings.h> exists.
3854         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
3855         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
3856         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
3857         * doc/posix-headers/strings.texi: Mention the MSVC problem.
3858
3859 2011-09-11  Bruno Haible  <bruno@clisp.org>
3860
3861         dirent: Don't assume <dirent.h> exists.
3862         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
3863         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
3864         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
3865         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
3866
3867 2011-09-11  Bruno Haible  <bruno@clisp.org>
3868
3869         Fix wint_t on MSVC.
3870         * lib/wchar.in.h (wint_t): On MSVC, override it.
3871         * lib/wctype.in.h (wint_t): Likewise.
3872         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
3873         MSVC.
3874         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
3875         * doc/posix-headers/wctype.texi: Likewise.
3876
3877 2011-09-11  Bruno Haible  <bruno@clisp.org>
3878
3879         sys_types: Fix typo.
3880         * lib/sys_types.in.h: Fix typo in comment.
3881         Reported by Paul Eggert.
3882
3883         Support for MSVC compiler: Ensure size_t gets defined.
3884         * modules/strings (Depends-on): Add 'sys_types'.
3885         * modules/sys_uio (Depends-on): Likewise.
3886         * lib/sys_uio.in.h: Update comment.
3887
3888         C++ tests for module 'sys_types'.
3889         * modules/sys_types-c++-tests: New file.
3890         * tests/test-sys_types-c++.cc: New file.
3891
3892         Tests for module 'sys_types'.
3893         * modules/sys_types-tests: New file.
3894         * tests/test-sys_types.c: New file.
3895
3896         New module 'sys_types'.
3897         * lib/sys_types.in.h: New file.
3898         * m4/sys_types_h.m4: New file.
3899         * modules/sys_types: New file.
3900         * doc/posix-headers/sys_types.texi: Mention the new module and the
3901         size_t problem on MSVC 9.
3902
3903 2011-09-11  Bruno Haible  <bruno@clisp.org>
3904
3905         Support for MSVC compiler: Avoid division by a literal 0.
3906         * lib/math.in.h (NAN): Define through a function call also on MSVC.
3907         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
3908         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
3909         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
3910         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
3911         * tests/infinity.h: New file.
3912         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
3913         on MSVC.
3914         * tests/test-ceilf1.c: Include infinity.h.
3915         (main): Use Infinityf.
3916         * tests/test-ceil1.c: Include infinity.h.
3917         (main): Use Infinityd.
3918         * tests/test-ceill.c: Include infinity.h.
3919         (main): Use Infinityl.
3920         * tests/test-dprintf-posix.c: Include infinity.h.
3921         (test_function): Use Infinityd.
3922         * tests/test-floorf1.c: Include infinity.h.
3923         (main): Use Infinityf.
3924         * tests/test-floor1.c: Include infinity.h.
3925         (main): Use Infinityd.
3926         * tests/test-floorl.c: Include infinity.h.
3927         (main): Use Infinityl.
3928         * tests/test-fprintf-posix.c: Include infinity.h.
3929         (test_function): Use Infinityd.
3930         * tests/test-frexp.c: Include infinity.h.
3931         (main): Use Infinityd.
3932         * tests/test-frexpl.c: Include infinity.h.
3933         (main): Use Infinityl.
3934         * tests/test-isfinite.c: Include infinity.h.
3935         (test_isfinitef): Use Infinityf.
3936         (test_isfinited): Use Infinityd.
3937         (test_isfinitel): Use Infinityl.
3938         * tests/test-isinf.c: Include infinity.h.
3939         (test_isinff): Use Infinityf.
3940         (test_isinfd): Use Infinityd.
3941         (test_isinfl): Use Infinityl.
3942         * tests/test-isnan.c: Include infinity.h.
3943         (test_float): Use Infinityf.
3944         (test_double): Use Infinityd.
3945         (test_long_double): Use Infinityl.
3946         * tests/test-isnanf.h: Include infinity.h.
3947         (main): Use Infinityf.
3948         * tests/test-isnand.h: Include infinity.h.
3949         (main): Use Infinityd.
3950         * tests/test-isnanl.h: Include infinity.h.
3951         (main): Use Infinityl.
3952         * tests/test-ldexpl.c: Include infinity.h.
3953         (main): Use Infinityl.
3954         * tests/test-printf-posix.h: Include infinity.h.
3955         (test_function): Use Infinityd.
3956         * tests/test-roundf1.c: Include infinity.h.
3957         (main): Use Infinityf.
3958         * tests/test-round1.c: Include infinity.h.
3959         (main): Use Infinityd.
3960         * tests/test-roundl.c: Include infinity.h.
3961         (main): Use Infinityl.
3962         * tests/test-signbit.c: Include infinity.h.
3963         (test_signbitf): Use Infinityf.
3964         (test_signbitd): Use Infinityd.
3965         (test_signbitl): Use Infinityl.
3966         * tests/test-snprintf-posix.h: Include infinity.h.
3967         (test_function): Use Infinityd, Infinityl.
3968         * tests/test-sprintf-posix.h: Include infinity.h.
3969         (test_function): Use Infinityd, Infinityl.
3970         * tests/test-truncf1.c: Include infinity.h.
3971         (main): Use Infinityf.
3972         * tests/test-trunc1.c: Include infinity.h.
3973         (main): Use Infinityd.
3974         * tests/test-truncl.c: Include infinity.h.
3975         (main): Use Infinityl.
3976         * tests/test-vasnprintf-posix.c: Include infinity.h.
3977         (test_function): Use Infinityd, Infinityl.
3978         * tests/test-vasprintf-posix.c: Include infinity.h.
3979         (test_function): Use Infinityd, Infinityl.
3980         * modules/ceilf-tests (Files): Add tests/infinity.h.
3981         * modules/ceil-tests (Files): Likewise.
3982         * modules/ceill-tests (Files): Likewise.
3983         * modules/dprintf-posix-tests (Files): Likewise.
3984         * modules/floorf-tests (Files): Likewise.
3985         * modules/floor-tests (Files): Likewise.
3986         * modules/floorl-tests (Files): Likewise.
3987         * modules/fprintf-posix-tests (Files): Likewise.
3988         * modules/frexp-tests (Files): Likewise.
3989         * modules/frexp-nolibm-tests (Files): Likewise.
3990         * modules/frexpl-tests (Files): Likewise.
3991         * modules/frexpl-nolibm-tests (Files): Likewise.
3992         * modules/isfinite-tests (Files): Likewise.
3993         * modules/isinf-tests (Files): Likewise.
3994         * modules/isnan-tests (Files): Likewise.
3995         * modules/isnanf-tests (Files): Likewise.
3996         * modules/isnanf-nolibm-tests (Files): Likewise.
3997         * modules/isnand-tests (Files): Likewise.
3998         * modules/isnand-nolibm-tests (Files): Likewise.
3999         * modules/isnanl-tests (Files): Likewise.
4000         * modules/isnanl-nolibm-tests (Files): Likewise.
4001         * modules/ldexpl-tests (Files): Likewise.
4002         * modules/printf-posix-tests (Files): Likewise.
4003         * modules/roundf-tests (Files): Likewise.
4004         * modules/round-tests (Files): Likewise.
4005         * modules/roundl-tests (Files): Likewise.
4006         * modules/signbit-tests (Files): Likewise.
4007         * modules/snprintf-posix-tests (Files): Likewise.
4008         * modules/sprintf-posix-tests (Files): Likewise.
4009         * modules/truncf-tests (Files): Likewise.
4010         * modules/trunc-tests (Files): Likewise.
4011         * modules/truncl-tests (Files): Likewise.
4012         * modules/vasnprintf-posix-tests (Files): Likewise.
4013         * modules/vasprintf-posix-tests (Files): Likewise.
4014         * modules/vdprintf-posix-tests (Files): Likewise.
4015         * modules/vfprintf-posix-tests (Files): Likewise.
4016         * modules/vprintf-posix-tests (Files): Likewise.
4017         * modules/vsnprintf-posix-tests (Files): Likewise.
4018         * modules/vsprintf-posix-tests (Files): Likewise.
4019         * modules/xprintf-posix-tests (Files): Likewise.
4020
4021 2011-09-11  Bruno Haible  <bruno@clisp.org>
4022
4023         Ensure pid_t gets defined.
4024         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4025         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4026         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4027         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4028         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4029         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4030         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4031         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4032         * tests/test-fcntl-h.c: Check that pid_t is defined.
4033         * tests/test-sched.c: Likewise.
4034         * tests/test-termios.c: Likewise.
4035         * tests/test-time.c: Likewise.
4036         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4037         * doc/posix-headers/signal.texi: Likewise.
4038         * doc/posix-headers/sys_types.texi: Likewise.
4039         * doc/posix-headers/time.texi: Likewise.
4040
4041 2011-09-11  Bruno Haible  <bruno@clisp.org>
4042
4043         acl: Fix compilation on Solaris 10 (older version).
4044         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4045         of ACE_EVERYONE.
4046         * lib/set-mode-acl.c (qset_acl): Likewise.
4047         Reported by Christian Jullien <eligis@orange.fr>.
4048
4049 2011-09-10  Bruno Haible  <bruno@clisp.org>
4050
4051         iconv, unsetenv: Add support for MSVC compiler.
4052         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4054
4055 2011-09-10  Bruno Haible  <bruno@clisp.org>
4056
4057         *printf: Add support for MSVC compiler.
4058         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4059         handles the exception caused by the %n directive. When cross-compiling,
4060         guess no on native Windows.
4061         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4062         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4063         emulate it through vsnprintf.
4064         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4065         * doc/posix-functions/dprintf.texi: Update documentation regarding
4066         MSVC 9.
4067         * doc/posix-functions/fprintf.texi: Likewise.
4068         * doc/posix-functions/printf.texi: Likewise.
4069         * doc/posix-functions/snprintf.texi: Likewise.
4070         * doc/posix-functions/sprintf.texi: Likewise.
4071         * doc/posix-functions/swprintf.texi: Likewise.
4072         * doc/posix-functions/vdprintf.texi: Likewise.
4073         * doc/posix-functions/vfprintf.texi: Likewise.
4074         * doc/posix-functions/vprintf.texi: Likewise.
4075         * doc/posix-functions/vsnprintf.texi: Likewise.
4076         * doc/posix-functions/vsprintf.texi: Likewise.
4077         * doc/glibc-functions/asprintf.texi: Likewise.
4078         * doc/glibc-functions/obstack_printf.texi: Likewise.
4079         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4080         * doc/glibc-functions/vasprintf.texi: Likewise.
4081
4082 2011-09-10  Bruno Haible  <bruno@clisp.org>
4083
4084         nocrash: Add support for native Windows.
4085         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4086
4087 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4088             Bruno Haible  <bruno@clisp.org>
4089
4090         absolute-header, include-next: Add support for MSVC compiler.
4091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4092         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4093         directory separator in #line directives.
4094         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4095         recognize also backslash as directory separator in #line directives.
4096
4097 2011-09-08  Jim Meyering  <meyering@redhat.com>
4098
4099         maint.mk: mark the post-release commit log with "maint: " prefix
4100         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4101         one-line commit-log summary.
4102
4103 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4104             Bruno Haible  <bruno@clisp.org>
4105
4106         Doc about crypt functions.
4107         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4108         systems.
4109         * doc/posix-functions/encrypt.texi: Likewise.
4110         * doc/posix-functions/setkey.texi: Likewise.
4111
4112 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4113
4114         * lib/gc.h: Fix copyright header.
4115
4116 2011-09-07  Bruno Haible  <bruno@clisp.org>
4117
4118         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4119         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4120         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4121
4122 2011-09-07  Bruno Haible  <bruno@clisp.org>
4123
4124         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4125         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4126         * lib/freopen.c: Likewise.
4127         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4128         * lib/lstat.c: Likewise.
4129         * lib/stat.c: Likewise.
4130         * lib/open.c: Use different syntax for include of <fcntl.h>.
4131         * lib/openat.c: Include fcntl.h again, explicitly.
4132
4133 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4134
4135         parse-datetime: document the newly accepted format
4136         * doc/parse-datetime.texi (Combined date and time of day items):
4137         New section.
4138
4139 2011-09-06  Bruno Haible  <bruno@clisp.org>
4140
4141         acl: Fix a test failure on newer Solaris 10 with ZFS.
4142         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4143         ENOSYS as no ACL.
4144         Reported by Jim Meyering.
4145
4146 2011-09-06  Bruno Haible  <bruno@clisp.org>
4147
4148         acl: Update for AIX >= 5.3 with NFS.
4149         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4150         ENOSYS as no ACL.
4151
4152         acl: Fix a test failure on AIX >= 5.3 with NFS.
4153         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4154         as no ACL.
4155
4156 2011-09-06  Bruno Haible  <bruno@clisp.org>
4157
4158         acl: Fix a test failure on IRIX 6.5 with NFS.
4159         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4160         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4161         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4162         * lib/copy-acl.c (qcopy_acl): Likewise.
4163
4164 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         openat: port to AIX 7.1 with large files
4167         AIX 7.1 does a "#define openat open64at" if large files are in use,
4168         so we can't simply #undef openat.  Use the orig_openat trick (similar
4169         to orig_open in lib/open.c) to work around the problem.  Problem
4170         reported by Kevin Brott for GNU tar, in the thread containing
4171         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4172         * lib/openat.c (__need_system_fcntl_h): Define first.
4173         Include <fcntl.h> and <sys/types.h> before undefining.
4174         (orig_openat) [HAVE_OPENAT]: New inline function.
4175         (openat) [HAVE_OPENAT]: Do not undef.
4176         (rpl_openat): Use orig_openat, not openat.
4177
4178 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4179             Bruno Haible  <bruno@clisp.org>
4180
4181         acl: Avoid errors on NonStop Kernel.
4182         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4183         ENOTSUP errors.
4184
4185 2011-09-05  Bruno Haible  <bruno@clisp.org>
4186
4187         acl: Clean up Solaris code.
4188         * lib/acl-internal.h: Remove no-op #if.
4189         * lib/file-has-acl.c: Likewise.
4190         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4191         * lib/copy-acl.c (qcopy_acl): Likewise.
4192
4193 2011-09-05  Bruno Haible  <bruno@clisp.org>
4194
4195         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4196         binaries built on the original Solaris 10.
4197         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4198         trivial.
4199
4200 2011-09-05  Bruno Haible  <bruno@clisp.org>
4201
4202         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4203         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4204         10.
4205         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4206         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4207         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4208         instead of acl_get, facl_get, acl_set, facl_set.
4209
4210 2011-09-05  Bruno Haible  <bruno@clisp.org>
4211
4212         copy-file: Try unit tests on more file systems.
4213         * tests/test-copy-file-1.sh: New file.
4214         * tests/test-copy-file-2.sh: New file.
4215         * modules/copy-file-tests (Files): Add them.
4216         (Makefile.am): Add them to TESTS.
4217
4218         acl: Try unit tests on more file systems.
4219         * tests/test-file-has-acl-1.sh: New file.
4220         * tests/test-file-has-acl-2.sh: New file.
4221         * tests/test-set-mode-acl-1.sh: New file.
4222         * tests/test-set-mode-acl-2.sh: New file.
4223         * tests/test-copy-acl-1.sh: New file.
4224         * tests/test-copy-acl-2.sh: New file.
4225         * modules/acl-tests (Files): Add them.
4226         (Makefile.am): Add them to TESTS.
4227
4228 2011-09-04  Bruno Haible  <bruno@clisp.org>
4229
4230         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4231         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4232         10.
4233         (OLD_ALLOW, OLD_DENY): New macros.
4234         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4235         ACE_ACCESS_ALLOWED_ACE_TYPE.
4236         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4237         ACE_ACCESS_DENIED_ACE_TYPE.
4238         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4239         (NEW_ACE_EXECUTE): Fix value.
4240         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4241         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4242         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4243         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4244         NEW_ACE_SYNCHRONIZE): New macros.
4245         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4246         instead of acl_fromtext, acl_set, facl_set.
4247         Fixes a coreutils/tests/cp/perm failure.
4248
4249 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4250
4251         openat: test for fstatat (..., 0) bug
4252         Further testing with tar suggests that fstatat (..., 0)
4253         does not work in general, on AIX 7.1; see
4254         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4255         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4256         replacement fstatat (which is what older AIX releases were using
4257         anyway).
4258         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4259         use is now changed to orig_fstatat.  This was probably the right
4260         thing to do anyway.
4261         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4262         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4263         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4264         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4265         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4266         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4267         if the bug is found.
4268
4269         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4270         This tests for another fstatat bug on AIX 7.1:
4271         fstatat (AT_FDCWD, ..., 0) does not work.  See
4272         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4273         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4274         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4275         (rpl_fstatat): Adjust so that it works around either (or both)
4276         bugs if present.
4277         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4278
4279 2011-09-03  Karl Berry  <karl@gnu.org>
4280
4281         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4282         in index entries.
4283
4284 2011-09-02  Bruno Haible  <bruno@clisp.org>
4285
4286         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4287         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4288         values of AR, ARFLAGS, RANLIB.
4289         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4290
4291 2011-09-02  Bruno Haible  <bruno@clisp.org>
4292
4293         Find 'ar' program that fits with --host argument.
4294         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4295
4296 2011-09-02  Bruno Haible  <bruno@clisp.org>
4297
4298         tests: init.sh: Support any non-GNU diff.
4299         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4300         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4301         Solaris 8.
4302
4303 2011-09-02  Bruno Haible  <bruno@clisp.org>
4304
4305         tests: init.sh: work also with any non-GNU diff that supports -u
4306         * tests/init.sh: Relax check for diff -u support.
4307         Rather than checking for GNU diff via --version, simply check
4308         for support for -u itself.  Useful at least on OpenBSD 4.9,
4309         AIX 7.1, IRIX 6.5, and Solaris 10.
4310
4311 2011-09-01  Bruno Haible  <bruno@clisp.org>
4312
4313         strtoimax, strtoumax: Document problem on HP-UX 11.
4314         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4315         * doc/posix-functions/strtoumax.texi: Likewise.
4316
4317 2011-09-01  Bruno Haible  <bruno@clisp.org>
4318
4319         strtoumax: Avoid link error on OSF/1 with DTK cc.
4320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4321         defined as a function.
4322         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4323         strtoumax is defined, not whether it is declared.
4324
4325 2011-09-01  Bruno Haible  <bruno@clisp.org>
4326
4327         strtoimax: Avoid link error on OSF/1 with DTK cc.
4328         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4329         defined as a function.
4330         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4331         strtoimax is defined, not whether it is declared.
4332
4333 2011-09-01  Bruno Haible  <bruno@clisp.org>
4334
4335         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4336         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4337         as a function.
4338         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4339         whether it is declared.
4340
4341 2011-09-01  Bruno Haible  <bruno@clisp.org>
4342
4343         imaxabs: Avoid link error on OSF/1 with DTK cc.
4344         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4345         as a function.
4346         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4347         whether it is declared.
4348
4349 2011-09-01  Bruno Haible  <bruno@clisp.org>
4350
4351         Tests for module 'strtoumax'.
4352         * modules/strtoumax-tests: New file.
4353         * tests/test-strtoumax.c: New file.
4354
4355         Tests for module 'strtoimax'.
4356         * modules/strtoimax-tests: New file.
4357         * tests/test-strtoimax.c: New file.
4358
4359         Tests for module 'imaxdiv'.
4360         * modules/imaxdiv-tests: New file.
4361         * tests/test-imaxdiv.c: New file.
4362
4363         Tests for module 'imaxabs'.
4364         * modules/imaxabs-tests: New file.
4365         * tests/test-imaxabs.c: New file.
4366
4367 2011-09-01  Bruno Haible  <bruno@clisp.org>
4368
4369         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4370         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4371         pthread_create.
4372
4373 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4374
4375         openat: work around AIX 7.1 fstatat issue
4376         This should fix the problem that was not properly fixed
4377         in the previous change, dated 2011-08-30.
4378         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4379         __need_system_stat_h defined.
4380         (orig_fstatat) [HAVE_FSTATAT]: New function.
4381         (rpl_fstatat): Go back to the old way of doing things,
4382         except call orig_fstatat instead of fstatat.
4383         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4384         Remove unnecessary check whether fstatat fills in st_size etc.
4385
4386 2011-09-01  Bruno Haible  <bruno@clisp.org>
4387
4388         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4389         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4390         just include the system's header.
4391
4392 2011-08-31  Jim Meyering  <meyering@redhat.com>
4393
4394         tests: avoid spurious assertion failure in test-float.c on ppc64
4395         * tests/test-float.c (test_long_double): Comment out an assertion,
4396         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4397         with gcc-4.4.4.
4398
4399         maint: indent with spaces, not TABs
4400         I need to get in the habit of running gnulib's "make check".
4401         Both of these would have been caught.
4402         * m4/largefile.m4: Indent with spaces, not TABs.
4403         * lib/parse-datetime.y (iso_8601_time): Likewise.
4404         Spotted by Pádraig Brady.
4405
4406         test-parse-datetime.c: accommodate a relatively strict gcc warning
4407         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4408         to avoid a warning from gcc's -Werror=missing-declarations.
4409         Insert a few spaces-before-funcall-parenthesis.
4410
4411 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4412
4413         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4414         The parser now accepts ISO 8601 date-time strings with "T" as the
4415         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4416         with a space between the date and time strings.  Now it also parses
4417         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4418         variants like "2004-02-29T16:21:42.333-07:00"
4419         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4420         of day representation using the 'T' separator character.
4421         * doc/parse-datetime.texi (General date syntax): replace use of
4422         deprecated --iso-8601 option with --rfc-3339 in example of date
4423         command output formats that can be parsed.
4424         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4425         lib/parse-datetime.y.
4426         (gmt_offset): New function.
4427         (main): Add additional test cases to validate ISO8601 extended
4428         date and time of day parsing.
4429
4430 2011-08-31  Bruno Haible  <bruno@clisp.org>
4431
4432         freopen: Documentation.
4433         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4434         name.
4435         Reported by Claudio Bley <claudio.bley@gmail.com>.
4436
4437 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4438
4439         freopen: Don't crash if the filename argument is NULL.
4440         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4441         NULL.
4442
4443 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4444
4445         openat: work around AIX 7.1 fstatat bug
4446         Problem reported by Kevin Brott for GNU tar, in the thread containing
4447         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
4448         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
4449         FSTATAT_ST_SIZE_ETC_BROKEN.
4450         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
4451         rpl_fstatat.
4452         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
4453         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
4454         AC_CHECK_FUNCS_ONCE for fstatat.
4455         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
4456         fchmodat, mkdirat, openat and unlinkat.
4457
4458 2011-08-30  Bruno Haible  <bruno@clisp.org>
4459
4460         Avoid endless recursions if config.h includes some header files.
4461         * lib/fopen.c (__need_FILE): Define already before including config.h.
4462         * lib/freopen.c (__need_FILE): Likewise.
4463         * lib/open.c (__need_system_fcntl_h): Likewise.
4464         * lib/stat.c (__need_system_sys_stat_h): Likewise.
4465         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
4466         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4467
4468 2011-08-25  Karl Berry  <karl@gnu.org>
4469
4470         * config/srclist.txt (ylwrap): new try.
4471         * build-aux/ylwrap: new file.
4472
4473 2011-08-23  Bruno Haible  <bruno@clisp.org>
4474
4475         tmpdir: Use a good default directory on native Windows.
4476         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
4477         (P_tmpdir): Default to _P_tmpdir on native Windows.
4478         (path_search): On native Windows, try the value returned by GetTempPath
4479         before trying P_tmpdir.
4480         * modules/tmpdir (Depends-on): Add pathmax.
4481         Suggested by John Darrington <john@darrington.wattle.id.au>.
4482
4483 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
4484
4485         doc: fix typo in README-release
4486         * top/README-release: Capitalize first word of a sentence.
4487
4488 2011-08-19  Jim Meyering  <meyering@redhat.com>
4489
4490         fts: do not exhaust memory when processing million-entry directories
4491         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
4492         directory would require about 256*N bytes of memory.  Thus, it was
4493         easy to construct a directory too large to be processed by any of
4494         those tools.  With this change, fts' maximum memory utilization is
4495         now limited to around 30MB.
4496         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
4497         (fts_read): When we've processed the final entry (i.e., when
4498         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
4499         using the parent entry to read any remaining entries.  Dispatch
4500         depending on what fts_build returns:
4501         - NULL+stop, aka failure: stop
4502         - NULL otherwise: move up in the dir hierarchy
4503         - non-NULL: handle this new entry
4504         (fts_build): Declare and use new local, continue_readdir.
4505         Prepare to be called from fts_read, when the entries
4506         from a partially-read directory have just been exhausted.
4507         In that case, we'll skip the opendir and instead use the parent's
4508         fts_dirp and derive dir_fd from that.
4509         Finally, in the readdir loop, if we read max_entries entries,
4510         exit the loop ensuring *not* to call closedir.  This is required
4511         so that fts_dirp can be reused on a subsequent call.
4512         Prompted by Ben England's report of memory exhaustion in find
4513         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
4514
4515         maint: fts: move decl of `dp' down into while loop; split a long line
4516         * lib/fts.c (fts_build): No semantic change.
4517
4518         fts: add/use new struct member, fts_dirp
4519         We are about to use this to manage any directory with
4520         too many entries to read all of them into memory at once.
4521         To do that, we'll need to save the DIR* pointer in each
4522         affected FTSENT struct.
4523         * lib/fts_.h: Include <dirent.h>.
4524         (struct FTSENT) [fts_dirp]: New member.
4525         * lib/fts.c (closedir_and_clear): Define.
4526         Use it in place of closedir so that we are sure to
4527         clear the new fts_dirp member when done with it.
4528         (fts_alloc): Initialize the new member.
4529         (fts_lfree): Free, if needed.
4530
4531         maint: fts: give __opendir2 a new parameter and rename
4532         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
4533         than surreptitiously using sole caller's "dir_fd".
4534         (fts_opendir): Rename from __opendir2.
4535
4536         maint: fts.c: remove __opendir2's now-unused parameter, oflag
4537         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
4538
4539         maint: fts.c: correct off-by-one indentation
4540         * lib/fts.c (fts_build): Correct indentation, change style
4541         of a couple of block comments, and bracing style.
4542
4543         maint: fts.c: move __opendir2 #define "up" out of function body
4544         * lib/fts.c (__opendir2): Move "up".  No semantic change.
4545
4546         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
4547         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
4548         out for a long time and besides was useful only on BSD systems.
4549
4550 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
4551
4552         regex: port to Stratus OpenVOS
4553         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
4554         define to empty, rather than attempting nonportable optimizations.
4555         Problem reported by Paul Green in:
4556         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
4557         and fix suggested by Eric Blake in:
4558         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
4559
4560 2011-08-17  Eric Blake  <eblake@redhat.com>
4561
4562         getcwd: fix test failures on mingw
4563         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
4564         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
4565         test if long directory cannot be created, and allow mingw errno.
4566
4567         getcwd-lgpl: fix m4 to match relaxed test for BSD
4568         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
4569         (gl_FUNC_GETCWD_SIGNATURE): New macro.
4570         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
4571         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
4572         signature problem.
4573
4574         getcwd: fix compilation on mingw64
4575         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
4576         getcwd.
4577         Reported by Marc-André Lureau.
4578
4579         pipe2: silence compiler warning
4580         * lib/pipe2.c (pipe2): Hide label if it is not used.
4581
4582 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
4583
4584         relocatable-prog: fix link error
4585         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
4586         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
4587         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
4588         into modules/relocatable-lib without noticing that
4589         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
4590         also needs to build relocatable.c.
4591
4592 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4593
4594         getaddrinfo: fix sh typo in gai_strerrorA decl checking
4595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
4596         shell code: it contained a 'break' that was not in a loop.
4597         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
4598         via a shell-language loop; this may have been true in old Autoconf
4599         versions, but it's not true in Autoconf 2.68.  I found this bug
4600         when testing coreutils git on Solaris 8, whose shell complains
4601         about the syntax error.
4602
4603 2011-08-12  Simon Josefsson  <simon@josefsson.org>
4604
4605         * lib/base64.c: Fix comment to reference RFC 4648.
4606         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
4607         <gvtulder@gmail.com>.
4608
4609 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
4610
4611         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
4612
4613         po/Makefile.in.in: fix make -q problem
4614         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
4615         rule, since there's no file named 'check-macro-version' and its
4616         use as a file breaks make -q.
4617         (all): Don't depend on check-macro-version.
4618         (CHECK_MACRO_VERSION): New macro.
4619         (stamp-po): Use it.
4620
4621         configmake: fix make -q problem
4622         * modules/configmake (configmake.h): Update configmake.h's time stamp
4623         even if the file does not change.  Otherwise, 'make -q' fails.
4624         Problem reported by Simon Josefsson in
4625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
4626
4627 2011-08-11  Jim Meyering  <meyering@redhat.com>
4628
4629         git-version-gen: correct the advice in a comment
4630         * build-aux/git-version-gen: Correct comment.
4631         Don't recommend to list .tarball-version in .gitignore.
4632
4633 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         base64: fix off-by-one buffer size bug
4636         Problem and (trivial) fix reported by Gijs van Tulder in
4637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
4638         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
4639         * tests/test-base64.c (main): Catch the bug.
4640
4641 2011-08-10  Eric Blake  <eblake@redhat.com>
4642
4643         closein: correct comments
4644         * lib/closein.c (close_stdin): Improve comments.
4645
4646 2011-08-09  Bruno Haible  <bruno@clisp.org>
4647
4648         More tests for 'fseeko'.
4649         * tests/test-fseeko3.c: New file, from Eric Blake.
4650         * tests/test-fseeko3.sh: New file.
4651         * modules/fseeko-tests (Files): Add them.
4652         (TESTS): Add test-fseeko3.sh.
4653         (check_PROGRAMS): Add test-fseeko3.
4654
4655 2011-08-09  Eric Blake  <eblake@redhat.com>
4656
4657         fseeko: remove unneeded hack
4658         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
4659
4660         fseeko: fix bug on glibc
4661         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
4662         Reported by John W. Eaton.
4663
4664 2011-08-08  Bruno Haible  <bruno@clisp.org>
4665
4666         unictype/base: Fix interoperability with preinstalled libunistring.
4667         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
4668         Reported by Simon Josefsson.
4669
4670 2011-08-08  Bruno Haible  <bruno@clisp.org>
4671
4672         iswblank: Detect declaration correctly.
4673         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
4674         AC_CHECK_DECLS invocation.
4675
4676 2011-08-08  Bruno Haible  <bruno@clisp.org>
4677
4678         tcgetsid: Detect declaration correctly.
4679         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
4680         AC_CHECK_DECLS invocation.
4681         Reported by Simon Josefsson.
4682
4683 2011-08-08  Eric Blake  <eblake@redhat.com>
4684
4685         largefile: fix typo that regressed large file support
4686         * modules/largefile (configure.ac-early): Fix section name.
4687
4688 2011-08-06  Karl Berry  <karl@gnu.org>
4689
4690         * MODULES.html.sh (func_all_files): _Noreturn is no longer
4691         a separate module.
4692
4693 2011-08-05  Simon Josefsson  <simon@josefsson.org>
4694
4695         openat: Fix warnings and commens when building unlinkat.c on Hurd.
4696         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
4697         get prototype for free.
4698
4699 2011-08-04  Bruno Haible  <bruno@clisp.org>
4700
4701         Tests for module 'pathmax'.
4702         * modules/pathmax-tests: New file.
4703         * tests/test-pathmax.c: New file.
4704
4705         canonicalize-lgpl: Support larger filenames on the Hurd.
4706         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
4707         Reported by Paul Eggert.
4708
4709         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
4710         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
4711         * lib/chdir-long.h: Include pathmax.h.
4712         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
4713         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
4714         (PATH_MAX): Remove code that is done by pathmax.h.
4715         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
4716         * lib/tmpfile.c: Add a comment.
4717         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
4718         * modules/chdir-long (Depends-on): Add pathmax.
4719         * modules/getcwd (Depends-on): Add pathmax.
4720         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
4721         is not defined.
4722         * doc/posix-headers/limits.texi: Mention the pathmax module.
4723         * NEWS: Mention the change.
4724
4725 2011-08-02  Bruno Haible  <bruno@clisp.org>
4726
4727         pthread_sigmask: Actually use results of gl_THREADLIB.
4728         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
4729         gl_THREADLIB, not gl_[]THREADLIB.
4730         Reported by Eric Blake.
4731
4732 2011-08-02  Jim Meyering  <meyering@redhat.com>
4733
4734         maint.mk: relax the default _gl_TS_function_match regexp
4735         * top/maint.mk (_gl_TS_function_match): Don't require at least one
4736         space between function name and "(" in an "extern" declaration.
4737         That would fail to match a decl with no space there: extern void foo();
4738
4739 2011-07-31  Iain Nicol  <iain@thenicols.net>
4740
4741         git-version-gen: document that EXTRA_DIST must include .version
4742         * build-aux/git-version-gen: In the how-to-use comment, document
4743         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
4744         will fail when run from an unpacked distribution tarball.
4745
4746 2011-08-01  Bruno Haible  <bruno@clisp.org>
4747
4748         wctype-h: Fix last change.
4749         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
4750         REPLACE_TOWLOWER to 0.
4751         Reported by Sam Steingold <sds@gnu.org>.
4752
4753 2011-07-31  Bruno Haible  <bruno@clisp.org>
4754
4755         frexpl: Update autoconf test.
4756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
4757         according to changes of 2011-06-20.
4758
4759 2011-07-31  Bruno Haible  <bruno@clisp.org>
4760
4761         sys_utsname: Add support for Minix.
4762         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
4763         <sys/utsname.h>.
4764         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4765         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
4766
4767 2011-07-31  Bruno Haible  <bruno@clisp.org>
4768
4769         strings: Add support for Minix.
4770         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
4771         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
4772         * doc/posix-headers/strings.texi: Document the Minix problem.
4773
4774 2011-07-31  Bruno Haible  <bruno@clisp.org>
4775
4776         wctype-h: Add support for Minix.
4777         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
4778         REPLACE_TOWLOWER.
4779         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
4780         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
4781         REPLACE_ISWCNTRL.
4782
4783 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
4784
4785         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
4786         This is a performance improvement for 64-bit hosts: it causes the
4787         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
4788
4789 2011-07-31  Bruno Haible  <bruno@clisp.org>
4790
4791         stdioext: Add support for Minix.
4792         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
4793         * lib/fpurge.c (fpurge): Likewise.
4794         * lib/freadahead.c (freadahead): Likewise.
4795         * lib/freadable.c (freadable): Likewise.
4796         * lib/freading.c (freading): Likewise.
4797         * lib/freadptr.c (freadptr): Likewise.
4798         * lib/freadseek.c (freadptrinc): Likewise.
4799         * lib/fseeko.c (rpl_fseeko): Likewise.
4800         * lib/fseterr.c (fseterr): Likewise.
4801         * lib/fwritable.c (fwritable): Likewise.
4802         * lib/fwriting.c (fwriting): Likewise.
4803         * lib/fflush.c (clear_ungetc_buffer): Update comment.
4804         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
4805
4806 2011-07-31  Bruno Haible  <bruno@clisp.org>
4807
4808         errno: Port to Minix.
4809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
4810         ECONNABORTED are defined.
4811         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
4812         GNULIB_defined_ECONNABORTED): New macros.
4813         * lib/strerror-override.h (strerror_override): Test also
4814         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
4815         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
4816         ECONNABORTED.
4817         * doc/posix-headers/errno.texi: Mention the Minix problem.
4818
4819 2011-07-31  Bruno Haible  <bruno@clisp.org>
4820
4821         Work around declaration collisions on Minix.
4822         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
4823         defined, set REPLACE_MBSINIT.
4824         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
4825         defined, set REPLACE_MBRTOWC.
4826         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
4827         set REPLACE_MBRLEN.
4828         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
4829         defined, set REPLACE_MBSRTOWCS.
4830         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
4831         defined, set REPLACE_WCRTOMB.
4832         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
4833         defined, set REPLACE_WCSRTOMBS.
4834
4835 2011-07-31  Bruno Haible  <bruno@clisp.org>
4836
4837         Add support for Minix with ACK compiler.
4838         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
4839         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
4840         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
4841
4842 2011-07-31  Bruno Haible  <bruno@clisp.org>
4843
4844         Documentation about Minix.
4845         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
4846         * doc/glibc-headers/*.texi: Likewise.
4847         * doc/posix-functions/*.texi: Likewise.
4848         * doc/glibc-functions/*.texi: Likewise.
4849
4850 2011-07-31  Bruno Haible  <bruno@clisp.org>
4851
4852         snippet/warn-on-use: Fix indentation.
4853         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
4854
4855 2011-07-25  Jim Meyering  <meyering@redhat.com>
4856
4857         tests: test-update-copyright.sh: remove unnecessary "rm" commands
4858         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
4859         commands.
4860
4861 2011-07-27  Jim Meyering  <meyering@redhat.com>
4862
4863         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
4864         * top/maint.mk (gl_extract_significant_defines_): Now that
4865         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
4866         gnulib/lib/signal.in.h, and now that we recommend to
4867         define-if-undefined those two symbols in application code,
4868         we must filter them out of the "significant" list.
4869         This avoids a "make syntax-check" failure in coreutils.
4870
4871 2011-07-26  Eric Blake  <eblake@redhat.com>
4872
4873         warnings: add comments about previous patch
4874         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
4875         * m4/include_next.m4: Likewise.
4876         * m4/warn-on-use.m4: Likewise.
4877         * m4/warnings.m4: Likewise, and simplify use.
4878         Suggested by Stefano Lattarini.
4879
4880         include-next, warnings: support older autoconf
4881         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
4882         AS_VAR_PUSHDEF in a way that works with older autoconf.
4883         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
4884         Reported by Daniel P. Berrange.
4885
4886 2011-07-25  Bruno Haible  <bruno@clisp.org>
4887
4888         fseek, ftell: Fix doc.
4889         * doc/posix-functions/fseek.texi: Reword statement about
4890         AC_SYS_LARGEFILE.
4891         * doc/posix-functions/ftell.texi: Likewise.
4892
4893 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4894             Bruno Haible  <bruno@clisp.org>
4895
4896         Add dependencies to the 'largefile' module.
4897         * modules/fopen (Depends-on): Add 'largefile'.
4898         * modules/freopen (Depends-on): Likewise.
4899         * modules/fseeko (Depends-on): Likewise.
4900         * modules/ftello (Depends-on): Likewise.
4901         * modules/glob (Depends-on): Likewise.
4902         * modules/lseek (Depends-on): Likewise.
4903         * modules/lstat (Depends-on): Likewise.
4904         * modules/mkostemp (Depends-on): Likewise.
4905         * modules/mkostemps (Depends-on): Likewise.
4906         * modules/mkstemp (Depends-on): Likewise.
4907         * modules/mkstemps (Depends-on): Likewise.
4908         * modules/open (Depends-on): Likewise.
4909         * modules/openat (Depends-on): Likewise.
4910         * modules/pread (Depends-on): Likewise.
4911         * modules/pwrite (Depends-on): Likewise.
4912         * modules/scandir (Depends-on): Likewise.
4913         * modules/stat (Depends-on): Likewise.
4914         * modules/tmpfile (Depends-on): Likewise.
4915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
4916         since the containing module now depends on the largefile module.
4917         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
4918         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
4919         off_t is fixed by gnulib.
4920         * doc/posix-functions/freopen.texi: Likewise.
4921         * doc/posix-functions/fseeko.texi: Likewise.
4922         * doc/posix-functions/fstatat.texi: Likewise.
4923         * doc/posix-functions/ftello.texi: Likewise.
4924         * doc/posix-functions/glob.texi: Likewise.
4925         * doc/posix-functions/lseek.texi: Likewise.
4926         * doc/posix-functions/lstat.texi: Likewise.
4927         * doc/posix-functions/mkstemp.texi: Likewise.
4928         * doc/posix-functions/open.texi: Likewise.
4929         * doc/posix-functions/openat.texi: Likewise.
4930         * doc/posix-functions/pread.texi: Likewise.
4931         * doc/posix-functions/pwrite.texi: Likewise.
4932         * doc/posix-functions/scandir.texi: Likewise.
4933         * doc/posix-functions/stat.texi: Likewise.
4934         * doc/posix-functions/tmpfile.texi: Likewise.
4935         * doc/glibc-functions/mkostemp.texi: Likewise.
4936         * doc/glibc-functions/mkostemps.texi: Likewise.
4937         * doc/glibc-functions/mkstemps.texi: Likewise.
4938
4939 2011-07-25  Bruno Haible  <bruno@clisp.org>
4940
4941         fcntl: Move AC_LIBOBJ invocation to module description.
4942         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
4943         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
4944
4945         fcntl: Remove call-in from fchdir.m4.
4946         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
4947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
4948
4949         dup3: Remove potential call-in from fchdir.m4.
4950         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
4951         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
4952
4953         dup2: Move AC_LIBOBJ invocation to module description.
4954         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
4955         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
4956         Don't invoke AC_LIBOBJ.
4957         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
4958
4959         dup2: Remove call-in from fchdir.m4.
4960         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
4961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
4962
4963         fclose: Move AC_LIBOBJ invocation to module description.
4964         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
4965         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
4966         to 1.
4967         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
4968
4969         fclose: Remove call-in from close.m4.
4970         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
4971         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
4972
4973         close: Move AC_LIBOBJ invocation to module description.
4974         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
4975         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
4976         1.
4977         * modules/close (configure.ac): Invoke AC_LIBOBJ.
4978
4979         close: Remove call-in from fchdir.m4.
4980         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
4981         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
4982
4983         open: Move AC_LIBOBJ invocation to module description.
4984         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
4985         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
4986         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
4987
4988         open: Remove call-in from fchdir.m4.
4989         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
4990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
4991
4992         fchdir: Start to remove gl_REPLACE_* idiom.
4993         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
4994         (gl_FUNC_FCHDIR): Invoke it.
4995
4996 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
4997
4998         * lib/ftell.c (ftell): Comment out cast.
4999
5000         close: use gl_REPLACE_FCLOSE only if defined
5001         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5002         is defined.  The close module doesn't depend on the fclose module
5003         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5005         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5006
5007 2011-07-24  Jim Meyering  <meyering@redhat.com>
5008
5009         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5010         * tests/test-select.h (test_function): Declare as "static".
5011
5012 2011-07-24  Bruno Haible  <bruno@clisp.org>
5013
5014         doc: Mention the effects of AC_SYS_LARGEFILE.
5015         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5016         on this function.
5017         * doc/posix-functions/aio_error.texi: Likewise.
5018         * doc/posix-functions/aio_fsync.texi: Likewise.
5019         * doc/posix-functions/aio_read.texi: Likewise.
5020         * doc/posix-functions/aio_return.texi: Likewise.
5021         * doc/posix-functions/aio_suspend.texi: Likewise.
5022         * doc/posix-functions/aio_write.texi: Likewise.
5023         * doc/posix-functions/fgetpos.texi: Likewise.
5024         * doc/posix-functions/fopen.texi: Likewise.
5025         * doc/posix-functions/freopen.texi: Likewise.
5026         * doc/posix-functions/fsetpos.texi: Likewise.
5027         * doc/posix-functions/fstatvfs.texi: Likewise.
5028         * doc/posix-functions/ftruncate.texi: Likewise.
5029         * doc/posix-functions/ftw.texi: Likewise.
5030         * doc/posix-functions/getrlimit.texi: Likewise.
5031         * doc/posix-functions/glob.texi: Likewise.
5032         * doc/posix-functions/lio_listio.texi: Likewise.
5033         * doc/posix-functions/lockf.texi: Likewise.
5034         * doc/posix-functions/mkstemp.texi: Likewise.
5035         * doc/posix-functions/mmap.texi: Likewise.
5036         * doc/posix-functions/nftw.texi: Likewise.
5037         * doc/posix-functions/openat.texi: Likewise.
5038         * doc/posix-functions/opendir.texi: Likewise.
5039         * doc/posix-functions/posix_fadvise.texi: Likewise.
5040         * doc/posix-functions/posix_fallocate.texi: Likewise.
5041         * doc/posix-functions/pread.texi: Likewise.
5042         * doc/posix-functions/pwrite.texi: Likewise.
5043         * doc/posix-functions/readdir.texi: Likewise.
5044         * doc/posix-functions/readdir_r.texi: Likewise.
5045         * doc/posix-functions/rewinddir.texi: Likewise.
5046         * doc/posix-functions/scandir.texi: Likewise.
5047         * doc/posix-functions/seekdir.texi: Likewise.
5048         * doc/posix-functions/setrlimit.texi: Likewise.
5049         * doc/posix-functions/statvfs.texi: Likewise.
5050         * doc/posix-functions/telldir.texi: Likewise.
5051         * doc/posix-functions/tmpfile.texi: Likewise.
5052         * doc/posix-functions/truncate.texi: Likewise.
5053         * doc/glibc-functions/fallocate.texi: Likewise.
5054         * doc/glibc-functions/fstatfs.texi: Likewise.
5055         * doc/glibc-functions/fts_children.texi: Likewise.
5056         * doc/glibc-functions/fts_read.texi: Likewise.
5057         * doc/glibc-functions/getdirentries.texi: Likewise.
5058         * doc/glibc-functions/mkostemp.texi: Likewise.
5059         * doc/glibc-functions/mkostemps.texi: Likewise.
5060         * doc/glibc-functions/mkstemps.texi: Likewise.
5061         * doc/glibc-functions/preadv.texi: Likewise.
5062         * doc/glibc-functions/pwritev.texi: Likewise.
5063         * doc/glibc-functions/sendfile.texi: Likewise.
5064         * doc/glibc-functions/statfs.texi: Likewise.
5065
5066 2011-07-24  Bruno Haible  <bruno@clisp.org>
5067
5068         doc: Fix typo.
5069         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5070
5071 2011-07-24  Bruno Haible  <bruno@clisp.org>
5072
5073         doc: Mention fsusage.
5074         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5075
5076 2011-07-24  Bruno Haible  <bruno@clisp.org>
5077
5078         doc: Mention new glibc headers and functions.
5079         * doc/glibc-headers/gshadow.texi: New file.
5080         * doc/glibc-functions/endsgent.texi: New file.
5081         * doc/glibc-functions/fgetsgent.texi: New file.
5082         * doc/glibc-functions/fgetsgent_r.texi: New file.
5083         * doc/glibc-functions/getsgent.texi: New file.
5084         * doc/glibc-functions/getsgent_r.texi: New file.
5085         * doc/glibc-functions/getsgnam.texi: New file.
5086         * doc/glibc-functions/getsgnam_r.texi: New file.
5087         * doc/glibc-functions/putsgent.texi: New file.
5088         * doc/glibc-functions/setsgent.texi: New file.
5089         * doc/glibc-functions/sgetsgent.texi: New file.
5090         * doc/glibc-functions/sgetsgent_r.texi: New file.
5091         * doc/glibc-functions/malloc_info.texi: New file.
5092         * doc/glibc-functions/preadv.texi: New file.
5093         * doc/glibc-functions/pwritev.texi: New file.
5094         * doc/glibc-functions/register_printf_modifier.texi: New file.
5095         * doc/glibc-functions/register_printf_specifier.texi: New file.
5096         * doc/glibc-functions/register_printf_type.texi: New file.
5097         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5098         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5099         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5100         * doc/glibc-functions/pthread_getname_np.texi: New file.
5101         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5102         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5103         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5104         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5105         * doc/glibc-functions/pthread_setname_np.texi: New file.
5106         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5107         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5108         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5109         * doc/glibc-functions/qsort_r.texi: New file.
5110         * doc/glibc-functions/quick_exit.texi: New file.
5111         * doc/glibc-functions/syncfs.texi: New file.
5112         * doc/gnulib.texi: Include them.
5113         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5114         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5115         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5116         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5117         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5118         * doc/glibc-functions/execvpe.texi: Likewise.
5119
5120 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         ftell: don't include <unistd.h>
5123         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5124         guaranteed to define off_t, and the ftell module depends on the
5125         stdio module.
5126
5127         ftell: do not assume wraparound signed arithmetic
5128         * lib/ftell.c: Include <limits.h>.
5129         (ftell): Don't assume wraparound signed arithmetic.
5130
5131 2011-07-24  Bruno Haible  <bruno@clisp.org>
5132
5133         close: No longer depend on module 'fclose'.
5134         * modules/close (Depends-on): Remove fclose.
5135         * NEWS: Mention the change.
5136         Suggested by Sam Steingold <sds@gnu.org>.
5137
5138 2011-07-24  Bruno Haible  <bruno@clisp.org>
5139
5140         fsusage: Enable large volume support on AIX >= 5.2.
5141         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5142         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5143         instead of STAT_STATVFS.
5144         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5145
5146         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5148         f_blocks field only on MacOS X.
5149
5150         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5152         * modules/fsusage (Depends-on): Add largefile.
5153
5154 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5155
5156         * README: Modernize discussion of signed integers.
5157         Assuming overflow wraparound is no longer safe.
5158         Mention ones' complement and signed magnitude.
5159
5160 2011-07-22  Bruno Haible  <bruno@clisp.org>
5161
5162         select tests, pselect tests: Refactor.
5163         * tests/test-select.h: New file, extracted from tests/test-select.c.
5164         (select_fn): New type.
5165         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5166         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5167         test_pipe): Add my_select argument.
5168         (test_function): Renamed from main. Add my_select argument.
5169         * tests/test-select.c: Move most code to tests/test-select.h. Include
5170         test-select.h.
5171         * modules/select-tests (Files): Add tests/test-select.h.
5172         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5173         (my_select, main): New functions.
5174         * modules/pselect-tests (Files): Add tests/test-select.h,
5175         tests/macros.h, tests/signature.h.
5176         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5177         (configure.ac): Check for <sys/wait.h>.
5178
5179 2011-07-22  Bruno Haible  <bruno@clisp.org>
5180
5181         sys_select tests: Check the signature of FD_*.
5182         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5183         signature tests from here...
5184         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5185         here.
5186         * modules/sys_select-tests (Files): Add tests/signature.h.
5187
5188 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5189
5190         largefile: new module, replacing large-inode
5191         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5192         * MODULES.html.sh: Add largefile, remove large-inode.
5193         * modules/largefile, m4/largefile.m4: New files.
5194         * modules/large-inode, m4/large-inode.m4: Remove.
5195
5196         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5197         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5198         implementations that use only 32 bits to count blocks.
5199         On typical hosts with 1024-byte blocks, this fails with file
5200         systems as small as 4 TiB.  Problem reported by Herb Wartens
5201         <http://debbugs.gnu.org/9140> and this should also fix a similar
5202         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5203
5204         large-inode: New module
5205         * MODULES.html.sh: Add it.
5206         * modules/large-inode, m4/large-inode.m4: New files.
5207
5208         extensions: Enable extensions on MacOS X 10.5 and later.
5209         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5210
5211 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5212
5213         file-has-acl: use acl_extended_file_nofollow if available
5214         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5215         (acl_extended_file): New macro.
5216         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5217         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5218
5219 2011-07-21  Bruno Haible  <bruno@clisp.org>
5220
5221         Declare system functions in a way that works with C++.
5222         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5223         declare fdopendir as extern "C".
5224         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5225         declare frexpl as extern "C".
5226         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5227         declare gai_strerror as extern "C".
5228         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5229         programs, declare gai_strerror as extern "C".
5230         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5231         declare getlogin_r as extern "C".
5232         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5233         as extern "C".
5234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5235         declare ldexpl as extern "C".
5236         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5237         as extern "C".
5238         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5239         program, declare getmntinfo as extern "C".
5240         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5241         stpncpy as extern "C".
5242         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5243         program, declare __xpg_strerror_r as extern "C".
5244         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5245         strndup as extern "C".
5246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5247         declare memset and bzero as extern "C".
5248         Reported by Sam Steingold <sds@gnu.org>.
5249
5250 2011-07-12  Jim Meyering  <meyering@redhat.com>
5251
5252         maint.mk: prohibit inclusion of "verify.h" without use
5253         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5254
5255 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5256
5257         timer-time: A new module to check for timer_settime()
5258         * m4/timer_time.m4: Check for the posix function.
5259         * modules/timer-time: Add the new module.
5260         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5261         Mention it.
5262
5263 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5264             Bruno Haible  <bruno@clisp.org>
5265
5266         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5267         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5268         not defined, assume POSIX threads and look for pthread_sigmask in
5269         $LIBS, without changing $CPPFLAGS.
5270
5271 2011-07-19  Bruno Haible  <bruno@clisp.org>
5272
5273         strstr: Update cross-compilation guess.
5274         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5275         CPUs, guess no, in view of glibc
5276         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5277         Suggested by Eric Blake. Reported by Reuben Thomas.
5278
5279 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5280
5281         getopt-gnu: suppress core dumps from detection code
5282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5283         to suppress core dumps that may well occur on glibc systems.
5284         * modules/getopt-gnu: Depend on nocrash.
5285
5286 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5287
5288         pthread_sigmask: ensure usleep is declared
5289         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5290         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5291
5292 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5293
5294         doc: Document NonStop portability issues.
5295         * doc/posix-functions/sigaction.texi (sigaction):
5296         * doc/posix-headers/signal.texi (signal.h):
5297         Document NonStop.  See Joachim Schmitz in
5298         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5299
5300 2011-07-15  Bruno Haible  <bruno@clisp.org>
5301
5302         ffsl, ffsll: Avoid unportable behaviour.
5303         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5304
5305 2011-07-15  Bruno Haible  <bruno@clisp.org>
5306
5307         ffs: More tests.
5308         * tests/test-ffs.c (NBITS): New macro.
5309         (main): Add more tests.
5310         * tests/test-ffsl.c (NBITS): New macro.
5311         (main): Add more tests.
5312         * tests/test-ffsll.c (NBITS): New macro.
5313         (main): Add more tests.
5314
5315 2011-07-15  Eric Blake  <eblake@redhat.com>
5316
5317         ffsl, ffsll: new modules
5318         * modules/ffsl: New file.
5319         * modules/ffsll: Likewise.
5320         * m4/ffsl.m4: Likewise.
5321         * m4/ffsll.m4: Likewise.
5322         * lib/ffsl.c: Likewise.
5323         * lib/ffsl.h: Likewise.
5324         * lib/ffsll.c: Likewise.
5325         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5326         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5327         * modules/string (Makefile.am): Substitute witnesses.
5328         * lib/strings.in.h (ffsl, ffsll): Declare.
5329         * modules/ffsl-tests: New test file.
5330         * modules/ffsll-tests: Likewise.
5331         * tests/test-ffsl.c: Likewise.
5332         * tests/test-ffsll.c: Likewise.
5333         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5334         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5335         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5336
5337         ffs: fix m4 prerequisite
5338         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5339
5340         ffs: avoid undefined behavior
5341         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5342         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5343         Reported by Bruno Haible.
5344
5345 2011-07-12  Bruno Haible  <bruno@clisp.org>
5346
5347         pthread_sigmask: Rely on module 'threadlib'.
5348         * modules/pthread_sigmask (Depends-on): Add threadlib.
5349         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5350         is defined.
5351
5352 2011-07-12  Bruno Haible  <bruno@clisp.org>
5353
5354         regex: Depend on module 'strcase'.
5355         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5356
5357 2011-07-12  Jim Meyering  <meyering@redhat.com>
5358
5359         warn-on-use: fix typo in file name
5360         * modules/snippet/warn-on-use (Files): Correct file name:
5361         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5362
5363 2011-07-12  Bruno Haible  <bruno@clisp.org>
5364
5365         strings: Document module.
5366         * doc/posix-headers/strings.texi: Mention module 'strings'.
5367
5368 2011-07-12  Bruno Haible  <bruno@clisp.org>
5369
5370         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5371         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5372         (Files, Makefile.am): Update.
5373         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5374         * modules/stdlib (Depends-on): Update.
5375
5376 2011-07-12  Bruno Haible  <bruno@clisp.org>
5377
5378         * NEWS: Mention the changes.
5379
5380         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5381         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5382         (Files, Makefile.am): Update.
5383         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5384         * modules/arpa_inet (Depends-on): Update.
5385         * modules/ctype (Depends-on): Update.
5386         * modules/dirent (Depends-on): Update.
5387         * modules/fcntl-h (Depends-on): Update.
5388         * modules/glob (Depends-on): Update.
5389         * modules/iconv-h (Depends-on): Update.
5390         * modules/inttypes-incomplete (Depends-on): Update.
5391         * modules/langinfo (Depends-on): Update.
5392         * modules/locale (Depends-on): Update.
5393         * modules/math (Depends-on): Update.
5394         * modules/netdb (Depends-on): Update.
5395         * modules/poll-h (Depends-on): Update.
5396         * modules/pty (Depends-on): Update.
5397         * modules/search (Depends-on): Update.
5398         * modules/signal (Depends-on): Update.
5399         * modules/spawn (Depends-on): Update.
5400         * modules/stdio (Depends-on): Update.
5401         * modules/stdlib (Depends-on): Update.
5402         * modules/string (Depends-on): Update.
5403         * modules/strings (Depends-on): Update.
5404         * modules/sys_file (Depends-on): Update.
5405         * modules/sys_ioctl (Depends-on): Update.
5406         * modules/sys_select (Depends-on): Update.
5407         * modules/sys_socket (Depends-on): Update.
5408         * modules/sys_stat (Depends-on): Update.
5409         * modules/sys_time (Depends-on): Update.
5410         * modules/sys_times (Depends-on): Update.
5411         * modules/sys_utsname (Depends-on): Update.
5412         * modules/sys_wait (Depends-on): Update.
5413         * modules/termios (Depends-on): Update.
5414         * modules/time (Depends-on): Update.
5415         * modules/unistd (Depends-on): Update.
5416         * modules/wchar (Depends-on): Update.
5417         * modules/wctype-h (Depends-on): Update.
5418         * MODULES.html.sh (Support for building libraries and executables):
5419         Update.
5420
5421         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5422         * modules/snippet/unused-parameter: Renamed from
5423         modules/unused-parameter.
5424         (Files, Makefile.am): Update.
5425         * build-aux/snippet/unused-parameter.h: Renamed from
5426         build-aux/unused-parameter.h.
5427         * modules/selinux-h (Depends-on): Update.
5428         * modules/unistr/base (Depends-on): Update.
5429         * MODULES.html.sh (Core language properties): Update.
5430
5431         Rename module 'link-warning' to 'snippet/link-warning'.
5432         * modules/snippet/link-warning: Renamed from modules/link-warning.
5433         (Files, Makefile.am): Update.
5434         * build-aux/snippet/link-warning.h: Renamed from
5435         build-aux/link-warning.h.
5436         * MODULES.html.sh (Support for building libraries and executables):
5437         Update.
5438
5439         Rename module 'c++defs' to 'snippet/c++defs'.
5440         * modules/snippet/c++defs: Renamed from modules/c++defs.
5441         (Files, Makefile.am): Update.
5442         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5443         * modules/arpa_inet (Depends-on): Update.
5444         * modules/ctype (Depends-on): Update.
5445         * modules/dirent (Depends-on): Update.
5446         * modules/fcntl-h (Depends-on): Update.
5447         * modules/glob (Depends-on): Update.
5448         * modules/iconv-h (Depends-on): Update.
5449         * modules/langinfo (Depends-on): Update.
5450         * modules/locale (Depends-on): Update.
5451         * modules/math (Depends-on): Update.
5452         * modules/netdb (Depends-on): Update.
5453         * modules/poll-h (Depends-on): Update.
5454         * modules/pty (Depends-on): Update.
5455         * modules/search (Depends-on): Update.
5456         * modules/signal (Depends-on): Update.
5457         * modules/spawn (Depends-on): Update.
5458         * modules/stdio (Depends-on): Update.
5459         * modules/stdlib (Depends-on): Update.
5460         * modules/string (Depends-on): Update.
5461         * modules/strings (Depends-on): Update.
5462         * modules/sys_ioctl (Depends-on): Update.
5463         * modules/sys_select (Depends-on): Update.
5464         * modules/sys_socket (Depends-on): Update.
5465         * modules/sys_stat (Depends-on): Update.
5466         * modules/sys_time (Depends-on): Update.
5467         * modules/sys_wait (Depends-on): Update.
5468         * modules/termios (Depends-on): Update.
5469         * modules/time (Depends-on): Update.
5470         * modules/unistd (Depends-on): Update.
5471         * modules/wchar (Depends-on): Update.
5472         * modules/wctype-h (Depends-on): Update.
5473
5474         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
5475         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
5476         (Files, Makefile.am): Update.
5477         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
5478         * modules/argv-iter (Depends-on): Update.
5479         * modules/arpa_inet (Depends-on): Update.
5480         * modules/dirent (Depends-on): Update.
5481         * modules/fcntl-h (Depends-on): Update.
5482         * modules/fnmatch (Depends-on): Update.
5483         * modules/getopt-posix (Depends-on): Update.
5484         * modules/glob (Depends-on): Update.
5485         * modules/iconv-h (Depends-on): Update.
5486         * modules/inttypes-incomplete (Depends-on): Update.
5487         * modules/locale (Depends-on): Update.
5488         * modules/math (Depends-on): Update.
5489         * modules/netdb (Depends-on): Update.
5490         * modules/search (Depends-on): Update.
5491         * modules/signal (Depends-on): Update.
5492         * modules/spawn (Depends-on): Update.
5493         * modules/stdio (Depends-on): Update.
5494         * modules/stdlib (Depends-on): Update.
5495         * modules/string (Depends-on): Update.
5496         * modules/strings (Depends-on): Update.
5497         * modules/sys_socket (Depends-on): Update.
5498         * modules/sys_stat (Depends-on): Update.
5499         * modules/sys_time (Depends-on): Update.
5500         * modules/sys_times (Depends-on): Update.
5501         * modules/sys_utsname (Depends-on): Update.
5502         * modules/time (Depends-on): Update.
5503         * modules/unistd (Depends-on): Update.
5504         * modules/wchar (Depends-on): Update.
5505         * MODULES.html.sh (Support for building libraries and executables):
5506         Update.
5507
5508 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5509
5510         Improvements on _Noreturn and related modules.
5511
5512         modules/_Exit-tests: test _Noreturn too
5513         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
5514         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
5515         (main): Use them.
5516
5517         stdnoreturn, stdnoreturn-tests: remove modules
5518         They're not needed here and a bit premature for use elsewhere.  See
5519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
5520         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5521         * tests/test-stdnoreturn.c: Remove files.
5522         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
5523         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
5524         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
5525         and using noreturn.
5526         * modules/openat, modules/sigpipe-die, modules/xalloc:
5527         * modules/xmemdup0, modules/xstrtol:
5528         Remove dependency on stdnoreturn.
5529
5530         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
5531         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
5532         Reparenthesize to avoid GCC warning.
5533         Support Microsoft's syntax.
5534         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
5535
5536         _Noreturn-tests: remove module
5537         * modules/_Noreturn-tests: Remove.
5538         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
5539         * tests/test-_Noreturn.c: Remove.
5540         * tests/test-stdnoreturn.c: Merge from the old
5541         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
5542
5543 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
5544
5545         _Noreturn, stdnoreturn, and related modules.
5546
5547         * top/maint.mk: Adjust to new noreturn support.
5548         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
5549         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
5550
5551         xalloc: use stdnoreturn.h
5552         * lib/xalloc.h: Include <stdnoreturn.h>.
5553         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5554         * modules/xalloc (Depends-on): Add stdnoreturn.
5555
5556         xstrtol: use stdnoreturn.h
5557         * lib/xstrtol.h: Include <stdnoreturn.h>.
5558         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5559         * modules/xstrtol (Depends-on): Add stdnoreturn.
5560
5561         xmemdup0: use stdnoreturn.h
5562         * lib/xmemdup0.h: Include <stdnoreturn.h>.
5563         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5564         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
5565
5566         sigpipe-die: use stdnoreturn.h
5567         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
5568         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5569         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
5570
5571         openat: use stdnoreturn.h
5572         * lib/openat.h: Include <stdnoreturn.h>.
5573         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
5574         * modules/openat (Depends-on): Add stdnoreturn.
5575
5576         * lib/openat-die.c (openat_save_fail): Modernize comment.
5577
5578         * lib/xalloc-die.c (xalloc_die): Modernize comment.
5579
5580         * lib/glthread/thread.h: Modernize comment.
5581
5582         obstack: use _Noreturn
5583         * lib/obstack.c (__attribute__): Remove macro.
5584         (print_and_abort): Use _Noreturn.
5585
5586         c-stack: use _Noreturn
5587         * lib/c-stack.c (die, overflow_handler, segv_handler):
5588         Use _Noreturn rather than __attribute__((noreturn)).
5589
5590         argmatch-tests, exclude_tests: use _Noreturn
5591         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
5592         Remove.
5593         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
5594
5595         stdlib: use _Noreturn
5596         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
5597         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
5598         * modules/stdlib (Depends-on): Add _Noreturn.
5599         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
5600
5601         stdnoreturn-tests: new module
5602         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
5603
5604         stdnoreturn: new module
5605         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
5606         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
5607
5608         _Noreturn-tests: new module
5609         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
5610
5611         _Noreturn: new module
5612         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
5613         New section, mentioning it.
5614         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
5615
5616         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
5617
5618 2011-07-11  Eric Blake  <eblake@redhat.com>
5619
5620         ffs: new module
5621         * modules/ffs: New file.
5622         * m4/ffs.m4: Likewise.
5623         * lib/ffs.c: Likewise.
5624         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
5625         * modules/strings (Makefile.am): Substitute witness.
5626         (Depends-on): Add c++defs.
5627         * lib/strings.in.h (ffs): Declare.
5628         * modules/ffs-tests: New test file.
5629         * tests/test-ffs.c: Test new module.
5630         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5631         * doc/posix-functions/ffs.texi (ffs): Likewise.
5632
5633         regex: avoid compiler warning
5634         * lib/regex.c (includes): Include <strings.h>, for use of
5635         strcasecmp in regcomp.c.
5636         Reported by Joachim Schmitz.
5637
5638 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
5639
5640         stdint: respect system's intmax_t if INTMAX_MAX
5641         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
5642         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
5643         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
5644         long but int64_t is long long, and where we will clash with the
5645         system intmax_t if we override it.  See
5646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
5647         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
5648         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
5649         similarly for UINTMAX_C.
5650
5651 2011-07-08  Bruno Haible  <bruno@clisp.org>
5652
5653         pthread_sigmask tests: Avoid a compiler warning.
5654         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
5655         non-zero.
5656
5657         sigprocmask tests: A better way to avoid a compiler warning.
5658         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
5659         (main): Complain if system() returns non-zero.
5660         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
5661
5662 2011-07-08  Bruno Haible  <bruno@clisp.org>
5663
5664         pthread_sigmask: Work around IRIX bug.
5665         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
5666         bug.
5667         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
5668         there may be unblocked pending signals.
5669         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
5670
5671 2011-07-08  Bruno Haible  <bruno@clisp.org>
5672
5673         pthread_sigmask: Work around Cygwin bug.
5674         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
5675         bug.
5676         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
5677         the system's pthread_sigmask function.
5678         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
5679
5680 2011-07-08  Bruno Haible  <bruno@clisp.org>
5681
5682         pthread_sigmask: Work around bug in single-threaded implementation.
5683         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
5684         FreeBSD, HP-UX, Solaris bug.
5685         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
5686         * lib/pthread_sigmask.c: Include <stddef.h>.
5687         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
5688         the system's pthread_sigmask function.
5689         * modules/pthread_sigmask (configure.ac): Invoke
5690         gl_PREREQ_PTHREAD_SIGMASK.
5691         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
5692         HP-UX, Solaris.
5693
5694 2011-07-08  Eric Blake  <eblake@redhat.com>
5695
5696         test-sigprocmask: avoid compiler warning
5697         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
5698         * tests/test-sigprocmask.c (main): Use it to silence warning.
5699         Reported by Jim Meyering.
5700
5701         test-snprintf: avoid compiler warning
5702         * tests/test-snprintf.c (main): Avoid shadowed declaration.
5703         * tests/test-vsnprintf.c (main): Likewise.
5704         Reported by Jim Meyering.
5705
5706 2011-07-08  Bruno Haible  <bruno@clisp.org>
5707
5708         Tests for module 'pthread_sigmask'.
5709         * modules/pthread_sigmask-tests: New file.
5710         * tests/test-pthread_sigmask1.c: New file, based on
5711         tests/test-sigprocmask.c.
5712         * tests/test-pthread_sigmask2.c: New file.
5713
5714 2011-07-08  Jim Meyering  <meyering@redhat.com>
5715
5716         test-getopt.h: avoid warning about an unused variable
5717         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
5718
5719 2011-07-07  Jim Meyering  <meyering@redhat.com>
5720
5721         maint: reduce list of files exempt from sc_prohibit_leading_TABs
5722         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
5723         now that it no longer contains leading TABs.
5724         Remove unused "url=FIXME" statement.
5725
5726 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
5727
5728         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
5729         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5730         When gl_THREADLIB is not in use, assume that the POSIX sematics
5731         are desired.  This is better for Emacs, which uses POSIX semantics
5732         on GNUish and/or POSIXish platforms, and does not use threads at
5733         all otherwise.
5734
5735         pthread_sigmask: fix typo when testing for libraries
5736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
5737         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
5738
5739 2011-07-08  Eric Blake  <eblake@redhat.com>
5740
5741         fts: introduce FTS_NOATIME
5742         * lib/fts_.h (FTS_NOATIME): New bit flag.
5743         (FTS_OPTIONMASK): Adjust.
5744         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
5745         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
5746
5747 2011-07-08  Bruno Haible  <bruno@clisp.org>
5748
5749         Tests for module 'thread'.
5750         * modules/thread-tests: New file.
5751         * tests/test-thread_self.c: New file.
5752         * tests/test-thread_create.cc: New file.
5753
5754 2011-07-08  Bruno Haible  <bruno@clisp.org>
5755
5756         thread: Avoid gcc warnings when using gl_thread_self().
5757         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
5758         'void *'.
5759         (gl_thread_self_pointer): Update.
5760
5761 2011-07-07  Bruno Haible  <bruno@clisp.org>
5762
5763         signal-c++-tests: Check declaration of pthread_sigmask.
5764         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
5765         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
5766         $(LIB_PTHREAD_SIGMASK).
5767
5768 2011-07-07  Bruno Haible  <bruno@clisp.org>
5769
5770         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
5771         * lib/signal.in.h (pthread_sigmask): Override if
5772         REPLACE_PTHREAD_SIGMASK is 1.
5773         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5774         REPLACE_PTHREAD_SIGMASK.
5775         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
5776         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
5777         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
5778         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5779         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
5780
5781 2011-07-07  Bruno Haible  <bruno@clisp.org>
5782
5783         pthread_sigmask: Ensure declaration in <signal.h>.
5784         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
5785         include <pthread.h>.
5786         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
5787         problem.
5788
5789 2011-07-07  Bruno Haible  <bruno@clisp.org>
5790
5791         pthread_sigmask: Document the module.
5792         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
5793
5794 2011-07-07  Bruno Haible  <bruno@clisp.org>
5795
5796         pthread_sigmask: Follow gnulib conventions.
5797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
5798         gl_PTHREAD_SIGMASK.
5799         * modules/pthread_sigmask (configure.ac): Update.
5800
5801 2011-07-07  Bruno Haible  <bruno@clisp.org>
5802
5803         pthread_sigmask: Make declaration C++ safe.
5804         * lib/signal.in.h: In two special conditions, just do an #include_next.
5805         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5806         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
5807         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
5808         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
5809         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
5810         not REPLACE_PTHREAD_MASK.
5811         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
5812         not REPLACE_PTHREAD_MASK.
5813         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
5814
5815 2011-07-07  Bruno Haible  <bruno@clisp.org>
5816
5817         pthread_sigmask: Fix return value.
5818         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
5819         * lib/pthread_sigmask.c: New file.
5820         * modules/pthread_sigmask (Files): Add it.
5821         (configure.ac): Invoke AC_LIBOBJ.
5822
5823 2011-07-07  Eric Blake  <eblake@redhat.com>
5824
5825         getopt: more portable argv creation
5826         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
5827         const, use char arrays rather than strings.
5828         Suggested by Paul Eggert.
5829
5830 2011-07-07  Bruno Haible  <bruno@clisp.org>
5831
5832         Tests for module 'sigprocmask'.
5833         * modules/sigprocmask-tests: New file.
5834         * tests/test-sigprocmask.c: New file.
5835
5836 2011-07-07  Bruno Haible  <bruno@clisp.org>
5837
5838         float tests: Tweak.
5839         * tests/test-float.c (main): Tweak skip message.
5840
5841 2011-07-07  Eric Blake  <eblake@redhat.com>
5842
5843         getopt: avoid compiler warning during configure
5844         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
5845         assigning string literals to non-const pointer.
5846
5847         getopt-gnu: avoid crash in glibc getopt
5848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
5849         * tests/test-getopt.h (test_getopt): Enhance test.
5850         * tests/test-getopt_long.h (test_getopt_long): Likewise.
5851         * doc/posix-functions/getopt.texi (getopt): Document it.
5852         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5853         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5854         Likewise.
5855
5856 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
5857
5858         getopt: handle W; without long options in getopt [BZ #12922]
5859         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
5860         but no long options are defined, just return 'W'.
5861
5862 2011-07-07  Bruno Haible  <bruno@clisp.org>
5863
5864         Avoid literal tabs.
5865         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
5866         variable containing a tab instead of a literal tab.
5867         Reported by Jim Meyering.
5868
5869 2011-07-07  Bruno Haible  <bruno@clisp.org>
5870
5871         Comments.
5872         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
5873
5874 2011-07-06  Bruno Haible  <bruno@clisp.org>
5875
5876         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
5877         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
5878         <winsock2.h>.
5879         (rpl_fd_isset, FD_ISSET): New definitions, copied from
5880         lib/sys_socket.in.h.
5881         (close, gethostname): Hide declarations from <winsock2.h>.
5882         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5883         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
5884         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
5885         (select): Don't override if gnulib's <sys/select.h> was already
5886         included.
5887         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5888         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5889         setsockopt, shutdown, select): Tweak indentation.
5890
5891 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5892
5893         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
5894         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
5895         in an application that does not use the sys_select module.
5896
5897 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
5898
5899         poll: do not return 0 on timeout=-1
5900         * lib/poll.c: Loop with yield if no events occured
5901
5902 2011-07-06  Eric Blake  <eblake@redhat.com>
5903
5904         pthread_sigmask: always replace when not using pthread
5905         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
5906         replacement when using some threading other than pthread.  Fix
5907         logic bug.
5908
5909 2011-07-06  Bruno Haible  <bruno@clisp.org>
5910
5911         Comments.
5912         * m4/printf.m4: Update comments about mingw.
5913
5914 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         sys_select: define sigset_t more portably
5917         * lib/sys_select.in.h: Always include <sys/types.h>, since
5918         we now need sigset_t and mingw defines it there.
5919         Include <signal.h> before split inclusion guard, to avoid
5920         mishaps on Solaris, whose <signal.h> eventually includes us.
5921         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
5922         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
5923         which come from ...
5924         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
5925         gl_CHECK_TYPE_SIGSET_T.
5926         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
5927         does the real work.
5928         * modules/sys_select (Depends-on): Add 'signal'.
5929
5930         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
5931         Suggested by Bruno Haible.
5932
5933         pselect: Use pthread_sigmask, not sigprocmask.
5934         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
5935         multithreaded apps better than sigprocmask does.
5936         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
5937         sigprocmask directly.
5938
5939 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
5940
5941         * lib/pselect.c (pselect): Use plain name, without "rpl_".
5942         Don't #undef,  since we don't need any underlying pselect.
5943         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
5944         (Depends-on): Add select.
5945         (Link): Add $(LIBSOCKET).
5946         These changes suggested by Bruno Haible.
5947
5948         pselect: document better
5949         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5950         * doc/posix-functions/pselect.texi (pselect): Document new module.
5951
5952         pthread_sigmask: new module
5953         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
5954         * doc/posix-functions/pthread_sigmask.texi: Document new module.
5955         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
5956         This is done only as a macro; I don't know how well that'll
5957         work for C++.  Move <sys/types.h> include before the include_next,
5958         to avoid mishap on Solaris.
5959         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
5960         * modules/signal (Makefile.am): Substitute the check's results.
5961         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
5962
5963         test-pselect: new module
5964         * modules/pselect-tests, tests/test-pselect.c: New files.
5965         * tests/test-select.c, tests/test-sys_select-c++.cc:
5966         If TEST_PSELECT is defined, test pselect instead of testing select.
5967
5968         * tests/test-sys_select.c (sigset_t): Test for it, too.
5969         Suggested by Bruno Haible.
5970
5971 2011-07-05  Eric Blake  <eblake@redhat.com>
5972
5973         snprintf: guarantee %1$d, for libintl
5974         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
5975         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
5976         * doc/posix-functions/snprintf.texi (snprintf): Update.
5977         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
5978         * tests/test-snprintf.c (main): Enhance test.
5979         * tests/test-vsnprintf.c (main): Likewise.
5980
5981 2011-07-05  Jim Meyering  <meyering@redhat.com>
5982
5983         maint: exempt stdio-read.c and stdio-write.c from the cppi check
5984         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
5985         per Bruno's request, to accommodate this idiom (no space after "#")
5986         even when the function is inside an #if block:
5987         char *
5988         gets (char *s)
5989         #undef gets
5990         {
5991           ...
5992         }
5993
5994 2011-07-04  Jim Meyering  <meyering@redhat.com>
5995
5996         maint: indent with spaces, not TABs, and add a rule to check this
5997         * tests/test-userspec.c: Indent with spaces, not TABs.
5998         * tests/test-argp.c: Likewise.
5999         * tests/test-c-stack2.sh: Likewise.
6000         * tests/test-parse-duration.sh: Likewise
6001         * m4/strtod.m4: Likewise.
6002         * m4/alloca.m4: Likewise.
6003         * m4/pselect.m4: Likewise.
6004         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6005
6006 2011-07-03  Jim Meyering  <meyering@redhat.com>
6007
6008         maint.mk: correct omissions in prohibit_argmatch_without_use check
6009         This rule would mistakenly report that argmatch.h is included without
6010         use even when both the argmatch and invalid_arg macro were used.
6011         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6012         of argmatch and invalid_arg.
6013
6014 2011-07-03  Bruno Haible  <bruno@clisp.org>
6015
6016         Comments about EINTR.
6017         * lib/safe-read.h: Explain the purpose of this module.
6018         * lib/safe-write.h: Likewise.
6019         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6020         module.
6021         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6022         module.
6023         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6024
6025 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6026
6027         xnanosleep: Rewrite to use new dtotimespec module.
6028         It has the conversion code that used to be in xnanosleep.
6029         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6030         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6031         (TIME_T_MAX): Remove.
6032         (xnanosleep): Rewrite in terms of dtotimespec.
6033         * modules/xnanosleep (Depends-on): Add dtotimespec.
6034         Remove intprops, stdbool.
6035
6036         timespec-add, timespec-sub: new modules
6037         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6038         * lib/timespec-add.c, lib/timespec-sub.c:
6039         * modules/timespec-add, modules/timespec-sub: New files.
6040
6041         dtotimespec: new module
6042         * lib/timespec.h (dtotimespec): New decl.
6043         * lib/dtotimespec.c, modules/dtotimespec: New files.
6044
6045         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6046
6047         pselect: new module
6048         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6049         (pselect): New decls.
6050         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6051         since the standard pselect decl uses 'restrict'.
6052         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6053         HAVE_PSELECT, REPLACE_PSELECT.
6054         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6055         HAVE_PSELECT, REPLACE_PSELECT.
6056         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6057
6058         sys_select: don't depend on sys_socket
6059         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6061         This fix works on GNU and GNU-like platforms, but has not been tested
6062         on native Windows.
6063         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6064         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6065         gl_HEADER_SYS_SOCKET.
6066         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6067         gl_PREREQ_SYS_H_WINSOCK2.
6068
6069 2011-06-29  Eric Blake  <eblake@redhat.com>
6070
6071         pipe2: fix C89 compile problem
6072         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6073         Reported by Bruno Haible.
6074
6075         pipe, pipe2: don't corrupt fd on error
6076         * lib/pipe.c (pipe): Leave fd unchanged on error.
6077         * lib/pipe2.c (pipe2): Likewise.
6078         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6079         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6080
6081 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6082
6083         mmap-anon: do not use regular expressions inadvertently
6084         * m4/mmap-anon.m4: Remove trailing period from strings sought
6085         in the output.
6086
6087 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6088
6089         nanosleep: fix integer overflow problem
6090         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6091         arithmetic wraps around on overflow.
6092
6093         nanosleep: simplify carrying
6094         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6095         first call to the underyling nanosleep, not for the last one.
6096         This doesn't fix any bugs, but it simplifies the computation of
6097         the remaining delay.  Found while auditing integer overflow issues.
6098
6099         dup2: remove test for existence of fcntl
6100         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6101         "#if HAVE_FCNTL", in the configure-time test program.
6102         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6103         and therefore speeds up "configure" a bit.  Found while
6104         adding the dup2 module to Emacs.
6105
6106 2011-06-24  Eric Blake  <eblake@redhat.com>
6107
6108         maint.mk: enhance useless header checks
6109         * top/maint.mk (_sc_header_without_use): Check both include
6110         styles.
6111         (sc_prohibit_assert_without_use)
6112         (sc_prohibit_close_stream_without_use)
6113         (sc_prohibit_getopt_without_use)
6114         (sc_prohibit_quotearg_without_use)
6115         (sc_prohibit_quote_without_use)
6116         (sc_prohibit_long_options_without_use)
6117         (sc_prohibit_inttostr_without_use)
6118         (sc_prohibit_ignore_value_without_use)
6119         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6120         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6121         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6122         (sc_prohibit_hash_pjw_without_use)
6123         (sc_prohibit_safe_read_without_use)
6124         (sc_prohibit_argmatch_without_use)
6125         (sc_prohibit_canonicalize_without_use)
6126         (sc_prohibit_root_dev_ino_without_use)
6127         (sc_prohibit_openat_without_use)
6128         (sc_prohibit_c_ctype_without_use)
6129         (sc_prohibit_signal_without_use)
6130         (sc_prohibit_stdio--_without_use)
6131         (sc_prohibit_stdio-safer_without_use)
6132         (sc_prohibit_strings_without_use)
6133         (sc_prohibit_intprops_without_use)
6134         (sc_prohibit_stddef_without_use)
6135         (sc_prohibit_xfreopen_without_use): Update clients.
6136
6137 2011-06-24  Jim Meyering  <meyering@redhat.com>
6138
6139         syntax-check: keep one maint.mk rule in sync with its header
6140         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6141         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6142         I prefer to avoid temporary files here, so use <(...), but that
6143         is not supported by /bin/sh, so...
6144         (SHELL): Define to /bin/bash.
6145
6146 2011-06-24  Eric Blake  <eblake@redhat.com>
6147
6148         maint.mk: update sc_prohibit_intprops_without_use
6149         * top/maint.mk (_intprops_names): Match recent changes.
6150
6151 2011-06-24  Bruno Haible  <bruno@clisp.org>
6152
6153         strerror-override: No-op tweak.
6154         * lib/strerror-override.h (strerror_override): Reorder conditions,
6155         for consistency with lib/strerror-override.c.
6156
6157 2011-06-23  Eric Blake  <eblake@redhat.com>
6158
6159         maint.mk: test further PATH_MAX issues
6160         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6161         (sc_prohibit_path_max_allocation): ...and also test alloca.
6162         Suggested by Jim Meyering.
6163
6164 2011-06-22  Eric Blake  <eblake@redhat.com>
6165
6166         maint.mk: add syntax-check to avoid char[PATH_MAX]
6167         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6168
6169         stat: be robust to PATH_MAX definition
6170         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6171         * modules/stat (Depends-on): Add verify.
6172
6173         link: work around IRIX bug
6174         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6175         * lib/link.c (rpl_link): Work around it.
6176         * tests/test-link.h (test_link): Enhance test.
6177         * doc/posix-functions/link.texi (link): Document the bug.
6178
6179         getopt: silence clang warning
6180         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6181         dereference.
6182         Reported by Gustavo Martin Domato.
6183
6184 2011-06-22  Jim Meyering  <meyering@redhat.com>
6185
6186         bootstrap: do not insert a blank line into each .gitignore file
6187         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6188
6189 2011-06-21  Eric Blake  <eblake@redhat.com>
6190
6191         perror: test for output mismatch
6192         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6193         perror on IRIX.
6194
6195         strerror_r: fix OpenBSD behavior on out-of-range
6196         * lib/strerror_r.c (strerror_r): Always use maximal string.
6197         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6198
6199         strerror_r: fix OpenBSD behavior on 0
6200         * lib/strerror-override.c (strerror_override): Also override 0
6201         when needed.
6202         * lib/strerror-override.h (strerror_override): Likewise.
6203         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6204         earlier.
6205         * lib/strerror_r.c (strerror_r): Likewise.
6206         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6207         behavior...
6208         (gl_FUNC_STRERROR_0): ...into new macro.
6209         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6210         is overridden.
6211         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6212         * modules/strerror-override (Files): Add strerror.m4.
6213         (configure.ac): Also provide override for 0 when needed.
6214         * doc/posix-functions/strerror.texi (strerror): Document this.
6215         * doc/posix-functions/perror.texi (perror): Likewise.
6216
6217         perror: adjust array size
6218         * modules/perror (Depends-on): Add strerror-override.
6219         * lib/perror.c (perror): Use it to avoid magic number.
6220
6221         strerror-override: reduce size
6222         * lib/strerror-override.c (strerror_override): Use fewer lines.
6223
6224 2011-06-20  Bruno Haible  <bruno@clisp.org>
6225
6226         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6227         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6228
6229 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6230
6231         alloca: port to compilers that can optimize like GCC 4.6.0
6232         * lib/alloca.c (find_stack_direction): New signature, taken from
6233         Autoconf git.  This works with GCC 4.6.0.  This code should never
6234         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6235         be used with other compilers that optimize as well as GCC 4.6.0 does.
6236         (alloca): Adjust to new signature.
6237         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6238         New macro, which patches Autoconf in a similar way.
6239
6240         c-stack: stop worrying about stack direction
6241         * lib/c-stack.c (find_stack_direction): Remove.
6242         (segv_handler): Don't worry about stack direction growth, as it's
6243         too much of a pain to configure this correctly, given how compilers
6244         are optimizing-away our stack-growth detection code.  Instead, assume
6245         that any access to just before or just after the stack is OK.
6246         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6247         Don't require AC_FUNC_ALLOCA; no longer needed.
6248
6249 2011-06-20  Eric Blake  <eblake@redhat.com>
6250
6251         test-stat: don't allocate PATH_MAX bytes
6252         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6253         PATH_MAX-sized buffer.
6254         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6255         * modules/stat-tests (Depends-on): Likewise.
6256         * tests/test-fstatat.c (includes): Drop pathmax.h.
6257         * tests/test-stat.c (includes): Likewise.
6258         Reported by Bruno Haible.
6259
6260 2011-06-20  Bruno Haible  <bruno@clisp.org>
6261
6262         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6263         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6264         * lib/float.c: New file.
6265         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6266         REPLACE_FLOAT_LDBL.
6267         * modules/float (Files): Add lib/float.c.
6268         (configure.ac): Invoke AC_LIBOBJ.
6269         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6270
6271 2011-06-20  Bruno Haible  <bruno@clisp.org>
6272
6273         Tests for module 'float'.
6274         * modules/float-tests: New file.
6275         * tests/test-float.c: New file.
6276
6277 2011-06-19  Bruno Haible  <bruno@clisp.org>
6278
6279         isinf: Coding style.
6280         * lib/isinf.c: Use GNU coding style.
6281
6282 2011-06-19  Bruno Haible  <bruno@clisp.org>
6283
6284         linkat test: Avoid test failure on AIX 7.1.
6285         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6286         * tests/test-link.h (test_link): Likewise.
6287
6288 2011-06-19  Bruno Haible  <bruno@clisp.org>
6289
6290         pread test: Avoid test failure on OpenBSD 4.9.
6291         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6292
6293 2011-06-19  Bruno Haible  <bruno@clisp.org>
6294
6295         sprintf-posix: Fix test failure on AIX 7.1.
6296         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6297         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6298         on AIX.
6299         * doc/posix-functions/fprintf.texi: Likewise.
6300         * doc/posix-functions/printf.texi: Likewise.
6301         * doc/posix-functions/snprintf.texi: Likewise.
6302         * doc/posix-functions/sprintf.texi: Likewise.
6303         * doc/posix-functions/vdprintf.texi: Likewise.
6304         * doc/posix-functions/vfprintf.texi: Likewise.
6305         * doc/posix-functions/vprintf.texi: Likewise.
6306         * doc/posix-functions/vsnprintf.texi: Likewise.
6307         * doc/posix-functions/vsprintf.texi: Likewise.
6308
6309 2011-06-19  Bruno Haible  <bruno@clisp.org>
6310
6311         roundl-ieee: Fix test failure on AIX 7.1.
6312         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6313         * doc/posix-functions/roundl.texi: Mention problem with negative
6314         arguments.
6315
6316 2011-06-19  Bruno Haible  <bruno@clisp.org>
6317
6318         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6319         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6320         * doc/posix-functions/round.texi: Mention problem with negative
6321         arguments.
6322         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6323
6324 2011-06-19  Bruno Haible  <bruno@clisp.org>
6325
6326         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6327         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6328         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6329         * doc/posix-functions/roundf.texi: Mention problem with negative
6330         arguments.
6331         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6332
6333 2011-06-19  Bruno Haible  <bruno@clisp.org>
6334
6335         ceilf-ieee: Work around bug on MacOS X 10.5.
6336         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6337
6338         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6339         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6340         IEEE compliant, avoid compiler optimizations.
6341         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6342         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6343         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6344         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6345         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6346         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6347         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6349         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6350         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6351
6352 2011-06-19  Bruno Haible  <bruno@clisp.org>
6353
6354         ceilf-ieee: Work around bug on AIX 7.1.
6355         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6356         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6357
6358 2011-06-19  Bruno Haible  <bruno@clisp.org>
6359
6360         ceil-ieee: Work around bug on AIX 7.1.
6361         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6362         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6363
6364 2011-06-18  Bruno Haible  <bruno@clisp.org>
6365
6366         fsync test: Avoid test failure on MacOS X and AIX.
6367         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6368         EINVAL.
6369
6370 2011-06-18  Bruno Haible  <bruno@clisp.org>
6371
6372         openat, fdopendir tests: Fix link errors.
6373         * modules/openat-tests (Depends-on): Add progname.
6374         * modules/fdopendir-tests (Depends-on): Likewise.
6375         * tests/test-fchownat.c: Include progname.h.
6376         (main): Call set_program_name.
6377         * tests/test-fstatat.c: Include progname.h.
6378         (main): Call set_program_name.
6379         * tests/test-mkdirat.c: Include progname.h.
6380         (main): Call set_program_name.
6381         * tests/test-openat.c: Include progname.h.
6382         (main): Call set_program_name.
6383         * tests/test-unlinkat.c: Include progname.h.
6384         (main): Call set_program_name.
6385         * tests/test-fdopendir.c: Include progname.h.
6386         (main): Call set_program_name.
6387
6388 2011-06-18  Bruno Haible  <bruno@clisp.org>
6389
6390         Doc update.
6391         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6392         HP-UX.
6393         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6394
6395 2011-06-18  Bruno Haible  <bruno@clisp.org>
6396
6397         getcwd tests: Avoid compilation error on HP-UX 11.31.
6398         * modules/getcwd-tests (Depends-on): Add pathmax.
6399         * tests/test-getcwd.c: Include pathmax.h.
6400
6401 2011-06-18  Bruno Haible  <bruno@clisp.org>
6402
6403         isfinite, isinf: Fix link error on AIX 6 and 7.
6404         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6405         needed, also test the macro with a 'float' argument.
6406         * m4/isinf.m4 (gl_ISINF): Likewise.
6407
6408 2011-06-18  Bruno Haible  <bruno@clisp.org>
6409
6410         getloadavg: Don't clobber LIBS. Regression from previous commit.
6411         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6412         AC_CHECK_LIB from here...
6413         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6414         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6415         gl_func_getloadavg_done.
6416         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6417
6418 2011-06-18  Bruno Haible  <bruno@clisp.org>
6419
6420         clean-temp: Improve documentation.
6421         * lib/clean-temp.h: Explain better how to use this module.
6422         Reported by John Darrington <john@darrington.wattle.id.au>.
6423
6424 2011-06-17  Bruno Haible  <bruno@clisp.org>
6425
6426         pread, pwrite: Avoid cc warning on AIX.
6427         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6428         (pwrite): Likewise.
6429
6430 2011-06-17  Bruno Haible  <bruno@clisp.org>
6431
6432         spawn-pipe tests: Fix link error.
6433         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6435
6436 2011-06-17  Bruno Haible  <bruno@clisp.org>
6437
6438         Tests: Remove unnecessary dependency.
6439         * modules/canonicalize-tests (Depends-on): Remove progname.
6440         * modules/chown-tests (Depends-on): Likewise.
6441         * modules/dirname-tests (Depends-on): Likewise.
6442         * modules/fdopendir-tests (Depends-on): Likewise.
6443         * modules/fdutimensat-tests (Depends-on): Likewise.
6444         * modules/hash-tests (Depends-on): Likewise.
6445         * modules/lchown-tests (Depends-on): Likewise.
6446         * modules/linkat-tests (Depends-on): Likewise.
6447         * modules/renameat-tests (Depends-on): Likewise.
6448         * modules/spawn-pipe-tests (Depends-on): Likewise.
6449         * modules/utimensat-tests (Depends-on): Likewise.
6450
6451 2011-06-17  Bruno Haible  <bruno@clisp.org>
6452
6453         spawn-pipe tests: Fix link error.
6454         * tests/test-spawn-pipe-child.c: Undefine fflush.
6455
6456 2011-06-17  Bruno Haible  <bruno@clisp.org>
6457
6458         Fix tests link errors.
6459         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
6460         * modules/chown-tests (Makefile.am): Don't link test-chown with
6461         LIBINTL.
6462         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
6463         LIBINTL.
6464         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
6465         LIBINTL.
6466         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
6467         LIBINTL.
6468
6469 2011-06-16  Bruno Haible  <bruno@clisp.org>
6470
6471         crypto/gc-sha1: Fix recent regression.
6472         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
6473         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
6474
6475         crypto/gc-md5: Fix recent regression.
6476         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
6477
6478         crypto/gc-md4: Fix recent regression.
6479         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
6480         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
6481
6482         crypto/gc-arctwo: Fix recent regression.
6483         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
6484         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
6485
6486         crypto/gc-rijndael: Fix recent regression.
6487         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
6488         (configure.ac): Invoke AC_LIBOBJ here.
6489         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
6490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6491
6492         crypto/gc-hmac-sha1: Fix recent regression.
6493         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
6494         (configure.ac): Invoke AC_LIBOBJ here.
6495         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
6496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6497
6498         crypto/gc-hmac-md5: Fix recent regression.
6499         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
6500         (configure.ac): Invoke AC_LIBOBJ here.
6501         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
6502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6503
6504         crypto/gc-des: Fix recent regression.
6505         * modules/crypto/gc-des (Files): Remove m4/des.m4.
6506         (configure.ac): Invoke AC_LIBOBJ here.
6507         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
6508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6509
6510         crypto/gc-arcfour: Fix recent regression.
6511         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
6512         (configure.ac): Invoke AC_LIBOBJ here.
6513         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
6514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6515
6516 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
6517
6518         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
6519         After the 2011-05-21 change, this macro requires
6520         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
6521         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
6522
6523 2011-06-16  Bruno Haible  <bruno@clisp.org>
6524
6525         fprintftime: Move AC_LIBOBJ invocations to module description.
6526         * m4/fprintftime.m4: Remove file.
6527         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
6528         (configure.ac): Remove gl_FPRINTFTIME call.
6529         (Makefile.am): Augment lib_SOURCES.
6530         Reported by Jim Meyering.
6531
6532 2011-06-16  Bruno Haible  <bruno@clisp.org>
6533
6534         tmpfile-safer: Finish 2011-05-23 commit.
6535         * m4/stdio-safer.m4: Really remove file.
6536         Reported by Jim Meyering.
6537
6538 2011-06-16  Bruno Haible  <bruno@clisp.org>
6539
6540         syntax-check: Fix typo.
6541         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
6542         printf-posix.m4.
6543         Reported by Jim Meyering.
6544
6545 2011-06-13  Jim Meyering  <meyering@redhat.com>
6546
6547         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
6548         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
6549
6550 2011-05-23  Bruno Haible  <bruno@clisp.org>
6551
6552         yesno: Move AC_LIBOBJ invocations to module description.
6553         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
6554         * modules/yesno (Makefile.am): Augment lib_SOURCES.
6555
6556 2011-05-23  Bruno Haible  <bruno@clisp.org>
6557
6558         xstrtol: Move AC_LIBOBJ invocations to module description.
6559         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
6560         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
6561
6562 2011-05-23  Bruno Haible  <bruno@clisp.org>
6563
6564         xstrtold: Move AC_LIBOBJ invocations to module description.
6565         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
6566         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
6567
6568 2011-05-23  Bruno Haible  <bruno@clisp.org>
6569
6570         xstrtod: Move AC_LIBOBJ invocations to module description.
6571         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
6572         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
6573
6574 2011-05-23  Bruno Haible  <bruno@clisp.org>
6575
6576         xnanosleep: Move AC_LIBOBJ invocations to module description.
6577         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
6578         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
6579
6580 2011-05-23  Bruno Haible  <bruno@clisp.org>
6581
6582         xgetcwd: Move AC_LIBOBJ invocations to module description.
6583         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
6584         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
6585
6586 2011-05-23  Bruno Haible  <bruno@clisp.org>
6587
6588         xalloc: Move AC_LIBOBJ invocations to module description.
6589         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
6590         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
6591
6592 2011-05-23  Bruno Haible  <bruno@clisp.org>
6593
6594         write-any-file: Move AC_LIBOBJ invocations to module description.
6595         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
6596         invocation.
6597         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
6598
6599 2011-05-23  Bruno Haible  <bruno@clisp.org>
6600
6601         utimens: Move AC_LIBOBJ invocations to module description.
6602         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
6603         * modules/utimens (Makefile.am): Augment lib_SOURCES.
6604
6605 2011-05-23  Bruno Haible  <bruno@clisp.org>
6606
6607         utimecmp: Move AC_LIBOBJ invocations to module description.
6608         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
6609         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
6610
6611 2011-05-23  Bruno Haible  <bruno@clisp.org>
6612
6613         userspec: Move AC_LIBOBJ invocations to module description.
6614         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
6615         * modules/userspec (Makefile.am): Augment lib_SOURCES.
6616
6617 2011-05-23  Bruno Haible  <bruno@clisp.org>
6618
6619         unlinkdir: Move AC_LIBOBJ invocations to module description.
6620         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
6621         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
6622
6623 2011-05-23  Bruno Haible  <bruno@clisp.org>
6624
6625         unistd-safer: Move AC_LIBOBJ invocations to module description.
6626         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
6627         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
6628
6629 2011-05-23  Bruno Haible  <bruno@clisp.org>
6630
6631         tempname: Move AC_LIBOBJ invocations to module description.
6632         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
6633         * modules/tempname (Makefile.am): Augment lib_SOURCES.
6634
6635 2011-05-23  Bruno Haible  <bruno@clisp.org>
6636
6637         strftime: Move AC_LIBOBJ invocations to module description.
6638         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
6639         * modules/strftime (Makefile.am): Augment lib_SOURCES.
6640
6641 2011-05-23  Bruno Haible  <bruno@clisp.org>
6642
6643         stdlib-safer: Move AC_LIBOBJ invocations to module description.
6644         * m4/stdlib-safer.m4: Remove file.
6645         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
6646         (configure.ac): Remove gl_STDLIB_SAFER call.
6647         (Makefile.am): Augment lib_SOURCES.
6648
6649 2011-05-23  Bruno Haible  <bruno@clisp.org>
6650
6651         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
6652         * m4/stdio-safer.m4: Remove file.
6653         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
6654         (configure.ac): Remove gl_TMPFILE_SAFER call.
6655         (Makefile.am): Augment lib_SOURCES.
6656
6657 2011-05-23  Bruno Haible  <bruno@clisp.org>
6658
6659         popen-safer: Move AC_LIBOBJ invocations to module description.
6660         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
6661         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
6662         (configure.ac): Remove gl_POPEN_SAFER call.
6663         (Makefile.am): Augment lib_SOURCES.
6664
6665 2011-05-23  Bruno Haible  <bruno@clisp.org>
6666
6667         freopen-safer: Move AC_LIBOBJ invocations to module description.
6668         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
6669         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
6670         (configure.ac): Remove gl_FREOPEN_SAFER call.
6671         (Makefile.am): Augment lib_SOURCES.
6672
6673 2011-05-23  Bruno Haible  <bruno@clisp.org>
6674
6675         fopen-safer: Move AC_LIBOBJ invocations to module description.
6676         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
6677         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
6678         (configure.ac): Remove gl_FOPEN_SAFER call.
6679         (Makefile.am): Augment lib_SOURCES.
6680
6681 2011-05-23  Bruno Haible  <bruno@clisp.org>
6682
6683         crypto/sha512: Move AC_LIBOBJ invocations to module description.
6684         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
6685         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
6686
6687 2011-05-23  Bruno Haible  <bruno@clisp.org>
6688
6689         crypto/sha256: Move AC_LIBOBJ invocations to module description.
6690         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
6691         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
6692
6693 2011-05-23  Bruno Haible  <bruno@clisp.org>
6694
6695         crypto/sha1: Move AC_LIBOBJ invocations to module description.
6696         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
6697         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
6698
6699 2011-05-23  Bruno Haible  <bruno@clisp.org>
6700
6701         settime: Move AC_LIBOBJ invocations to module description.
6702         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
6703         * modules/settime (Makefile.am): Augment lib_SOURCES.
6704
6705 2011-05-23  Bruno Haible  <bruno@clisp.org>
6706
6707         savedir: Move AC_LIBOBJ invocations to module description.
6708         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
6709         * modules/savedir (Makefile.am): Augment lib_SOURCES.
6710
6711 2011-05-23  Bruno Haible  <bruno@clisp.org>
6712
6713         save-cwd: Move AC_LIBOBJ invocations to module description.
6714         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
6715         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
6716
6717 2011-05-23  Bruno Haible  <bruno@clisp.org>
6718
6719         same: Move AC_LIBOBJ invocations to module description.
6720         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
6721         * modules/same (Makefile.am): Augment lib_SOURCES.
6722
6723 2011-05-23  Bruno Haible  <bruno@clisp.org>
6724
6725         safe-write: Move AC_LIBOBJ invocations to module description.
6726         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
6727         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
6728         instead of gl_SAFE_WRITE.
6729         (Makefile.am): Augment lib_SOURCES.
6730
6731 2011-05-23  Bruno Haible  <bruno@clisp.org>
6732
6733         safe-read: Move AC_LIBOBJ invocations to module description.
6734         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
6735         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
6736         of gl_SAFE_READ.
6737         (Makefile.am): Augment lib_SOURCES.
6738
6739 2011-05-23  Bruno Haible  <bruno@clisp.org>
6740
6741         safe-alloc: Move AC_LIBOBJ invocations to module description.
6742         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
6743         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
6744
6745 2011-05-23  Bruno Haible  <bruno@clisp.org>
6746
6747         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
6748         * m4/rijndael.m4: Remove file.
6749         * modules/crypto/rijndael (Files): Remove it.
6750         (configure.ac): Remove gl_RIJNDAEL call.
6751         (Makefile.am): Augment lib_SOURCES.
6752
6753 2011-05-23  Bruno Haible  <bruno@clisp.org>
6754
6755         readtokens: Move AC_LIBOBJ invocations to module description.
6756         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
6757         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
6758
6759 2011-05-23  Bruno Haible  <bruno@clisp.org>
6760
6761         read-file: Move AC_LIBOBJ invocations to module description.
6762         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
6763         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
6764         of gl_FUNC_READ_FILE.
6765         (Makefile.am): Augment lib_SOURCES.
6766
6767 2011-05-23  Bruno Haible  <bruno@clisp.org>
6768
6769         quotearg: Move AC_LIBOBJ invocations to module description.
6770         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
6771         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
6772
6773 2011-05-23  Bruno Haible  <bruno@clisp.org>
6774
6775         quote: Move AC_LIBOBJ invocations to module description.
6776         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
6777         * modules/quote (Makefile.am): Augment lib_SOURCES.
6778
6779 2011-05-23  Bruno Haible  <bruno@clisp.org>
6780
6781         posixver: Move AC_LIBOBJ invocations to module description.
6782         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
6783         * modules/posixver (Makefile.am): Augment lib_SOURCES.
6784
6785 2011-05-23  Bruno Haible  <bruno@clisp.org>
6786
6787         posixtm: Move AC_LIBOBJ invocations to module description.
6788         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
6789         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
6790
6791 2011-05-23  Bruno Haible  <bruno@clisp.org>
6792
6793         physmem: Move AC_LIBOBJ invocations to module description.
6794         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
6795         * modules/physmem (Makefile.am): Augment lib_SOURCES.
6796
6797 2011-05-23  Bruno Haible  <bruno@clisp.org>
6798
6799         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
6800         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
6801         invocation.
6802         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
6803
6804 2011-05-23  Bruno Haible  <bruno@clisp.org>
6805
6806         mpsort: Move AC_LIBOBJ invocations to module description.
6807         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
6808         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
6809
6810 2011-05-23  Bruno Haible  <bruno@clisp.org>
6811
6812         modechange: Move AC_LIBOBJ invocations to module description.
6813         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
6814         * modules/modechange (Makefile.am): Augment lib_SOURCES.
6815
6816 2011-05-23  Bruno Haible  <bruno@clisp.org>
6817
6818         mkdir-p: Move AC_LIBOBJ invocations to module description.
6819         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
6820         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
6821
6822 2011-05-23  Bruno Haible  <bruno@clisp.org>
6823
6824         mkancesdirs: Move AC_LIBOBJ invocations to module description.
6825         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
6826         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
6827
6828 2011-05-23  Bruno Haible  <bruno@clisp.org>
6829
6830         mgetgroups: Move AC_LIBOBJ invocations to module description.
6831         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
6832         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
6833
6834 2011-05-23  Bruno Haible  <bruno@clisp.org>
6835
6836         memxor: Move AC_LIBOBJ invocations to module description.
6837         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
6838         * modules/memxor (Makefile.am): Augment lib_SOURCES.
6839
6840 2011-05-23  Bruno Haible  <bruno@clisp.org>
6841
6842         memcoll: Move AC_LIBOBJ invocations to module description.
6843         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
6844         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
6845
6846 2011-05-23  Bruno Haible  <bruno@clisp.org>
6847
6848         memcasecmp: Move AC_LIBOBJ invocations to module description.
6849         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
6850         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
6851
6852 2011-05-23  Bruno Haible  <bruno@clisp.org>
6853
6854         crypto/md5: Move AC_LIBOBJ invocations to module description.
6855         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
6856         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
6857
6858 2011-05-23  Bruno Haible  <bruno@clisp.org>
6859
6860         crypto/md4: Move AC_LIBOBJ invocations to module description.
6861         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
6862         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
6863
6864 2011-05-23  Bruno Haible  <bruno@clisp.org>
6865
6866         crypto/md2: Move AC_LIBOBJ invocations to module description.
6867         * m4/md2.m4: Remove file.
6868         * modules/crypto/md2 (Files): Remove it.
6869         (configure.ac): Remove gl_MD2 call.
6870         (Makefile.am): Augment lib_SOURCES.
6871
6872 2011-05-23  Bruno Haible  <bruno@clisp.org>
6873
6874         long-options: Move AC_LIBOBJ invocations to module description.
6875         * m4/long-options.m4: Remove file.
6876         * modules/long-options (Files): Remove it.
6877         (configure.ac): Remove gl_LONG_OPTIONS call.
6878         (Makefile.am): Augment lib_SOURCES.
6879
6880 2011-05-23  Bruno Haible  <bruno@clisp.org>
6881
6882         i-ring: Move AC_LIBOBJ invocations to module description.
6883         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
6884         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
6885
6886 2011-05-23  Bruno Haible  <bruno@clisp.org>
6887
6888         idcache: Move AC_LIBOBJ invocations to module description.
6889         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
6890         * modules/idcache (Makefile.am): Augment lib_SOURCES.
6891
6892 2011-05-23  Bruno Haible  <bruno@clisp.org>
6893
6894         human: Move AC_LIBOBJ invocations to module description.
6895         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
6896         * modules/human (Makefile.am): Augment lib_SOURCES.
6897
6898 2011-05-23  Bruno Haible  <bruno@clisp.org>
6899
6900         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
6901         * m4/hmac-sha1.m4: Remove file.
6902         * modules/crypto/hmac-sha1 (Files): Remove it.
6903         (configure.ac): Remove gl_HMAC_SHA1 call.
6904         (Makefile.am): Augment lib_SOURCES.
6905
6906 2011-05-23  Bruno Haible  <bruno@clisp.org>
6907
6908         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
6909         * m4/hmac-md5.m4: Remove file.
6910         * modules/crypto/hmac-md5 (Files): Remove it.
6911         (configure.ac): Remove gl_HMAC_MD5 call.
6912         (Makefile.am): Augment lib_SOURCES.
6913
6914 2011-05-23  Bruno Haible  <bruno@clisp.org>
6915
6916         hash: Move AC_LIBOBJ invocations to module description.
6917         * m4/hash.m4: Remove file.
6918         * modules/hash (Files): Remove it.
6919         (configure.ac): Remove gl_HASH call.
6920         (Makefile.am): Augment lib_SOURCES.
6921
6922 2011-05-23  Bruno Haible  <bruno@clisp.org>
6923
6924         hard-locale: Move AC_LIBOBJ invocations to module description.
6925         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
6926         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
6927
6928 2011-05-23  Bruno Haible  <bruno@clisp.org>
6929
6930         getugroups: Move AC_LIBOBJ invocations to module description.
6931         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
6932         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
6933
6934 2011-05-23  Bruno Haible  <bruno@clisp.org>
6935
6936         gettime: Move AC_LIBOBJ invocations to module description.
6937         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
6938         * modules/gettime (Makefile.am): Augment lib_SOURCES.
6939
6940 2011-05-23  Bruno Haible  <bruno@clisp.org>
6941
6942         getndelim2: Move AC_LIBOBJ invocations to module description.
6943         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
6944         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
6945
6946 2011-05-23  Bruno Haible  <bruno@clisp.org>
6947
6948         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
6949         * m4/gc-pbkdf2-sha1.m4: Remove file.
6950         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
6951         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
6952         (Makefile.am): Augment lib_SOURCES.
6953
6954 2011-05-23  Bruno Haible  <bruno@clisp.org>
6955
6956         fts: Move AC_LIBOBJ invocations to module description.
6957         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
6958         * modules/fts (configure.ac): ... to here.
6959
6960 2011-05-23  Bruno Haible  <bruno@clisp.org>
6961
6962         file-type: Move AC_LIBOBJ invocations to module description.
6963         * m4/file-type.m4: Remove file.
6964         * modules/file-type (Files): Remove it.
6965         (configure.ac): Remove gl_FILE_TYPE call.
6966         (Makefile.am): Augment lib_SOURCES.
6967
6968 2011-05-23  Bruno Haible  <bruno@clisp.org>
6969
6970         filenamecat*: Respect rules for use of AC_LIBOBJ.
6971         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
6972         Remove AC_LIBOBJ invocation.
6973         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
6974         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
6975
6976 2011-05-23  Bruno Haible  <bruno@clisp.org>
6977
6978         filemode: Move AC_LIBOBJ invocations to module description.
6979         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
6980         * modules/filemode (Makefile.am): Augment lib_SOURCES.
6981
6982 2011-05-23  Bruno Haible  <bruno@clisp.org>
6983
6984         openat-safer: Move AC_LIBOBJ invocations to module description.
6985         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
6986         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
6987
6988 2011-05-23  Bruno Haible  <bruno@clisp.org>
6989
6990         fcntl-safer: Move AC_LIBOBJ invocations to module description.
6991         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
6992         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
6993
6994 2011-05-23  Bruno Haible  <bruno@clisp.org>
6995
6996         exclude: Move AC_LIBOBJ invocations to module description.
6997         * m4/exclude.m4: Remove file.
6998         * modules/exclude (Files): Remove it.
6999         (configure.ac): Remove gl_EXCLUDE call.
7000         (Makefile.am): Augment lib_SOURCES.
7001
7002 2011-05-23  Bruno Haible  <bruno@clisp.org>
7003
7004         dirname*: Respect rules for use of AC_LIBOBJ.
7005         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7006         invocations.
7007         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7008         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7009
7010 2011-05-23  Bruno Haible  <bruno@clisp.org>
7011
7012         dirent-safer: Move AC_LIBOBJ invocations to module description.
7013         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7014         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7015
7016 2011-05-23  Bruno Haible  <bruno@clisp.org>
7017
7018         crypto/des: Move AC_LIBOBJ invocations to module description.
7019         * m4/des.m4: Remove file.
7020         * modules/crypto/des (Files): Remove it.
7021         (configure.ac): Remove gl_DES call.
7022         (Makefile.am): Augment lib_SOURCES.
7023
7024 2011-05-23  Bruno Haible  <bruno@clisp.org>
7025
7026         cycle-check: Move AC_LIBOBJ invocations to module description.
7027         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7028         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7029
7030 2011-05-23  Bruno Haible  <bruno@clisp.org>
7031
7032         c-strtold: Move AC_LIBOBJ invocations to module description.
7033         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7034         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7035
7036 2011-05-23  Bruno Haible  <bruno@clisp.org>
7037
7038         c-strtod: Move AC_LIBOBJ invocations to module description.
7039         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7040         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7041
7042 2011-05-23  Bruno Haible  <bruno@clisp.org>
7043
7044         crc: Move AC_LIBOBJ invocations to module description.
7045         * m4/crc.m4: Remove file.
7046         * modules/crc (Files): Remove it.
7047         (configure.ac): Remove gl_CRC call.
7048         (Makefile.am): Augment lib_SOURCES.
7049
7050 2011-05-23  Bruno Haible  <bruno@clisp.org>
7051
7052         close-stream: Move AC_LIBOBJ invocations to module description.
7053         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7054         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7055
7056 2011-05-23  Bruno Haible  <bruno@clisp.org>
7057
7058         closeout: Move AC_LIBOBJ invocations to module description.
7059         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7060         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7061
7062 2011-05-23  Bruno Haible  <bruno@clisp.org>
7063
7064         closein: Move AC_LIBOBJ invocations to module description.
7065         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7066         * modules/closein (Makefile.am): Augment lib_SOURCES.
7067
7068 2011-05-23  Bruno Haible  <bruno@clisp.org>
7069
7070         cloexec: Move AC_LIBOBJ invocations to module description.
7071         * m4/cloexec.m4: Remove file.
7072         * modules/cloexec (Files): Remove it.
7073         (configure.ac): Remove gl_CLOEXEC call.
7074         (Makefile.am): Augment lib_SOURCES.
7075
7076 2011-05-23  Bruno Haible  <bruno@clisp.org>
7077
7078         check-version: Move AC_LIBOBJ invocations to module description.
7079         * m4/check-version.m4: Remove file.
7080         * modules/check-version (Files): Remove it.
7081         (configure.ac): Remove gl_CHECK_VERSION call.
7082         (Makefile.am): Augment lib_SOURCES.
7083
7084 2011-05-23  Bruno Haible  <bruno@clisp.org>
7085
7086         chdir-safer: Move AC_LIBOBJ invocations to module description.
7087         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7088         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7089
7090 2011-05-23  Bruno Haible  <bruno@clisp.org>
7091
7092         canonicalize: Move AC_LIBOBJ invocations to module description.
7093         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7094         AC_LIBOBJ invocation.
7095         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7096
7097 2011-05-23  Bruno Haible  <bruno@clisp.org>
7098
7099         canon-host: Move AC_LIBOBJ invocations to module description.
7100         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7101         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7102         instead of gl_CANON_HOST.
7103         (Makefile.am): Augment lib_SOURCES.
7104
7105 2011-05-23  Bruno Haible  <bruno@clisp.org>
7106
7107         backupfile: Move AC_LIBOBJ invocations to module description.
7108         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7109         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7110
7111 2011-05-23  Bruno Haible  <bruno@clisp.org>
7112
7113         argmatch: Move AC_LIBOBJ invocations to module description.
7114         * m4/argmatch.m4: Remove file.
7115         * modules/argmatch (Files): Remove it.
7116         (configure.ac): Remove gl_ARGMATCH call.
7117         (Makefile.am): Augment lib_SOURCES.
7118
7119 2011-05-23  Bruno Haible  <bruno@clisp.org>
7120
7121         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7122         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7123         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7124
7125 2011-05-23  Bruno Haible  <bruno@clisp.org>
7126
7127         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7128         * m4/arcfour.m4: Remove file.
7129         * modules/crypto/arcfour (Files): Remove it.
7130         (configure.ac): Remove gl_ARCFOUR call.
7131         (Makefile.am): Augment lib_SOURCES.
7132
7133 2011-05-22  Bruno Haible  <bruno@clisp.org>
7134
7135         write: Move AC_LIBOBJ invocations to module description.
7136         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7137         * modules/write (configure.ac): ... to here.
7138
7139 2011-05-22  Bruno Haible  <bruno@clisp.org>
7140
7141         wmemset: Move AC_LIBOBJ invocations to module description.
7142         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7143         here...
7144         * modules/wmemset (configure.ac): ... to here.
7145
7146 2011-05-22  Bruno Haible  <bruno@clisp.org>
7147
7148         wmemmove: Move AC_LIBOBJ invocations to module description.
7149         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7150         here...
7151         * modules/wmemmove (configure.ac): ... to here.
7152
7153 2011-05-22  Bruno Haible  <bruno@clisp.org>
7154
7155         wmemcpy: Move AC_LIBOBJ invocations to module description.
7156         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7157         here...
7158         * modules/wmemcpy (configure.ac): ... to here.
7159
7160 2011-05-22  Bruno Haible  <bruno@clisp.org>
7161
7162         wmemcmp: Move AC_LIBOBJ invocations to module description.
7163         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7164         here...
7165         * modules/wmemcmp (configure.ac): ... to here.
7166
7167 2011-05-22  Bruno Haible  <bruno@clisp.org>
7168
7169         wmemchr: Move AC_LIBOBJ invocations to module description.
7170         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7171         here...
7172         * modules/wmemchr (configure.ac): ... to here.
7173
7174 2011-05-22  Bruno Haible  <bruno@clisp.org>
7175
7176         wcswidth: Move AC_LIBOBJ invocations to module description.
7177         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7178         here...
7179         * modules/wcswidth (configure.ac): ... to here.
7180
7181 2011-05-22  Bruno Haible  <bruno@clisp.org>
7182
7183         wcwidth: Respect rules for use of AC_LIBOBJ.
7184         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7185         invocation from here...
7186         * modules/wcwidth (configure.ac): ... to here.
7187         (Depends-on): Update conditions.
7188
7189 2011-05-22  Bruno Haible  <bruno@clisp.org>
7190
7191         wctype: Move AC_LIBOBJ invocations to module description.
7192         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7193         invocation from here...
7194         * modules/wctype (configure.ac): ... to here.
7195         (Depends-on): Update conditions.
7196
7197 2011-05-22  Bruno Haible  <bruno@clisp.org>
7198
7199         wctrans: Move AC_LIBOBJ invocations to module description.
7200         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7201         invocation from here...
7202         * modules/wctrans (configure.ac): ... to here.
7203
7204 2011-05-22  Bruno Haible  <bruno@clisp.org>
7205
7206         wctomb: Move AC_LIBOBJ invocations to module description.
7207         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7208         invocations from here...
7209         * modules/wctomb (configure.ac): ... to here.
7210
7211 2011-05-22  Bruno Haible  <bruno@clisp.org>
7212
7213         wctob: Move AC_LIBOBJ invocations to module description.
7214         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7215         gl_PREREQ_WCTOB invocations from here...
7216         * modules/wctob (configure.ac): ... to here.
7217         (Depends-on): Update conditions.
7218
7219 2011-05-22  Bruno Haible  <bruno@clisp.org>
7220
7221         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7222         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7223         here...
7224         * modules/wcsxfrm (configure.ac): ... to here.
7225
7226 2011-05-22  Bruno Haible  <bruno@clisp.org>
7227
7228         wcstok: Move AC_LIBOBJ invocations to module description.
7229         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7230         * modules/wcstok (configure.ac): ... to here.
7231
7232 2011-05-22  Bruno Haible  <bruno@clisp.org>
7233
7234         wcsstr: Move AC_LIBOBJ invocations to module description.
7235         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7236         * modules/wcsstr (configure.ac): ... to here.
7237
7238 2011-05-22  Bruno Haible  <bruno@clisp.org>
7239
7240         wcsspn: Move AC_LIBOBJ invocations to module description.
7241         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7242         * modules/wcsspn (configure.ac): ... to here.
7243
7244 2011-05-22  Bruno Haible  <bruno@clisp.org>
7245
7246         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7247         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7248         gl_PREREQ_WCSRTOMBS invocations from here...
7249         * modules/wcsrtombs (configure.ac): ... to here.
7250
7251 2011-05-22  Bruno Haible  <bruno@clisp.org>
7252
7253         wcsrchr: Move AC_LIBOBJ invocations to module description.
7254         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7255         here...
7256         * modules/wcsrchr (configure.ac): ... to here.
7257
7258 2011-05-22  Bruno Haible  <bruno@clisp.org>
7259
7260         wcspbrk: Move AC_LIBOBJ invocations to module description.
7261         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7262         here...
7263         * modules/wcspbrk (configure.ac): ... to here.
7264
7265 2011-05-22  Bruno Haible  <bruno@clisp.org>
7266
7267         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7268         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7269         gl_PREREQ_WCSNRTOMBS invocations from here...
7270         * modules/wcsnrtombs (configure.ac): ... to here.
7271
7272 2011-05-22  Bruno Haible  <bruno@clisp.org>
7273
7274         wcsnlen: Move AC_LIBOBJ invocations to module description.
7275         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7276         here...
7277         * modules/wcsnlen (configure.ac): ... to here.
7278
7279 2011-05-22  Bruno Haible  <bruno@clisp.org>
7280
7281         wcsncpy: Move AC_LIBOBJ invocations to module description.
7282         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7283         here...
7284         * modules/wcsncpy (configure.ac): ... to here.
7285
7286 2011-05-22  Bruno Haible  <bruno@clisp.org>
7287
7288         wcsncmp: Move AC_LIBOBJ invocations to module description.
7289         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7290         here...
7291         * modules/wcsncmp (configure.ac): ... to here.
7292
7293 2011-05-22  Bruno Haible  <bruno@clisp.org>
7294
7295         wcsncat: Move AC_LIBOBJ invocations to module description.
7296         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7297         here...
7298         * modules/wcsncat (configure.ac): ... to here.
7299
7300 2011-05-22  Bruno Haible  <bruno@clisp.org>
7301
7302         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7303         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7304         from here...
7305         * modules/wcsncasecmp (configure.ac): ... to here.
7306
7307 2011-05-22  Bruno Haible  <bruno@clisp.org>
7308
7309         wcslen: Move AC_LIBOBJ invocations to module description.
7310         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7311         * modules/wcslen (configure.ac): ... to here.
7312
7313 2011-05-22  Bruno Haible  <bruno@clisp.org>
7314
7315         wcsdup: Move AC_LIBOBJ invocations to module description.
7316         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7317         * modules/wcsdup (configure.ac): ... to here.
7318
7319 2011-05-22  Bruno Haible  <bruno@clisp.org>
7320
7321         wcscspn: Move AC_LIBOBJ invocations to module description.
7322         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7323         here...
7324         * modules/wcscspn (configure.ac): ... to here.
7325
7326 2011-05-22  Bruno Haible  <bruno@clisp.org>
7327
7328         wcscpy: Move AC_LIBOBJ invocations to module description.
7329         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7330         * modules/wcscpy (configure.ac): ... to here.
7331
7332 2011-05-22  Bruno Haible  <bruno@clisp.org>
7333
7334         wcscoll: Move AC_LIBOBJ invocations to module description.
7335         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7336         here...
7337         * modules/wcscoll (configure.ac): ... to here.
7338
7339 2011-05-22  Bruno Haible  <bruno@clisp.org>
7340
7341         wcscmp: Move AC_LIBOBJ invocations to module description.
7342         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7343         * modules/wcscmp (configure.ac): ... to here.
7344
7345 2011-05-22  Bruno Haible  <bruno@clisp.org>
7346
7347         wcschr: Move AC_LIBOBJ invocations to module description.
7348         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7349         * modules/wcschr (configure.ac): ... to here.
7350
7351 2011-05-22  Bruno Haible  <bruno@clisp.org>
7352
7353         wcscat: Move AC_LIBOBJ invocations to module description.
7354         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7355         * modules/wcscat (configure.ac): ... to here.
7356
7357 2011-05-22  Bruno Haible  <bruno@clisp.org>
7358
7359         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7360         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7361         here...
7362         * modules/wcscasecmp (configure.ac): ... to here.
7363
7364 2011-05-22  Bruno Haible  <bruno@clisp.org>
7365
7366         wcrtomb: Move AC_LIBOBJ invocations to module description.
7367         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7368         invocations from here...
7369         * modules/wcrtomb (configure.ac): ... to here.
7370
7371 2011-05-22  Bruno Haible  <bruno@clisp.org>
7372
7373         wcpncpy: Move AC_LIBOBJ invocations to module description.
7374         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7375         here...
7376         * modules/wcpncpy (configure.ac): ... to here.
7377
7378 2011-05-22  Bruno Haible  <bruno@clisp.org>
7379
7380         wcpcpy: Move AC_LIBOBJ invocations to module description.
7381         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7382         * modules/wcpcpy (configure.ac): ... to here.
7383
7384 2011-05-22  Bruno Haible  <bruno@clisp.org>
7385
7386         waitpid: Move AC_LIBOBJ invocations to module description.
7387         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7388         invocation from here...
7389         * modules/waitpid (configure.ac): ... to here.
7390
7391 2011-05-22  Bruno Haible  <bruno@clisp.org>
7392
7393         utimensat: Move AC_LIBOBJ invocations to module description.
7394         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7395         here...
7396         * modules/utimensat (configure.ac): ... to here.
7397
7398 2011-05-22  Bruno Haible  <bruno@clisp.org>
7399
7400         usleep: Move AC_LIBOBJ invocations to module description.
7401         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7402         here...
7403         * modules/usleep (configure.ac): ... to here.
7404
7405 2011-05-22  Bruno Haible  <bruno@clisp.org>
7406
7407         unlockpt: Move AC_LIBOBJ invocations to module description.
7408         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7409         gl_PREREQ_UNLOCKPT invocations from here...
7410         * modules/unlockpt (configure.ac): ... to here.
7411
7412 2011-05-22  Bruno Haible  <bruno@clisp.org>
7413
7414         unlink: Respect rules for use of AC_LIBOBJ.
7415         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7416         * modules/unlink (configure.ac): ... to here.
7417
7418 2011-05-22  Bruno Haible  <bruno@clisp.org>
7419
7420         uname: Move AC_LIBOBJ invocations to module description.
7421         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7423         here...
7424         * modules/uname (configure.ac): ... to here.
7425
7426 2011-05-22  Bruno Haible  <bruno@clisp.org>
7427
7428         ttyname_r: Move AC_LIBOBJ invocations to module description.
7429         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7430         gl_PREREQ_TTYNAME_R invocations from here...
7431         * modules/ttyname_r (configure.ac): ... to here.
7432
7433 2011-05-22  Bruno Haible  <bruno@clisp.org>
7434
7435         tsearch: Move AC_LIBOBJ invocations to module description.
7436         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7437         invocations from here...
7438         * modules/tsearch (configure.ac): ... to here.
7439
7440 2011-05-22  Bruno Haible  <bruno@clisp.org>
7441
7442         towctrans: Move AC_LIBOBJ invocations to module description.
7443         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7444         AC_LIBOBJ invocation from here...
7445         * modules/towctrans (configure.ac): ... to here.
7446
7447 2011-05-22  Bruno Haible  <bruno@clisp.org>
7448
7449         tmpfile: Move AC_LIBOBJ invocations to module description.
7450         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
7451         invocations from here...
7452         * modules/tmpfile (configure.ac): ... to here.
7453
7454 2011-05-22  Bruno Haible  <bruno@clisp.org>
7455
7456         times: Move AC_LIBOBJ invocations to module description.
7457         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
7458         * modules/times (configure.ac): ... to here.
7459
7460 2011-05-22  Bruno Haible  <bruno@clisp.org>
7461
7462         time_r: Move AC_LIBOBJ invocations to module description.
7463         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
7464         invocations from here...
7465         * modules/time_r (configure.ac): ... to here.
7466
7467 2011-05-22  Bruno Haible  <bruno@clisp.org>
7468
7469         timegm: Move AC_LIBOBJ invocations to module description.
7470         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
7471         invocations from here...
7472         * modules/timegm (configure.ac): ... to here.
7473
7474 2011-05-22  Bruno Haible  <bruno@clisp.org>
7475
7476         tcgetsid: Move AC_LIBOBJ invocations to module description.
7477         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
7478         and gl_PREREQ_TCGETSID invocations from here...
7479         * modules/tcgetsid (configure.ac): ... to here.
7480         (Depends-on): Update conditions.
7481
7482 2011-05-22  Bruno Haible  <bruno@clisp.org>
7483
7484         symlinkat: Move AC_LIBOBJ invocations to module description.
7485         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
7486         here...
7487         * modules/symlinkat (configure.ac): ... to here.
7488
7489 2011-05-22  Bruno Haible  <bruno@clisp.org>
7490
7491         symlink: Move AC_LIBOBJ invocations to module description.
7492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
7493         here...
7494         * modules/symlink (configure.ac): ... to here.
7495
7496 2011-05-22  Bruno Haible  <bruno@clisp.org>
7497
7498         strverscmp: Move AC_LIBOBJ invocations to module description.
7499         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
7500         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
7501         from here...
7502         * modules/strverscmp (configure.ac): ... to here.
7503
7504 2011-05-22  Bruno Haible  <bruno@clisp.org>
7505
7506         strtok_r: Move AC_LIBOBJ invocations to module description.
7507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
7508         and gl_PREREQ_STRTOK_R invocations from here...
7509         * modules/strtok_r (configure.ac): ... to here.
7510         (Depends-on): Update conditions.
7511
7512 2011-05-22  Bruno Haible  <bruno@clisp.org>
7513
7514         strtoumax: Move AC_LIBOBJ invocations to module description.
7515         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
7516         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
7517         from here...
7518         * modules/strtoumax (configure.ac): ... to here.
7519
7520 2011-05-22  Bruno Haible  <bruno@clisp.org>
7521
7522         strtoimax: Move AC_LIBOBJ invocations to module description.
7523         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
7524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
7525         from here...
7526         * modules/strtoimax (configure.ac): ... to here.
7527
7528 2011-05-22  Bruno Haible  <bruno@clisp.org>
7529
7530         strtoull: Move AC_LIBOBJ invocations to module description.
7531         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
7532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
7533         from here...
7534         * modules/strtoull (configure.ac): ... to here.
7535
7536 2011-05-22  Bruno Haible  <bruno@clisp.org>
7537
7538         strtoll: Move AC_LIBOBJ invocations to module description.
7539         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
7540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
7541         here...
7542         * modules/strtoll (configure.ac): ... to here.
7543
7544 2011-05-22  Bruno Haible  <bruno@clisp.org>
7545
7546         strtoul: Move AC_LIBOBJ invocations to module description.
7547         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
7548         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7549         * modules/strtoul (configure.ac): ... to here.
7550
7551 2011-05-22  Bruno Haible  <bruno@clisp.org>
7552
7553         strtol: Move AC_LIBOBJ invocations to module description.
7554         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
7555         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
7556         * modules/strtol (configure.ac): ... to here.
7557
7558 2011-05-22  Bruno Haible  <bruno@clisp.org>
7559
7560         strtod: Move AC_LIBOBJ invocations to module description.
7561         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
7562         invocations from here...
7563         * modules/strtod (configure.ac): ... to here.
7564
7565 2011-05-22  Bruno Haible  <bruno@clisp.org>
7566
7567         strstr*: Move AC_LIBOBJ invocations to module description.
7568         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
7569         invocations from here...
7570         * modules/strstr-simple (configure.ac): ... to here.
7571         * modules/strstr (configure.ac): ... and here.
7572
7573 2011-05-22  Bruno Haible  <bruno@clisp.org>
7574
7575         strsignal: Move AC_LIBOBJ invocations to module description.
7576         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
7577         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
7578         * modules/strsignal (configure.ac): ... to here.
7579         (Depends-on): Update conditions.
7580
7581 2011-05-22  Bruno Haible  <bruno@clisp.org>
7582
7583         strsep: Move AC_LIBOBJ invocations to module description.
7584         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
7585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
7586         here...
7587         * modules/strsep (configure.ac): ... to here.
7588
7589 2011-05-22  Bruno Haible  <bruno@clisp.org>
7590
7591         strptime: Move AC_LIBOBJ invocations to module description.
7592         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
7593         gl_PREREQ_STRPTIME invocations from here...
7594         * modules/strptime (configure.ac): ... to here.
7595
7596 2011-05-22  Bruno Haible  <bruno@clisp.org>
7597
7598         strpbrk: Move AC_LIBOBJ invocations to module description.
7599         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
7600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
7601         here...
7602         * modules/strpbrk (configure.ac): ... to here.
7603
7604 2011-05-22  Bruno Haible  <bruno@clisp.org>
7605
7606         strnlen: Move AC_LIBOBJ invocations to module description.
7607         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
7608         invocations from here...
7609         * modules/strnlen (configure.ac): ... to here.
7610
7611 2011-05-22  Bruno Haible  <bruno@clisp.org>
7612
7613         strndup: Move AC_LIBOBJ invocations to module description.
7614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
7615         invocations from here...
7616         * modules/strndup (configure.ac): ... to here.
7617         (Depends-on): Update conditions.
7618
7619 2011-05-22  Bruno Haible  <bruno@clisp.org>
7620
7621         strncat: Move AC_LIBOBJ invocations to module description.
7622         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
7623         invocations from here...
7624         * modules/strncat (configure.ac): ... to here.
7625
7626 2011-05-22  Bruno Haible  <bruno@clisp.org>
7627
7628         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
7629         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
7630         invocations from here...
7631         * modules/strdup (configure.ac): ... to here.
7632         * modules/strdup-posix (configure.ac): ... and here.
7633
7634 2011-05-22  Bruno Haible  <bruno@clisp.org>
7635
7636         strcspn: Move AC_LIBOBJ invocations to module description.
7637         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
7638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
7639         here...
7640         * modules/strcspn (configure.ac): ... to here.
7641
7642 2011-05-22  Bruno Haible  <bruno@clisp.org>
7643
7644         strchrnul: Move AC_LIBOBJ invocations to module description.
7645         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
7646         gl_PREREQ_STRCHRNUL invocations from here...
7647         * modules/strchrnul (configure.ac): ... to here.
7648
7649 2011-05-22  Bruno Haible  <bruno@clisp.org>
7650
7651         strcasestr*: Move AC_LIBOBJ invocations to module description.
7652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
7653         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
7654         * modules/strcasestr-simple (configure.ac): ... to here.
7655         * modules/strcasestr (configure.ac): ... and here.
7656
7657 2011-05-22  Bruno Haible  <bruno@clisp.org>
7658
7659         strcase: Move AC_LIBOBJ invocations to module description.
7660         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
7661         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
7662         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
7663         gl_PREREQ_STRNCASECMP invocations from here...
7664         * modules/strcase (configure.ac): ... to here.
7665
7666 2011-05-22  Bruno Haible  <bruno@clisp.org>
7667
7668         stpncpy: Move AC_LIBOBJ invocations to module description.
7669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
7670         here...
7671         * modules/stpncpy (configure.ac): ... to here.
7672
7673 2011-05-22  Bruno Haible  <bruno@clisp.org>
7674
7675         stpcpy: Move AC_LIBOBJ invocations to module description.
7676         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
7677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
7678         here...
7679         * modules/stpcpy (configure.ac): ... to here.
7680
7681 2011-05-21  Bruno Haible  <bruno@clisp.org>
7682
7683         stat: Move AC_LIBOBJ invocations to module description.
7684         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
7685         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
7686         here...
7687         * modules/stat (configure.ac): ... to here.
7688
7689 2011-05-21  Bruno Haible  <bruno@clisp.org>
7690
7691         sleep: Move AC_LIBOBJ invocations to module description.
7692         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
7693         * modules/sleep (configure.ac): ... to here.
7694
7695 2011-05-21  Bruno Haible  <bruno@clisp.org>
7696
7697         signbit: Move AC_LIBOBJ invocations to module description.
7698         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
7699         * modules/signbit (configure.ac): ... to here.
7700
7701 2011-05-21  Bruno Haible  <bruno@clisp.org>
7702
7703         sigprocmask: Move AC_LIBOBJ invocations to module description.
7704         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
7705         gl_PREREQ_SIGPROMASK invocations from here...
7706         * modules/sigprocmask (configure.ac): ... to here.
7707
7708 2011-05-21  Bruno Haible  <bruno@clisp.org>
7709
7710         sigaction: Move AC_LIBOBJ invocations to module description.
7711         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
7712         gl_PREREQ_SIGACTION invocations from here...
7713         * modules/sigaction (configure.ac): ... to here.
7714
7715 2011-05-21  Bruno Haible  <bruno@clisp.org>
7716
7717         sig2str: Move AC_LIBOBJ invocations to module description.
7718         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
7719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
7720         here...
7721         * modules/sig2str (configure.ac): ... to here.
7722
7723 2011-05-21  Bruno Haible  <bruno@clisp.org>
7724
7725         setlocale: Move AC_LIBOBJ invocations to module description.
7726         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
7727         gl_PREREQ_SETLOCALE invocations from here...
7728         * modules/setlocale (configure.ac): ... to here.
7729
7730 2011-05-21  Bruno Haible  <bruno@clisp.org>
7731
7732         unsetenv: Move AC_LIBOBJ invocations to module description.
7733         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
7734         and gl_PREREQ_UNSETENV invocations from here...
7735         * modules/unsetenv (configure.ac): ... to here.
7736         (Depends-on): Update.
7737
7738 2011-05-21  Bruno Haible  <bruno@clisp.org>
7739
7740         setenv: Move AC_LIBOBJ invocations to module description.
7741         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
7742         here...
7743         * modules/setenv (configure.ac): ... to here.
7744
7745 2011-05-21  Bruno Haible  <bruno@clisp.org>
7746
7747         selinux-h: Move AC_LIBOBJ invocations to module description.
7748         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
7749         AC_LIBOBJ invocation from here...
7750         * modules/selinux-h (configure.ac): ... to here.
7751
7752 2011-05-21  Bruno Haible  <bruno@clisp.org>
7753
7754         select: Respect rules for use of AC_LIBOBJ.
7755         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
7756         here...
7757         * modules/select (configure.ac): ... to here.
7758
7759 2011-05-21  Bruno Haible  <bruno@clisp.org>
7760
7761         scandir: Move AC_LIBOBJ invocations to module description.
7762         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
7763         invocations from here...
7764         * modules/scandir (configure.ac): ... to here.
7765
7766 2011-05-21  Bruno Haible  <bruno@clisp.org>
7767
7768         rpmatch: Move AC_LIBOBJ invocations to module description.
7769         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
7770         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
7771         here...
7772         * modules/rpmatch (configure.ac): ... to here.
7773
7774 2011-05-21  Bruno Haible  <bruno@clisp.org>
7775
7776         rmdir: Respect rules for use of AC_LIBOBJ.
7777         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
7778         * modules/rmdir (configure.ac): ... to here.
7779
7780 2011-05-21  Bruno Haible  <bruno@clisp.org>
7781
7782         renameat: Move AC_LIBOBJ invocations to module description.
7783         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
7784         here...
7785         * modules/renameat (configure.ac): ... to here.
7786
7787 2011-05-21  Bruno Haible  <bruno@clisp.org>
7788
7789         rename: Respect rules for use of AC_LIBOBJ.
7790         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
7791         here...
7792         * modules/rename (configure.ac): ... to here.
7793
7794 2011-05-21  Bruno Haible  <bruno@clisp.org>
7795
7796         remove: Move AC_LIBOBJ invocations to module description.
7797         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
7798         here...
7799         * modules/remove (configure.ac): ... to here.
7800
7801 2011-05-21  Bruno Haible  <bruno@clisp.org>
7802
7803         relocatable-lib: Move AC_LIBOBJ invocations to module description.
7804         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
7805         macro.
7806         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
7807         * modules/relocatable-lib (configure.ac): ... to here.
7808         * modules/relocatable-prog-wrapper (configure.ac): Invoke
7809         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
7810
7811 2011-05-21  Bruno Haible  <bruno@clisp.org>
7812
7813         relocatable-prog: Move AC_LIBOBJ invocations to module description.
7814         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
7815         here...
7816         * modules/relocatable-prog (configure.ac): ... to here.
7817
7818 2011-05-21  Bruno Haible  <bruno@clisp.org>
7819
7820         regex: Move AC_LIBOBJ invocations to module description.
7821         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
7822         invocations from here...
7823         * modules/regex (configure.ac): ... to here.
7824
7825 2011-05-21  Bruno Haible  <bruno@clisp.org>
7826
7827         realloc-*: Move AC_LIBOBJ invocations to module description.
7828         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
7829         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
7830         AC_LIBOBJ invocations from here...
7831         * modules/realloc-gnu (configure.ac): ... to here.
7832         * modules/realloc-posix (configure.ac): ... and here.
7833
7834 2011-05-21  Bruno Haible  <bruno@clisp.org>
7835
7836         readutmp: Move AC_LIBOBJ invocations to module description.
7837         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
7838         * modules/readutmp (configure.ac): ... to here.
7839
7840 2011-05-21  Bruno Haible  <bruno@clisp.org>
7841
7842         readlinkat: Move AC_LIBOBJ invocations to module description.
7843         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
7844         here...
7845         * modules/readlinkat (configure.ac): ... to here.
7846
7847 2011-05-21  Bruno Haible  <bruno@clisp.org>
7848
7849         readlink: Move AC_LIBOBJ invocations to module description.
7850         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
7851         gl_PREREQ_READLINK invocations from here...
7852         * modules/readlink (configure.ac): ... to here.
7853
7854 2011-05-21  Bruno Haible  <bruno@clisp.org>
7855
7856         readline: Move AC_LIBOBJ invocations to module description.
7857         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
7858         gl_PREREQ_READLINE invocations from here...
7859         * modules/readline (configure.ac): ... to here.
7860
7861 2011-05-21  Bruno Haible  <bruno@clisp.org>
7862
7863         read: Move AC_LIBOBJ invocations to module description.
7864         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
7865         * modules/read (configure.ac): ... to here.
7866
7867 2011-05-21  Bruno Haible  <bruno@clisp.org>
7868
7869         rawmemchr: Move AC_LIBOBJ invocations to module description.
7870         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
7871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
7872         from here...
7873         * modules/rawmemchr (configure.ac): ... to here.
7874
7875 2011-05-21  Bruno Haible  <bruno@clisp.org>
7876
7877         random_r: Move AC_LIBOBJ invocations to module description.
7878         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
7879         gl_PREREQ_RANDOM_R invocations from here...
7880         * modules/random_r (configure.ac): ... to here.
7881
7882 2011-05-21  Bruno Haible  <bruno@clisp.org>
7883
7884         pwrite: Move AC_LIBOBJ invocations to module description.
7885         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
7886         * modules/pwrite (configure.ac): ... to here.
7887
7888 2011-05-21  Bruno Haible  <bruno@clisp.org>
7889
7890         putenv: Move AC_LIBOBJ invocations to module description.
7891         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
7892         * modules/putenv (configure.ac): ... to here.
7893
7894 2011-05-21  Bruno Haible  <bruno@clisp.org>
7895
7896         login_tty: Move AC_LIBOBJ invocations to module description.
7897         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
7898         * modules/login_tty (configure.ac): ... to here.
7899
7900 2011-05-21  Bruno Haible  <bruno@clisp.org>
7901
7902         openpty: Move AC_LIBOBJ invocations to module description.
7903         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
7904         * modules/openpty (configure.ac): ... to here.
7905
7906 2011-05-21  Bruno Haible  <bruno@clisp.org>
7907
7908         forkpty: Move AC_LIBOBJ invocations to module description.
7909         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
7910         * modules/forkpty (configure.ac): ... to here.
7911
7912 2011-05-21  Bruno Haible  <bruno@clisp.org>
7913
7914         ptsname: Move AC_LIBOBJ invocations to module description.
7915         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
7916         invocations from here...
7917         * modules/ptsname (configure.ac): ... to here.
7918
7919 2011-05-21  Bruno Haible  <bruno@clisp.org>
7920
7921         pread: Move AC_LIBOBJ invocations to module description.
7922         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
7923         * modules/pread (configure.ac): ... to here.
7924
7925 2011-05-21  Bruno Haible  <bruno@clisp.org>
7926
7927         posix_spawn*: Move AC_LIBOBJ invocations to module description.
7928         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
7929         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
7930         * modules/posix_spawn (configure.ac): ... to here.
7931         * modules/posix_spawnp (configure.ac): ... and here.
7932
7933 2011-05-21  Bruno Haible  <bruno@clisp.org>
7934
7935         popen: Move AC_LIBOBJ invocations to module description.
7936         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
7937         invocations from here...
7938         * modules/popen (configure.ac): ... to here.
7939
7940 2011-05-21  Bruno Haible  <bruno@clisp.org>
7941
7942         poll: Move AC_LIBOBJ invocations to module description.
7943         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
7944         invocations from here...
7945         * modules/poll (configure.ac): ... to here.
7946
7947 2011-05-21  Bruno Haible  <bruno@clisp.org>
7948
7949         pipe-posix: Move AC_LIBOBJ invocations to module description.
7950         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
7951         * modules/pipe-posix (configure.ac): ... to here.
7952
7953 2011-05-21  Bruno Haible  <bruno@clisp.org>
7954
7955         openat: Respect rules for use of AC_LIBOBJ.
7956         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
7957         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
7958         * modules/openat (configure.ac): ... to here.
7959
7960 2011-05-21  Bruno Haible  <bruno@clisp.org>
7961
7962         obstack-printf*: Move AC_LIBOBJ invocations to module description.
7963         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
7964         invocation from here...
7965         * modules/obstack-printf (configure.ac): ... to here.
7966         * modules/obstack-printf-posix (configure.ac): ... and here.
7967
7968 2011-05-21  Bruno Haible  <bruno@clisp.org>
7969
7970         nl_langinfo: Move AC_LIBOBJ invocations to module description.
7971         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
7972         from here...
7973         * modules/nl_langinfo (configure.ac): ... to here.
7974
7975 2011-05-21  Bruno Haible  <bruno@clisp.org>
7976
7977         nanosleep: Move AC_LIBOBJ invocations to module description.
7978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
7979         gl_PREREQ_NANOSLEEP invocations from here...
7980         * modules/nanosleep (configure.ac): ... to here.
7981
7982 2011-05-21  Bruno Haible  <bruno@clisp.org>
7983
7984         mountlist: Move AC_LIBOBJ invocations to module description.
7985         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
7986         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
7987         * modules/mountlist (configure.ac): ... to here.
7988
7989 2011-05-21  Bruno Haible  <bruno@clisp.org>
7990
7991         mktime: Respect rules for use of AC_LIBOBJ.
7992         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
7993         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
7994         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
7995         (gl_FUNC_MKTIME_INTERNAL): ... and here...
7996         * modules/mktime (configure.ac): ... to here.
7997         * modules/mktime-internal (configure.ac): ... and here.
7998         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
7999
8000 2011-05-21  Bruno Haible  <bruno@clisp.org>
8001
8002         mkstemps: Move AC_LIBOBJ invocations to module description.
8003         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8004         here...
8005         * modules/mkstemps (configure.ac): ... to here.
8006
8007 2011-05-21  Bruno Haible  <bruno@clisp.org>
8008
8009         mkstemp: Move AC_LIBOBJ invocations to module description.
8010         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8011         gl_PREREQ_MKSTEMP invocations from here...
8012         * modules/mkstemp (configure.ac): ... to here.
8013
8014 2011-05-21  Bruno Haible  <bruno@clisp.org>
8015
8016         mkostemps: Move AC_LIBOBJ invocations to module description.
8017         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8018         here...
8019         * modules/mkostemps (configure.ac): ... to here.
8020
8021 2011-05-21  Bruno Haible  <bruno@clisp.org>
8022
8023         mkostemp: Move AC_LIBOBJ invocations to module description.
8024         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8025         gl_PREREQ_MKOSTEMP invocations from here...
8026         * modules/mkostemp (configure.ac): ... to here.
8027
8028 2011-05-21  Bruno Haible  <bruno@clisp.org>
8029
8030         mknod: Move AC_LIBOBJ invocations to module description.
8031         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8032         * modules/mknod (configure.ac): ... to here.
8033
8034 2011-05-21  Bruno Haible  <bruno@clisp.org>
8035
8036         mkfifoat: Move AC_LIBOBJ invocations to module description.
8037         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8038         here...
8039         * modules/mkfifoat (configure.ac): ... to here.
8040
8041 2011-05-21  Bruno Haible  <bruno@clisp.org>
8042
8043         mkfifo: Respect rules for use of AC_LIBOBJ.
8044         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8045         here...
8046         * modules/mkfifo (configure.ac): ... to here.
8047
8048 2011-05-21  Bruno Haible  <bruno@clisp.org>
8049
8050         mkdtemp: Move AC_LIBOBJ invocations to module description.
8051         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8052         invocations from here...
8053         * modules/mkdtemp (configure.ac): ... to here.
8054
8055 2011-05-21  Bruno Haible  <bruno@clisp.org>
8056
8057         mkdir: Move AC_LIBOBJ invocations to module description.
8058         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8059         * modules/mkdir (configure.ac): ... to here.
8060
8061 2011-05-21  Bruno Haible  <bruno@clisp.org>
8062
8063         memset: Move AC_LIBOBJ invocations to module description.
8064         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8066         here...
8067         * modules/memset (configure.ac): ... to here.
8068
8069 2011-05-21  Bruno Haible  <bruno@clisp.org>
8070
8071         memrchr: Move AC_LIBOBJ invocations to module description.
8072         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8073         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8074         here...
8075         * modules/memrchr (configure.ac): ... to here.
8076
8077 2011-05-21  Bruno Haible  <bruno@clisp.org>
8078
8079         mempcpy: Move AC_LIBOBJ invocations to module description.
8080         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8082         here...
8083         * modules/mempcpy (configure.ac): ... to here.
8084
8085 2011-05-21  Bruno Haible  <bruno@clisp.org>
8086
8087         memmove: Move AC_LIBOBJ invocations to module description.
8088         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8090         here...
8091         * modules/memmove (configure.ac): ... to here.
8092
8093 2011-05-21  Bruno Haible  <bruno@clisp.org>
8094
8095         memmem*: Move AC_LIBOBJ invocations to module description.
8096         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8097         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8098         here...
8099         (gl_FUNC_MEMMEM): ... and here...
8100         * modules/memmem-simple (configure.ac): ... to here.
8101         * modules/memmem (configure.ac): ... and here.
8102
8103 2011-05-21  Bruno Haible  <bruno@clisp.org>
8104
8105         memcpy: Move AC_LIBOBJ invocations to module description.
8106         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8107         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8108         here...
8109         * modules/memcpy (configure.ac): ... to here.
8110
8111 2011-05-21  Bruno Haible  <bruno@clisp.org>
8112
8113         memcmp: Simplify autoconf macro.
8114         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8115         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8116         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8117
8118 2011-05-21  Bruno Haible  <bruno@clisp.org>
8119
8120         memcmp: Move AC_LIBOBJ invocations to module description.
8121         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8122         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8123         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8124         * modules/memcmp (configure.ac): ... to here.
8125         (Depends-on): Update conditions.
8126
8127 2011-05-21  Bruno Haible  <bruno@clisp.org>
8128
8129         memchr: Respect rules for use of AC_LIBOBJ.
8130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8131         invocations from here...
8132         * modules/memchr (configure.ac): ... to here.
8133
8134 2011-05-21  Bruno Haible  <bruno@clisp.org>
8135
8136         mbtowc: Move AC_LIBOBJ invocations to module description.
8137         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8138         invocations from here...
8139         * modules/mbtowc (configure.ac): ... to here.
8140
8141 2011-05-21  Bruno Haible  <bruno@clisp.org>
8142
8143         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8144         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8145         gl_PREREQ_MBSRTOWCS invocations from here...
8146         * modules/mbsrtowcs (configure.ac): ... to here.
8147
8148 2011-05-21  Bruno Haible  <bruno@clisp.org>
8149
8150         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8151         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8152         gl_PREREQ_MBSNRTOWCS invocations from here...
8153         * modules/mbsnrtowcs (configure.ac): ... to here.
8154
8155 2011-05-21  Bruno Haible  <bruno@clisp.org>
8156
8157         mbsinit: Move AC_LIBOBJ invocations to module description.
8158         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8159         invocations from here...
8160         * modules/mbsinit (configure.ac): ... to here.
8161
8162 2011-05-21  Bruno Haible  <bruno@clisp.org>
8163
8164         mbrlen: Move AC_LIBOBJ invocations to module description.
8165         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8166         invocations from here...
8167         * modules/mbrlen (configure.ac): ... to here.
8168
8169 2011-05-21  Bruno Haible  <bruno@clisp.org>
8170
8171         mbrtowc: Respect rules for use of AC_LIBOBJ.
8172         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8173         invocations from here...
8174         * modules/mbrtowc (configure.ac): ... to here.
8175
8176 2011-05-21  Bruno Haible  <bruno@clisp.org>
8177
8178         malloc-*: Move AC_LIBOBJ invocations to module description.
8179         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8180         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8181         AC_LIBOBJ invocations from here...
8182         * modules/malloc-gnu (configure.ac): ... to here.
8183         * modules/malloc-posix (configure.ac): ... and here.
8184
8185 2011-05-21  Bruno Haible  <bruno@clisp.org>
8186
8187         lstat, openat: Respect rules for use of AC_LIBOBJ.
8188         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8189         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8190         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8191         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8192         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8193         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8194         here.
8195         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8196
8197 2011-05-21  Bruno Haible  <bruno@clisp.org>
8198
8199         lseek: Move AC_LIBOBJ invocations to module description.
8200         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8201         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8202         * modules/lseek (configure.ac): ... to here.
8203
8204 2011-05-21  Bruno Haible  <bruno@clisp.org>
8205
8206         linkat: Move AC_LIBOBJ invocations to module description.
8207         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8208         here...
8209         * modules/linkat (configure.ac): ... to here.
8210
8211 2011-05-21  Bruno Haible  <bruno@clisp.org>
8212
8213         link: Respect rules for use of AC_LIBOBJ.
8214         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8215         * modules/link (configure.ac): ... to here.
8216
8217 2011-05-21  Bruno Haible  <bruno@clisp.org>
8218
8219         lchown: Move AC_LIBOBJ invocations to module description.
8220         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8221         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8222         * modules/lchown (configure.ac): ... to here.
8223
8224 2011-05-21  Bruno Haible  <bruno@clisp.org>
8225
8226         iswctype: Move AC_LIBOBJ invocations to module description.
8227         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8228         here...
8229         * modules/iswctype (configure.ac): ... to here.
8230
8231 2011-05-21  Bruno Haible  <bruno@clisp.org>
8232
8233         iswblank: Move AC_LIBOBJ invocations to module description.
8234         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8235         here...
8236         * modules/iswblank (configure.ac): ... to here.
8237
8238 2011-05-21  Bruno Haible  <bruno@clisp.org>
8239
8240         atanl: Move AC_LIBOBJ invocations to module description.
8241         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8242         * modules/atanl (configure.ac): ... to here.
8243
8244 2011-05-21  Bruno Haible  <bruno@clisp.org>
8245
8246         acosl: Move AC_LIBOBJ invocations to module description.
8247         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8248         * modules/acosl (configure.ac): ... to here.
8249
8250 2011-05-21  Bruno Haible  <bruno@clisp.org>
8251
8252         asinl: Respect rules for use of AC_LIBOBJ.
8253         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8254         * modules/asinl (configure.ac): ... to here.
8255
8256 2011-05-21  Bruno Haible  <bruno@clisp.org>
8257
8258         tanl: Move AC_LIBOBJ invocations to module description.
8259         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8260         * modules/tanl (configure.ac): ... to here.
8261
8262 2011-05-21  Bruno Haible  <bruno@clisp.org>
8263
8264         cosl: Move AC_LIBOBJ invocations to module description.
8265         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8266         * modules/cosl (configure.ac): ... to here.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         sinl: Move AC_LIBOBJ invocations to module description.
8271         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8272         * modules/sinl (configure.ac): ... to here.
8273
8274 2011-05-21  Bruno Haible  <bruno@clisp.org>
8275
8276         logl: Move AC_LIBOBJ invocations to module description.
8277         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8278         * modules/logl (configure.ac): ... to here.
8279
8280 2011-05-21  Bruno Haible  <bruno@clisp.org>
8281
8282         expl: Move AC_LIBOBJ invocations to module description.
8283         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8284         * modules/expl (configure.ac): ... to here.
8285
8286 2011-05-21  Bruno Haible  <bruno@clisp.org>
8287
8288         roundl: Move AC_LIBOBJ invocations to module description.
8289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8290         * modules/roundl (configure.ac): ... to here.
8291
8292 2011-05-21  Bruno Haible  <bruno@clisp.org>
8293
8294         round: Move AC_LIBOBJ invocations to module description.
8295         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8296         * modules/round (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         roundf: Move AC_LIBOBJ invocations to module description.
8301         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8302         * modules/roundf (configure.ac): ... to here.
8303
8304 2011-05-21  Bruno Haible  <bruno@clisp.org>
8305
8306         truncl: Move AC_LIBOBJ invocations to module description.
8307         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8308         * modules/truncl (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         trunc: Move AC_LIBOBJ invocations to module description.
8313         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8314         * modules/trunc (configure.ac): ... to here.
8315
8316 2011-05-21  Bruno Haible  <bruno@clisp.org>
8317
8318         truncf: Move AC_LIBOBJ invocations to module description.
8319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8320         * modules/truncf (configure.ac): ... to here.
8321
8322 2011-05-21  Bruno Haible  <bruno@clisp.org>
8323
8324         ceill: Move AC_LIBOBJ invocations to module description.
8325         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8326         * modules/ceill (configure.ac): ... to here.
8327
8328 2011-05-21  Bruno Haible  <bruno@clisp.org>
8329
8330         ceil: Move AC_LIBOBJ invocations to module description.
8331         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8332         * modules/ceil (configure.ac): ... to here.
8333
8334 2011-05-21  Bruno Haible  <bruno@clisp.org>
8335
8336         ceilf: Move AC_LIBOBJ invocations to module description.
8337         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8338         * modules/ceilf (configure.ac): ... to here.
8339
8340 2011-05-21  Bruno Haible  <bruno@clisp.org>
8341
8342         floorl: Respect rules for use of AC_LIBOBJ.
8343         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8344         * modules/floorl (configure.ac): ... to here.
8345
8346 2011-05-21  Bruno Haible  <bruno@clisp.org>
8347
8348         floor: Respect rules for use of AC_LIBOBJ.
8349         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8350         * modules/floor (configure.ac): ... to here.
8351
8352 2011-05-21  Bruno Haible  <bruno@clisp.org>
8353
8354         floorf: Move AC_LIBOBJ invocations to module description.
8355         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8356         * modules/floorf (configure.ac): ... to here.
8357
8358 2011-05-20  Bruno Haible  <bruno@clisp.org>
8359
8360         sqrtl: Respect rules for use of AC_LIBOBJ.
8361         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8362         * modules/sqrtl (configure.ac): ... to here.
8363
8364 2011-05-20  Bruno Haible  <bruno@clisp.org>
8365
8366         ldexpl: Respect rules for use of AC_LIBOBJ.
8367         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8368         * modules/ldexpl (configure.ac): ... to here.
8369
8370 2011-05-20  Bruno Haible  <bruno@clisp.org>
8371
8372         frexpl*: Respect rules for use of AC_LIBOBJ.
8373         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8374         invocation from here...
8375         * modules/frexpl (configure.ac): ... to here.
8376         * modules/frexpl-nolibm (configure.ac): ... and here.
8377
8378 2011-05-20  Bruno Haible  <bruno@clisp.org>
8379
8380         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8381         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8382         invocation from here...
8383         * modules/frexp (configure.ac): ... to here.
8384         * modules/frexp-nolibm (configure.ac): ... and here.
8385
8386 2011-05-20  Bruno Haible  <bruno@clisp.org>
8387
8388         isnan: Respect rules for use of AC_LIBOBJ.
8389         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8390         invocations here.
8391         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8392         REPLACE_ISNAN.
8393         * modules/isnand (configure.ac): Likewise.
8394         * modules/isnanl (configure.ac): Likewise.
8395
8396 2011-05-20  Bruno Haible  <bruno@clisp.org>
8397
8398         isnanl*: Respect rules for use of AC_LIBOBJ.
8399         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8400         invocation from here...
8401         * modules/isnanl (configure.ac): ... to here.
8402         * modules/isnanl-nolibm (configure.ac): ... and here.
8403
8404 2011-05-20  Bruno Haible  <bruno@clisp.org>
8405
8406         isnand*: Move AC_LIBOBJ invocations to module description.
8407         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8408         invocation from here...
8409         * modules/isnand (configure.ac): ... to here.
8410         * modules/isnand-nolibm (configure.ac): ... and here.
8411
8412 2011-05-20  Bruno Haible  <bruno@clisp.org>
8413
8414         isnanf*: Move AC_LIBOBJ invocations to module description.
8415         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8416         invocation from here...
8417         * modules/isnanf (configure.ac): ... to here.
8418         * modules/isnanf-nolibm (configure.ac): ... and here.
8419
8420 2011-05-20  Bruno Haible  <bruno@clisp.org>
8421
8422         isnan*: Separate the AC_LIBOBJ invocations.
8423         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8424         AC_LIBOBJ invocation.
8425         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8426         here.
8427         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8428         AC_LIBOBJ invocation.
8429         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8430         here.
8431         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8432         AC_LIBOBJ invocation.
8433         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8434         here.
8435         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8436
8437 2011-05-08  Bruno Haible  <bruno@clisp.org>
8438
8439         isinf: Move AC_LIBOBJ invocations to module description.
8440         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8441         * modules/isinf (configure.ac): ... to here.
8442
8443 2011-05-08  Bruno Haible  <bruno@clisp.org>
8444
8445         isfinite: Move AC_LIBOBJ invocations to module description.
8446         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
8447         * modules/isfinite (configure.ac): ... to here.
8448
8449 2011-05-08  Bruno Haible  <bruno@clisp.org>
8450
8451         isblank: Move AC_LIBOBJ invocations to module description.
8452         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
8453         here...
8454         * modules/isblank (configure.ac): ... to here.
8455
8456 2011-05-08  Bruno Haible  <bruno@clisp.org>
8457
8458         isapipe: Move AC_LIBOBJ invocations to module description.
8459         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
8460         gl_PREREQ_ISAPIPE invocations from here...
8461         * modules/isapipe (configure.ac): ... to here.
8462         (Depends-on): Update condition.
8463
8464 2011-05-08  Bruno Haible  <bruno@clisp.org>
8465
8466         ioctl: Move AC_LIBOBJ invocations to module description.
8467         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
8468         invocations from here...
8469         * modules/ioctl (configure.ac): ... to here.
8470         (Depends-on): Update condition.
8471
8472 2011-05-08  Bruno Haible  <bruno@clisp.org>
8473
8474         imaxdiv: Move AC_LIBOBJ invocations to module description.
8475         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
8476         invocations from here...
8477         * modules/imaxdiv (configure.ac): ... to here.
8478
8479 2011-05-08  Bruno Haible  <bruno@clisp.org>
8480
8481         imaxabs: Move AC_LIBOBJ invocations to module description.
8482         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
8483         invocations from here...
8484         * modules/imaxabs (configure.ac): ... to here.
8485
8486 2011-05-08  Bruno Haible  <bruno@clisp.org>
8487
8488         getaddrinfo: Move AC_LIBOBJ invocations to module description.
8489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
8490         AC_LIBOBJ invocations from here...
8491         * modules/getaddrinfo (configure.ac): ... to here.
8492         (Depends-on): Add conditions.
8493
8494 2011-05-08  Bruno Haible  <bruno@clisp.org>
8495
8496         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8497         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
8498         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8499         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
8500         (gl_PREREQ_INET_PTON): ... from here.
8501         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
8502         gl_PREREQ_INET_PTON here.
8503         (Depends-on): Update condition.
8504
8505 2011-05-08  Bruno Haible  <bruno@clisp.org>
8506
8507         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
8508         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
8509         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
8510         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
8511         (gl_PREREQ_INET_NTOP): ... from here.
8512         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
8513         gl_PREREQ_INET_NTOP here.
8514         (Depends-on): Update condition.
8515
8516 2011-05-08  Bruno Haible  <bruno@clisp.org>
8517
8518         iconv_open: Move AC_LIBOBJ invocations to module description.
8519         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
8520         AC_LIBOBJ invocations from here...
8521         * modules/iconv_open (configure.ac): ... to here.
8522
8523 2011-05-08  Bruno Haible  <bruno@clisp.org>
8524
8525         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
8526         If module 'iconv_open' is among the main modules and module
8527         'iconv_open-utf' is among the tests dependencies, then
8528         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
8529         return the special iconv_t values. Therefore iconv() and iconv_close()
8530         must support these special iconv_t values, already in lib, not only in
8531         tests.
8532         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
8533         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
8534         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
8535         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
8536         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
8537         (Depends-on): Add the dependencies of iconv_open-utf.
8538         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
8539         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
8540         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
8541
8542 2011-05-08  Bruno Haible  <bruno@clisp.org>
8543
8544         group-member: Move AC_LIBOBJ invocations to module description.
8545         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
8546         gl_PREREQ_GROUP_MEMBER invocations from here...
8547         * modules/group-member (configure.ac): ... to here.
8548
8549 2011-05-08  Bruno Haible  <bruno@clisp.org>
8550
8551         grantpt: Move AC_LIBOBJ invocations to module description.
8552         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
8553         invocations from here...
8554         * modules/grantpt (configure.ac): ... to here.
8555
8556 2011-05-08  Bruno Haible  <bruno@clisp.org>
8557
8558         glob: Move AC_LIBOBJ invocations to module description.
8559         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
8560         from here...
8561         * modules/glob (configure.ac): ... to here.
8562
8563 2011-05-08  Bruno Haible  <bruno@clisp.org>
8564
8565         getusershell: Move AC_LIBOBJ invocations to module description.
8566         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
8567         Move AC_LIBOBJ invocation from here...
8568         * modules/getusershell (configure.ac): ... to here.
8569         (Depends-on): Update condition.
8570
8571 2011-05-08  Bruno Haible  <bruno@clisp.org>
8572
8573         gettimeofday: Move AC_LIBOBJ invocations to module description.
8574         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
8575         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
8576         gl_PREREQ_GETTIMEOFDAY invocations from here...
8577         * modules/gettimeofday (configure.ac): ... to here.
8578
8579 2011-05-08  Bruno Haible  <bruno@clisp.org>
8580
8581         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
8582         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
8583         just gl_FUNC_TZSET.
8584         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
8585         (gl_FUNC_TZSET_CLOBBER): Remove actions.
8586         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
8587         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
8588
8589 2011-05-08  Bruno Haible  <bruno@clisp.org>
8590
8591         getsubopt: Move AC_LIBOBJ invocations to module description.
8592         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
8593         gl_PREREQ_GETSUBOPT invocations from here...
8594         * modules/getsubopt (configure.ac): ... to here.
8595
8596 2011-05-08  Bruno Haible  <bruno@clisp.org>
8597
8598         getpass-gnu: Move AC_LIBOBJ invocations to module description.
8599         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
8600         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
8601         * modules/getpass-gnu (configure.ac): ... to here.
8602
8603 2011-05-08  Bruno Haible  <bruno@clisp.org>
8604
8605         getpass: Move AC_LIBOBJ invocations to module description.
8606         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
8607         gl_PREREQ_GETPASS invocations from here...
8608         * modules/getpass (configure.ac): ... to here.
8609
8610 2011-05-08  Bruno Haible  <bruno@clisp.org>
8611
8612         getpagesize: Move AC_LIBOBJ invocations to module description.
8613         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
8614         from here...
8615         * modules/getpagesize (configure.ac): ... to here.
8616
8617 2011-05-08  Bruno Haible  <bruno@clisp.org>
8618
8619         getopt: Move AC_LIBOBJ invocations to module description.
8620         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
8621         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
8622         invocations from here...
8623         * modules/getopt-gnu (configure.ac): ... to here.
8624         * modules/getopt-posix (configure.ac): ... and here.
8625         (Depends-on): Update condition.
8626
8627 2011-05-08  Bruno Haible  <bruno@clisp.org>
8628
8629         getopt, argp: Respect rules for use of AC_LIBOBJ.
8630         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
8631         (gl_REPLACE_GETOPT_ALWAYS): New macro.
8632         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
8633         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
8634
8635 2011-05-08  Bruno Haible  <bruno@clisp.org>
8636
8637         getlogin_r: Move AC_LIBOBJ invocations to module description.
8638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
8639         gl_PREREQ_GETLOGIN_R invocations from here...
8640         * modules/getlogin_r (configure.ac): ... to here.
8641
8642 2011-05-08  Bruno Haible  <bruno@clisp.org>
8643
8644         getlogin: Move AC_LIBOBJ invocations to module description.
8645         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
8646         here...
8647         * modules/getlogin (configure.ac): ... to here.
8648
8649 2011-05-08  Bruno Haible  <bruno@clisp.org>
8650
8651         getloadavg: Move AC_LIBOBJ invocations to module description.
8652         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
8653         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
8654         * modules/getloadavg (configure.ac): ... to here.
8655
8656 2011-05-08  Bruno Haible  <bruno@clisp.org>
8657
8658         gethrxtime: Move AC_LIBOBJ invocations to module description.
8659         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
8660         LIB_GETHRXTIME from here...
8661         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
8662         invocations from here...
8663         * modules/gethrxtime (configure.ac): ... to here.
8664
8665 2011-05-08  Bruno Haible  <bruno@clisp.org>
8666
8667         gethostname: Move AC_LIBOBJ invocations to module description.
8668         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
8669         gl_PREREQ_GETHOSTNAME invocations from here...
8670         * modules/gethostname (configure.ac): ... to here.
8671
8672 2011-05-08  Bruno Haible  <bruno@clisp.org>
8673
8674         getgroups: Move AC_LIBOBJ invocations to module description.
8675         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
8676         here...
8677         * modules/getgroups (configure.ac): ... to here.
8678
8679 2011-05-08  Bruno Haible  <bruno@clisp.org>
8680
8681         getdtablesize: Move AC_LIBOBJ invocations to module description.
8682         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
8683         invocation from here...
8684         * modules/getdtablesize (configure.ac): ... to here.
8685
8686 2011-05-08  Bruno Haible  <bruno@clisp.org>
8687
8688         getdomainname: Move AC_LIBOBJ invocations to module description.
8689         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
8690         gl_PREREQ_GETDOMAINNAME invocations from here...
8691         * modules/getdomainname (configure.ac): ... to here.
8692
8693 2011-05-08  Bruno Haible  <bruno@clisp.org>
8694
8695         getline: Move AC_LIBOBJ invocations to module description.
8696         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
8697         invocations from here...
8698         * modules/getline (configure.ac): ... to here.
8699
8700 2011-05-08  Bruno Haible  <bruno@clisp.org>
8701
8702         getline: Simplify.
8703         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
8704         It's already handled through the module dependency.
8705
8706 2011-05-08  Bruno Haible  <bruno@clisp.org>
8707
8708         getdelim: Move AC_LIBOBJ invocations to module description.
8709         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
8710         and gl_PREREQ_GETDELIM invocations from here...
8711         * modules/getdelim (configure.ac): ... to here.
8712         (Depends-on): Fix condition.
8713
8714 2011-05-08  Bruno Haible  <bruno@clisp.org>
8715
8716         getcwd: Move AC_LIBOBJ invocations to module description.
8717         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
8718         invocations from here...
8719         * modules/getcwd (configure.ac): ... to here.
8720
8721 2011-05-08  Bruno Haible  <bruno@clisp.org>
8722
8723         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
8724         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
8725         here...
8726         * modules/getcwd-lgpl (configure.ac): ... to here.
8727
8728 2011-05-07  Bruno Haible  <bruno@clisp.org>
8729
8730         crypto/gc: Move AC_LIBOBJ invocations to module description.
8731         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
8732         * modules/crypto/gc (configure.ac): ... to here.
8733
8734 2011-05-07  Bruno Haible  <bruno@clisp.org>
8735
8736         fwriting: Move AC_LIBOBJ invocations to module description.
8737         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
8738         here...
8739         * modules/fwriting (configure.ac): ... to here.
8740
8741 2011-05-07  Bruno Haible  <bruno@clisp.org>
8742
8743         fwritable: Move AC_LIBOBJ invocations to module description.
8744         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
8745         here...
8746         * modules/fwritable (configure.ac): ... to here.
8747
8748 2011-05-07  Bruno Haible  <bruno@clisp.org>
8749
8750         futimens: Move AC_LIBOBJ invocations to module description.
8751         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
8752         here...
8753         * modules/futimens (configure.ac): ... to here.
8754
8755 2011-05-07  Bruno Haible  <bruno@clisp.org>
8756
8757         ftruncate: Move AC_LIBOBJ invocations to module description.
8758         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
8759         gl_PREREQ_FTRUNCATE invocations from here...
8760         * modules/ftruncate (configure.ac): ... to here.
8761
8762 2011-05-07  Bruno Haible  <bruno@clisp.org>
8763
8764         fsync: Move AC_LIBOBJ invocations to module description.
8765         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
8766         invocations from here...
8767         * modules/fsync (configure.ac): ... to here.
8768
8769 2011-05-07  Bruno Haible  <bruno@clisp.org>
8770
8771         fsusage: Move AC_LIBOBJ invocations to module description.
8772         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
8773         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
8774         * modules/fsusage (configure.ac): ... to here.
8775
8776 2011-05-07  Bruno Haible  <bruno@clisp.org>
8777
8778         freopen: Move AC_LIBOBJ invocations to module description.
8779         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
8780         invocations from here...
8781         * modules/freopen (configure.ac): ... to here.
8782
8783 2011-05-07  Bruno Haible  <bruno@clisp.org>
8784
8785         free: Move AC_LIBOBJ invocations to module description.
8786         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
8787         invocations from here...
8788         * modules/free (configure.ac): ... to here.
8789
8790 2011-05-07  Bruno Haible  <bruno@clisp.org>
8791
8792         freadable: Move AC_LIBOBJ invocations to module description.
8793         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
8794         here...
8795         * modules/freadable (configure.ac): ... to here.
8796
8797 2011-05-07  Bruno Haible  <bruno@clisp.org>
8798
8799         fpurge: Move AC_LIBOBJ invocations to module description.
8800         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
8801         invocations from here...
8802         * modules/fpurge (configure.ac): ... to here.
8803
8804 2011-05-07  Bruno Haible  <bruno@clisp.org>
8805
8806         fpending: Move AC_LIBOBJ invocations to module description.
8807         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
8808         gl_FUNC_FPENDING.
8809         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
8810         invocations from here...
8811         * modules/fpending (configure.ac): ... to here.
8812
8813 2011-05-07  Bruno Haible  <bruno@clisp.org>
8814
8815         fopen: Move AC_LIBOBJ invocations to module description.
8816         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
8817         invocations from here...
8818         * modules/fopen (configure.ac): ... to here.
8819
8820 2011-05-07  Bruno Haible  <bruno@clisp.org>
8821
8822         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
8823         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
8824         gl_FUNC_FNMATCH_POSIX.
8825         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
8826         invocations from here...
8827         * modules/fnmatch (configure.ac): ... to here.
8828         * modules/fnmatch-gnu (configure.ac): ... and here.
8829
8830 2011-05-07  Bruno Haible  <bruno@clisp.org>
8831
8832         flock: Move AC_LIBOBJ invocations to module description.
8833         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
8834         invocations from here...
8835         * modules/flock (configure.ac): ... to here.
8836
8837 2011-05-07  Bruno Haible  <bruno@clisp.org>
8838
8839         fileblocks: Move AC_LIBOBJ invocations to module description.
8840         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
8841         gl_PREREQ_FILEBLOCKS invocations from here...
8842         * modules/fileblocks (configure.ac): ... to here.
8843
8844 2011-05-06  Bruno Haible  <bruno@clisp.org>
8845
8846         fflush: Move AC_LIBOBJ invocations to module description.
8847         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
8848         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
8849         invocations from here...
8850         * modules/fflush (configure.ac): ... to here.
8851
8852 2011-05-06  Bruno Haible  <bruno@clisp.org>
8853
8854         fdopendir: Move AC_LIBOBJ invocations to module description.
8855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
8856         here...
8857         * modules/fdopendir (configure.ac): ... to here.
8858         (Depends-on): Improve conditions.
8859
8860 2011-05-06  Bruno Haible  <bruno@clisp.org>
8861
8862         _Exit: Move AC_LIBOBJ invocations to module description.
8863         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
8864         invocations from here...
8865         * modules/_Exit (configure.ac): ... to here.
8866
8867 2011-05-21  Bruno Haible  <bruno@clisp.org>
8868
8869         euidaccess: Respect rules for use of AC_LIBOBJ.
8870         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8871         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
8872         from here...
8873         * modules/euidaccess (configure.ac): ... to here.
8874
8875 2011-05-06  Bruno Haible  <bruno@clisp.org>
8876
8877         error: Move AC_LIBOBJ invocations to module description.
8878         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
8879         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
8880         invocations from here...
8881         * modules/error (configure.ac): ... to here.
8882
8883 2011-05-06  Bruno Haible  <bruno@clisp.org>
8884
8885         duplocale: Move AC_LIBOBJ invocations to module description.
8886         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
8887         gl_PREREQ_DUPLOCALE invocations from here...
8888         * modules/duplocale (configure.ac): ... to here.
8889
8890 2011-05-05  Bruno Haible  <bruno@clisp.org>
8891
8892         dirfd: Move AC_LIBOBJ invocations to module description.
8893         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
8894         gl_FUNC_DIRFD.
8895         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
8896         here...
8897         * modules/dirfd (configure.ac): ... to here.
8898         (Depends-on): Fix condition.
8899
8900 2011-05-05  Bruno Haible  <bruno@clisp.org>
8901
8902         chown: Respect rules for use of AC_LIBOBJ.
8903         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
8904         * modules/chown (configure.ac): ... to here.
8905
8906 2011-05-05  Bruno Haible  <bruno@clisp.org>
8907
8908         chdir-long: Move AC_LIBOBJ invocations to module description.
8909         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
8910         gl_PREREQ_CHDIR_LONG invocations from here...
8911         * modules/chdir-long (configure.ac): ... to here.
8912
8913 2011-05-05  Bruno Haible  <bruno@clisp.org>
8914
8915         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
8916         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
8917         from here...
8918         * modules/canonicalize-lgpl (configure.ac): ... to here.
8919
8920 2011-05-05  Bruno Haible  <bruno@clisp.org>
8921
8922         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
8923         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
8924         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
8925         REPLACE_CALLOC.
8926         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
8927         * modules/calloc-gnu (configure.ac): Likewise.
8928
8929 2011-05-05  Bruno Haible  <bruno@clisp.org>
8930
8931         btowc: Move AC_LIBOBJ invocations to module description.
8932         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
8933         invocations from here...
8934         * modules/btowc (configure.ac): ... to here.
8935
8936 2011-05-21  Bruno Haible  <bruno@clisp.org>
8937
8938         atexit: Move AC_LIBOBJ invocations to module description.
8939         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
8940         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
8941         here...
8942         * modules/atexit (configure.ac): ... to here.
8943
8944 2011-05-05  Bruno Haible  <bruno@clisp.org>
8945
8946         atoll: Move AC_LIBOBJ invocations to module description.
8947         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
8948         invocations from here...
8949         * modules/atoll (configure.ac): ... to here.
8950
8951 2011-05-05  Bruno Haible  <bruno@clisp.org>
8952
8953         argz: Move AC_LIBOBJ invocations to module description.
8954         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
8955         * modules/argz (configure.ac): ... to here.
8956
8957 2011-05-05  Bruno Haible  <bruno@clisp.org>
8958
8959         alphasort: Move AC_LIBOBJ invocations to module description.
8960         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
8961         gl_PREREQ_ALPHASORT invocations from here...
8962         * modules/alphasort (configure.ac): ... to here.
8963
8964 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8965
8966         verify: new macro verify_expr; verify_true deprecated
8967         * NEWS: Mention this.
8968         * doc/verify.texi (Compile-time Assertions): Document this.
8969         * lib/verify.h (verify_true): Deprecate.
8970         (verify_expr): New macro.
8971         * tests/test-verify.c (function): Test verify_expr.
8972
8973 2011-06-14  Jim Meyering  <meyering@redhat.com>
8974
8975         init.sh: give more portable redirection-related advice in a comment
8976         * tests/init.sh (stderr_fileno_): Update the advice in comments.
8977         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
8978         for lots of discussion.  Stefano Lattarini suggested the solution
8979         of putting "9>&2" after the command.  Reported by Bruno Haible.
8980
8981 2011-06-13  Bruno Haible  <bruno@clisp.org>
8982
8983         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
8984         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
8985         'none'.
8986
8987 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
8988
8989         ftoastr: use strtof only if HAVE_STRTOF
8990         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
8991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
8992         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
8993         * modules/ftoastr (configure.ac): Check for strtof.
8994
8995 2011-06-13  Bruno Haible  <bruno@clisp.org>
8996
8997         gnulib-tool: Addendum to 2011-06-08 commit.
8998         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
8999         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9000
9001 2011-06-13  Bruno Haible  <bruno@clisp.org>
9002
9003         fseeko: Provide a non-inline replacement of fseek().
9004         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9005         * modules/fseeko (Depends-on): Add fseek.
9006         * modules/fseek (License): Change to LGPLv2+.
9007
9008 2011-06-13  Bruno Haible  <bruno@clisp.org>
9009
9010         ftello: Provide a non-inline replacement of ftell().
9011         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9012         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9013         not have ftello() (such as on mingw).
9014         * modules/ftello (Depends-on): Add ftell.
9015         * modules/ftell (License): Change to LGPLv2+.
9016
9017 2011-05-07  Bruno Haible  <bruno@clisp.org>
9018
9019         ftell: Move AC_LIBOBJ invocations to module description.
9020         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9021         * modules/ftell (configure.ac): ... to here.
9022
9023 2011-05-07  Bruno Haible  <bruno@clisp.org>
9024
9025         ftello: Respect rules for use of AC_LIBOBJ.
9026         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9027         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9028         here...
9029         * modules/ftello (configure.ac): ... to here.
9030
9031 2011-05-07  Bruno Haible  <bruno@clisp.org>
9032
9033         fseeko: Simplify.
9034         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9035         (gl_FUNC_FSEEKO): Inline it here.
9036
9037 2011-05-07  Bruno Haible  <bruno@clisp.org>
9038
9039         fseek: Move AC_LIBOBJ invocations to module description.
9040         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9041         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9042         * modules/fseek (configure.ac): ... to here.
9043
9044 2011-05-07  Bruno Haible  <bruno@clisp.org>
9045
9046         fseek: Respect rules for use of AC_LIBOBJ.
9047         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9048         here...
9049         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9050
9051 2011-05-07  Bruno Haible  <bruno@clisp.org>
9052
9053         fseeko: Respect rules for use of AC_LIBOBJ.
9054         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9055         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9056         here...
9057         * modules/fseeko (configure.ac): ... to here.
9058
9059 2011-06-13  Bruno Haible  <bruno@clisp.org>
9060
9061         gnulib-tool: Allow comments in the 'Depends-on' section.
9062         * doc/gnulib.texi (Module description): Mention comment syntax in the
9063         Depends-on section.
9064         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9065
9066 2011-06-13  Bruno Haible  <bruno@clisp.org>
9067
9068         file-set.h: guard __attibute__ use, now that it's not always defined
9069         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9070         versions that support it.  This fixes a coreutils build failure with
9071         the vendor cc on HP-UX 11.31.
9072
9073 2011-06-12  Bruno Haible  <bruno@clisp.org>
9074
9075         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9076         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9077         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9078         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9079         (acl, aclsort): New declarations.
9080         (aclv_nontrivial): New declaration.
9081         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9082         (file_has_acl): Read also the second kind of HP-UX ACLs.
9083         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9084         kind of HP-UX ACLs if the first kind fails.
9085         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9086         second kind of HP-UX ACLs.
9087         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9088         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9089         agree.
9090         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9091         hpuxjfs.
9092         Handle hpuxjfs.
9093         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9094         hpuxjfs.
9095         Handle hpuxjfs.
9096         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9097         (func_test_same_acls): Use both lsacl and getacl.
9098         Handle hpuxjfs.
9099         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9100         (func_test_same_acls): Use both lsacl and getacl.
9101         Handle hpuxjfs.
9102
9103 2011-06-12  Bruno Haible  <bruno@clisp.org>
9104
9105         acl: Complete the 2010-08-10 fix.
9106         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9107         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9108         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9109         explicitly.
9110         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9111         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9112
9113 2011-06-12  Bruno Haible  <bruno@clisp.org>
9114
9115         spawn-pipe tests: Comments.
9116         * tests/test-spawn-pipe-child.c (main): Update comment.
9117         Reported by James Youngman <jay@gnu.org>.
9118
9119 2011-06-11  James Youngman  <jay@gnu.org>
9120
9121         New module 'stat-size'.
9122         * modules/stat-size: New module.  Provides macros for accessing
9123         file size information in instances of struct stat.  Depends on the
9124         fileblocks module because it calls st_blocks.
9125         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9126         * doc/gnulib.texi: Include stat-size.texi.
9127         * doc/stat-size.texi: Documentation for this module.
9128         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9129         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9130         AC_STRUCT_ST_BLOCKS.
9131
9132 2011-06-09  Bruno Haible  <bruno@clisp.org>
9133
9134         thread: Support pthreads-win32.
9135         * lib/glthread/thread.h (gl_thread_self): Define differently on
9136         pthreads-win32.
9137         (gl_null_thread): New declaration.
9138         (gl_thread_self_pointer): New macro.
9139         * lib/glthread/thread.c (gl_null_thread): New constant.
9140         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9141         gl_thread_self.
9142         * tests/test-tls.c: Likewise.
9143         Suggested by Paul Eggert. Reported by Eric Blake.
9144
9145 2011-06-09  Bruno Haible  <bruno@clisp.org>
9146
9147         thread: Fix confusion between NULL and 0.
9148         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9149         Reported by Paul Eggert.
9150
9151 2011-06-09  Bruno Haible  <bruno@clisp.org>
9152
9153         spawn-pipe tests: Avoid test failure on HP-UX 11.
9154         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9155         is closed.
9156
9157 2011-06-09  Bruno Haible  <bruno@clisp.org>
9158
9159         acl tests: Fix compilation error on HP-UX 11.
9160         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9161
9162 2011-06-09  Bruno Haible  <bruno@clisp.org>
9163
9164         rmdir: Avoid test failure on HP-UX 10.20.
9165         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9166         EEXIST.
9167
9168 2011-06-08  Eric Blake  <eblake@redhat.com>
9169
9170         perror: fix test on mingw
9171         * modules/perror-tests (Depends-on): Add dup2.
9172
9173         strerror_r-posix: fix on MacOS
9174         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9175         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9176         logic bug.
9177         * lib/strerror_r.c (strerror_r): Fix the bug.
9178         * lib/strerror.c (strerror): Likewise.
9179         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9180         problem.
9181         * doc/posix-functions/strerror.texi (strerror): Likewise.
9182         * doc/posix-functions/perror.texi (perror): Likewise.
9183         * tests/test-strerror.c (main): Enhance test.
9184         * tests/test-strerror_r.c (main): Likewise.
9185
9186 2011-06-08  Bruno Haible  <bruno@clisp.org>
9187
9188         gnulib-tool: Better isolation between different gnulib-tool invocations.
9189         * gnulib-tool: New option --witness-c-macro.
9190         (witness_c_macro): New variable.
9191         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9192         AM_CPPFLAGS define it as a C macro.
9193         (func_emit_tests_Makefile_am): Likewise.
9194         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9195         read it from there.
9196         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9197         m4_define, not AC_DEFUN.
9198         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9199         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9200         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9201         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9202         s|...|...|, to substitute the values of the GNULIB_* module indicator
9203         variables.
9204         * modules/dirent (Makefile.am): Likewise.
9205         * modules/fcntl-h (Makefile.am): Likewise.
9206         * modules/iconv-h (Makefile.am): Likewise.
9207         * modules/langinfo (Makefile.am): Likewise.
9208         * modules/locale (Makefile.am): Likewise.
9209         * modules/math (Makefile.am): Likewise.
9210         * modules/netdb (Makefile.am): Likewise.
9211         * modules/poll-h (Makefile.am): Likewise.
9212         * modules/pty (Makefile.am): Likewise.
9213         * modules/search (Makefile.am): Likewise.
9214         * modules/signal (Makefile.am): Likewise.
9215         * modules/spawn (Makefile.am): Likewise.
9216         * modules/stdio (Makefile.am): Likewise.
9217         * modules/stdlib (Makefile.am): Likewise.
9218         * modules/string (Makefile.am): Likewise.
9219         * modules/sys_ioctl (Makefile.am): Likewise.
9220         * modules/sys_select (Makefile.am): Likewise.
9221         * modules/sys_socket (Makefile.am): Likewise.
9222         * modules/sys_stat (Makefile.am): Likewise.
9223         * modules/sys_times (Makefile.am): Likewise.
9224         * modules/sys_utsname (Makefile.am): Likewise.
9225         * modules/sys_wait (Makefile.am): Likewise.
9226         * modules/termios (Makefile.am): Likewise.
9227         * modules/time (Makefile.am): Likewise.
9228         * modules/unistd (Makefile.am): Likewise.
9229         * modules/wchar (Makefile.am): Likewise.
9230
9231 2011-06-08  Eric Blake  <eblake@redhat.com>
9232
9233         strerror: simplify replacement
9234         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9235         * modules/strerror (configure.ac): No prereqs needed here...
9236         * modules/strerror-override (configure.ac): ...but this needs it.
9237         (Files): Add file for needed prereq macro.
9238
9239 2011-06-08  Bruno Haible  <bruno@clisp.org>
9240
9241         strerror_r-posix: Tweaks.
9242         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9243         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9244         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9245         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9246         (gl_FUNC_STRERROR_R): ... to here.
9247         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9248
9249 2011-06-07  Eric Blake  <eblake@redhat.com>
9250
9251         perror: document fixed bugs
9252         * doc/posix-functions/perror.texi (perror): Document recent
9253         patches.
9254
9255 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9256
9257         stat-time: get_stat_birthtime failure is better-defined
9258         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9259         return a timestamp whose tv_sec and tv_nsec values are both -1.
9260         Previously, the spec said only that the tv_nsec value was negative.
9261         This upward-compatible change simplifies GNU tar a bit.
9262
9263 2011-06-07  Eric Blake  <eblake@redhat.com>
9264
9265         strerror_r-posix: work around cygwin 1.7.9
9266         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9267         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9268         bug without replacing strerror_r.
9269         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9270         strerror_r is buggy, but without requiring strerror_r compilation.
9271         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9272
9273         test-perror: relax test to ignore cygwin bug
9274         * tests/test-perror2.c (main): Relax test on requiring detection
9275         of stream errors, and use unbuffered stream.
9276         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9277         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9278         * doc/posix-functions/fputc.texi (fputc): Likewise.
9279         * doc/posix-functions/fputs.texi (fputs): Likewise.
9280         * doc/posix-functions/fputws.texi (fputws): Likewise.
9281         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9282         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9283         * doc/posix-functions/getopt.texi (getopt): Likewise.
9284         * doc/posix-functions/perror.texi (perror): Likewise.
9285         * doc/posix-functions/printf.texi (printf): Likewise.
9286         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9287         * doc/posix-functions/psignal.texi (psignal): Likewise.
9288         * doc/posix-functions/putc.texi (putc): Likewise.
9289         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9290         Likewise.
9291         * doc/posix-functions/putchar.texi (putchar): Likewise.
9292         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9293         Likewise.
9294         * doc/posix-functions/puts.texi (puts): Likewise.
9295         * doc/posix-functions/putwc.texi (putwc): Likewise.
9296         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9297         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9298         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9299         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9300         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9301         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9302         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9303         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9304
9305 2011-05-22  Bruno Haible  <bruno@clisp.org>
9306
9307         strerror: Move AC_LIBOBJ invocations to module description.
9308         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9309         gl_PREREQ_STRERROR invocations from here...
9310         * modules/strerror (configure.ac): ... to here.
9311
9312 2011-05-21  Bruno Haible  <bruno@clisp.org>
9313
9314         perror: Use common idiom.
9315         * modules/perror (configure.ac): Reorder statements.
9316
9317 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9318
9319         tests: fix usage message in 'mktempd_'
9320         * tests/init.sh (mktempd_): In the usage message, use literal
9321         'mktempd_', not '$ME' (which is even undefined), as the name of
9322         the subroutine.
9323
9324 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9325
9326         tests init: new function 'fatal_', for hard errors
9327         Before this patch, the only way offered by tests/init.sh to
9328         properly signal a hard error was the `framework_failure_'
9329         function.  But the error message issued by that function,
9330         as its name would suggest, refers to a set-up failure in the
9331         testsuite, while hard errors can obviously also be due to
9332         other reasons.  The best way to fix this inconsistency is to
9333         introduce a new function with a more general error message.
9334         * tests/init.sh (fatal_): New function.
9335
9336 2011-06-06  Eric Blake  <eblake@redhat.com>
9337
9338         canonicalize-lgpl: use common idiom
9339         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9340         over newer POSIX -Rf.
9341         Reported by Bruno Haible.
9342
9343         canonicalize-lgpl: work around AIX realpath bug
9344         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9345         * doc/posix-functions/realpath.texi (realpath): Document it.
9346         Reported by Bruno Haible.
9347
9348         strerror: work around FreeBSD bug
9349         * lib/strerror.c (strerror): Special case 0.
9350         Reported by Bruno Haible.
9351
9352         strerror-override: avoid bloating errno module
9353         * modules/errno (Files, configure.ac): Move replacement strings...
9354         * modules/strerror-override: ...to new module.
9355         * modules/strerror (Depends-on): Add strerror-override.
9356         * modules/strerror_r-posix (Depends-on): Likewise.
9357         * MODULES.html.sh: Document new module.
9358         Reported by Bruno Haible.
9359
9360 2011-06-06  Bruno Haible  <bruno@clisp.org>
9361
9362         spawn-pipe tests: Rename program.
9363         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9364         * tests/test-spawn-pipe-child.c: Update comment.
9365         * tests/test-spawn-pipe.sh: Update.
9366         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9367
9368         spawn-pipe tests: Link the child program only against libc.
9369         * tests/test-spawn-pipe-child.c: New file, extracted from
9370         tests/test-spawn-pipe.c.
9371         (main): Expect only one argument.
9372         (is_open): New function, copied from tests/test-pipe.c.
9373         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9374         (child_main): Remove function.
9375         (test_pipe): Pass only one argument to the child program.
9376         (main): Remove child process code. Expect the child program's name as
9377         first argument.
9378         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9379         argument.
9380         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9381         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9382         test-spawn-pipe-child against no libraries.
9383
9384 2011-06-06  Bruno Haible  <bruno@clisp.org>
9385
9386         careadlinkat: Avoid mismatch between ssize_t and int.
9387         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9388         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9389
9390 2011-06-06  Jim Meyering  <meyering@redhat.com>
9391
9392         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9393         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9394         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9395
9396 2011-06-05  Bruno Haible  <bruno@clisp.org>
9397
9398         ansi-c++-opt: Interoperability with libtool.
9399         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9400         set the variable to "no", not to ":".
9401         * NEWS: Mention the change.
9402
9403 2011-06-05  Bruno Haible  <bruno@clisp.org>
9404
9405         acl: Fix test failure on AIX 7.
9406         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9407         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9408
9409 2011-06-05  Bruno Haible  <bruno@clisp.org>
9410
9411         pipe-filter-ii: Fix test failure on AIX and IRIX.
9412         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9413         with EAGAIN, retry with a smaller buffer size.
9414
9415 2011-06-05  Bruno Haible  <bruno@clisp.org>
9416
9417         localename: Fix link dependencies.
9418         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9419         * modules/localename-tests (Makefile.am): Link test-localename with
9420         $(LIBTHREAD).
9421
9422 2011-06-05  Bruno Haible  <bruno@clisp.org>
9423
9424         error: Avoid gcc warning.
9425         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9426
9427 2011-06-05  Bruno Haible  <bruno@clisp.org>
9428
9429         unsetenv: Avoid gcc warning.
9430         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9431
9432 2011-06-05  Bruno Haible  <bruno@clisp.org>
9433
9434         setenv: Avoid gcc warning.
9435         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9436
9437 2011-06-05  Bruno Haible  <bruno@clisp.org>
9438
9439         sys_select: Ensure memset is declared also on AIX 7.
9440         * lib/sys_select.in.h: Include <string.h> also on AIX.
9441         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9442         self-contained also on AIX 7.1.
9443
9444 2011-06-04  Jim Meyering  <meyering@redhat.com>
9445
9446         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
9447         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
9448         function name, "error".
9449         (_gl_translatable_diag_func_re): New configurable variable.
9450
9451 2011-06-04  Bruno Haible  <bruno@clisp.org>
9452
9453         getopt: Avoid gcc warning.
9454         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
9455
9456 2011-06-04  Bruno Haible  <bruno@clisp.org>
9457
9458         strerror_r: Fix comments.
9459         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
9460         commit.
9461
9462 2011-06-04  Bruno Haible  <bruno@clisp.org>
9463
9464         perror: Fix compilation error.
9465         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
9466         Undefine fprintf, not sprintf.
9467         * modules/perror (Depends-on): Remove intprops, verify.
9468
9469 2011-06-04  Bruno Haible  <bruno@clisp.org>
9470
9471         setlocale: Enable replacement on Cygwin 1.5.
9472         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
9473         Cygwin 1.5.x.
9474         * doc/posix-functions/setlocale.texi: Mention that the problem with the
9475         LC_CTYPE category also exists on Cygwin 1.5.x.
9476
9477 2011-06-04  Bruno Haible  <bruno@clisp.org>
9478
9479         strerror-override: Don't disable symbol renamings.
9480         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
9481         * lib/strerror-override.c: Include config.h.
9482         (strerror_override): Don't undefine.
9483
9484 2011-06-03  Bruno Haible  <bruno@clisp.org>
9485
9486         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
9487         * lib/localename.h: Update copyright header.
9488         * lib/localename.c: Likewise.
9489         * lib/relocatable.h: Likewise.
9490         * lib/relocatable.c: Likewise.
9491
9492 2011-06-02  Bruno Haible  <bruno@clisp.org>
9493
9494         doc: Fix a module name.
9495         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
9496
9497 2011-06-02  Bruno Haible  <bruno@clisp.org>
9498
9499         pipe2: Remove dependency on 'nonblocking' module.
9500         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
9501         O_NONBLOCK is defined by gnulib.
9502         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
9503         is zero.
9504         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
9505         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
9506         defined by gnulib.
9507         (get_nonblocking_flag): New function.
9508         (main): Test O_NONBLOCK flag only if it is nonzero.
9509         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
9510
9511 2011-06-03  Jim Meyering  <meyering@redhat.com>
9512
9513         maint: three new prohibit-header-without-use rules
9514         Prohibit use of cloexec.h, posixver.h, same.h without use.
9515         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
9516         (sc_prohibit_posixver_without_use): Likewise.
9517         (sc_prohibit_same_without_use): Likewise.
9518
9519 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         allocator: 'die' routine is now given requested size
9522         * lib/allocator.h (struct allocator.die): New size arg.
9523         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
9524         If the actual problem is an ssize_t limitation, not a size_t or
9525         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
9526
9527 2011-06-01  Eric Blake  <eblake@redhat.com>
9528
9529         strerror: drop strerror_r dependency
9530         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
9531         * lib/strerror-override.c (strerror_override): ...to new file.
9532         * lib/strerror-override.h: Add prototype.
9533         * lib/strerror-impl.h: Delete.
9534         * lib/strerror.c (strerror): New implementation.
9535         * modules/errno (Files): Add new files.
9536         (configure.ac): Compile new file as appropriate.
9537         * modules/strerror (Files): Drop unused file.
9538         (Depends-on): Drop strerror_r-posix.
9539         * MODULES.html.sh: Document strerror_r-posix.
9540         Requested by Sam Steingold.
9541
9542         perror: call strerror_r directly
9543         * modules/perror (Files): Drop strerror-impl.h.
9544         * lib/perror.c (perror): Use our own stack buffer, rather than
9545         calling a wrapper that uses static storage.
9546         * doc/posix-functions/perror.texi (perror): Document a limitation
9547         of our replacement.
9548
9549         strerror_r: fix includes for FreeBSD
9550         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
9551         since we use abort on some platforms.
9552         Reported by Matthias Bolte.
9553
9554 2011-05-31  Bruno Haible  <bruno@clisp.org>
9555
9556         Fix link errors in tests: openat-die uses gettext-h.
9557         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
9558         against $(LIBINTL).
9559         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
9560         against $(LIBINTL).
9561         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
9562         $(LIBINTL).
9563         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
9564         against $(LIBINTL).
9565         * modules/linkat-tests (Makefile.am): Link test-linkat against
9566         $(LIBINTL).
9567         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
9568         $(LIBINTL).
9569         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
9570         against $(LIBINTL).
9571         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
9572         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
9573         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
9574         $(LIBINTL).
9575         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
9576         $(LIBINTL).
9577         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
9578         $(LIBINTL).
9579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9580
9581 2011-05-31  Bruno Haible  <bruno@clisp.org>
9582
9583         Fix link errors in tests: wait-process uses gettext-h.
9584         * modules/nonblocking-pipe-tests (Makefile.am): Set
9585         test_nonblocking_pipe_main_LDADD.
9586         * modules/nonblocking-socket-tests (Makefile.am): Link
9587         test-nonblocking-socket-main against $(LIBINTL).
9588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9589
9590 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
9591
9592         assert-h: work around 'verify' incompatibility
9593         * lib/verify.h: Use @...@ directives, not ifdef.
9594         * modules/assert-h (assert.h): Implement the directives.
9595         (assert.h): Substitute the symbol-prefix more consistently.
9596
9597 2011-05-29  Jim Meyering  <meyering@redhat.com>
9598
9599         trim: remove three superfluous assignments
9600         * lib/trim.c (trim2): Remove three superfluous assignments
9601         and correct brace positioning.
9602
9603 2011-05-29  Bruno Haible  <bruno@clisp.org>
9604
9605         wctype-h: Avoid namespace pollution on Solaris 2.6.
9606         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
9607         identifiers.
9608         * doc/posix-headers/wctype.texi: Mention the problem.
9609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9610
9611 2011-05-28  Jim Meyering  <meyering@redhat.com>
9612
9613         parse-datetime.y: accommodate -Wstrict-overflow
9614         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
9615         placate -Wstrict-overflow.
9616
9617         trim: avoid a warning from -O2 -Wstrict-overflow
9618         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
9619
9620 2011-05-29  Bruno Haible  <bruno@clisp.org>
9621
9622         gnulib-tool: Fix bug in yesterday's commit.
9623         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
9624         twice.
9625
9626 2011-05-29  Bruno Haible  <bruno@clisp.org>
9627
9628         Allow multiple gnulib generated include files to be combined.
9629         * gnulib-tool (func_compute_include_guard_prefix): New function.
9630         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
9631         ${gl_include_guard_prefix} references.
9632         (func_import, func_create_testdir): Invoke
9633         func_compute_include_guard_prefix.
9634         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
9635         * lib/ctype.in.h: Likewise.
9636         * lib/dirent.in.h: Likewise.
9637         * lib/errno.in.h: Likewise.
9638         * lib/fcntl.in.h: Likewise.
9639         * lib/float.in.h: Likewise.
9640         * lib/getopt.in.h: Likewise.
9641         * lib/iconv.in.h: Likewise.
9642         * lib/langinfo.in.h: Likewise.
9643         * lib/locale.in.h: Likewise.
9644         * lib/math.in.h: Likewise.
9645         * lib/netdb.in.h: Likewise.
9646         * lib/netinet_in.in.h: Likewise.
9647         * lib/poll.in.h: Likewise.
9648         * lib/pthread.in.h: Likewise.
9649         * lib/pty.in.h: Likewise.
9650         * lib/sched.in.h: Likewise.
9651         * lib/se-selinux.in.h: Likewise.
9652         * lib/search.in.h: Likewise.
9653         * lib/signal.in.h: Likewise.
9654         * lib/spawn.in.h: Likewise.
9655         * lib/stdarg.in.h: Likewise.
9656         * lib/stddef.in.h: Likewise.
9657         * lib/stdint.in.h: Likewise.
9658         * lib/stdio.in.h: Likewise.
9659         * lib/stdlib.in.h: Likewise.
9660         * lib/string.in.h: Likewise.
9661         * lib/strings.in.h: Likewise.
9662         * lib/sys_file.in.h: Likewise.
9663         * lib/sys_ioctl.in.h: Likewise.
9664         * lib/sys_select.in.h: Likewise.
9665         * lib/sys_socket.in.h: Likewise.
9666         * lib/sys_stat.in.h: Likewise.
9667         * lib/sys_time.in.h: Likewise.
9668         * lib/sys_times.in.h: Likewise.
9669         * lib/sys_uio.in.h: Likewise.
9670         * lib/sys_utsname.in.h: Likewise.
9671         * lib/sys_wait.in.h: Likewise.
9672         * lib/sysexits.in.h: Likewise.
9673         * lib/termios.in.h: Likewise.
9674         * lib/time.in.h: Likewise.
9675         * lib/unistd.in.h: Likewise.
9676         * lib/wchar.in.h: Likewise.
9677         * lib/wctype.in.h: Likewise.
9678         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
9679         * modules/ctype (Makefile.am): Likewise.
9680         * modules/dirent (Makefile.am): Likewise.
9681         * modules/errno (Makefile.am): Likewise.
9682         * modules/fcntl-h (Makefile.am): Likewise.
9683         * modules/float (Makefile.am): Likewise.
9684         * modules/getopt-posix (Makefile.am): Likewise.
9685         * modules/iconv-h (Makefile.am): Likewise.
9686         * modules/langinfo (Makefile.am): Likewise.
9687         * modules/locale (Makefile.am): Likewise.
9688         * modules/math (Makefile.am): Likewise.
9689         * modules/netdb (Makefile.am): Likewise.
9690         * modules/netinet_in (Makefile.am): Likewise.
9691         * modules/poll-h (Makefile.am): Likewise.
9692         * modules/pthread (Makefile.am): Likewise.
9693         * modules/pty (Makefile.am): Likewise.
9694         * modules/sched (Makefile.am): Likewise.
9695         * modules/search (Makefile.am): Likewise.
9696         * modules/selinux-h (Makefile.am): Likewise.
9697         * modules/signal (Makefile.am): Likewise.
9698         * modules/spawn (Makefile.am): Likewise.
9699         * modules/stdarg (Makefile.am): Likewise.
9700         * modules/stddef (Makefile.am): Likewise.
9701         * modules/stdint (Makefile.am): Likewise.
9702         * modules/stdio (Makefile.am): Likewise.
9703         * modules/stdlib (Makefile.am): Likewise.
9704         * modules/string (Makefile.am): Likewise.
9705         * modules/strings (Makefile.am): Likewise.
9706         * modules/sys_file (Makefile.am): Likewise.
9707         * modules/sys_ioctl (Makefile.am): Likewise.
9708         * modules/sys_select (Makefile.am): Likewise.
9709         * modules/sys_socket (Makefile.am): Likewise.
9710         * modules/sys_stat (Makefile.am): Likewise.
9711         * modules/sys_time (Makefile.am): Likewise.
9712         * modules/sys_times (Makefile.am): Likewise.
9713         * modules/sys_uio (Makefile.am): Likewise.
9714         * modules/sys_utsname (Makefile.am): Likewise.
9715         * modules/sys_wait (Makefile.am): Likewise.
9716         * modules/sysexits (Makefile.am): Likewise.
9717         * modules/termios (Makefile.am): Likewise.
9718         * modules/time (Makefile.am): Likewise.
9719         * modules/unistd (Makefile.am): Likewise.
9720         * modules/wchar (Makefile.am): Likewise.
9721         * modules/wctype-h (Makefile.am): Likewise.
9722         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
9723
9724 2011-05-29  Bruno Haible  <bruno@clisp.org>
9725
9726         assert-h: Allow multiple gnulib generated replacements to coexist.
9727         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
9728
9729 2011-05-29  Bruno Haible  <bruno@clisp.org>
9730
9731         argp: Allow coexistence with strerror_r-posix module.
9732         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
9733         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
9734         by gnulib's <string.h> replacement), assume it has the POSIX signature,
9735         not the glibc signature.
9736
9737 2011-05-28  Bruno Haible  <bruno@clisp.org>
9738
9739         gnulib-tool: Alternative structure of testdirs, similar to --import.
9740         * gnulib-tool: New option --single-configure.
9741         (func_usage): Document it.
9742         (single_configure): New variable.
9743         (func_modules_transitive_closure_separately,
9744         func_modules_transitive_closure_separately,
9745         func_determine_use_libtests, func_modules_add_dummy_separately,
9746         func_modules_to_filelist_separately): New functions, extracted from
9747         func_import.
9748         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
9749         (func_import): Use the new functions.
9750         (func_create_testdir): Set final_modules. Handle $single_configure =
9751         true case.
9752
9753 2011-05-28  Bruno Haible  <bruno@clisp.org>
9754
9755         getloadavg: Remove an unreliable safety check.
9756         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
9757         getloadavg.c is in place.
9758         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
9759         Reported by Sam Steingold <sds@gnu.org>.
9760
9761 2011-05-28  Bruno Haible  <bruno@clisp.org>
9762
9763         doc: Cleanup yet another file produced by texinfo.tex.
9764         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
9765
9766 2011-05-28  Bruno Haible  <bruno@clisp.org>
9767
9768         Finish the conditional dependencies mechanism.
9769         * gnulib-tool: New option --no-conditional-dependencies.
9770         (func_usage): Document it. Don't mark --conditional-dependencies as
9771         experimental.
9772         (cond_dependencies): The possible values can now be true, false, empty.
9773         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
9774         (func_import): Store setting in gnulib-cache.m4 and read it from there.
9775         * doc/gnulib-tool.texi (Conditional dependencies): New section.
9776
9777 2011-05-28  Bruno Haible  <bruno@clisp.org>
9778
9779         doc: Use a recent texinfo.tex.
9780         * doc/Makefile (tex_opts): New variable.
9781         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
9782
9783 2011-05-28  Jim Meyering  <meyering@redhat.com>
9784
9785         intprops.h: adjust comment to match code change
9786         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
9787         only once, it *may* have side effects.  Also fix an unrelated typo.
9788         (_GL_INT_SIGNED): Likewise.
9789
9790 2011-05-26  Simon Josefsson  <simon@josefsson.org>
9791
9792         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
9793
9794 2011-05-26  Bruno Haible  <bruno@clisp.org>
9795
9796         mbsrchr: Avoid collision with system function on Interix.
9797         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
9798         Reported by Markus Duft <mduft@gentoo.org>.
9799
9800 2011-05-15  James Youngman  <jay@gnu.org>
9801
9802         getopt: for ambiguous options, enumerate the possibilities.
9803         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
9804         the ambiguous options when an ambiguous prefix is given. This was
9805         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
9806         glibc change was
9807         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
9808
9809 2011-05-25  Eric Blake  <eblake@redhat.com>
9810
9811         getcwd: work around mingw bug
9812         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
9813         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9814         Reported by Matthias Bolte.
9815
9816 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         test-intprops: disable -Wtype-limits diagnostics
9819         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
9820         diagnostics.  Otherwise, the integer overflow macros generate many
9821         diagnostics.  Reported by Jim Meyering in
9822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9823
9824         intprops: shorten, to pacify gcc -Woverlength-strings
9825         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
9826         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
9827         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
9828         likely to run afoul of C compiler limits for string constant lengths.
9829         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
9830
9831 2011-05-24  Eric Blake  <eblake@redhat.com>
9832
9833         docs: document recently fixed glibc printf bug
9834         * doc/posix-functions/fprintf.texi (fprintf): Document it.
9835         * doc/posix-functions/printf.texi (printf): Likewise.
9836         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9837         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9838
9839         closein-tests: convert to init.sh
9840         * modules/closein-tests (Files): Add init.sh
9841         * tests/test-closein.sh Use it.
9842
9843         yesno-tests: convert to init.sh
9844         * modules/yesno-tests (Files): Add init.sh.
9845         * tests/test-yesno.sh: Use it.
9846
9847         atexit-tests: ensure reliable exit status
9848         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
9849         Reported by Bruno Haible.
9850
9851 2011-05-24  Bruno Haible  <bruno@clisp.org>
9852
9853         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
9854         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
9855         gl_PREREQ_STRERROR_R invocations from here...
9856         * modules/strerror_r-posix (configure.ac): ... to here.
9857
9858 2011-05-24  Eric Blake  <eblake@redhat.com>
9859
9860         strerror_r: fix missing header
9861         * lib/strerror_r.c: Avoid compiler warning about snprintf.
9862
9863         strerror_r: fix AIX test failures
9864         * lib/strerror_r.c (strerror_r): Convert silent truncation to
9865         ERANGE failure.
9866
9867         strerror_r: fix Solaris test failures
9868         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
9869         failures.
9870         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9871
9872         strerror_r: enforce POSIX recommendations
9873         * lib/strerror_r.c (safe_copy): New helper method.
9874         (strerror_r): Guarantee a non-empty string.
9875         * tests/test-strerror_r.c (main): Enhance tests to incorporate
9876         recent POSIX rulings and to match our strerror guarantees.
9877         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
9878
9879 2011-05-24  Jim Meyering  <meyering@redhat.com>
9880
9881         test-perror2.c: avoid warning about unused variable
9882         * tests/test-perror2.c (main): Remove declaration of unused "fp".
9883
9884 2011-05-24  Eric Blake  <eblake@redhat.com>
9885
9886         perror: avoid spurious test failure on HP-UX
9887         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
9888
9889         tests: fix logic bug in init.sh
9890         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
9891         shell.
9892
9893 2011-05-24  Jim Meyering  <meyering@redhat.com>
9894
9895         utimensat: do not reference an out-of-scope buffer
9896         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
9897         declared in an inner scope, yet "times" would be dereferenced outside
9898         the scope in which "ts" was valid.
9899         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
9900         of ts[2] "out/up", so that the use of aliased "times" (via
9901         "times = ts;") does not end up referencing an out-of-scope "ts"
9902
9903         opendir-safer.c: don't clobber errno; don't close negative FD
9904         * lib/opendir-safer.c (opendir_safer):
9905         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
9906         file descriptor, and more importantly, don't clobber the
9907         offending errno value with EINVAL.  Before, upon failure
9908         of dup_safer, we would pass the negative file descriptor to
9909         fdopendir, which would clobber errno.
9910
9911 2011-05-23  Bruno Haible  <bruno@clisp.org>
9912
9913         idcache: Fix module description.
9914         * modules/idcache (Include): Set to "idcache.h".
9915
9916 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
9917
9918         gnulib-tool: fix portability problem with MacOS sed
9919         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
9920         before the "}".  Problem reported by Leo in
9921         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
9922         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
9923         sed_extract_condition1, sed_extract_condition2.
9924
9925 2011-05-23  Bruno Haible  <bruno@clisp.org>
9926
9927         hash: Simplify autoconf macro.
9928         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
9929
9930 2011-05-23  Bruno Haible  <bruno@clisp.org>
9931
9932         getugroups: Fix module description.
9933         * modules/getugroups (Include): Set to "getugroups.h".
9934
9935 2011-05-23  Bruno Haible  <bruno@clisp.org>
9936
9937         linkat: Simplify autoconf macro.
9938         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
9939
9940 2011-05-23  Bruno Haible  <bruno@clisp.org>
9941             Eric Blake  <eblake@redhat.com>
9942
9943         linkat, renameat: Update dependencies.
9944         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
9945         * modules/linkat (Depends-on): Likewise. Remove also readlink,
9946         symlinkat.
9947
9948 2011-05-23  Jim Meyering  <meyering@redhat.com>
9949
9950         maint.mk: more tight_scope improvements
9951         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
9952         (_gl_TS_headers): Define only in if-0'd block.
9953         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
9954         sometimes we must *not* use it.  Adjust uses accordingly.
9955         (sc_tight_scope): Use much simpler grep-based test to determine
9956         whether we skip this rule.
9957
9958         maint.mk: generalize/improve the tight-scope rule
9959         * top/maint.mk: Emit a warning when the test is skipped.
9960         (_gl_TS_dir): Add $(srcdir)/ prefix.
9961         (_gl_TS_function_match): Simplify, rather than trying
9962         to enumerate common types.  Otherwise, it would fail to match an
9963         "extern unsigned char const *" declaration in idutils.
9964         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
9965         a way to support use of that type of macro.
9966         (_gl_TS_var_match): Simplify regexp.
9967         (_gl_TS_obj_files): New configurable variable.
9968         (_gl_TS_headers): Likewise.
9969
9970 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
9971
9972         verify: fix bug when gnulib <assert.h> is also included
9973         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
9974         is defined, not if _GL_STATIC_ASSERT_H is not defined.
9975         Perhaps there's a better way, but this fixes the immediate problem.
9976         Problem reported by Bruno Haible in
9977         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
9978
9979 2011-05-22  Bruno Haible  <bruno@clisp.org>
9980
9981         xgetcwd: Simplify autoconf macro.
9982         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
9983
9984 2011-05-22  Bruno Haible  <bruno@clisp.org>
9985
9986         New module 'mktime-internal'.
9987         * modules/mktime-internal: New file.
9988         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
9989         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
9990         mktime_internal as a C macro if libc has __mktime_internal.
9991         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
9992         conditions.
9993         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
9994
9995 2011-05-22  Bruno Haible  <bruno@clisp.org>
9996
9997         timegm: Correct mktime replacement statements.
9998         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
9999         defining mktime as a C macro. This completes a 2009-07-28 commit.
10000
10001 2011-05-22  Bruno Haible  <bruno@clisp.org>
10002
10003         timegm: Simplify autoconf macro.
10004         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10005
10006 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         clock-time: change to LGPLv2+.
10009         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10010         BSD-like but we have no mark for that; this is good enough for now.
10011
10012 2011-05-21  Bruno Haible  <bruno@clisp.org>
10013
10014         strerror_r: Fix comments.
10015         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10016
10017 2011-05-21  Bruno Haible  <bruno@clisp.org>
10018
10019         relocatable-prog-wrapper: Fix possible link error.
10020         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10021         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10022         (gl_FUNC_SETENV): ... to here.
10023         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10024         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10025
10026 2011-05-21  Bruno Haible  <bruno@clisp.org>
10027
10028         relocatable-prog-wrapper: Assume strerror() exists.
10029         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10030         m4/strerror.m4.
10031         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10032         * lib/relocwrapper.c: Remove mention of strerror module.
10033         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10034         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10035         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10036         C macro.
10037
10038 2011-05-21  Bruno Haible  <bruno@clisp.org>
10039
10040         select: Simplify replacement idiom.
10041         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10042         Win32 platforms.
10043         * lib/sys_select.in.h (select): Simplify accordingly.
10044         * modules/select (Depends-on): Likewise.
10045
10046 2011-05-21  Bruno Haible  <bruno@clisp.org>
10047
10048         mkdir-p: Simplify autoconf macro.
10049         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10050         gl_FUNC_LCHOWN.
10051
10052 2011-05-21  Eric Blake  <eblake@redhat.com>
10053
10054         strerror_r: avoid clobbering strerror on cygwin
10055         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10056         fall back instead to sys_errlist.
10057         * modules/strerror (configure.ac): Add witness.
10058         * tests/test-strerror_r.c (main): Enhance test.
10059         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10060         * tests/test-perror2.c (main): Free memory before exit.
10061
10062 2011-05-21  Bruno Haible  <bruno@clisp.org>
10063
10064         mkdtemp: Use gnulib naming conventions.
10065         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10066         * modules/mkdtemp (configure.ac): Update.
10067
10068 2011-05-20  Eric Blake  <eblake@redhat.com>
10069
10070         strerror_r: avoid corrupting errno on Solaris
10071         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10072         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10073
10074         strerror_r: avoid compiler warning
10075         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10076
10077         strerror_r: simplify AIX code
10078         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10079
10080         test-perror: avoid spurious failure on FreeBSD
10081         * modules/perror-tests (Depends-on): Add strerror, now that
10082         strerror_r no longer pulls it in.
10083
10084 2011-05-20  Bruno Haible  <bruno@clisp.org>
10085
10086         strerror_r-posix: Remove unused dependencies.
10087         * modules/strerror_r-posix (Depends-on): Remove strerror.
10088         Reported by Eric Blake.
10089
10090 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10091
10092         intprops: remove assumption about A|B representation
10093         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10094         is a valid integer if both A and B are.  Although this is true for
10095         all known practical hosts, the C standard doesn't guarantee it,
10096         and the code need not assume it.  Also, this change may work around
10097         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10099
10100 2011-05-20  Eric Blake  <eblake@redhat.com>
10101
10102         perror: work around FreeBSD bug
10103         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10104         is broken.  Move AC_LIBOBJ...
10105         * modules/perror (configure.ac): Here.
10106         * doc/posix-functions/perror.texi (perror): Document this.
10107         * tests/test-perror2.c (main): Enhance test.
10108
10109         test-perror: check for strerror interactions
10110         * tests/macros.h (STREQ): Add macro.
10111         * modules/perror-tests (Files): Add second test.
10112         * tests/test-perror2.c (main): New file.
10113         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10114
10115         test-perror: rewrite to use init script
10116         * modules/perror-tests (Files): Add init.sh.
10117         * tests/test-perror.sh: Use temporary directory.
10118
10119 2011-05-20  Jim Meyering  <meyering@redhat.com>
10120
10121         maint: replace misused "a" with "an"
10122         * doc/intprops.texi: "a integer"
10123         * doc/regex.texi: "a explanation"
10124         * lib/alignof.h: "a object"
10125         * lib/argmatch.h: "a explanation"
10126         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10127         * lib/stdint.in.h: "a integer"
10128         * lib/userspec.c: "a owner"
10129         * doc/gnulib.texi: Fix "a idea", and reword.
10130
10131 2011-05-19  Jim Meyering  <meyering@redhat.com>
10132
10133         maint: correct misuse of "a" and "an"
10134         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10135         * lib/argp-help.c: "an docum...": s/an/a/
10136         * lib/argp-parse.c: "An vector": s/An/A/
10137         * lib/execute.c: "an native": s/an/a/
10138         * lib/spawn-pipe.c: Likewise.
10139         * lib/gc.h: "an Gc_rc": s/an/a/
10140         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10141         * lib/fts.c: "an stat.st_dev": s/an/a/
10142
10143 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         intprops-tests: work around HP-UX 11.23 cc bug with constants
10146         * tests/test-intprops.c (VERIFY): New macro.
10147         (main): Use it, instead of verify, to work around the compiler bug; see
10148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10149
10150         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10151         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10152         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10153         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10154         (_GL_REMAINDER_OVERFLOW): Use it.
10155
10156         intprops-tests: revert unsigned part of previous change
10157         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10158         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10159         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10161
10162 2011-05-19  Bruno Haible  <bruno@clisp.org>
10163
10164         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10165         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10166         strerror_r() returned without filling the buffer.
10167         Reported by Eric Blake.
10168
10169 2011-05-19  Eric Blake  <eblake@redhat.com>
10170
10171         strerror_r: guarantee unchanged errno
10172         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10173         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10174         failure.
10175         * tests/test-strerror_r.c (main): Enhance test.
10176
10177 2011-05-19  Bruno Haible  <bruno@clisp.org>
10178
10179         strerror_r: Reorder #if blocks.
10180         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10181         for consistency with the previous commit.
10182
10183 2011-05-19  Bruno Haible  <bruno@clisp.org>
10184
10185         perror: Avoid clobbering the strerror buffer when possible.
10186         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10187         * lib/strerror.c: Include it.
10188         * modules/strerror (Files): Add lib/strerror-impl.h.
10189         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10190         (my_strerror): New function, defined through lib/strerror-impl.h.
10191         (perror): Use it instead of strerror.
10192         * modules/perror (Files): Add lib/strerror-impl.h.
10193         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10194
10195 2011-05-19  Eric Blake  <eblake@redhat.com>
10196
10197         strerror_r: fix on newer cygwin
10198         * lib/strerror_r.c (strerror_r): Cygwin now has
10199         __xpg_strerror_r, use it.
10200
10201 2011-05-19  Bruno Haible  <bruno@clisp.org>
10202
10203         strerror_r: Avoid clobbering the strerror buffer when possible.
10204         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10205         (sys_nerr, sys_errlist): New declarations.
10206         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10207         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10208         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10209
10210 2011-05-19  Bruno Haible  <bruno@clisp.org>
10211
10212         strerror_r: Fix test failure on mingw.
10213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10214         EXTEND_STRERROR_R.
10215         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10216         macros from errno.in.h instead.
10217
10218 2011-05-19  Eric Blake  <eblake@redhat.com>
10219
10220         strerror: relax test for Solaris
10221         * tests/test-strerror.c (main): Permit Solaris behavior.
10222         * tests/test-strerror_r.c (main): Likewise.
10223
10224         strerror: enforce POSIX ruling on strerror(0)
10225         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10226         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10227         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10228         * doc/posix-functions/strerror.texi (strerror): Document it.
10229         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10230         * tests/test-strerror.c (main): Strengthen test.
10231         * tests/test-strerror_r.c (main): Likewise.
10232
10233 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10234
10235         intprop-tests: port to older and more-pedantic compilers
10236         * modules/intprops-tests (Files): Add tests/macros.h.
10237         * tests/test-intprops.c: Include macros.h.
10238         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10239         it's no longer documented to expand to an integer constant expression.
10240         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10241         argument is floating point, as it's no longer documented to expand
10242         to an integer constant expression in that case.
10243         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10244         compiler bugs reported by Bruno Haible.  See
10245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10246         (U0, U1): New constants, to work around the same bugs.  Also,
10247         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10248
10249         intprops: work around C compiler bugs
10250         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10251         bug in Sun C 5.11 2010/08/13 and other compilers; see
10252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10253
10254         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10255         * doc/intprops.texi (Integer Type Determination): Fix
10256         documentation for TYPE_IS_INTEGER: it returns an constant
10257         expression, not an integer constant expression.  Fix doc for
10258         TYPE_SIGNED: it returns an integer constant expression only if its
10259         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10260         hardly worth documented that way....)
10261
10262 2011-05-18  Bruno Haible  <bruno@clisp.org>
10263
10264         strerror_r: Avoid clobbering the strerror buffer when possible.
10265         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10266         Handle gnulib defined errno values here. When strerror() returns NULL
10267         or an empty string, return EINVAL.
10268         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10269         gnulib defined errno values here.
10270         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10271
10272 2011-05-18  Eric Blake  <eblake@redhat.com>
10273
10274         fnmatch: avoid compiler warning
10275         * lib/fnmatch_loop.c (FCT): Use correct type.
10276         Reported by Matthias Bolte.
10277
10278 2011-05-13  Jim Meyering  <meyering@redhat.com>
10279
10280         maint.mk: three new prohibit_<HDR>_without_use rules
10281         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10282         (sc_prohibit_stdio-safer_without_use): Likewise.
10283         (sc_prohibit_xfreopen_without_use): Likewise.
10284
10285 2011-05-17  Jim Meyering  <meyering@redhat.com>
10286
10287         announce-gen: fail if the NEWS delta is empty
10288         If there's nothing noteworthy in NEWS, then either you forgot
10289         or you shouldn't be releasing.
10290         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10291
10292 2011-05-17  Pádraig Brady <P@draigBrady.com>
10293
10294         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10295         reserved symbols starting with double underscore from the check.
10296
10297 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10298
10299         intprops: add doc
10300         * doc/intprops.texi: New file, documenting intprops.
10301         * doc/gnulib.texi (Particular Modules): Include it.
10302
10303         verify: add doc to gnulib manual and fix example
10304         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10305         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10306         (Compile-time Assertions): Fix example so it can't overflow.
10307
10308 2011-05-17  Jim Meyering  <meyering@redhat.com>
10309
10310         warnings.m4: don't usurp save_CPPFLAGS variable name
10311         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10312
10313         doc: fix typo
10314         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10315
10316 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10317             Bruno Haible  <bruno@clisp.org>
10318
10319         doc: Tweak recent change.
10320         * README (Portability guidelines): Tweak new text.
10321         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10322         Interix 6.1.
10323
10324 2011-05-16  Eric Blake  <eblake@redhat.com>
10325
10326         inttypes: avoid autoconf warning
10327         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10328         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10329
10330 2011-05-16  Sam Steingold <sds@gnu.org>
10331         and Eric Blake  <eblake@redhat.com>
10332
10333         vc-list-files: accept multiple directory operands
10334         * build-aux/vc-list-files: Iterate over all remaining operands.
10335
10336 2011-05-16  Bruno Haible  <bruno@clisp.org>
10337
10338         Fix confusion regarding deprecated modules.
10339         * modules/calloc (Status, Notice): Mark module as deprecated, not
10340         obsolete.
10341         * modules/fnmatch-posix (Status, Notice): Likewise.
10342         * modules/getdate (Status, Notice): Likewise.
10343         * modules/getopt (Status, Notice): Likewise.
10344         * modules/malloc (Status, Notice): Likewise.
10345         * modules/pipe (Status, Notice): Likewise.
10346         * modules/realloc (Status, Notice): Likewise.
10347         * modules/rename-dest-slash (Status, Notice): Likewise.
10348         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10349         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10350         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10351         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10352         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10353
10354 2011-05-16  Bruno Haible  <bruno@clisp.org>
10355
10356         doc: List the target platforms.
10357         * doc/gnulib-intro.texi (Target Platforms): New section.
10358         * doc/gnulib.texi (Introduction): Update menu.
10359         * README (Portability guidelines): Refer to the new section. Update
10360         statement about oldest supported environment. Remove rationale why
10361         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10362         unportable C89 function.
10363         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10364         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10365
10366 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10367
10368         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10369
10370 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10371
10372         intprops-tests: new module
10373         * modules/intprops-tests, tests/test-intprops.c: New files.
10374
10375         intprops: add safe, portable integer overflow checking
10376         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10377         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10378         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10379         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10380         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10381         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10382         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10383         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10384         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10385         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10386         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10387
10388 2011-05-12  James Youngman  <jay@gnu.org>
10389
10390         Add a test for glibc's Bugzilla bug #12378.
10391         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10392         doesn't allow the literal matching of a lone "[" (which is
10393         required by POSIX).
10394         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10395
10396 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10397
10398         Sync glibc change fixing Bugzilla bug #12378.
10399         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10400         beginning and fall back to matching as normal character if the
10401         string ends before the matching ']' is found.  This is what POSIX
10402         requires.
10403
10404 2011-05-13  Eric Blake  <eblake@redhat.com>
10405
10406         getcwd-lgpl: relax test for FreeBSD
10407         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10408         issue.
10409         * tests/test-getcwd-lgpl.c (main): Relax test.
10410         Reported by Matthias Bolte.
10411
10412 2011-05-11  Eric Blake  <eblake@redhat.com>
10413
10414         test-fflush: silence compiler warning
10415         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10416
10417 2011-05-11  Bruno Haible  <bruno@clisp.org>
10418
10419         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10420         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10421         * modules/canonicalize (Depends-on): Add 'nocrash'.
10422         * modules/canonicalize-lgpl (Depends-on): Likewise.
10423         * doc/posix-functions/realpath.texi: Update platforms list.
10424         Reported by Ryan Schmidt <ryandesign@macports.org>.
10425
10426 2011-05-11  Bruno Haible  <bruno@clisp.org>
10427
10428         group-member: Declare function in <unistd.h>.
10429         * lib/unistd.in.h (group_member): New declaration.
10430         * lib/group-member.h: Remove file.
10431         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10432         * tests/test-unistd-c++.cc: Check signature of group_member.
10433         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10434         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10435         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10436         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10437         HAVE_GROUP_MEMBER.
10438         * modules/group-member (Files): Remove lib/group-member.h.
10439         (Depends-on): Add unistd. Specify conditions.
10440         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10441         (Include): Change to <unistd.h>.
10442         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10443         HAVE_GROUP_MEMBER.
10444         * NEWS: Mention the change.
10445         * lib/euidaccess.c: Don't include group-member.h.
10446
10447 2011-05-11  Bruno Haible  <bruno@clisp.org>
10448
10449         group-member: Document module.
10450         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
10451         module.
10452
10453 2011-05-11  Bruno Haible  <bruno@clisp.org>
10454
10455         fclose: Fix mistake earlier today.
10456         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
10457
10458 2011-05-11  Eric Blake  <eblake@redhat.com>
10459
10460         fclose: preserve fflush errors
10461         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
10462         Reported by Jim Meyering.
10463
10464         bootstrap: support a prereq of 'rpcgen -' on RHEL5
10465         * build-aux/bootstrap (check_versions): When no specific version
10466         is required, merely check that the app produces an exit status
10467         that indicates its existence.
10468
10469         maint.mk: drop redundant check
10470         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
10471         the same but better.
10472
10473 2011-05-11  Bruno Haible  <bruno@clisp.org>
10474
10475         fclose: Fix possible link error.
10476         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
10477         unregister_shadow_fd. Improve comments.
10478         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
10479         Eric Blake.
10480
10481 2011-05-11  Jim Meyering  <meyering@redhat.com>
10482
10483         maint.mk: improve "can not" detection and generalize rule name
10484         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
10485         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
10486         Use the same technique as in sc_prohibit_doubled_word, so that
10487         we recognize "can not" also when the words are separated by a newline.
10488         Suggested by Eric Blake.
10489         (perl_filename_lineno_text_): Define.  Factored out of...
10490         (prohibit_doubled_word_): ...here.  Use the new definition.
10491         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
10492         (prohibit_undesirable_word_seq_RE_): New overridable variable.
10493         (ignore_undesirable_word_sequence_RE_): New overridable variable.
10494
10495 2011-05-10  Eric Blake  <eblake@redhat.com>
10496
10497         fclose: avoid double close race when possible
10498         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
10499         all but WINDOWS_SOCKETS.
10500
10501 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
10502
10503         openat: correct new comment
10504         * lib/openat-proc.c (openat_proc_name): Correct the comment.
10505
10506 2011-05-10  Jim Meyering  <meyering@redhat.com>
10507
10508         openat: add comments
10509         * lib/openat-proc.c (openat_proc_name): Add comments,
10510         mostly from Eric Blake.
10511
10512 2011-05-09  Eric Blake  <eblake@redhat.com>
10513
10514         openat: reduce syscalls in first probe of /proc
10515         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
10516         be a directory.  Simplify the probe for .. bugs.
10517         * modules/openat (Depends-on): Drop same-inode.
10518         Reported by Bastien ROUCARIES.
10519
10520 2011-05-09  Jim Meyering  <meyering@redhat.com>
10521
10522         maint.mk: change semantics/name of tight_scope variables
10523         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
10524         Rename variables to align with semantics that make them more useful.
10525
10526         maint.mk: tweak new rule's name not to impinge
10527         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
10528         (sc_tight_scope): Use new rule name rather than $@-0.
10529
10530         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
10531         * top/maint.mk (sc_tight_scope): New rule.
10532         (sc_tight_scope-0): New rule, ifdef'd out.
10533         (_gl_TS_dir): Default.
10534         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
10535         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
10536
10537 2011-05-09  Simon Josefsson  <simon@josefsson.org>
10538
10539         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
10540         Haible <bruno@clisp.org>.
10541
10542 2011-05-08  Bruno Haible  <bruno@clisp.org>
10543
10544         Comments.
10545         * m4/isnanf.m4: Add comment.
10546         * m4/isnanl.m4: Likewise.
10547
10548 2011-05-08  Bruno Haible  <bruno@clisp.org>
10549
10550         glob: Remove obsolete macro.
10551         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
10552
10553 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10554
10555         intprops: Sun C 5.11 supports __typeof__
10556         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
10557         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
10558         which is new.
10559         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
10560
10561         intprops: switch to usual gnulib indenting and naming
10562         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
10563         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
10564
10565         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
10566
10567 2011-05-08  Jim Meyering  <meyering@redhat.com>
10568
10569         maint.mk: suppress "Entering/Leaving directory" diag in announcement
10570         * top/maint.mk (release-prep): Use make's --no-print-directory
10571         option when generating the announcement.  This eliminates the
10572         pesky "make[2]: Entering/Leaving directory" diagnostics in the
10573         generated announcement template.
10574
10575 2011-05-08  Bruno Haible  <bruno@clisp.org>
10576
10577         tzset: Fix gettimeofday wrapper on Solaris 2.6.
10578         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
10579         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
10580
10581 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         ignore-value, verify: Omit include files from lib_SOURCES.
10584         * modules/ignore-value, modules/verify (Makefile.am):
10585         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
10586         that leads Automake to duplicate use of am__objects_... variables
10587         in Makefile.in.  See
10588         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
10589
10590 2011-05-07  Bruno Haible  <bruno@clisp.org>
10591
10592         fclose: Simplify autoconf macro.
10593         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
10594         defined.
10595
10596 2011-05-07  Bruno Haible  <bruno@clisp.org>
10597
10598         canonicalize-lgpl: Fix autoconf macro ordering bug.
10599         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
10600         gl_STDLIB_H_DEFAULTS.
10601
10602 2011-05-06  Eric Blake  <eblake@redhat.com>
10603
10604         maintainer-makefile: make sc_po_check easier to tune
10605         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
10606         to probe for strings, such as an alternate location for gnulib.
10607
10608         fclose: guarantee behavior on seekable stdin
10609         * modules/fclose (Depends-on): Add fflush.
10610         * doc/posix-functions/fclose.texi (fclose): Document this.
10611         * tests/test-fclose.c (main): Make test for this unconditional.
10612
10613 2011-05-06  Bruno Haible  <bruno@clisp.org>
10614
10615         fflush, fpurge: Relicense under LGPLv2+.
10616         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
10617         * modules/fpurge (License): Likewise.
10618         With permission from Eric Blake and Jim Meyering.
10619         Suggested by Eric Blake.
10620
10621 2011-05-06  Karl Berry  <karl@gnu.org>
10622
10623         * MODULES.html.sh (func_all_modules): remove exit.
10624
10625 2011-05-06  Jim Meyering  <meyering@redhat.com>
10626
10627         maint.mk: use info-gnu@ as the default only for a stable release
10628         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
10629         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
10630         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
10631         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
10632
10633 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
10634
10635         assert-h: new module, which supports C1X-style static_assert
10636         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
10637         * lib/verify.h: Revamp so that this can be copied into assert.h,
10638         while retaining the ability to use it standalone as before.
10639         Rename private identifiers so as not to encroach on the
10640         standard C namespace, since this is now used by assert.h.
10641         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
10642         the old verify_true.
10643         (_GL_VERIFY_TRUE): New macro, with much of the contents of
10644         the old verify_true.  Use _GL_VERIFY_TYPE.
10645         (_GL_VERIFY): New macro, with much of the contents of the old verify.
10646         (static_assert): New macro, if _GL_STATIC_ASSERT_H
10647         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
10648         defined when this file is copied into the replacement assert.h.
10649         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
10650         and _Static_assert is not built in.
10651         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
10652         defined, and use the new macros mentioned above.
10653         * doc/posix-headers/assert.texi: Document this.
10654
10655 2011-05-05  Bruno Haible  <bruno@clisp.org>
10656
10657         fclose, fflush: Respect rules for use of AC_LIBOBJ.
10658         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
10659         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
10660         gl_REPLACE_FCLOSE here.
10661         * modules/fflush (Depends-on): Remove fclose.
10662         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
10663         combination with module 'fclose'.
10664
10665 2011-05-05  Bruno Haible  <bruno@clisp.org>
10666
10667         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
10668         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
10669         gl_FUNC_FFLUSH.
10670         (gl_FUNC_FFLUSH): Use it.
10671         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
10672         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
10673         gl_REPLACE_FSEEKO here.
10674
10675 2011-05-05  Bruno Haible  <bruno@clisp.org>
10676
10677         tzset: Relicense under LGPL.
10678         * modules/tzset (License): Change to LGPL.
10679         No agreement needed; it's a no-op.
10680
10681         strtoimax, strtoumax: Relicense under LGPL.
10682         * modules/strtoimax (License): Change to LGPL.
10683         * modules/strtoumax (License): Likewise.
10684         With permission from Jim Meyering, Paul Eggert:
10685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
10686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
10687
10688         getgroups: Relicense under LGPL.
10689         * modules/getgroups (License): Change to LGPL.
10690         With permission from Jim Meyering, Paul Eggert, Eric Blake:
10691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
10692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
10693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10694
10695         nanosleep: Relicense under LGPL.
10696         * modules/nanosleep (License): Change to LGPL.
10697         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
10698         Haible:
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         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10703
10704         futimens: Relicense under LGPL.
10705         * modules/futimens (License): Change to LGPL.
10706         With permission from Eric Blake:
10707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10708
10709         fflush: Relicense under LGPL.
10710         * modules/fflush (License): Change to LGPL.
10711         With permission from Eric Blake, Bruno Haible, Jim Meyering:
10712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
10713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
10714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
10715
10716         tmpfile: Relicense under LGPL.
10717         * modules/tmpfile (License): Change to LGPL.
10718         With permission from Ben Pfaff:
10719         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10720
10721         isfinite: Relicense under LGPL.
10722         * modules/isfinite (License): Change to LGPL.
10723         With permission from Ben Pfaff, Bruno Haible:
10724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
10725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
10726
10727         acosl..tanl: Relicense under LGPL.
10728         * modules/acosl (License): Change to LGPL.
10729         * modules/asinl (License): Likewise.
10730         * modules/atanl (License): Likewise.
10731         * modules/cosl (License): Likewise.
10732         * modules/expl (License): Likewise.
10733         * modules/logl (License): Likewise.
10734         * modules/sinl (License): Likewise.
10735         * modules/sqrtl (License): Likewise.
10736         * modules/tanl (License): Likewise.
10737         Source code originally from glibc and Paolo Bonzini. Agreements:
10738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
10739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
10740
10741 2011-05-05  Bruno Haible  <bruno@clisp.org>
10742
10743         signal: Define sighandler_t.
10744         * lib/signal.in.h (sighandler_t): New type.
10745         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
10746         whether sighandler_t is defined.
10747         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
10748         * modules/signal (Depends-on): Add extensions.
10749         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
10750         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
10751         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
10752
10753 2011-05-05  Eric Blake  <eblake@redhat.com>
10754
10755         maint: remove useless REPLACE_*_H macros
10756         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
10757         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10758         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10759         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
10760         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10761         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10762         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
10763         * m4/btowc.m4: Update callers.
10764         * m4/dirfd.m4: Likewise.
10765         * m4/duplocale.m4: Likewise.
10766         * m4/fchdir.m4: Likewise.
10767         * m4/fdopendir.m4: Likewise.
10768         * m4/inet_ntop.m4: Likewise.
10769         * m4/inet_pton.m4: Likewise.
10770         * m4/ioctl.m4: Likewise.
10771         * m4/mbrlen.m4: Likewise.
10772         * m4/mbrtowc.m4: Likewise.
10773         * m4/mbsinit.m4: Likewise.
10774         * m4/mbsnrtowcs.m4: Likewise.
10775         * m4/mbsrtowcs.m4: Likewise.
10776         * m4/poll.m4: Likewise.
10777         * m4/setlocale.m4: Likewise.
10778         * m4/wcrtomb.m4: Likewise.
10779         * m4/wcsnrtombs.m4: Likewise.
10780         * m4/wcsrtombs.m4: Likewise.
10781         * m4/wctob.m4: Likewise.
10782         * m4/wcwidth.m4: Likewise.
10783         * modules/posix_spawn: Likewise.
10784         * modules/posix_spawn_file_actions_addclose: Likewise.
10785         * modules/posix_spawn_file_actions_adddup2: Likewise.
10786         * modules/posix_spawn_file_actions_addopen: Likewise.
10787         * modules/posix_spawn_file_actions_destroy: Likewise.
10788         * modules/posix_spawn_file_actions_init: Likewise.
10789         * modules/posix_spawnattr_destroy: Likewise.
10790         * modules/posix_spawnattr_getflags: Likewise.
10791         * modules/posix_spawnattr_getpgroup: Likewise.
10792         * modules/posix_spawnattr_getschedparam: Likewise.
10793         * modules/posix_spawnattr_getschedpolicy: Likewise.
10794         * modules/posix_spawnattr_getsigdefault: Likewise.
10795         * modules/posix_spawnattr_getsigmask: Likewise.
10796         * modules/posix_spawnattr_init: Likewise.
10797         * modules/posix_spawnattr_setflags: Likewise.
10798         * modules/posix_spawnattr_setpgroup: Likewise.
10799         * modules/posix_spawnattr_setschedparam: Likewise.
10800         * modules/posix_spawnattr_setschedpolicy: Likewise.
10801         * modules/posix_spawnattr_setsigdefault: Likewise.
10802         * modules/posix_spawnattr_setsigmask: Likewise.
10803         * modules/posix_spawnp: Likewise.
10804
10805 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
10806
10807         Add option to do-release-commit-and-tag to specify branch.
10808         * build-aux/do-release-commit-and-tag: Add --branch.
10809
10810 2011-05-03  Bruno Haible  <bruno@clisp.org>
10811
10812         Avoid unnecessary compilation units, through conditional dependencies.
10813         * modules/accept (Depends-on): Add conditions to the dependencies.
10814         * modules/acosl (Depends-on): Likewise.
10815         * modules/argz (Depends-on): Likewise.
10816         * modules/asinl (Depends-on): Likewise.
10817         * modules/atanl (Depends-on): Likewise.
10818         * modules/atoll (Depends-on): Likewise.
10819         * modules/bind (Depends-on): Likewise.
10820         * modules/btowc (Depends-on): Likewise.
10821         * modules/canonicalize-lgpl (Depends-on): Likewise.
10822         * modules/ceil (Depends-on): Likewise.
10823         * modules/ceilf (Depends-on): Likewise.
10824         * modules/ceill (Depends-on): Likewise.
10825         * modules/chdir-long (Depends-on): Likewise.
10826         * modules/chown (Depends-on): Likewise.
10827         * modules/close (Depends-on): Likewise.
10828         * modules/connect (Depends-on): Likewise.
10829         * modules/cosl (Depends-on): Likewise.
10830         * modules/dirfd (Depends-on): Likewise.
10831         * modules/dprintf (Depends-on): Likewise.
10832         * modules/dprintf-posix (Depends-on): Likewise.
10833         * modules/error (Depends-on): Likewise.
10834         * modules/euidaccess (Depends-on): Likewise.
10835         * modules/expl (Depends-on): Likewise.
10836         * modules/faccessat (Depends-on): Likewise.
10837         * modules/fchdir (Depends-on): Likewise.
10838         * modules/fclose (Depends-on): Likewise.
10839         * modules/fcntl (Depends-on): Likewise.
10840         * modules/fdopendir (Depends-on): Likewise.
10841         * modules/fflush (Depends-on): Likewise.
10842         * modules/floor (Depends-on): Likewise.
10843         * modules/floorf (Depends-on): Likewise.
10844         * modules/floorl (Depends-on): Likewise.
10845         * modules/fnmatch (Depends-on): Likewise.
10846         * modules/fopen (Depends-on): Likewise.
10847         * modules/fprintf-posix (Depends-on): Likewise.
10848         * modules/frexp (Depends-on): Likewise.
10849         * modules/frexp-nolibm (Depends-on): Likewise.
10850         * modules/frexpl (Depends-on): Likewise.
10851         * modules/frexpl-nolibm (Depends-on): Likewise.
10852         * modules/fseek (Depends-on): Likewise.
10853         * modules/fsusage (Depends-on): Likewise.
10854         * modules/ftell (Depends-on): Likewise.
10855         * modules/ftello (Depends-on): Likewise.
10856         * modules/futimens (Depends-on): Likewise.
10857         * modules/getcwd (Depends-on): Likewise.
10858         * modules/getcwd-lgpl (Depends-on): Likewise.
10859         * modules/getdelim (Depends-on): Likewise.
10860         * modules/getdomainname (Depends-on): Likewise.
10861         * modules/getgroups (Depends-on): Likewise.
10862         * modules/gethostname (Depends-on): Likewise.
10863         * modules/getline (Depends-on): Likewise.
10864         * modules/getlogin_r (Depends-on): Likewise.
10865         * modules/getopt-posix (Depends-on): Likewise.
10866         * modules/getpeername (Depends-on): Likewise.
10867         * modules/getsockname (Depends-on): Likewise.
10868         * modules/getsockopt (Depends-on): Likewise.
10869         * modules/getsubopt (Depends-on): Likewise.
10870         * modules/getusershell (Depends-on): Likewise.
10871         * modules/glob (Depends-on): Likewise.
10872         * modules/grantpt (Depends-on): Likewise.
10873         * modules/iconv_open (Depends-on): Likewise.
10874         * modules/iconv_open-utf (Depends-on): Likewise.
10875         * modules/inet_ntop (Depends-on): Likewise.
10876         * modules/inet_pton (Depends-on): Likewise.
10877         * modules/ioctl (Depends-on): Likewise.
10878         * modules/isapipe (Depends-on): Likewise.
10879         * modules/isfinite (Depends-on): Likewise.
10880         * modules/isinf (Depends-on): Likewise.
10881         * modules/lchown (Depends-on): Likewise.
10882         * modules/ldexpl (Depends-on): Likewise.
10883         * modules/link (Depends-on): Likewise.
10884         * modules/linkat (Depends-on): Likewise.
10885         * modules/listen (Depends-on): Likewise.
10886         * modules/logl (Depends-on): Likewise.
10887         * modules/lstat (Depends-on): Likewise.
10888         * modules/mbrlen (Depends-on): Likewise.
10889         * modules/mbrtowc (Depends-on): Likewise.
10890         * modules/mbsinit (Depends-on): Likewise.
10891         * modules/mbsnrtowcs (Depends-on): Likewise.
10892         * modules/mbsrtowcs (Depends-on): Likewise.
10893         * modules/mbtowc (Depends-on): Likewise.
10894         * modules/memcmp (Depends-on): Likewise.
10895         * modules/mkdir (Depends-on): Likewise.
10896         * modules/mkdtemp (Depends-on): Likewise.
10897         * modules/mkfifo (Depends-on): Likewise.
10898         * modules/mkfifoat (Depends-on): Likewise.
10899         * modules/mknod (Depends-on): Likewise.
10900         * modules/mkostemp (Depends-on): Likewise.
10901         * modules/mkostemps (Depends-on): Likewise.
10902         * modules/mkstemp (Depends-on): Likewise.
10903         * modules/mkstemps (Depends-on): Likewise.
10904         * modules/mktime (Depends-on): Likewise.
10905         * modules/nanosleep (Depends-on): Likewise.
10906         * modules/open (Depends-on): Likewise.
10907         * modules/openat (Depends-on): Likewise.
10908         * modules/perror (Depends-on): Likewise.
10909         * modules/poll (Depends-on): Likewise.
10910         * modules/popen (Depends-on): Likewise.
10911         * modules/posix_spawn (Depends-on): Likewise.
10912         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
10913         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
10914         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10915         * modules/posix_spawnp (Depends-on): Likewise.
10916         * modules/pread (Depends-on): Likewise.
10917         * modules/printf-posix (Depends-on): Likewise.
10918         * modules/ptsname (Depends-on): Likewise.
10919         * modules/putenv (Depends-on): Likewise.
10920         * modules/pwrite (Depends-on): Likewise.
10921         * modules/readline (Depends-on): Likewise.
10922         * modules/readlink (Depends-on): Likewise.
10923         * modules/readlinkat (Depends-on): Likewise.
10924         * modules/recv (Depends-on): Likewise.
10925         * modules/recvfrom (Depends-on): Likewise.
10926         * modules/regex (Depends-on): Likewise.
10927         * modules/remove (Depends-on): Likewise.
10928         * modules/rename (Depends-on): Likewise.
10929         * modules/renameat (Depends-on): Likewise.
10930         * modules/rmdir (Depends-on): Likewise.
10931         * modules/round (Depends-on): Likewise.
10932         * modules/roundf (Depends-on): Likewise.
10933         * modules/roundl (Depends-on): Likewise.
10934         * modules/rpmatch (Depends-on): Likewise.
10935         * modules/select (Depends-on): Likewise.
10936         * modules/send (Depends-on): Likewise.
10937         * modules/sendto (Depends-on): Likewise.
10938         * modules/setenv (Depends-on): Likewise.
10939         * modules/setlocale (Depends-on): Likewise.
10940         * modules/setsockopt (Depends-on): Likewise.
10941         * modules/shutdown (Depends-on): Likewise.
10942         * modules/sigaction (Depends-on): Likewise.
10943         * modules/signbit (Depends-on): Likewise.
10944         * modules/sigprocmask (Depends-on): Likewise.
10945         * modules/sinl (Depends-on): Likewise.
10946         * modules/sleep (Depends-on): Likewise.
10947         * modules/snprintf (Depends-on): Likewise.
10948         * modules/snprintf-posix (Depends-on): Likewise.
10949         * modules/socket (Depends-on): Likewise.
10950         * modules/sprintf-posix (Depends-on): Likewise.
10951         * modules/sqrtl (Depends-on): Likewise.
10952         * modules/stat (Depends-on): Likewise.
10953         * modules/strchrnul (Depends-on): Likewise.
10954         * modules/strdup-posix (Depends-on): Likewise.
10955         * modules/strerror (Depends-on): Likewise.
10956         * modules/strerror_r-posix (Depends-on): Likewise.
10957         * modules/strndup (Depends-on): Likewise.
10958         * modules/strnlen (Depends-on): Likewise.
10959         * modules/strptime (Depends-on): Likewise.
10960         * modules/strsep (Depends-on): Likewise.
10961         * modules/strsignal (Depends-on): Likewise.
10962         * modules/strstr-simple (Depends-on): Likewise.
10963         * modules/strtod (Depends-on): Likewise.
10964         * modules/strtoimax (Depends-on): Likewise.
10965         * modules/strtok_r (Depends-on): Likewise.
10966         * modules/strtoumax (Depends-on): Likewise.
10967         * modules/symlink (Depends-on): Likewise.
10968         * modules/symlinkat (Depends-on): Likewise.
10969         * modules/tanl (Depends-on): Likewise.
10970         * modules/tcgetsid (Depends-on): Likewise.
10971         * modules/tmpfile (Depends-on): Likewise.
10972         * modules/trunc (Depends-on): Likewise.
10973         * modules/truncf (Depends-on): Likewise.
10974         * modules/truncl (Depends-on): Likewise.
10975         * modules/uname (Depends-on): Likewise.
10976         * modules/unlink (Depends-on): Likewise.
10977         * modules/unlockpt (Depends-on): Likewise.
10978         * modules/unsetenv (Depends-on): Likewise.
10979         * modules/usleep (Depends-on): Likewise.
10980         * modules/utimensat (Depends-on): Likewise.
10981         * modules/vasprintf (Depends-on): Likewise.
10982         * modules/vdprintf (Depends-on): Likewise.
10983         * modules/vdprintf-posix (Depends-on): Likewise.
10984         * modules/vfprintf-posix (Depends-on): Likewise.
10985         * modules/vprintf-posix (Depends-on): Likewise.
10986         * modules/vsnprintf (Depends-on): Likewise.
10987         * modules/vsnprintf-posix (Depends-on): Likewise.
10988         * modules/vsprintf-posix (Depends-on): Likewise.
10989         * modules/wcrtomb (Depends-on): Likewise.
10990         * modules/wcscasecmp (Depends-on): Likewise.
10991         * modules/wcscspn (Depends-on): Likewise.
10992         * modules/wcsdup (Depends-on): Likewise.
10993         * modules/wcsncasecmp (Depends-on): Likewise.
10994         * modules/wcsnrtombs (Depends-on): Likewise.
10995         * modules/wcspbrk (Depends-on): Likewise.
10996         * modules/wcsrtombs (Depends-on): Likewise.
10997         * modules/wcsspn (Depends-on): Likewise.
10998         * modules/wcsstr (Depends-on): Likewise.
10999         * modules/wcstok (Depends-on): Likewise.
11000         * modules/wcswidth (Depends-on): Likewise.
11001         * modules/wctob (Depends-on): Likewise.
11002         * modules/wctomb (Depends-on): Likewise.
11003         * modules/wctype (Depends-on): Likewise.
11004         * modules/wcwidth (Depends-on): Likewise.
11005         * modules/write (Depends-on): Likewise.
11006
11007 2011-05-03  Bruno Haible  <bruno@clisp.org>
11008
11009         Support for conditional dependencies.
11010         * doc/gnulib.texi (Module description): Document the syntax of
11011         conditional dependencies.
11012         * gnulib-tool: New option --conditional-dependencies.
11013         (func_usage): Document it.
11014         (cond_dependencies): New variable.
11015         (func_get_automake_snippet_conditional,
11016         func_get_automake_snippet_unconditional): New functions, extracted from
11017         func_get_automake_snippet.
11018         (func_get_automake_snippet): Use them.
11019         (sed_first_32_chars): New variable.
11020         (func_module_shellfunc_name): New function.
11021         (func_module_shellvar_name): New function.
11022         (func_module_conditional_name): New function.
11023         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11024         func_cond_module_condition): New functions.
11025         (func_modules_transitive_closure): Add support for conditional
11026         dependencies.
11027         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11028         conditional automake snippet in an automake conditional.
11029         (func_emit_autoconf_snippets): Emit shell functions that contain the
11030         code for conditional modules.
11031         (func_import, func_create_testdir): Update specification.
11032
11033 2011-05-03  Eric Blake  <eblake@redhat.com>
11034
11035         test-getaddrinfo: report error information
11036         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11037
11038 2011-05-03  Jim Meyering  <meyering@redhat.com>
11039
11040         bootstrap: avoid build failure when $GZIP is set
11041         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11042         program name.  If defined at all, it is supposed to list gzip options.
11043         Reported by Alan Curry in http://debbugs.gnu.org/8609
11044
11045 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11046
11047         readme-release: new module with release instructions
11048         * modules/readme-release: New module.
11049         * top/README-release: New file, from coreutils, grep, diffutils.
11050         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11051
11052 2011-05-02  Eric Blake  <eblake@redhat.com>
11053
11054         fflush: also replace fclose when fixing fflush
11055         * modules/fflush (Depends-on): Add fclose.
11056         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11057         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11058         memstreams with no backing fd.
11059         * doc/posix-functions/fclose.texi (fclose): Document the use of
11060         fflush module to fix the bug.
11061         * tests/test-fclose.c (main): Relax test when fclose is used in
11062         isolation.
11063
11064         fclose: add some tests
11065         * modules/fclose-tests: New test module.
11066         * tests/test-fclose.c: New file.
11067         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11068
11069         fclose: reduced dependencies
11070         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11071         simpler lseek.
11072         * lib/fclose.c (rpl_fclose): Likewise.
11073         Reported by Simon Josefsson.
11074
11075         exit: drop remaining clients
11076         * modules/argmatch (Depends-on): Replace exit with stdlib.
11077         * modules/copy-file (Depends-on): Likewise.
11078         * modules/execute (Depends-on): Likewise.
11079         * modules/exitfail (Depends-on): Likewise.
11080         * modules/obstack (Depends-on): Likewise.
11081         * modules/pagealign_alloc (Depends-on): Likewise.
11082         * modules/pipe-filter-gi (Depends-on): Likewise.
11083         * modules/pipe-filter-ii (Depends-on): Likewise.
11084         * modules/savewd (Depends-on): Likewise.
11085         * modules/spawn-pipe (Depends-on): Likewise.
11086         * modules/wait-process (Depends-on): Likewise.
11087         * modules/xsetenv (Depends-on): Likewise.
11088         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11089         * modules/git-merge-changelog (Depends-on): Likewise.
11090         * modules/long-options (Depends-on): Likewise.
11091         * modules/pt_chown (Depends-on): Likewise.
11092         * modules/sysexits (Depends-on): Likewise.
11093
11094         freading: relax license from LGPLv3+ to LGPLv2+
11095         * modules/freading (License): Relax LGPL version.
11096
11097 2011-05-02  Bruno Haible  <bruno@clisp.org>
11098
11099         fchdir: Remove unused dependencies.
11100         * modules/fchdir (Depends-on): Remove include_next.
11101
11102 2011-05-02  Bruno Haible  <bruno@clisp.org>
11103
11104         gnulib-tool: Refactor.
11105         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11106         from func_emit_autoconf_snippets.
11107         (func_emit_autoconf_snippets): Use it.
11108
11109 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11110
11111         * NEWS: Document removal of 'exit'.
11112         * modules/exit: Remove file.
11113
11114 2011-05-01  Bruno Haible  <bruno@clisp.org>
11115
11116         Update DEPENDENCIES.
11117         * DEPENDENCIES (gettext): Recommend the newest release.
11118         Reported by Simon Josefsson.
11119
11120 2011-05-01  Bruno Haible  <bruno@clisp.org>
11121
11122         gnulib-tool: Reduce code duplication.
11123         * gnulib-tool (func_emit_autoconf_snippets): New function.
11124         (func_import, func_create_testdir): Use it.
11125
11126 2011-04-30  Eric Blake  <eblake@redhat.com>
11127
11128         fclose: don't fail on non-seekable input stream
11129         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11130         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11131         since fflush is allowed to fail in that case.
11132
11133 2011-04-30  Bruno Haible  <bruno@clisp.org>
11134
11135         dup3: cleanup
11136         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11137
11138 2011-04-30  Bruno Haible  <bruno@clisp.org>
11139
11140         netdb: Make it work in C++ mode.
11141         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11142         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11143         module.
11144         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11145         gl_MODULE_INDICATOR_FOR_TESTS.
11146         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11147         * modules/netdb-c++-tests: New file.
11148         * tests/test-netdb-c++.cc: New file.
11149
11150 2011-04-30  Bruno Haible  <bruno@clisp.org>
11151
11152         New modules 'vfscanf', 'vscanf'.
11153         * modules/vfscanf: New file.
11154         * modules/vscanf: New file.
11155         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11156         here.
11157         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11158         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11159
11160 2011-04-30  Bruno Haible  <bruno@clisp.org>
11161
11162         passfd: Add comments.
11163         * lib/passfd.c: Add comments about platforms.
11164
11165 2011-04-30  Bruno Haible  <bruno@clisp.org>
11166
11167         sys_uio: Make <sys/uio.h> self-contained.
11168         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11169         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11170
11171 2011-04-30  Bruno Haible  <bruno@clisp.org>
11172
11173         sys_socket: Ensure 'struct iovec' definition.
11174         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11175         <sys/socket.h>.
11176         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11177
11178 2011-04-30  Bruno Haible  <bruno@clisp.org>
11179
11180         sys_uio: Protect definition of 'struct iovec'.
11181         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11182         it as a C struct.
11183
11184 2011-04-30  Bruno Haible  <bruno@clisp.org>
11185
11186         manywarnings: fix indentation
11187         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11188
11189 2011-04-30  Pádraig Brady <P@draigBrady.com>
11190
11191         manywarnings: add -Wno-missing-field-initializers if needed.
11192         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11193         option if it's needed to allow initialization with { 0, }
11194
11195 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11196
11197         announce-gen: cosmetic improvement
11198         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11199
11200 2011-04-29  Jim Meyering  <meyering@redhat.com>
11201
11202         vc-list-files: indent with spaces, not TABs
11203         * build-aux/vc-list-files: Convert leading TABs to spaces,
11204         to match the style of most other files in gnulib.
11205
11206         announce-gen: indent with spaces, not TABs
11207         * build-aux/announce-gen: Convert all TABs to spaces, to match
11208         the style of most other files in gnulib.
11209
11210 2011-04-29  Eric Blake  <eblake@redhat.com>
11211
11212         quotearg: avoid uninitialized variable use
11213         * lib/quotearg.c (quoting_options_from_style): Initialize
11214         remaining fields, and ensure that custom styles are only used via
11215         quoting_options rather than quoting_style.
11216
11217 2011-04-29  Jim Meyering  <meyering@redhat.com>
11218
11219         maint.mk: remove unused VC-tag variable
11220         * top/maint.mk (VC-tag): Remove unused variable.
11221
11222 2011-04-29  Bruno Haible  <bruno@clisp.org>
11223
11224         netdb: fix gai_strerror replacements
11225         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11226         * modules/netdb: Substitute it.
11227
11228 2011-04-29  Jim Meyering  <meyering@redhat.com>
11229
11230         test-getcwd.c: avoid new set-but-not-used warning
11231         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11232         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11233         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11234         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11235
11236         test-hash.c: avoid a new shadowing warning
11237         * tests/test-hash.c (main): Don't shadow "dup".
11238
11239 2011-04-28  Eric Blake  <eblake@redhat.com>
11240
11241         getaddrinfo: fix gai_strerror signature
11242         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11243         and work around mingw with UNICODE defined.
11244         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11245         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11246         * modules/netdb (Makefile.am): Substitute it.
11247         * lib/netdb.in.h (gai_strerror): Declare replacement.
11248         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11249         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11250         the fix.
11251
11252         getsockopt: avoid compiler warning
11253         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11254         Reported by Matthias Bolte.
11255
11256         tests: drop unused link dependency
11257         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11258         * modules/dirent-safer-tests (Makefile.am): Likewise.
11259         * modules/fdopendir-tests (Makefile.am): Likewise.
11260         * modules/mkfifoat-tests (Makefile.am): Likewise.
11261         * modules/openat-safer-tests (Makefile.am): Likewise.
11262         * modules/openat-tests (Makefile.am): Likewise.
11263         * modules/readlinkat-tests (Makefile.am): Likewise.
11264         * modules/symlinkat-tests (Makefile.am): Likewise.
11265         * modules/linkat-tests (Makefile.am): Likewise.
11266         (Depends-on): Switch to filenamecat-lgpl.
11267         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11268         LIBINTL.
11269         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11270         * tests/test-linkat.c (main): Don't require xalloc.
11271
11272         hash, mgetgroups: drop xalloc dependency
11273         * lib/hash.c (includes): Adjust includes.
11274         * lib/mgetgroups.c (includes): Likewise.
11275         (xgetgroups): Move...
11276         * lib/xgetgroups.c: ...to new file.
11277         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11278         * modules/xgetgroups: New file, split from...
11279         * modules/mgetgroups: ...here.
11280         (Depends-on): Add xalloc-oversized.
11281         * modules/hash (Depends-on): Likewise.
11282         * modules/hash-tests (Depends-on): Drop xalloc.
11283         (test_hash_LDADD): Drop unused library.
11284         * tests/test-hash.c (main): Break xalloc dependency.
11285         (includes): Drop unused include.
11286
11287         xalloc-oversized: new module
11288         * modules/xalloc-oversized: New module.
11289         * modules/xalloc (Depends-on): Add it.
11290         * lib/xalloc.h (xalloc_oversized): Move...
11291         * lib/xalloc-oversized.h: ...into new file.
11292
11293         utimecmp: drop dependency on xmalloc
11294         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11295         due to memory pressure.
11296         * modules/utimecmp (Depends-on): Drop xalloc.
11297
11298 2011-04-27  Eric Blake  <eblake@redhat.com>
11299
11300         getcwd: fix mingw bugs
11301         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11302         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11303         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11304
11305 2011-04-27  Bruno Haible  <bruno@clisp.org>
11306
11307         mkstemps: Ensure declaration on MacOS X 10.5.
11308         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11309         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11310         MacOS X.
11311
11312 2011-04-27  Bruno Haible  <bruno@clisp.org>
11313
11314         mkstemp: More documentation.
11315         * doc/posix-functions/mkstemp.texi: Document header file problem on
11316         MacOS X.
11317
11318 2011-04-27  Bruno Haible  <bruno@clisp.org>
11319
11320         mkstemp: Tweak configure message when cross-compiling.
11321         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11322         result as a guess.
11323
11324 2011-04-27  Bruno Haible  <bruno@clisp.org>
11325
11326         clean-temp: Clarify what it does.
11327         * lib/clean-temp.h: Add more comments.
11328         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11329         module.
11330         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11331         * doc/glibc-functions/mkstemps.texi: Likewise.
11332         * doc/glibc-functions/mkostemps.texi: Likewise.
11333
11334 2011-04-27  Eric Blake  <eblake@redhat.com>
11335
11336         fchdir: avoid extra chdir and fix test
11337         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11338         getcwd-lgpl.
11339         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11340         have to be canonical.
11341         (canonicalize_file_name): Drop unused macro.
11342         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11343
11344         filenamecat-lgpl: fix licence
11345         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11346         when it was first created.
11347
11348         linkat, renameat: add missing dependency
11349         * modules/linkat (Depends-on): Require getcwd-lgpl.
11350         * modules/renameat (Depends-on): Likewise.
11351
11352         tests: reduce dependencies
11353         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11354         * tests/test-renameat.c (main): Likewise.
11355         * modules/linkat-tests (Depends-on): Relax dependency.
11356         * modules/renameat-tests (Depends-on): Likewise.
11357         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11358         dependency explicit.
11359
11360         save-cwd: reduce default dependency
11361         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11362         * lib/save-cwd.c: Update comments.
11363         * NEWS: Document the semantic change.
11364
11365         getcwd: enhance tests
11366         * tests/test-getcwd-lgpl.c: New file, taken from...
11367         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11368         repeat long path stress tests from m4 probe.
11369         * modules/getcwd-lgpl-tests: New module.
11370         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11371         * m4/getcwd-abort-bug.m4: Update comment.
11372         * m4/getcwd-path-max.m4: Likewise.
11373
11374         getcwd-lgpl: new module
11375         * modules/getcwd-lgpl: New module.
11376         * lib/getcwd-lgpl.c: New file.
11377         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11378         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11379         * modules/getcwd (configure.ac): Set C witness.
11380         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11381
11382         getcwd: tweak comments
11383         * m4/getcwd-abort-bug.m4: Fix comments.
11384         * m4/getcwd-path-max.m4: Likewise.
11385         * m4/getcwd.m4: Likewise.
11386
11387 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11388         and Eric Blake  <eblake@redhat.com>
11389
11390         mkstemp: replace if system version uses wrong permissions
11391         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11392         read/write mode bits set in file created by mkstemp.
11393         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11394
11395 2011-04-27  Eric Blake  <eblake@redhat.com>
11396
11397         passfd: avoid compiler warning
11398         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11399         Reported by Laine Stump.
11400
11401 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11402
11403         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11404         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11405
11406 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11407         and Eric Blake  <eblake@redhat.com>
11408
11409         mkstemp: mention clean-temp module
11410         * lib/mkstemp.c: Add comment.
11411         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11412
11413 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11414
11415         inttypes: also provide default values for 32-bit tests
11416         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11417         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11418
11419 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         strtoumax: remove dependency on strtoimax
11422         This is like the strtoull change of yesterday.
11423         * modules/strtoumax (Files): Add lib/strtoimax.c.
11424         (Depends-on): Remove strtoimax and add verify.
11425
11426         inttypes-incomplete: new module
11427         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11428         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11429         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11430         of gl_INTTYPES_H.
11431         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11432         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11433         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11434         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11435         * modules/strtoumax, modules/xstrtol (Depends-on):
11436         Depend on inttypes-incomplete, not inttypes.
11437         * modules/inttypes-incomplete: New module, containing the contents
11438         of the old modules/inttypes module, except that the Files: section
11439         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11440         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11441         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11442         (Depends-on): Depend only on inttypes-incomplete.
11443         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11444
11445         inttypes: omit now-redundant strtoimax and strtoumax work
11446         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
11447         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
11448
11449         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
11450         This supports apps that need pointers to strtoimax and strtoumax,
11451         and ports to HP-UX 11.00 64.bit, which has macros that expand to
11452         nonexistent functions.  See
11453         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
11454         et seq.
11455         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
11456         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
11457         a macro.
11458         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
11459
11460 2011-04-25  Simon Josefsson  <simon@josefsson.org>
11461
11462         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
11463
11464 2011-04-25  Bruno Haible  <bruno@clisp.org>
11465
11466         strtol, strtoul: Mark modules as obsolete.
11467         * modules/strtol (Status, Notice): New sections.
11468         * modules/strtoul (Status, Notice): New sections.
11469
11470 2011-04-25  Bruno Haible  <bruno@clisp.org>
11471
11472         strtod: Remove check for strtod, unless supporting old platforms.
11473         * modules/strtod-obsolete: New file.
11474         * m4/strtod-obsolete.m4: New file.
11475         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
11476         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
11477         * modules/strtod (Depends-on): Add strtod-obsolete.
11478         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
11479
11480 2011-04-25  Bruno Haible  <bruno@clisp.org>
11481
11482         strcase: Make module obsolete.
11483         * modules/strcase (Status, Notice): New sections.
11484
11485 2011-04-25  Bruno Haible  <bruno@clisp.org>
11486
11487         dup2: Remove check for dup2, unless supporting old obsolete platforms.
11488         * modules/dup2-obsolete: New file.
11489         * m4/dup2-obsolete.m4: New file.
11490         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
11491         gl_FUNC_DUP2_OBSOLETE is not also defined.
11492         * modules/dup2 (Depends-on): Add dup2-obsolete.
11493         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
11494
11495 2011-04-25  Bruno Haible  <bruno@clisp.org>
11496
11497         strnlen: Avoid memchr related link error on old obsolete platforms.
11498         * modules/memchr-obsolete: New file.
11499         * m4/memchr-obsolete.m4: New file.
11500         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
11501         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
11502         * modules/memchr (Depends-on): Add memchr-obsolete.
11503         * modules/strnlen (Depends-on): Likewise.
11504         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
11505
11506 2011-04-25  Jim Meyering  <meyering@redhat.com>
11507
11508         maint.mk: makefile_at_at_check extend and clean up
11509         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
11510         in addition to */Makefile.am.
11511         Exempt legitimate uses of @VAR@ notation, e.g.,
11512         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
11513         Remove obsolete coreutils-specific comment.
11514         Prompted by discussion here:
11515         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
11516
11517 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
11518
11519         strtoul: remove dependency on strtol
11520         This is so that 'configure' need not check for strtol merely because
11521         the application needs strtoul.
11522         * modules/strtoul (Files): Add lib/strtol.c.
11523         (Depends-on): Remove strtol.
11524
11525         strtoull: remove dependency on strtoul
11526         This is like the strtoll change.
11527         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
11528         (Depends-on): Remove strtoul.
11529
11530         strtoll: remove dependency on strtol
11531         This is so that 'configure' need not check for strtol merely because
11532         the application needs strtoll.
11533         * modules/strtoll (Files): Add lib/strtol.c.
11534         (Depends-on): Remove strtol.
11535
11536 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11537
11538         inttypes: Move some configure check to module 'imaxdiv'.
11539         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
11540         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
11541         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
11542
11543 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11544
11545         inttypes: Move some configure check to module 'imaxabs'.
11546         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
11547         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
11548         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
11549
11550 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11551
11552         inttypes: Remove configure tests that are not needed since 2009-12-31.
11553         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
11554         gl_cv_header_working_inttypes_h.
11555
11556 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
11557
11558         * modules/strnlen (Depends-on): Remove memchr.
11559         The strnlen implementation doesn't need the memchr module's fixes; see
11560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
11561
11562         strtol: remove dependency on wchar
11563         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
11564         * modules/strtol (Depends-on): Remove wchar.
11565
11566 2011-04-21  Eric Blake  <eblake@redhat.com>
11567
11568         passfd: fix test regression on Linux
11569         * modules/passfd-tests (configure.ac): Correct socketpair check.
11570
11571         passfd: speed up configure and drop unused code
11572         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
11573         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
11574         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
11575         Instead of probing at configure for unix_scm_rights_bsd44_way,
11576         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
11577         check to a struct member probe.
11578         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
11579         (sendfd, recvfd): Update preprocessor checks.
11580         * modules/passfd (Files): Reflect rename, and drop unused file.
11581         (Depends-on): Drop unused dependency.
11582
11583         passfd: allow compilation on mingw
11584         * modules/sys_socket (Depends-on): Add sys_uio.
11585         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
11586         iovec and a minimal struct msghdr.
11587         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
11588         * tests/test-sys_socket.c (main): Enhance test.
11589         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
11590         guaranteed to provide what we need.
11591         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
11592         * modules/passfd-tests (Depends-on): Add sys_wait.
11593         * tests/test-passfd.c (main): Skip test on mingw, for now.
11594         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
11595         partial 'struct msghdr' implementation.
11596
11597         sys_uio: new module
11598         * modules/sys_uio: New module.
11599         * modules/sys_uio-tests: Likewise.
11600         * lib/sys_uio.in.h: New file.
11601         * m4/sys_uio_h.m4: Likewise.
11602         * tests/test-sys_uio.c: Likewise.
11603         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
11604         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
11605
11606 2011-04-20  Jim Meyering  <meyering@redhat.com>
11607
11608         useless-if-before-free: avoid false-positive
11609         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
11610         disjunct so that it too requires a terminating ";".  Without that,
11611         this script would identify as useless one statement from gcc that
11612         was not:
11613           if (aligned_ptr)
11614             free (((void **) aligned_ptr) [-1]);
11615
11616 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
11617
11618         doc: update users.txt.
11619         * users.txt: Add barcode.
11620
11621 2011-04-19  Bruno Haible  <bruno@clisp.org>
11622
11623         ioctl: Remove link dependency on native Windows.
11624         * lib/fd-hook.h: Renamed from lib/close-hook.h.
11625         (gl_close_fn, gl_ioctl_fn): New types.
11626         (struct fd_hook): Renamed from struct close_hook. Change type of
11627         private_close_fn field. Add private_ioctl_fn field.
11628         (close_hook_fn): Add parameter for primary close method.
11629         (execute_close_hooks, execute_all_close_hooks): Likewise.
11630         (ioctl_hook_fn): New type.
11631         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
11632         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11633         argument.
11634         (unregister_fd_hook): Renamed from unregister_close_hook.
11635         * lib/fd-hook.c: Renamed from lib/close-hook.c.
11636         Don't include <unistd.h>.
11637         (close): Remove undef.
11638         (anchor): Update.
11639         (execute_close_hooks): Add argument for primary close method.
11640         (execute_all_close_hooks): Likewise.
11641         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
11642         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
11643         argument. Allow each argument to be NULL.
11644         (unregister_fd_hook): Renamed from unregister_close_hook.
11645         * lib/close.c (rpl_close): Pass 'close' function pointer to
11646         execute_all_close_hooks.
11647         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
11648         (primary_ioctl): New function.
11649         (ioctl): Don't call ioctlsocket here. Instead, call
11650         execute_all_ioctl_hooks.
11651         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
11652         close method.
11653         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
11654         (fd_sockets_hook): Renamed from close_sockets_hook.
11655         (gl_sockets_startup, gl_sockets_cleanup): Update.
11656         * modules/fd-hook: Renamed from modules/close-hook. Update.
11657         * modules/close (Depends-on): Add fd-hook, remove close-hook.
11658         * modules/sockets (Depends-on): Likewise.
11659         * modules/ioctl (Depends-on): Add fd-hook.
11660         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
11661         GNULIB_SOCKET.
11662
11663 2011-04-19  Bruno Haible  <bruno@clisp.org>
11664
11665         Move the support of O_NONBLOCK in open() to the 'open' module.
11666         * modules/nonblocking (Depends-on): Remove 'open'.
11667         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
11668         gl_cv_have_open_O_NONBLOCK.
11669         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
11670         O_NONBLOCK support.
11671         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
11672
11673 2011-04-17  Bruno Haible  <bruno@clisp.org>
11674
11675         pipe2: Simplify code.
11676         * lib/pipe2.c (pipe2): Reduce code duplication.
11677
11678 2011-04-17  Bruno Haible  <bruno@clisp.org>
11679
11680         nonblocking: Add comment.
11681         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
11682
11683 2011-04-17  Bruno Haible  <bruno@clisp.org>
11684
11685         nonblocking: Add tests for sockets.
11686         * tests/test-nonblocking-socket.sh: New file.
11687         * tests/test-nonblocking-socket-main.c: New file.
11688         * tests/test-nonblocking-socket-child.c: New file.
11689         * tests/test-nonblocking-socket.h: New file.
11690         * tests/socket-server.h: New file.
11691         * tests/socket-client.h: New file.
11692         * modules/nonblocking-socket-tests: New file.
11693         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
11694
11695 2011-04-17  Bruno Haible  <bruno@clisp.org>
11696
11697         nonblocking: Add tests for pipes.
11698         * tests/test-nonblocking-pipe.sh: New file.
11699         * tests/test-nonblocking-pipe-main.c: New file.
11700         * tests/test-nonblocking-pipe-child.c: New file.
11701         * tests/test-nonblocking-pipe.h: New file.
11702         * tests/test-nonblocking-writer.h: New file.
11703         * tests/test-nonblocking-reader.h: New file.
11704         * tests/test-nonblocking-misc.h: New file.
11705         * modules/nonblocking-pipe-tests: New file.
11706         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
11707
11708 2011-04-16  Bruno Haible  <bruno@clisp.org>
11709
11710         gettext: Clarify the needed programmer actions.
11711         * modules/gettext (Notice): New field.
11712         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
11713
11714 2011-04-16  Bruno Haible  <bruno@clisp.org>
11715
11716         strchrnul: Tweak last commit.
11717         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
11718         bug.
11719         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
11720         as in _GL_FUNCDECL_SYS.
11721         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
11722         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
11723
11724 2011-04-15  Eric Blake  <eblake@redhat.com>
11725
11726         strchrnul: work around cygwin bug
11727         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
11728         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
11729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
11730         * modules/string (Makefile.am): Substitute it.
11731         * lib/string.in.h (strchrnul): Use it.
11732
11733 2011-04-15  Bruno Haible  <bruno@clisp.org>
11734
11735         Don't require lib/stdio-write.c when only module 'stdio' is used.
11736         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
11737         invocation.
11738         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
11739
11740 2011-04-14  Bruno Haible  <bruno@clisp.org>
11741
11742         Support non-blocking pipe I/O in read() on native Windows.
11743         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
11744         (read): New declaration.
11745         * lib/read.c: New file.
11746         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
11747         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
11748         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
11749         vscanf): New declarations.
11750         * lib/stdio-read.c: New file.
11751         * m4/read.m4: New file.
11752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
11753         REPLACE_READ.
11754         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
11755         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11756         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
11757         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
11758         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
11759         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11760         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11761         * modules/read: New file.
11762         * modules/nonblocking (Files): Add lib/stdio-read.c.
11763         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
11764         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
11765         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
11766         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
11767         * modules/pread (Depends-on): Add read.
11768         * modules/safe-read (Depends-on): Likewise.
11769         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
11770         gets, scanf, vfscanf, vscanf): Verify signatures.
11771         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
11772         problem with non-blocking pipes.
11773         * doc/posix-functions/fgetc.texi: Likewise.
11774         * doc/posix-functions/fgets.texi: Likewise.
11775         * doc/posix-functions/fread.texi: Likewise.
11776         * doc/posix-functions/fscanf.texi: Likewise.
11777         * doc/posix-functions/getc.texi: Likewise.
11778         * doc/posix-functions/getchar.texi: Likewise.
11779         * doc/posix-functions/gets.texi: Likewise.
11780         * doc/posix-functions/scanf.texi: Likewise.
11781         * doc/posix-functions/vfscanf.texi: Likewise.
11782         * doc/posix-functions/vscanf.texi: Likewise.
11783
11784 2011-04-14  Bruno Haible  <bruno@clisp.org>
11785
11786         Support non-blocking pipe I/O in write() on native Windows.
11787         * lib/write.c (rpl_write): Split a write request that failed merely
11788         because the byte count was larger than the pipe buffer's size.
11789         * doc/posix-functions/write.texi: Mention the problem with large byte
11790         counts.
11791
11792 2011-04-14  Bruno Haible  <bruno@clisp.org>
11793
11794         wchar: Ensure that wchar_t gets defined on uClibc.
11795         * lib/wchar.in.h: On uClibc, include <stddef.h>.
11796         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
11797
11798 2011-04-13  Bruno Haible  <bruno@clisp.org>
11799
11800         safe-write, full-read: Avoid unnecessary compilation units.
11801         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
11802         (Depends-on): Remove safe-read. Add ssize_t.
11803         * modules/full-read (Files): Add lib/full-write.c.
11804         (Depends-on): Add full-write.
11805
11806 2011-04-13  Bruno Haible  <bruno@clisp.org>
11807
11808         Support non-blocking pipe I/O and SIGPIPE in pwrite().
11809         * modules/pwrite (Depends-on): Add 'write'.
11810
11811 2011-04-13  Bruno Haible  <bruno@clisp.org>
11812
11813         Support non-blocking pipe I/O in write() on native Windows.
11814         * lib/unistd.in.h (write): Enable replacement also if
11815         GNULIB_UNISTD_H_NONBLOCKING is 1.
11816         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
11817         (rpl_write): When failing to write on a non-blocking pipe, change
11818         errno from ENOSPC to EAGAIN.
11819         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
11820         putchar, puts, vfprintf, vprintf): Enable replacement also if
11821         GNULIB_STDIO_H_NONBLOCKING is 1.
11822         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
11823         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
11824         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
11825         CALL_WITH_SIGPIPE_EMULATION.
11826         (CALL_WITH_SIGPIPE_EMULATION): Use them.
11827         * m4/nonblocking.m4: New file.
11828         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
11829         for non-blocking I/O support.
11830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11831         GNULIB_UNISTD_H_NONBLOCKING.
11832         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
11833         required for non-blocking I/O support.
11834         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
11835         * modules/nonblocking (Files): Add m4/nonblocking.m4,
11836         lib/stdio-write.c, m4/asm-underscore.m4.
11837         (Depends-on): Add stdio, unistd.
11838         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
11839         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
11840         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
11841         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
11842         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
11843         problem with non-blocking pipes.
11844         * doc/posix-functions/fputc.texi: Likewise.
11845         * doc/posix-functions/fputs.texi: Likewise.
11846         * doc/posix-functions/fwrite.texi: Likewise.
11847         * doc/posix-functions/printf.texi: Likewise.
11848         * doc/posix-functions/putc.texi: Likewise.
11849         * doc/posix-functions/putchar.texi: Likewise.
11850         * doc/posix-functions/puts.texi: Likewise.
11851         * doc/posix-functions/vfprintf.texi: Likewise.
11852         * doc/posix-functions/vprintf.texi: Likewise.
11853         * doc/posix-functions/write.texi: Likewise.
11854
11855 2011-04-10  Jim Meyering  <meyering@redhat.com>
11856
11857         maint.mk: prohibit doubled words
11858         Detect them also when they're separated by a newline.
11859         There are 3 ways to customize it:
11860           - disable the test on a per file basis, as usual with rules using
11861             $(VC_LIST_EXCEPT)
11862           - replace the default doubled-word-selecting regexp (affects all files)
11863           - ignore a particular file-vs-doubled-word match
11864         I nearly used that last one to ignore the "is is" match in
11865         coreutils' NEWS file, since the text was "ls -is is ..."
11866         To do that, I would have added this line to cfg.mk:
11867           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
11868         but it would have ignored any "is is" match in NEWS.
11869         Low probability, but still...
11870         Instead, I changed the text, slightly:
11871           -  ls -is is now consistent with ls -lis in ignoring values returned
11872           +  "ls -is" is now consistent with ls -lis in ignoring values returned
11873         * top/maint.mk (prohibit_double_word_RE_): Provide default.
11874         (prohibit_doubled_word_): Define.
11875         (sc_prohibit_doubled_word): New rule.
11876         (sc_prohibit_the_the): Remove.  Subsumed by the above.
11877
11878 2011-04-10  Jim Meyering  <meyering@redhat.com>
11879
11880         maint: fix doubled-word typo in comment
11881         * m4/gethostname.m4: s/is is/it is/
11882         * m4/getdomainname.m4: Likewise.
11883
11884 2011-04-10  Jim Meyering  <meyering@redhat.com>
11885
11886         maint: remove doubled word: s/it it/it/
11887         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
11888
11889 2011-04-10  Jim Meyering  <meyering@redhat.com>
11890
11891         maint.mk: remove useless semicolon and backslash
11892         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
11893         semicolon and backslash.
11894
11895 2011-04-10  Bruno Haible  <bruno@clisp.org>
11896
11897         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
11898         * modules/stdint-tests (Depends-on): Add wchar.
11899
11900 2011-04-10  Jim Meyering  <meyering@redhat.com>
11901
11902         maint: remove doubled words in comments, e.g., s/a a/a/
11903         * lib/strptime.c (day_of_the_week): s/the the/the/
11904         * tests/test-chown.h (test_chown): s/a a/a/
11905
11906         test-chown.h: correct a cast
11907         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
11908         when the destination is a stat.st_gid.
11909
11910 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
11911
11912         getaddrinfo: Fix test for sa_len member.
11913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
11914         include <sys/types.h> before <sys/socket.h>.
11915
11916 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
11917
11918         maint: change "can not" to "cannot"
11919         * doc/posix-functions/iconv.texi (iconv): This one crossed line
11920         boundaries.
11921
11922 2011-04-09  Jim Meyering  <meyering@redhat.com>
11923
11924         maint: change "a a" to "a"
11925         * tests/test-lchown.h (test_lchown): s/a a/a/
11926
11927         maint.mk: prohibit \<the the\>
11928         * top/maint.mk (sc_prohibit_the_the): New rule.
11929
11930         maint: fix "the the" in comment
11931         * lib/count-one-bits.h: s/the the/the/
11932
11933         maint: change "can not" to "cannot"
11934         But do not change the occurrences in maintain.texi or in
11935         build-aux/po/Makefile.in.in, which I presume comes from gettext.
11936         * doc/gnulib-tool.texi: s/can not/cannot/
11937         * doc/posix-functions/accept.texi (accept): Likewise.
11938         * doc/posix-functions/socket.texi (socket): Likewise.
11939         * lib/mbrtowc.c: Likewise.
11940
11941         maint.mk: prohibit use of "can not"
11942         * top/maint.mk (sc_prohibit_can_not): New rule.
11943         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
11944
11945 2011-04-09  Bruno Haible  <bruno@clisp.org>
11946
11947         careadlinkat: Guard against misuse of careadlinkatcwd.
11948         * lib/careadlinkat.c: Include <stdlib.h>.
11949         (careadlinkatcwd): Check that the fd argument is as expected.
11950
11951 2011-04-09  Bruno Haible  <bruno@clisp.org>
11952
11953         careadlinkat: Use common coding style.
11954         * lib/careadlinkat.c: Move gnulib includes after system includes.
11955
11956 2011-04-09  Bruno Haible  <bruno@clisp.org>
11957
11958         careadlinkat: Clarify specification.
11959         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
11960         (careadlinkatcwd): Add comment.
11961         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
11962
11963 2011-04-09  Bruno Haible  <bruno@clisp.org>
11964
11965         areadlinkat: Avoid link error on many platforms.
11966         * modules/areadlinkat (Depends-on): Add areadlink.
11967
11968 2011-04-09  Bruno Haible  <bruno@clisp.org>
11969
11970         allocator, careadlinkat: Fix double-inclusion guard.
11971         * lib/allocator.h: Fix double-inclusion guard.
11972         * lib/careadlinkat.h: Likewise.
11973
11974 2011-04-09  Bruno Haible  <bruno@clisp.org>
11975
11976         relocatable-prog-wrapper: Update after module 'areadlink' changed.
11977         * lib/relocwrapper.c: Update dependencies hierarchy.
11978         * build-aux/install-reloc: Update list of files to be compiled.
11979         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
11980         lib/allocator.[hc].
11981
11982 2011-04-08  Eric Blake  <eblake@redhat.com>
11983
11984         strftime: silence gnulib-tool warning
11985         * modules/strftime-tests (Depends-on): Drop automatic dependency.
11986
11987 2011-04-08  Bruno Haible  <bruno@clisp.org>
11988
11989         verify: Fix syntax error with GCC 4.6 in C++ mode.
11990         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
11991         (HAVE_STATIC_ASSERT): New macro.
11992         (verify_true, verify): Use 'static_assert' if it is supported and
11993         '_Static_assert' is not supported.
11994
11995 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
11996
11997         allocator: New module.
11998         * modules/allocator, lib/allocator.c: New files.
11999         * lib/allocator.h (stdlib_allocator): New decl.
12000         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12001         Remove.  Do not include <stdlib.h>.
12002         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12003         * modules/careadlinkat (Files): Remove lib/allocator.h.
12004         (Depends-on): Add allocator.
12005
12006         stdlib: let modules use system malloc, realloc
12007         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12008         if !_GL_USE_STDLIB_ALLOC.
12009         (malloc, realloc): Limit this change to a smaller scope.
12010
12011         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12012         (malloc, realloc): Don't #undef; no longer needed.
12013         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12014         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12015         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12016         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12017         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12018         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12019         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12020         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12021
12022         careadlinkat: rename members to avoid problem
12023         * lib/allocator.h (struct allocator): Rename members from
12024         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12025         and realloc are #define'd.  Reported by Eric Blake in
12026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12027         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12028
12029 2011-04-08  Eric Blake  <eblake@redhat.com>
12030
12031         nonblocking: reduce dependency
12032         * tests/test-nonblocking.c: Only test sockets when in use.
12033         * modules/nonblocking-tests (Depends-on): Drop socket.
12034         (Makefile.am): Link even if sockets are not present.
12035         * modules/pipe2-tests (Makefile.am): Likewise.
12036         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12037
12038         pipe2: fix O_NONBLOCK support on mingw
12039         * modules/pipe2 (Depends-on): Add nonblocking.
12040         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12041         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12042         * tests/test-nonblocking.c (main): Likewise.
12043         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12044
12045         fcntl-h: fix O_ACCMODE on cygwin
12046         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12047         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12048
12049         pipe-filter: drop O_NONBLOCK workarounds
12050         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12051         * modules/pipe-filter-ii (Depends-on): Likewise.
12052         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12053
12054         nonblocking: provide O_NONBLOCK for mingw
12055         * modules/nonblocking (Depends-on): Add open.
12056         (configure.ac): Set new witness macro.
12057         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12058         * modules/fcntl-h (Makefile.am): Substitute it.
12059         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12060         nonblocking module is in use.
12061         * lib/nonblocking.c: Adjust portability test.
12062         * lib/open.c (open): Don't let native open see gnulib flag.
12063         * tests/test-fcntl-h.c (main): Enhance test.
12064         * tests/test-open.h (test_open): Likewise.
12065         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12066
12067         careadlinkat: fix compilation error on mingw
12068         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12069         within struct allocator.
12070
12071 2011-04-06  Eric Blake  <eblake@redhat.com>
12072
12073         binary-io: relicense under LGPLv2+
12074         * modules/binary-io (License): Relax to LGPLv2+.
12075         Requested for libvirt, and required by pipe2.
12076
12077 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12078
12079         verify: use _Static_assert if available
12080         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12081         (verify_true, verify): Use it if available.  This generates better
12082         diagnostics with GCC 4.6.0 and later.
12083
12084 2011-04-05  Bruno Haible  <bruno@clisp.org>
12085
12086         Remove leftover generated .h files after config.status changed.
12087
12088         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12089         GL_GENERATE_ALLOCA_H.
12090         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12091         GL_GENERATE_ALLOCA_H evaluates to false.
12092
12093         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12094         GL_GENERATE_ARGZ_H.
12095         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12096         evaluates to false.
12097
12098         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12099         GL_GENERATE_BYTESWAP_H.
12100         * modules/byteswap (Makefile.am): Remove byteswap.h if
12101         GL_GENERATE_BYTESWAP_H evaluates to false.
12102
12103         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12104         GL_GENERATE_ERRNO_H.
12105         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12106         evaluates to false.
12107
12108         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12109         GL_GENERATE_FLOAT_H.
12110         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12111         evaluates to false.
12112
12113         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12114         GL_GENERATE_FNMATCH_H.
12115         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12116         GL_GENERATE_FNMATCH_H evaluates to false.
12117
12118         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12119         GL_GENERATE_GLOB_H.
12120         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12121         evaluates to false.
12122
12123         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12124         automake conditional GL_GENERATE_ICONV_H.
12125         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12126         evaluates to false.
12127
12128         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12129         GL_GENERATE_NETINET_IN_H.
12130         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12131         GL_GENERATE_NETINET_IN_H evaluates to false.
12132
12133         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12134         conditional GL_GENERATE_PTHREAD_H.
12135         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12136         * modules/pthread (Makefile.am): Remove pthread.h if
12137         GL_GENERATE_PTHREAD_H evaluates to false.
12138
12139         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12140         GL_GENERATE_SCHED_H.
12141         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12142         evaluates to false.
12143
12144         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12145         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12146         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12147         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12148
12149         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12150         GL_GENERATE_STDARG_H.
12151         * modules/stdarg (Makefile.am): Remove stdarg.h if
12152         GL_GENERATE_STDARG_H evaluates to false.
12153
12154         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12155         GL_GENERATE_STDBOOL_H.
12156         * modules/stdbool (Makefile.am): Remove stdbool.h if
12157         GL_GENERATE_STDBOOL_H evaluates to false.
12158
12159         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12160         conditional GL_GENERATE_STDDEF_H.
12161         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12162         * modules/stddef (Makefile.am): Remove stddef.h if
12163         GL_GENERATE_STDDEF_H evaluates to false.
12164
12165         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12166         GL_GENERATE_STDINT_H.
12167         * modules/stdint (Makefile.am): Remove stdint.h if
12168         GL_GENERATE_STDINT_H evaluates to false.
12169
12170         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12171         GL_GENERATE_SYSEXITS_H.
12172         * modules/sysexits (Makefile.am): Remove sysexits.h if
12173         GL_GENERATE_SYSEXITS_H evaluates to false.
12174
12175         Reported by Karl Berry and Ralf Wildenhues.
12176
12177 2011-04-05  Bruno Haible  <bruno@clisp.org>
12178
12179         Ensure to rebuild generated .h files when config.status has changed.
12180         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12181         config.status.
12182         * modules/ctype (Makefile.am): Likewise.
12183         * modules/dirent (Makefile.am): Likewise.
12184         * modules/errno (Makefile.am): Likewise.
12185         * modules/fcntl-h (Makefile.am): Likewise.
12186         * modules/float (Makefile.am): Likewise.
12187         * modules/getopt-posix (Makefile.am): Likewise.
12188         * modules/glob (Makefile.am): Likewise.
12189         * modules/iconv-h (Makefile.am): Likewise.
12190         * modules/inttypes (Makefile.am): Likewise.
12191         * modules/langinfo (Makefile.am): Likewise.
12192         * modules/locale (Makefile.am): Likewise.
12193         * modules/math (Makefile.am): Likewise.
12194         * modules/netdb (Makefile.am): Likewise.
12195         * modules/netinet_in (Makefile.am): Likewise.
12196         * modules/poll-h (Makefile.am): Likewise.
12197         * modules/pthread (Makefile.am): Likewise.
12198         * modules/pty (Makefile.am): Likewise.
12199         * modules/sched (Makefile.am): Likewise.
12200         * modules/search (Makefile.am): Likewise.
12201         * modules/selinux-h (Makefile.am): Likewise.
12202         * modules/signal (Makefile.am): Likewise.
12203         * modules/spawn (Makefile.am): Likewise.
12204         * modules/stdarg (Makefile.am): Likewise.
12205         * modules/stdbool (Makefile.am): Likewise.
12206         * modules/stddef (Makefile.am): Likewise.
12207         * modules/stdint (Makefile.am): Likewise.
12208         * modules/stdio (Makefile.am): Likewise.
12209         * modules/stdlib (Makefile.am): Likewise.
12210         * modules/string (Makefile.am): Likewise.
12211         * modules/strings (Makefile.am): Likewise.
12212         * modules/sys_file (Makefile.am): Likewise.
12213         * modules/sys_ioctl (Makefile.am): Likewise.
12214         * modules/sys_select (Makefile.am): Likewise.
12215         * modules/sys_socket (Makefile.am): Likewise.
12216         * modules/sys_stat (Makefile.am): Likewise.
12217         * modules/sys_time (Makefile.am): Likewise.
12218         * modules/sys_times (Makefile.am): Likewise.
12219         * modules/sys_utsname (Makefile.am): Likewise.
12220         * modules/sys_wait (Makefile.am): Likewise.
12221         * modules/sysexits (Makefile.am): Likewise.
12222         * modules/termios (Makefile.am): Likewise.
12223         * modules/time (Makefile.am): Likewise.
12224         * modules/unistd (Makefile.am): Likewise.
12225         * modules/wchar (Makefile.am): Likewise.
12226         * modules/wctype-h (Makefile.am): Likewise.
12227         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12228
12229 2011-04-05  Bruno Haible  <bruno@clisp.org>
12230
12231         pipe2: Relicense under LGPLv2+.
12232         * modules/pipe2 (License): Change to LGPLv2+.
12233         Requested by Eric Blake, for libvirt.
12234
12235 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12236
12237         bootstrap: compute gnulib_extra_files after updating build_aux
12238         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12239         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12240
12241 2011-04-05  Eric Blake  <eblake@redhat.com>
12242
12243         bootstrap: preserve git whitelist item sorting
12244         * build-aux/bootstrap (sort_patterns): New function.
12245         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12246
12247 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12248
12249         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12250         sc_space_tab check.
12251
12252 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12253
12254         areadlink, areadlinkat: rewrite in terms of careadlinkat
12255         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12256         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12257         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12258         (malloc, realloc): Remove #undefs.
12259         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12260         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12261         readlink, ssize_t, stdint, unistd.
12262         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12263         areadlink, stdint.
12264
12265         careadlinkat: new module
12266         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12267         * modules/careadlinkat: New files, written by me with
12268         a review and feedback from Ben Pfaff in
12269         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12270
12271 2011-04-01  Bruno Haible  <bruno@clisp.org>
12272
12273         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12274         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12275         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12276         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12277         Reported by Bruce Korb <bruce.korb@gmail.com>.
12278
12279 2011-04-01  Bruno Haible  <bruno@clisp.org>
12280
12281         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12282         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12283         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12284         * modules/wcpcpy (Depends-on): Add extensions.
12285         * modules/wcpncpy (Depends-on): Likewise.
12286         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12287         systems.
12288         * doc/posix-functions/wcpncpy.texi: Likewise.
12289         * doc/posix-functions/wcwidth.texi: Likewise.
12290
12291 2011-03-31  Eric Blake  <eblake@redhat.com>
12292
12293         nonblocking: fix mingw test failures
12294         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12295         non-blocking flag on regular file.
12296         (get_nonblocking_flag): Set errno on invalid fd.
12297         * tests/test-nonblocking.c (main): Avoid test failure on
12298         directories if fchdir is not active.
12299         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12300
12301 2011-03-31  Bruno Haible  <bruno@clisp.org>
12302
12303         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12304         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12305         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12306         Reported by Simon Josefsson <simon@josefsson.org>.
12307
12308 2011-03-31  Bruno Haible  <bruno@clisp.org>
12309         and Eric Blake  <eblake@redhat.com>
12310
12311         nonblocking: new module
12312         * modules/nonblocking: New module.
12313         * modules/nonblocking-tests: Likewise.
12314         * lib/nonblocking.h: New file.
12315         * lib/nonblocking.c: Likewise.
12316         * tests/test-nonblocking.c: New test.
12317         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12318
12319 2011-03-30  Bruno Haible  <bruno@clisp.org>
12320
12321         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12322         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12323         instead of 'printf' format for GCC >= 4.4.
12324         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12325         (fprintf, printf, vfprintf, vprintf): Declare with
12326         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12327         the system's vfprintf() function.
12328         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12329
12330 2011-03-30  Eric Blake  <eblake@redhat.com>
12331
12332         passfd: fix scoping bug
12333         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12334         before sendmsg/recvmsg.
12335
12336         passfd: standardize coding conventions
12337         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12338         can be learned at compile time.
12339         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12340         ifdefs.
12341         (sendfd, recvfd): Follow gnulib code conventions.
12342
12343         passfd: fix incorrect sendmsg arguments
12344         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12345         incorrect msg_controllen value.
12346         * modules/passfd-tests (Depends-on): Check for alarm.
12347         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12348         Reported by Bastien ROUCARIES.
12349
12350 2011-03-30  Bruno Haible  <bruno@clisp.org>
12351
12352         c-strcasestr: Relicense under LGPLv2+.
12353         * modules/c-strcasestr (License): Change to LGPLv2+.
12354         Requested by Eric Blake, for libvirt.
12355
12356 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12357
12358         * users.txt: Add libidn2.  Fix libtasn1 link.
12359
12360 2011-03-30  Jim Meyering  <meyering@redhat.com>
12361
12362         tests: readlink* ("",... fails with EINVAL on newer kernels
12363         readlink and readlinkat have typically failed with ENOENT for
12364         the invalid, empty file name,  "".  However, with the advent
12365         of linux-2.6.39, they fail with EINVAL.
12366         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12367         when operating on the empty file name.
12368         * tests/test-readlink.h (test_readlink): Likewise.
12369
12370 2011-03-29  Bruno Haible  <bruno@clisp.org>
12371
12372         Relicense some modules under LGPLv2+, for libidn2.
12373         * modules/array-mergesort (License): Change to LGPLv2+.
12374         * modules/c-strcaseeq (License): Likewise.
12375         * modules/striconveh (License): Likewise.
12376         * modules/striconveha (License): Likewise.
12377         * modules/uniconv/base (License): Likewise.
12378         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12379         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12380         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12381         * modules/unictype/base (License): Likewise.
12382         * modules/unictype/bidiclass-of (License): Likewise.
12383         * modules/unictype/category-M (License): Likewise.
12384         * modules/unictype/category-none (License): Likewise.
12385         * modules/unictype/category-of (License): Likewise.
12386         * modules/unictype/category-test (License): Likewise.
12387         * modules/unictype/category-test-withtable (License): Likewise.
12388         * modules/unictype/combining-class (License): Likewise.
12389         * modules/unictype/joiningtype-of (License): Likewise.
12390         * modules/unictype/scripts (License): Likewise.
12391         * modules/uninorm/base (License): Likewise.
12392         * modules/uninorm/canonical-decomposition (License): Likewise.
12393         * modules/uninorm/composition (License): Likewise.
12394         * modules/uninorm/decompose-internal (License): Likewise.
12395         * modules/uninorm/decomposition-table (License): Likewise.
12396         * modules/uninorm/nfc (License): Likewise.
12397         * modules/uninorm/nfd (License): Likewise.
12398         * modules/uninorm/u32-normalize (License): Likewise.
12399         * modules/unistr/base (License): Likewise.
12400         * modules/unistr/u32-cpy (License): Likewise.
12401         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12402         * modules/unistr/u32-to-u8 (License): Likewise.
12403         * modules/unistr/u32-uctomb (License): Likewise.
12404         * modules/unistr/u8-check (License): Likewise.
12405         * modules/unistr/u8-mblen (License): Likewise.
12406         * modules/unistr/u8-mbtouc (License): Likewise.
12407         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12408         * modules/unistr/u8-mbtoucr (License): Likewise.
12409         * modules/unistr/u8-prev (License): Likewise.
12410         * modules/unistr/u8-strlen (License): Likewise.
12411         * modules/unistr/u8-to-u32 (License): Likewise.
12412         * modules/unistr/u8-uctomb (License): Likewise.
12413         * modules/unitypes (License): Likewise.
12414         Requested by Simon Josefsson.
12415
12416 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12417
12418         lib-symbol-visibility: Add a notice.
12419         * modules/lib-symbol-visibility (Notice): New field.
12420
12421 2011-03-29  Bruno Haible  <bruno@clisp.org>
12422
12423         getaddrinfo: Doc fix.
12424         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12425         section "fixed in Gnulib".
12426
12427 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12428
12429         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12430         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12431
12432 2011-03-26  Bruno Haible  <bruno@clisp.org>
12433
12434         unictype/property-byname: Reduce the number of load-time relocations.
12435         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12436         (UC_PROPERTY_INDEX_*): New enumeration values.
12437         (uc_property_byname): Convert an index from the lookup table to an
12438         uc_property_t.
12439         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12440         values.
12441
12442 2011-03-26  Bruno Haible  <bruno@clisp.org>
12443
12444         unictype/property-byname: Allow omitted word separators and aliases.
12445         * lib/unictype/pr_byname.gperf: Add property names without word
12446         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
12447         for 'space'.
12448
12449 2011-03-26  Bruno Haible  <bruno@clisp.org>
12450
12451         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
12452         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
12453         also hyphens to space.
12454         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
12455         without spaces.
12456         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
12457
12458 2011-03-26  Bruno Haible  <bruno@clisp.org>
12459
12460         unictype/joiningtype-byname: Recognize long names as well.
12461         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
12462         a long name.
12463         * lib/unictype/joiningtype_byname.c: Include <string.h>,
12464         unictype/joiningtype_byname.h.
12465         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
12466         * lib/unictype/joiningtype_byname.gperf: New file.
12467         * modules/unictype/joiningtype-byname (Files): Add
12468         lib/unictype/joiningtype_byname.gperf.
12469         (Depends-on): Add gperf.
12470         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
12471         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
12472         long names.
12473
12474         Tests for module 'unictype/joiningtype-longname'.
12475         * modules/unictype/joiningtype-longname-tests: New file.
12476         * tests/unictype/test-joiningtype_longname.c: New file.
12477
12478         New module 'unictype/joiningtype-longname'.
12479         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
12480         * lib/unictype/joiningtype_longname.c: New file.
12481         * modules/unictype/joiningtype-longname: New file.
12482         * modules/unictype/joiningtype-all (Depends-on): Add
12483         unictype/joiningtype-longname.
12484
12485 2011-03-26  Bruno Haible  <bruno@clisp.org>
12486
12487         unictype/bidiclass-byname: Recognize long names as well.
12488         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
12489         name.
12490         * lib/unictype/bidi_byname.c: Include <string.h>,
12491         unictype/bidi_byname.h.
12492         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
12493         * lib/unictype/bidi_byname.gperf: New file.
12494         * modules/unictype/bidiclass-byname (Files): Add
12495         lib/unictype/bidi_byname.gperf.
12496         (Depends-on): Add gperf.
12497         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
12498         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
12499         long names.
12500
12501         Tests for module 'unictype/bidiclass-longname'.
12502         * modules/unictype/bidiclass-longname-tests: New file.
12503         * tests/unictype/test-bidi_longname.c: New file.
12504
12505         New module 'unictype/bidiclass-longname'.
12506         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
12507         * lib/unictype/bidi_longname.c: New file.
12508         * modules/unictype/bidiclass-longname: New file.
12509         * modules/unictype/bidiclass-all (Depends-on): Add
12510         unictype/bidiclass-longname.
12511
12512 2011-03-26  Bruno Haible  <bruno@clisp.org>
12513
12514         unictype/bidi*: Rename modules.
12515         * modules/unictype/bidiclass-all: Renamed from
12516         modules/unictype/bidicategory-all.
12517         * modules/unictype/bidiclass-name: Renamed from
12518         modules/unictype/bidiclass-name.
12519         (Description): Update.
12520         * modules/unictype/bidiclass-name-tests: Renamed from
12521         modules/unictype/bidicategory-name-tests.
12522         * modules/unictype/bidiclass-byname: Renamed from
12523         modules/unictype/bidicategory-byname.
12524         (Description): Update.
12525         * modules/unictype/bidiclass-byname-tests: Renamed from
12526         modules/unictype/bidicategory-byname-tests.
12527         * modules/unictype/bidiclass-of: Renamed from
12528         modules/unictype/bidicategory-of.
12529         (Description): Update.
12530         * modules/unictype/bidiclass-of-tests: Renamed from
12531         modules/unictype/bidicategory-of-tests.
12532         * modules/unictype/bidiclass-test: Renamed from
12533         modules/unictype/bidicategory-test.
12534         (Description): Update.
12535         * modules/unictype/bidiclass-test-tests: Renamed from
12536         modules/unictype/bidicategory-test-tests.
12537         * modules/unictype/bidicategory-all: New file, a simple redirection.
12538         * modules/unictype/bidicategory-name: Likewise.
12539         * modules/unictype/bidicategory-byname: Likewise.
12540         * modules/unictype/bidicategory-of: Likewise.
12541         * modules/unictype/bidicategory-test: Likewise.
12542         * modules/unictype/property-bidi-* (Dependencies): Update.
12543         * lib/unictype/bidi_*.c: Update comment.
12544
12545 2011-03-26  Bruno Haible  <bruno@clisp.org>
12546
12547         unictype/bidi*: Rename functions, part 2.
12548         * modules/unictype/bidicategory-name (configure.ac): Update required
12549         libunistring version.
12550         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
12551
12552 2011-03-25  Bruno Haible  <bruno@clisp.org>
12553
12554         New module 'unictype/combining-class-all'.
12555         * modules/unictype/combining-class-all: New file.
12556
12557         Tests for module 'unictype/combining-class-byname'.
12558         * modules/unictype/combining-class-byname-tests: New file.
12559         * tests/unictype/test-combiningclass_byname.c: New file.
12560
12561         New module 'unictype/combining-class-byname'.
12562         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
12563         * lib/unictype/combiningclass_byname.c: New file.
12564         * lib/unictype/combiningclass_byname.gperf: New file.
12565         * modules/unictype/combining-class-byname: New file.
12566
12567         Tests for module 'unictype/combining-class-longname'.
12568         * modules/unictype/combining-class-longname-tests: New file.
12569         * tests/unictype/test-combiningclass_longname.c: New file.
12570
12571         New module 'unictype/combining-class-longname'.
12572         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
12573         * lib/unictype/combiningclass_longname.c: New file.
12574         * modules/unictype/combining-class-longname: New file.
12575
12576         Tests for module 'unictype/combining-class-name'.
12577         * modules/unictype/combining-class-name-tests: New file.
12578         * tests/unictype/test-combiningclass_name.c: New file.
12579
12580         New module 'unictype/combining-class-name'.
12581         * lib/unictype.in.h (uc_combining_class_name): New declaration.
12582         * lib/unictype/combiningclass_name.c: New file.
12583         * modules/unictype/combining-class-name: New file.
12584
12585 2011-03-25  Bruno Haible  <bruno@clisp.org>
12586
12587         unictype/combining-class: Rename source files.
12588         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
12589         of unictype/combining.h.
12590         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
12591         Update.
12592         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
12593         * modules/unictype/combining-class (Description): Fix.
12594         (Files, Makefile.am): Update.
12595         * tests/unictype/test-combiningclass.c: Renamed from
12596         tests/unictype/test-combining.c.
12597         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
12598
12599 2011-03-25  Bruno Haible  <bruno@clisp.org>
12600
12601         unictype: Update list of canonical combining classes.
12602         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
12603
12604 2011-03-25  Bruno Haible  <bruno@clisp.org>
12605
12606         unictype/category-byname: Recognize long names as well.
12607         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
12608         a long name.
12609         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
12610         unictype/categ_byname.h.
12611         (UC_CATEGORY_INDEX_*): New enumeration values.
12612         (uc_general_category_byname): Use uc_general_category_lookup and
12613         convert from index to value.
12614         * lib/unictype/categ_byname.gperf: New file.
12615         * modules/unictype/category-byname (Files): Add
12616         lib/unictype/categ_byname.gperf.
12617         (Depends-on): Add gperf.
12618         (Makefile.am): Add rule for generating unictype/categ_byname.h.
12619         * tests/unictype/test-categ_byname.c (main): Test the recognition of
12620         long names.
12621
12622         Tests for module 'unictype/category-longname'.
12623         * modules/unictype/category-longname-tests: New file.
12624         * tests/unictype/test-categ_longname.c: New file.
12625
12626         New module 'unictype/category-longname'.
12627         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
12628         * lib/unictype/categ_longname.c: New file.
12629         * modules/unictype/category-longname: New file.
12630         * modules/unictype/category-all (Depends-on): Add it.
12631
12632 2011-03-25  Bruno Haible  <bruno@clisp.org>
12633
12634         Tests for module 'unictype/category-LC'.
12635         * modules/unictype/category-LC-tests: New file.
12636         * tests/unictype/test-categ_LC.c: New file, automatically generated.
12637
12638         New module 'unictype/category-LC'.
12639         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
12640         (UC_CATEGORY_LC): New declaration.
12641         (UC_CASED_LETTER): New macro.
12642         * lib/gen-uni-tables.c (is_category_LC): New function.
12643         (output_categories): Also handle category LC.
12644         (UC_CATEGORY_MASK_LC): New enumeration value.
12645         (general_category_byname): Also handle category LC.
12646         * lib/unictype/categ_LC.c: New file.
12647         * lib/unictype/categ_LC.h: New file, automatically generated.
12648         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
12649         category LC.
12650         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
12651         * modules/unictype/category-LC: New file.
12652         * modules/unictype/category-byname (Depends-on): Add
12653         unictype/category-LC.
12654         * modules/unictype/category-all (Depends-on): Likewise.
12655
12656 2011-03-25  Eric Blake  <eblake@redhat.com>
12657
12658         xmalloc: revert yesterday's regression
12659         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
12660         realloc's underlying behavior (allowing allocation of zero-size
12661         objects, especially if malloc-gnu is also in use).
12662
12663 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
12664
12665         maint.mk: add missing version to VC-tag
12666         * top/maint.mk: git tag was missing actual tag name; add it.
12667
12668         valgrind: do leak checking, and exit with code 1 on error (not 0)
12669         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
12670         to VALGRIND.
12671
12672 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
12673
12674         posix-modules: say what it does.
12675         * posix-modules: Add a line to the --help output saying what it does.
12676
12677 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12678
12679         xmalloc: Do not leak if underlying realloc is C99 compatible.
12680         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
12681         This avoids a leak on C99-based systems.  See
12682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
12683
12684 2011-03-24  Eric Blake  <eblake@redhat.com>
12685
12686         realloc: document portability problem
12687         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
12688         passing 0 size to realloc.
12689
12690 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
12691
12692         doc: update users.txt
12693         * users.txt: Add cvsps, tmpwatch
12694
12695 2011-03-23  Matt Rice  <ratmice@gmail.com>
12696
12697         doc: update users.txt
12698         * users.txt: Add gdb.
12699
12700 2011-03-23  Jim Meyering  <meyering@redhat.com>
12701
12702         doc: update users.txt
12703         Looking through matches up to the following URL (there are still
12704         several more pages), I found several projects that use gnulib:
12705         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
12706         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
12707         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
12708
12709 2011-03-22  Bruno Haible  <bruno@clisp.org>
12710
12711         unictype/bidi*: Rename functions.
12712         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
12713         uc_bidi_class, uc_is_bidi_class): New declarations.
12714         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
12715         uc_bidi_category_byname.
12716         (uc_bidi_category_byname): New function.
12717         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
12718         u_bidi_category_name.
12719         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
12720         (uc_bidi_category_name): New function.
12721         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
12722         uc_bidi_category.
12723         (uc_bidi_category): New function.
12724         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
12725         uc_is_bidi_category. Invoke uc_bidi_class.
12726         (uc_is_bidi_category): New function.
12727         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
12728         instead of uc_bidi_category_byname.
12729         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
12730         instead of uc_bidi_category_name.
12731         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
12732         uc_bidi_category.
12733         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
12734         instead of uc_is_bidi_category.
12735
12736 2011-03-21  Bruno Haible  <bruno@clisp.org>
12737
12738         New module 'unictype/joininggroup-all'.
12739         * modules/unictype/joininggroup-all: New file.
12740
12741         Tests for module 'unictype/joininggroup-of'.
12742         * modules/unictype/joininggroup-of-tests: New file.
12743         * tests/unictype/test-joininggroup_of.c: New file.
12744         * tests/unictype/test-joininggroup_of.h: New file, automatically
12745         generated by gen-uni-tables.
12746
12747         New module 'unictype/joininggroup-of'.
12748         * modules/unictype/joininggroup-of: New file.
12749         * lib/unictype/joininggroup_of.c: New file.
12750         * lib/unictype/joininggroup_of.h: New file, automatically generated by
12751         gen-uni-tables.
12752
12753         Tests for module 'unictype/joininggroup-byname'.
12754         * modules/unictype/joininggroup-byname-tests: New file.
12755         * tests/unictype/test-joininggroup_byname.c: New file.
12756
12757         New module 'unictype/joininggroup-byname'.
12758         * modules/unictype/joininggroup-byname: New file.
12759         * lib/unictype/joininggroup_byname.c: New file.
12760         * lib/unictype/joininggroup_byname.gperf: New file.
12761
12762         Tests for module 'unictype/joininggroup-name'.
12763         * modules/unictype/joininggroup-name-tests: New file.
12764         * tests/unictype/test-joininggroup_name.c: New file.
12765
12766         New module 'unictype/joininggroup-name'.
12767         * modules/unictype/joininggroup-name: New file.
12768         * lib/unictype/joininggroup_name.c: New file.
12769         * lib/unictype/joininggroup_name.h: New file.
12770
12771         New module 'unictype/joiningtype-all'.
12772         * modules/unictype/joiningtype-all: New file.
12773
12774         Tests for module 'unictype/joiningtype-of'.
12775         * modules/unictype/joiningtype-of-tests: New file.
12776         * tests/unictype/test-joiningtype_of.c: New file.
12777         * tests/unictype/test-joiningtype_of.h: New file, automatically
12778         generated by gen-uni-tables.
12779
12780         New module 'unictype/joiningtype-of'.
12781         * modules/unictype/joiningtype-of: New file.
12782         * lib/unictype/joiningtype_of.c: New file.
12783         * lib/unictype/joiningtype_of.h: New file, automatically generated by
12784         gen-uni-tables.
12785
12786         Tests for module 'unictype/joiningtype-byname'.
12787         * modules/unictype/joiningtype-byname-tests: New file.
12788         * tests/unictype/test-joiningtype_byname.c: New file.
12789
12790         New module 'unictype/joiningtype-byname'.
12791         * modules/unictype/joiningtype-byname: New file.
12792         * lib/unictype/joiningtype_byname.c: New file.
12793
12794         Tests for module 'unictype/joiningtype-name'.
12795         * modules/unictype/joiningtype-name-tests: New file.
12796         * tests/unictype/test-joiningtype_name.c: New file.
12797
12798         New module 'unictype/joiningtype-name'.
12799         * modules/unictype/joiningtype-name: New file.
12800         * lib/unictype/joiningtype_name.c: New file.
12801
12802         unictype: Add support for Arabic shaping properties.
12803         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
12804         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
12805         declarations.
12806         (UC_JOINING_GROUP_*): New enumeration values.
12807         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
12808         declarations.
12809         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
12810         (unicode_joining_type): New variable.
12811         (UC_JOINING_GROUP_*): New enumeration values.
12812         (unicode_joining_group): New variable.
12813         (fill_arabicshaping, joining_type_as_c_identifier,
12814         output_joining_type_test, output_joining_type,
12815         joining_group_as_c_identifier, output_joining_group_test,
12816         output_joining_group): New functions.
12817         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
12818         fill_arabicshaping and output_joining_type_test, output_joining_type,
12819         output_joining_group_test, output_joining_group.
12820         Reported by Simon Josefsson.
12821
12822 2011-03-21  Jim Meyering  <meyering@redhat.com>
12823
12824         strftime: fix a bug in yesterday's change
12825         * lib/strftime.c (add): Accommodate width's initial value of -1.
12826         Otherwise, nstrftime would copy uninitialized data into
12827         the result buffer.
12828
12829 2011-03-21  Jim Meyering  <meyering@redhat.com>
12830
12831         tests: add strftime-tests module
12832         * tests/test-strftime.c: New file.
12833         * modules/strftime-tests: New module.
12834
12835 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12836
12837         strftime: don't assume a byte count fits in 'int'
12838         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
12839         found this problem by static analysis, using gcc -Wstrict-overflow
12840         (GCC 4.5.2, x86-64).  This reported an optimization that depended
12841         on an integer overflow having undefined behavior, but it turns out
12842         that the argument is a size, which might not fit in 'int' anyway,
12843
12844 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12845
12846         stdio: don't require ignore_value around fwrite
12847
12848         This patch works around libc bug 11959
12849         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
12850         Without this patch, applications must often write
12851         ignore_value (fwrite (...)) even though the ignore_value is
12852         not helpful here.  It's common to write many objects, using
12853         fwrite/printf/etc., and then use ferror to detect output error.
12854
12855         I considered making this patch optional, but decided against it,
12856         because libc is obviously being inconsistent here: there is no
12857         reason libc should insist that user code must inspect fwrite
12858         return's value without also insisting that it inspect printf's,
12859         putchar's, etc.  If user code wants to have a strict style where
12860         all these functions' values are checked (so that ferror need not
12861         be checked), we could add support for that style in a new gnulib
12862         module, but in the meantime it's better to be consistent and to
12863         support common usage.
12864
12865         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
12866         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
12867         that we are compiling in checking mode, and if not C++, and
12868         if not already wrapping fwrite for some other reason.
12869         (fwrite): #define to rpl_fwrite if the latter is defined.
12870
12871 2011-03-20  Bruno Haible  <bruno@clisp.org>
12872
12873         verror: Fix compilation error introduced on 2011-02-13.
12874         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
12875         instead of __attribute__.
12876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12877
12878 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12879             Bruno Haible  <bruno@clisp.org>
12880
12881         socklen: do not depend on sys_socket
12882         While trying to modify Emacs to use gnulib's socklen module,
12883         I discovered a circular dependency: socklen depends on sys_socket
12884         and vice versa.  Emacs can use socklen, but it does not need
12885         sys_socket because it has its own substitute for sys/socket.h.
12886         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
12887         gl_TYPE_SOCKLEN_T.
12888         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
12889         gl_PREREQ_SYS_H_SOCKET.
12890         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
12891         gl_PREREQ_SYS_H_SOCKET.
12892         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
12893         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
12894         * modules/socklen (Depends-on): Do not depend on sys_socket.
12895         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
12896
12897 2011-03-20  Jim Meyering  <meyering@redhat.com>
12898
12899         maint.mk: sort file names *after* new transformation
12900         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
12901         prefix would have led to an unwarranted failure in GNU parted.
12902         Sort after that transformation.
12903
12904 2011-03-19  Jim Meyering  <meyering@redhat.com>
12905
12906         maint.mk: fix po-file syntax-check rule
12907         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
12908         Patch by Bruno Haible.
12909
12910 2011-03-19  Bruno Haible  <bruno@clisp.org>
12911
12912         socklen: Update comment.
12913         * m4/socklen.m4: Update comment about platforms.
12914
12915 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12916             Bruno Haible  <bruno@clisp.org>
12917
12918         inet_ntop, inet_pton: Simplify.
12919         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
12920         documented to provide socklen_t and we already depend on sys_socket.
12921         * modules/inet_pton (Depends-on): Likewise.
12922         * lib/arpa_inet.in.h: Adjust comment.
12923
12924 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12925             Bruno Haible  <bruno@clisp.org>
12926
12927         netdb: Simplify.
12928         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
12929         documented to provide socklen_t and we already depend on sys_socket.
12930         * lib/netdb.in.h: Adjust comment.
12931
12932 2011-03-19  Bruno Haible  <bruno@clisp.org>
12933
12934         sys_socket, netdb: Document problem with socklen_t.
12935         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
12936         platforms.
12937         * doc/posix-headers/netdb.texi: Likewise.
12938
12939 2011-03-18  Eric Blake  <eblake@redhat.com>
12940
12941         maint.mk: let po check work in VPATH build
12942         * top/maint.mk (po_file): Allow cfg.mk override.
12943         (sc_po_check): Allow VPATH use.
12944         Reported by Jiri Denemark.
12945
12946 2011-03-16  Jim Meyering  <meyering@redhat.com>
12947
12948         maint.mk: allow fine-grained syntax-check exclusion via Make variables
12949         Before, you would have had to create one .x-sc_ file per rule in order
12950         to exempt offending files.  Now, you may instead use a Make variable --
12951         usually defined in cfg.mk -- whose name identifies the affected rule.
12952         * top/maint.mk (_sc_excl): Define.
12953         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
12954         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
12955
12956 2011-03-13  Bruno Haible  <bruno@clisp.org>
12957
12958         ignore-value tests: Avoid warnings.
12959         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
12960         empty for gcc < 3.4.
12961
12962 2011-03-13  Bruno Haible  <bruno@clisp.org>
12963
12964         passfd: Fix link error on Solaris.
12965         * modules/passfd (Description): Correct.
12966         (Depends-on): Add socketlib.
12967         (Link): New section.
12968         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
12969
12970 2011-03-13  Bruno Haible  <bruno@clisp.org>
12971
12972         passfd: Fix link error on AIX 5.2.
12973         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
12974
12975 2011-03-13  Bruno Haible  <bruno@clisp.org>
12976
12977         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
12978         * lib/sys_socket.in.h: Include <stddef.h>.
12979         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
12980         CMSG_FIRSTHDR. Remove unused variable.
12981
12982 2011-03-13  Bruno Haible  <bruno@clisp.org>
12983
12984         passfd: Fix compilation error on OpenBSD.
12985         * lib/passfd.c: Include <sys/uio.h>.
12986
12987 2011-03-13  Bruno Haible  <bruno@clisp.org>
12988
12989         passfd test: Fix warnings.
12990         * tests/test-passfd.c: Include <sys/wait.h>.
12991         (main): Fix typo.
12992
12993 2011-03-13  Bruno Haible  <bruno@clisp.org>
12994
12995         passfd module, part 4, tweaks.
12996         * tests/test-passfd.c: Reorder includes.
12997         (main): Fix perror and printf calls.
12998
12999 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13000
13001         passfd module, part 4.
13002         * modules/passfd-tests: New file.
13003         * tests/test-passfd.c: New file.
13004
13005 2011-03-13  Jim Meyering  <meyering@redhat.com>
13006
13007         Makefile: rely on GNU make; derive syntax-check rule names
13008         Rather than requiring that each sc_ rule be listed as a dependent
13009         of "check", use features of GNU make to derive the list.
13010         * Makefile (syntax-check-rules): Define.
13011         (check): Depend on the new variable, not the hard-coded list.
13012
13013 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13014             Bruno Haible  <bruno@clisp.org>
13015
13016         passfd module, part 3.
13017         * lib/passfd.h (recvfd): Add a flags argument.
13018         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13019         (recvfd): Add a flags argument.
13020         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13021         exists.
13022         * modules/passfd (Depends-on): Add cloexec.
13023         Suggested by Eric Blake.
13024
13025 2011-03-13  Bruno Haible  <bruno@clisp.org>
13026
13027         passfd module, part 2, tweaks.
13028         * modules/passfd (Files): Reorder.
13029         (Depends-on): Remove errno.
13030         (Include): Remove <sys/socket.h>, <sys/un.h>.
13031         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13032         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13033         specification header. Include <sys/socket.h> always. Don't include
13034         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13035         (sendfd): Clarify that it sets errno when it fails.
13036         (recvfd): Fix specification.
13037
13038 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13039
13040         passfd module, part 2.
13041         * modules/passfd: New file.
13042         * lib/passfd.h: New file.
13043         * lib/passfd.c: New file.
13044
13045 2011-03-12  Bruno Haible  <bruno@clisp.org>
13046
13047         wcswidth, mbswidth: Avoid integer overflow.
13048         * lib/wcswidth.c: Include <limits.h>.
13049         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13050         * lib/mbswidth.c: Include <limits.h>.
13051         (mbsnwidth): Avoid 'int' overflow.
13052         Reported by Jim Meyering.
13053
13054 2011-03-12  Bruno Haible  <bruno@clisp.org>
13055
13056         futimens, utimensat: Avoid endless recursion on Solaris 10.
13057         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13058         Solaris.
13059         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13060         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13061
13062 2011-03-11  Jim Meyering  <meyering@redhat.com>
13063
13064         maint.mk: relax a regexp to accommodate other formatting styles
13065         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13066         between "ngettext" and the following "(".
13067
13068 2011-03-11  Pádraig Brady <P@draigBrady.com>
13069
13070         maint.mk: suppress a false positive warning
13071         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13072         diagnostics are marked with ngettext.
13073
13074 2011-03-10  Eric Blake  <eblake@redhat.com>
13075
13076         wchar: add explicit dependencies, for Tru64
13077         * modules/mbmemcasecoll (Depends-on): Add wchar.
13078         * modules/mbtowc (Depends-on): Likewise.
13079         * modules/vasnprintf (Depends-on): Likewise.
13080         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13081         * modules/wctomb (Depends-on): Likewise.
13082         Reported by Peter O'Gorman.
13083
13084 2011-03-08  Bruno Haible  <bruno@clisp.org>
13085
13086         passfd module, part 1, tweaks.
13087         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13088         Improve indentation. Improve AC_MSG_CHECKING messages.
13089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13090         gl_SOCKET_FAMILIES.
13091
13092 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13093
13094         passfd module, part 1.
13095         * m4/afunix.m4: New file.
13096         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13097         sockets.
13098
13099 2011-03-08  Bruno Haible  <bruno@clisp.org>
13100
13101         regex-quote: New API.
13102         * lib/regex-quote.h: Include <stdbool.h>.
13103         (struct regex_quote_spec): New type.
13104         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13105         New declarations.
13106         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13107         'const struct regex_quote_spec *' argument.
13108         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13109         (pcre_special): New constant.
13110         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13111         New functions.
13112         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13113         'const struct regex_quote_spec *' argument.
13114         * modules/regex-quote (Depends-on): Add stdbool.
13115         * tests/test-regex-quote.c (check): Update for new API. Add test for
13116         anchored results.
13117         * NEWS: Mention the API change.
13118         Reported by Reuben Thomas and Eric Blake.
13119
13120 2011-03-06  Bruno Haible  <bruno@clisp.org>
13121
13122         regex-quote: Fix creation of POSIX extended regular expressions.
13123         * lib/regex-quote.c (ere_special): Add grouping and alternation
13124         operators.
13125
13126 2011-03-05  Bruno Haible  <bruno@clisp.org>
13127
13128         doc: Improve doc regarding autopoint vs. gnulib.
13129         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13130         disable autopoint while running autoreconf.
13131         Suggested by Ralf Wildenhues.
13132
13133 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13134
13135         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13136         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13137
13138 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13139
13140         parse-duration: remove xalloc.h dependency
13141         * lib/parse-duration.c (parse_period): handle NULL return from
13142         strdup instead of calling xstrdup().
13143         * modules/parse-duration: remove "xalloc" dependency
13144
13145 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13146
13147         bootstrap: honor m4_base when running aclocal
13148         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13149
13150 2011-03-02  Jim Meyering  <meyering@redhat.com>
13151
13152         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13153         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13154         on request from Matt Booth.
13155
13156 2011-03-01  Eric Blake  <eblake@redhat.com>
13157
13158         test-link: work on Hurd
13159         * tests/test-link.h (test_link): Hurd rejects linking directories
13160         with EISDIR instead of the POSIX-mandated EPERM.
13161
13162 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13163
13164         stdio: simplify by moving files to printf-posix, sigpipe
13165         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13166         since this symbol is needed only if printf is replaced.
13167         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13168         Require gl_ASM_SYMBOL_PREFIX.
13169         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13170         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13171         (Depends-on): Add 'raise'.
13172         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13173         * modules/stdio (Files): Remove lib/stdio-write.c,
13174         m4/asm-underscore.m4.
13175         (Depends-on): Remove 'raise'.
13176
13177         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13178         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13179         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13180         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13181
13182 2011-02-28  Bruno Haible  <bruno@clisp.org>
13183
13184         localcharset: Assume ANSI C behaviour of free().
13185         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13186         calling free().
13187         Suggested by Simon Josefsson <simon@josefsson.org>.
13188
13189 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13190             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13191             Bruno Haible  <bruno@clisp.org>  (tiny change)
13192
13193         On Cygwin, use /proc file system instead of win32 API.
13194         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13195         Win32 file names.
13196         (DllMain): Simplify by removing Cygwin specific code.
13197         (find_shared_library_fullname): Use Linux specific implementation also
13198         for Cygwin.
13199         (get_shared_library_fullname): Update accordingly.
13200         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13201         Win32 file names.
13202         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13203         Cygwin specific code.
13204
13205 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13206             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13207
13208         Fix OpenMP flag detection for various Fortran compilers.
13209         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13210         OpenMP-conditional compilation construct, to force compile
13211         failure with missing OpenMP flag.
13212         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13213
13214 2011-02-25  Eric Blake  <eblake@redhat.com>
13215
13216         strstr: expand test coverage
13217         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13218         compilation.
13219         * tests/test-memmem.c (main): Duplicate tests.
13220         * tests/test-strcasestr.c (main): Likewise.
13221         * tests/test-c-strcasestr.c (main): Likewise.
13222
13223 2011-02-25  Jim Meyering  <meyering@redhat.com>
13224
13225         maint.mk: detect missing-NL-at-EOF, too
13226         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13227         it also detects when a file lacks a newline at EOF.
13228         (require_exactly_one_NL_at_EOF_): Renamed from
13229         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13230         since people may well have .x-sc_... file names tied to the
13231         existing name.  Suggested by Eric Blake.
13232
13233 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13234
13235         dirname: move m4/dos.m4 functionality into lib/dosname.h
13236
13237         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13238         extracts symbols from it, puts them into config.h; but it's much
13239         easier to use the symbols directly.  filename.h already does this,
13240         but it disagrees with dos.m4 in some respects.  This patch
13241         introduces a different include file dosname.h that packages up
13242         dos.m4, and then later we can work on merging filename.h and
13243         dosname.h.  Applications that need only the easy-to-configure
13244         symbols should consider including dosname.h rather than dirname.h.
13245         * NEWS: Mention incompatible changes.
13246         * m4/dos.m4: Remove.
13247         * lib/dosname.h, modules/dosname: New files.
13248         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13249         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13250         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13251         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13252         Include dosname.h, not dirname.h.
13253         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13254         Include dosname.h, for definitions of symbols like ISSLASH
13255         that used to be in config.h.
13256         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13257         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13258         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13259         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13260         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13261         * modules/rmdir (Files): Likewise.
13262         * modules/stat (Files): Likewise.
13263         * modules/unlink (Files): Likewise.
13264         * modules/dirname-lgpl (Depends-on): Add dosname.
13265         * modules/lstat (Depends-on): Likewise.
13266         * modules/openat (Depends-on): Likewise.
13267         * modules/rmdir (Depends-on): Likewise.
13268         * modules/savewd (Depends-on): Likewise.
13269         * modules/stat (Depends-on): Likewise.
13270         * modules/unlink (Depends-on): Likewise.
13271         * modules/openat (Depends-on): Remove dirname-lgpl.
13272         * modules/savewd (Depends-on): Likewise.
13273         * tests/test-dirname.c: Do not use removed symbols like
13274         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13275         the remaining symbols, e.g., ISSLASH ('\\').
13276
13277 2011-02-25  Eric Blake  <eblake@redhat.com>
13278
13279         strstr: revert patches that introduced bug and pessimization
13280         * lib/str-two-way.h: Add another reference.
13281         (two_way_short_needle, two_way_long_needle): Revert changes from
13282         2011-02-24; they pessimize search speed.
13283         (critical_factorization): Partially revert changes from
13284         2010-06-22; they violate the requirement that the left half of the
13285         needle be smaller than the period of the needle.
13286
13287 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13288
13289         filenamecat: remove unnecessary dependency on dirname-lgpl
13290         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13291         is no direct dependency, just an indirect one via filenamecat-lgpl.
13292
13293         remove: remove unnecessary use of m4/dos.m4
13294         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13295         * modules/remove (FILES): Remove m4/dos.m4.
13296
13297         * lib/openat-proc.c: Don't include dirname.h; not needed.
13298
13299         backupfile: remove unnecessary use of m4/dos.m4
13300         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13301         of its symbols are used by the backupfile code.  backupfile.c does
13302         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13303         for the rare case of programs that want all their backup file
13304         names to live within 8+3 limits, and dos.m4 doesn't address that.
13305         * modules/backupfile (Files): Remove m4/dos.m4.
13306
13307 2011-02-24  Jim Meyering  <meyering@redhat.com>
13308
13309         strstr: fix a bug whereby strstr would mistakenly return NULL
13310         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13311         in period calculation.
13312         (two_way_long_needle): Likewise.
13313         The original problem was reported by Mike Stump in
13314         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13315         Ralf Wildenhues provided the short needle and haystack.
13316         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13317         Add a more involved test to trigger the bug in two_way_long_needle.
13318
13319 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13320
13321         gnulib-tool: remove use of bold display in help screen
13322         * gnulib-tool (func_usage): Do not use bold display anymore in the
13323         help screen.  That was just meant to be a temporary emphasis for a
13324         backward-incompatible change.
13325
13326 2011-02-23  Bruno Haible  <bruno@clisp.org>
13327
13328         Fix misindentation of preprocessor directives.
13329         * lib/argp-namefrob.h: Reindent preprocessor directives.
13330         * lib/getopt_int.h (struct _getopt_data): Likewise.
13331         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13332         * lib/vasnprintf.c (decode_long_double): Likewise.
13333         * tests/test-argmatch.c: Insert blank lines, for clarity.
13334         * tests/test-exclude.c: Likewise.
13335
13336 2011-02-22  Bruno Haible  <bruno@clisp.org>
13337
13338         ioctl: Fix for MacOS X in 64-bit mode.
13339         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13340         value.
13341         Suggested by Eric Blake.
13342         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13343
13344 2011-02-22  Jim Meyering  <meyering@redhat.com>
13345
13346         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13347         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13348         in lib/.
13349
13350 2011-02-22  Eric Blake  <eblake@redhat.com>
13351
13352         maint: avoid any CDPATH issue
13353         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13354
13355         maint: adjust cpp indentation for my modules, as well
13356         * Makefile (sc_cpp_indent_check): Add my name.
13357         * lib/fbufmode.c: Filter through cppi.
13358         * lib/fpurge.c: Likewise.
13359         * lib/freadable.c: Likewise.
13360         * lib/freading.c: Likewise.
13361         * lib/fwritable.c: Likewise.
13362         * lib/fwriting.c: Likewise.
13363         * lib/sigaction.c: Likewise.
13364
13365 2011-02-22  Jim Meyering  <meyering@redhat.com>
13366
13367         maint: adjust cpp indentation to reflect nesting depth
13368         I.e., in a block of code that begins with an unnested "#if",
13369         put one space between the "#" in column 1 and following token.
13370         For example,
13371         -#include <sys/vfs.h>
13372         +# include <sys/vfs.h>
13373         Do this only in .c files that are part of a module I maintain.
13374         * lib/linkat.c: Filter through cppi.
13375         * lib/nanosleep.c: Likewise.
13376         * lib/openat.c: Likewise.
13377         * lib/openat-die.c: Likewise.
13378         * lib/dup3.c: Likewise.
13379         * lib/fchownat.c: Likewise.
13380         * lib/flock.c: Likewise.
13381         * lib/fsync.c: Likewise.
13382         * lib/fts.c: Likewise.
13383         * lib/getpass.c: Likewise.
13384         * lib/gettimeofday.c: Likewise.
13385         * lib/userspec.c: Likewise.
13386         * Makefile (sc_cpp_indent_check): New rule, to check this.
13387
13388 2011-02-22  Bruno Haible  <bruno@clisp.org>
13389
13390         New module 'wctomb'.
13391         * lib/stdlib.in.h (wctomb): New declaration.
13392         * lib/wctomb.c: New file.
13393         * lib/wctomb-impl.h: New file.
13394         * m4/wctomb.m4: New file.
13395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13396         REPLACE_WCTOMB.
13397         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13398         REPLACE_WCTOMB.
13399         * modules/wctomb: New file.
13400         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13401         * doc/posix-functions/wctomb.texi: Mention the new module.
13402         * modules/wctob (Depends-on): Add wctomb.
13403
13404 2011-02-22  Bruno Haible  <bruno@clisp.org>
13405
13406         New module 'mbtowc'.
13407         * lib/stdlib.in.h (mbtowc): New declaration.
13408         * lib/mbtowc.c: New file.
13409         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13410         * m4/mbtowc.m4: New file.
13411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13412         REPLACE_MBTOWC.
13413         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13414         REPLACE_MBTOWC.
13415         * modules/mbtowc: New file.
13416         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13417         * doc/posix-functions/mbtowc.texi: Mention the new module.
13418         * modules/btowc (Depends-on): Add mbtowc.
13419
13420 2011-02-22  Bruno Haible  <bruno@clisp.org>
13421
13422         wcrtomb: Add more tests for native Windows platforms.
13423         * tests/test-wcrtomb-w32-1.sh: New file.
13424         * tests/test-wcrtomb-w32-2.sh: New file.
13425         * tests/test-wcrtomb-w32-3.sh: New file.
13426         * tests/test-wcrtomb-w32-4.sh: New file.
13427         * tests/test-wcrtomb-w32-5.sh: New file.
13428         * tests/test-wcrtomb-w32.c: New file.
13429         * modules/wcrtomb-tests (Files): Add them.
13430         (Makefile.am): Arrange to run these tests.
13431         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13432         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13433
13434 2011-02-20  Bruno Haible  <bruno@clisp.org>
13435
13436         wcrtomb: Enhance test.
13437         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13438
13439 2011-02-20  Bruno Haible  <bruno@clisp.org>
13440
13441         mbrtowc: Tiny optimization.
13442         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13443
13444 2011-02-20  Jim Meyering  <meyering@redhat.com>
13445
13446         test-exclude.c: remove unmatched #endif
13447         * tests/test-exclude.c: Remove stray #endif, left over from
13448         the change of a week ago.
13449
13450 2011-02-19  Jim Meyering  <meyering@redhat.com>
13451
13452         git-version-gen: skip "-dirty" check when appropriate
13453         * build-aux/git-version-gen: Don't run any git commands when the
13454         version string comes from .tarball-version.  Prior to this, we
13455         would run git update-index --refresh even from a just-unpacked
13456         tarball directory, and that could affect a .git/ directory in a
13457         parent of the build directory.  Reported by Mike Frysinger.
13458
13459 2011-02-19  Bruno Haible  <bruno@clisp.org>
13460
13461         unictype/property-byname: Reduce the size of the 'data' segment.
13462         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
13463
13464 2011-02-19  Bruno Haible  <bruno@clisp.org>
13465
13466         unictype/scripts: Reduce the size of the 'data' segment.
13467         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
13468         '%pic'.
13469         * lib/unictype/scripts_byname.gperf: Regenerated.
13470
13471 2011-02-19  Bruno Haible  <bruno@clisp.org>
13472
13473         stdint: Update documentation.
13474         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
13475
13476 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
13477
13478         stdint: omit redundant check for wchar.h
13479         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
13480         always tests whether wchar.h exists, so remove the now-redundant test.
13481
13482 2011-02-18  Bruno Haible  <bruno@clisp.org>
13483
13484         stdint: Cut dependency to module 'wchar'.
13485         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
13486         include the necessary prerequisites.
13487         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
13488         * modules/stdint (Depends-on): Remove wchar.
13489         (Makefile.am): Substitute HAVE_WCHAR_H.
13490         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
13491
13492 2011-02-18  Eric Blake  <eblake@redhat.com>
13493
13494         longlong: skip, rather than fail, on cross-compilation
13495         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
13496         when cross-compiling; regression from 2011-02-16.
13497
13498 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13499
13500         * NEWS: Mention 2011-02-08 change to stdlib.
13501
13502 2011-02-17  Bruno Haible  <bruno@clisp.org>
13503
13504         getloadavg: Add comments about platforms.
13505         * m4/getloadavg.m4: Add comment.
13506         * lib/getloadavg.c: Likewise.
13507
13508 2011-02-17  Bruno Haible  <bruno@clisp.org>
13509
13510         getloadavg: Fix link error on Solaris 2.6.
13511         * modules/getloadavg (Link): New section.
13512         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
13513         linking test-getloadavg.
13514         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
13515         getloadavg.
13516
13517 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
13518
13519         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
13520         It was 'int', but this doesn't match the IRIX 6.5 manual.
13521         Suggested by Bruno Haible in
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
13523
13524 2011-02-17  Bruno Haible  <bruno@clisp.org>
13525
13526         havelib: Fix comments.
13527         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
13528         change.
13529
13530 2011-02-17  Bruno Haible  <bruno@clisp.org>
13531
13532         havelib: Update config.rpath.
13533         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
13534
13535 2011-02-17  Bruno Haible  <bruno@clisp.org>
13536
13537         getloadavg test: Add some plausibility checks.
13538         * tests/test-getloadavg.c (check_avg): Print a warning when the value
13539         is improbable.
13540
13541 2011-02-16  Eric Blake  <eblake@redhat.com>
13542
13543         maintainer-makefile: make syntax-check a no-op from tarballs
13544         * top/maint.mk (no-vc-detected): New rule.
13545         (local-checks-available): Use it to avoid hanging if someone tries
13546         'make syntax-check' from a tarball.  Also append to any non-syntax
13547         checks already defined in cfg.mk.
13548
13549 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
13550
13551         longlong: tune, particularly for common case of c99
13552
13553         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
13554         or running anything if c99, or if unsigned long long int does not
13555         work.  In either case, we know the answer without further tests.
13556         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
13557         it at most once, and use its results for both long long int and
13558         unsigned long long int.  This is more likely to be efficient in
13559         the common case where the program wants to check for both long
13560         long int and unsigned long long int.
13561         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
13562         since the answer is already known.
13563
13564 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
13565
13566         getloadavg: set errno
13567         * lib/getloadavg.c: Set errno when returning -1.  If no other
13568         error number looks appropriate, set it to ENOSYS if the getloadavg
13569         looks like it can't possibly ever work, ENOTSUP otherwise.
13570         Suggested by Bruno Haible in
13571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
13572
13573         getloadavg: trim unused parts and speed up 'configure'
13574         * NEWS: Document this.
13575         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
13576         always compiled if getloadavg is absent.
13577         Move test code to ...
13578         * tests/test-getloadavg.c: New file, containing previous
13579         contents of test from lib/getloadavg.c.  It also contains
13580         suggestions by Bruno Haible in
13581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
13582         * modules/getloadavg-tests: New file.
13583         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
13584         Do tests in the same order as they're needed for getloadavg.c.
13585         Omit setgid-related tests that generate symbols KMEM_GROUP,
13586         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
13587         Do only the tests that are needed to see whether the system has
13588         getloadavg, moving the other tests into ...
13589         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
13590         NLIST_NAME_UNION; nobody should be using it.  Do not define
13591         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
13592         relevant, as the user of this module shouldn't care how getloadavg
13593         is implemented.
13594
13595         getloadavg: omit unused var
13596         * lib/getloadavg.c (getloadavg): Omit unused local variable.
13597
13598 2011-02-15  Jim Meyering  <meyering@redhat.com>
13599
13600         doc: update users.txt
13601         * users.txt: Update iwhd's URL.
13602
13603 2011-02-13  Bruno Haible  <bruno@clisp.org>
13604
13605         Consistent macro naming for macros that use GCC __attribute__.
13606         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
13607         _ATTRIBUTE_NONNULL_.
13608         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
13609         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
13610         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
13611         ATTRIBUTE_DEPRECATED.
13612         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
13613         ATTRIBUTE_NORETURN.
13614         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13615         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13616         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13617         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
13618         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
13619         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
13620         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
13621         ATTRIBUTE_SENTINEL.
13622         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
13623         ATTRIBUTE_RETURN_CHECK.
13624         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
13625         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
13626         ATTRIBUTE_NORETURN.
13627         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
13628         Reported by Paul Eggert.
13629
13630 2011-02-13  Bruno Haible  <bruno@clisp.org>
13631
13632         Don't interfere with a program's definition of __attribute__.
13633         * lib/argp.h (__attribute__): Remove definition.
13634         (_GL_ATTRIBUTE_FORMAT): New macro.
13635         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
13636         * lib/argp-fmtstream.h (__attribute__): Remove definition.
13637         (_GL_ATTRIBUTE_FORMAT): New macro.
13638         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
13639         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
13640         GCC 3 or newer.
13641         * lib/error.h (__attribute__): Remove definition.
13642         (_GL_ATTRIBUTE_FORMAT): New macro.
13643         (error, error_at_line): Use it.
13644         * lib/hash.h (__attribute__): Remove definition.
13645         (ATTRIBUTE_WUR): Update definition. Define always.
13646         * lib/openat.h (__attribute__): Remove definition.
13647         (ATTRIBUTE_NORETURN): Update definition. Define always.
13648         * lib/sigpipe-die.h (__attribute__): Remove definition.
13649         (ATTRIBUTE_NORETURN): Update definition. Define always.
13650         * lib/vasnprintf.h (__attribute__): Remove definition.
13651         (_GL_ATTRIBUTE_FORMAT): New macro.
13652         (asnprintf, vasnprintf): Use it.
13653         * lib/xalloc.h (__attribute__): Remove definition.
13654         (ATTRIBUTE_NORETURN): Update definition. Define always.
13655         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
13656         * lib/xmemdup0.h (__attribute__): Remove definition.
13657         (ATTRIBUTE_NORETURN): Update definition. Define always.
13658         * lib/xprintf.h (__attribute__): Remove definition.
13659         (_GL_ATTRIBUTE_FORMAT): New macro.
13660         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
13661         * lib/xstrtol.h (__attribute__): Remove definition.
13662         (ATTRIBUTE_NORETURN): Update definition. Define always.
13663         * lib/xvasprintf.h (__attribute__): Remove definition.
13664         (_GL_ATTRIBUTE_FORMAT): New macro.
13665         (xasprintf, xvasprintf): Use it.
13666         * tests/test-argmatch.c (__attribute__): Remove definition.
13667         (ATTRIBUTE_NORETURN): Update definition. Define always.
13668         * tests/test-exclude.c (__attribute__): Remove definition.
13669         (ATTRIBUTE_NORETURN): Update definition. Define always.
13670         Reported by Paul Eggert.
13671
13672 2011-02-13  Bruno Haible  <bruno@clisp.org>
13673
13674         mbrtowc: Add more tests for native Windows platforms.
13675         * tests/test-mbrtowc-w32-1.sh: New file.
13676         * tests/test-mbrtowc-w32-2.sh: New file.
13677         * tests/test-mbrtowc-w32-3.sh: New file.
13678         * tests/test-mbrtowc-w32-4.sh: New file.
13679         * tests/test-mbrtowc-w32-5.sh: New file.
13680         * tests/test-mbrtowc-w32.c: New file.
13681         * modules/mbrtowc-tests (Files): Add them.
13682         (Makefile.am): Arrange to run these tests.
13683         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
13684         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
13685
13686 2011-02-13  Bruno Haible  <bruno@clisp.org>
13687
13688         mbrtowc: Work around native Windows bug.
13689         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
13690         guess when no suitable locale for testing was found.
13691         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
13692
13693 2011-02-13  Bruno Haible  <bruno@clisp.org>
13694
13695         mbsinit: Work around mingw bug.
13696         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
13697         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
13698         Windows.
13699         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
13700
13701 2011-02-13  Bruno Haible  <bruno@clisp.org>
13702
13703         mbsinit: Don't crash for a NULL argument.
13704         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
13705         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
13706
13707 2011-02-13  Bruno Haible  <bruno@clisp.org>
13708
13709         Don't interfere with a program's definition of __attribute__.
13710         * lib/stdio.in.h (__attribute__): Remove definition.
13711         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
13712         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
13713         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
13714         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
13715         * lib/string.in.h (__attribute__): Remove definition.
13716         Reported by Paul Eggert.
13717
13718 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13719
13720         stdlib: don't get in the way of non-GCC __attribute__
13721         See thread starting at
13722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
13723         Revert previous stdlib change, installing the following instead:
13724         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
13725         to get in the way of a non-GCC compiler that supports __attribute__.
13726         (_GL_ATTRIBUTE_RETURN): New macro.
13727         (_Exit): Use it instead of __attribute__.
13728
13729 2011-02-12  Bruno Haible  <bruno@clisp.org>
13730
13731         quotearg test: Avoid test failure on mingw.
13732         * tests/test-quotearg.sh: Convert the locale identifier from native
13733         Windows syntax to Unix syntax.
13734
13735 2011-02-12  Bruno Haible  <bruno@clisp.org>
13736
13737         setlocale: Prefer gnulib's override over libintl's override.
13738         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
13739         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
13740         GNULIB_defined_setlocale is set.
13741
13742 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13743
13744         stdlib: support non-GCC __attribute__
13745
13746         Fix a serious and tricky problem encountered when attempting to
13747         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
13748         5.5, but it crashed due to memory corruption on Solaris 10 with
13749         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
13750         bits that are otherwise zero.  This tagging is optional inside
13751         Emacs but is preferred and is used when __attribute__ ((__aligned
13752         (8))) works, as it does with both recent-enough GCC and with Sun C
13753         5.11.  However, Sun C 5.11 is not GCC and does not #define
13754         __GNUC__ and __GNUC_MINOR__.
13755
13756         When I added the getloadavg module to Emacs, it brought in
13757         stdlib.in.h, which contained this fragment:
13758
13759            #ifndef __attribute__
13760            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
13761            #  define __attribute__(Spec)   /* empty */
13762            # endif
13763            #endif
13764
13765         When files that include <stdlib.h> were compiled with Sun C 5.11,
13766         the above code disabled __attribute__ ((__aligned (8))), which
13767         caused variables to not be properly aligned, which eventually led
13768         to the pointer corruption mentioned above.  (This was a bit hard
13769         to diagnose, unfortunately.)
13770
13771         Several "#define __attribute__(X) /* empty */" code snippets need
13772         to be eradicated from Gnulib to work with non-GCC compilers that
13773         support __attribute__.  The Autoconf way to do this is to test for
13774         each kind of attribute that we want support for, and selectively
13775         enable that in source code.
13776
13777         Fix this problem just for stdlib.h, by adding a test for the
13778         __noreturn__ attribute, and change stdlib.in.h to use that test
13779         when needed.  This technique can be easily generalized to the
13780         other *.in.h files and attributes, and a similar technique can be
13781         used for *.h and *.c files.  This patch is enough to solve the
13782         problem for Emacs + getloadavg, and I thought I'd publish it for
13783         feedback before undertaking further, similar fixes in other
13784         modules.
13785
13786         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
13787         because it's not needed for stdlib.h.  It merely substitutes the
13788         value directly into stdlib.h.  We may well need to #define it, or
13789         similar symbols, for other modules, but it's nice to also have an
13790         option to not #define it for applications like Emacs that do not
13791         need it.
13792
13793         * lib/stdlib.in.h (__attribute__): Do not #define.
13794         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
13795         be defined only if the _Exit module is also used.
13796         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
13797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
13798         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
13799         platforms.
13800         * modules/_Exit (Files): Add m4/attribute.m4.
13801         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
13802         * m4/attribute.m4: New file.
13803
13804 2011-02-12  Bruno Haible  <bruno@clisp.org>
13805
13806         wcsrtombs: Work around bug on native Windows.
13807         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
13808         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
13809         instead of len.
13810         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
13811
13812 2011-02-12  Bruno Haible  <bruno@clisp.org>
13813
13814         mbsrtowcs: Work around bug on native Windows.
13815         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
13816         against mingw bug.
13817         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
13818
13819 2011-02-12  Bruno Haible  <bruno@clisp.org>
13820
13821         Avoid setlocale bugs in tests.
13822         * modules/btowc (Dependencies): Add setlocale.
13823         * modules/c-strcase (Dependencies): Likewise.
13824         * modules/mbmemcasecmp (Dependencies): Likewise.
13825         * modules/mbmemcasecoll (Dependencies): Likewise.
13826         * modules/mbrtowc (Dependencies): Likewise.
13827         * modules/mbscasecmp (Dependencies): Likewise.
13828         * modules/mbscasestr (Dependencies): Likewise.
13829         * modules/mbschr (Dependencies): Likewise.
13830         * modules/mbscspn (Dependencies): Likewise.
13831         * modules/mbsinit (Dependencies): Likewise.
13832         * modules/mbsncasecmp (Dependencies): Likewise.
13833         * modules/mbsnrtowcs (Dependencies): Likewise.
13834         * modules/mbspbrk (Dependencies): Likewise.
13835         * modules/mbspcasecmp (Dependencies): Likewise.
13836         * modules/mbsrchr (Dependencies): Likewise.
13837         * modules/mbsrtowcs (Dependencies): Likewise.
13838         * modules/mbsspn (Dependencies): Likewise.
13839         * modules/mbsstr (Dependencies): Likewise.
13840         * modules/nl_langinfo (Dependencies): Likewise.
13841         * modules/quotearg (Dependencies): Likewise.
13842         * modules/unicase/locale-language (Dependencies): Likewise.
13843         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
13844         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
13845         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
13846         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
13847         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
13848         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
13849         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
13850         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
13851         * modules/vasnprintf-posix (Dependencies): Likewise.
13852         * modules/wcrtomb (Dependencies): Likewise.
13853         * modules/wcsnrtombs (Dependencies): Likewise.
13854         * modules/wcsrtombs (Dependencies): Likewise.
13855
13856 2011-02-12  Bruno Haible  <bruno@clisp.org>
13857
13858         setlocale: Workaround native Windows bug.
13859         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
13860         succeeds but sets LC_CTYPE to "C", report a failure.
13861         * tests/test-setlocale2.sh: New file.
13862         * tests/test-setlocale2.c: New file.
13863         * modules/setlocale-tests (Files): Add the new files.
13864         (Makefile.am): Enable test-setlocale2.sh test.
13865         * doc/posix-functions/setlocale.texi: Mention workaround.
13866
13867 2011-02-11  Bruno Haible  <bruno@clisp.org>
13868
13869         Tests for module 'setlocale'.
13870         * modules/setlocale-tests: New file.
13871         * tests/test-setlocale1.sh: New file.
13872         * tests/test-setlocale1.c: New file.
13873
13874         New module 'setlocale'.
13875         * lib/locale.in.h (setlocale): New declaration.
13876         * lib/setlocale.c: New file, based on
13877         gettext/gettext-runtime/intl/setlocale.c.
13878         * m4/setlocale.m4: New file.
13879         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
13880         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
13881         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
13882         REPLACE_SETLOCALE.
13883         * modules/setlocale: New file.
13884         * tests/test-locale-c++.cc: Test the declaration of setlocale.
13885         * doc/posix-functions/setlocale.texi: Mention the new module.
13886
13887 2011-02-11  Bruno Haible  <bruno@clisp.org>
13888
13889         Prepare for locale dependent tests on mingw.
13890         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
13891         because it has the wrong locale encoding.
13892         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
13893         French_France.1252 instead of "fr".
13894         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
13895         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
13896         because it has the wrong locale encoding.
13897         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
13898         native Windows, try Turkish_Turkey.65001.
13899         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
13900         Chinese_China.54936.
13901
13902         Prepare for locale dependent tests on mingw.
13903         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
13904         differently.
13905         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
13906         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
13907         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
13908         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13909
13910 2011-02-11  Eric Blake  <eblake@redhat.com>
13911
13912         strptime: avoid compiler warnings
13913         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
13914         compiler warnings about dead code.
13915         Reported by Daniel P. Berrange.
13916
13917 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
13918
13919         doc: update users.txt
13920         * users.txt: Add rcs.
13921
13922 2011-02-10  John W. Eaton  <jwe@gnu.org>
13923
13924         doc: update users.txt
13925         * users.txt: Add octave.
13926
13927 2011-02-10  Jim Meyering  <meyering@redhat.com>
13928
13929         doc: update users.txt
13930         * users.txt: Add iwhd.
13931
13932 2011-02-09  Bruno Haible  <bruno@clisp.org>
13933
13934         gnulib-tool: Make copyright notice adjustment more robust.
13935         * gnulib-tool (func_import): In sed_transform_main_lib_file,
13936         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
13937         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
13938         License".
13939         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
13940
13941 2011-02-06  Bruno Haible  <bruno@clisp.org>
13942
13943         New module 'towctrans'.
13944         * modules/towctrans: New file.
13945         * lib/wctype.in.h (towctrans): New declaration.
13946         * lib/towctrans.c: New file.
13947         * lib/towctrans-impl.h: New file.
13948         * m4/towctrans.m4: New file.
13949         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
13950         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
13951         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
13952         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
13953         * doc/posix-functions/towctrans.texi: Mention the new module.
13954
13955 2011-02-06  Bruno Haible  <bruno@clisp.org>
13956
13957         New module 'wctrans'.
13958         * modules/wctrans: New file.
13959         * lib/wctype.in.h (wctrans): New declaration.
13960         * lib/wctrans.c: New file.
13961         * lib/wctrans-impl.h: New file.
13962         * m4/wctrans.m4: New file.
13963         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
13964         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
13965         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
13966         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
13967         * doc/posix-functions/wctrans.texi: Mention the new module.
13968
13969 2011-02-06  Bruno Haible  <bruno@clisp.org>
13970
13971         New module 'iswctype'.
13972         * modules/iswctype: New file.
13973         * lib/wctype.in.h (iswctype): New declaration.
13974         * lib/iswctype.c: New file.
13975         * lib/iswctype-impl.h: New file.
13976         * m4/iswctype.m4: New file.
13977         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
13978         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
13979         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
13980         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
13981         * doc/posix-functions/iswctype.texi: Mention the new module and the
13982         HP-UX 11.00 problem.
13983
13984 2011-02-06  Bruno Haible  <bruno@clisp.org>
13985
13986         New module 'wctype'.
13987         * modules/wctype: Change to represent the wctype() substitute.
13988         * lib/wctype.in.h (wctype): New declaration.
13989         * lib/wctype.c: New file.
13990         * lib/wctype-impl.h: New file.
13991         * m4/wctype.m4: New file.
13992         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
13993         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
13994         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
13995         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
13996         * doc/posix-functions/wctype.texi: Mention the new module and the
13997         HP-UX 11.00 problem.
13998
13999 2011-02-06  Bruno Haible  <bruno@clisp.org>
14000
14001         wctype-h: Ensure wctype_t and wctrans_t are defined.
14002         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14003         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14004         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14005         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14006         HAVE_WCTRANS_T.
14007         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14008
14009 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14010
14011         flock: fix license typo
14012
14013         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14014         omitted.
14015
14016 2011-02-08  Bruno Haible  <bruno@clisp.org>
14017
14018         Split large sed scripts, for HP-UX sed.
14019         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14020         to avoid HP-UX limit of 99 commands, in the near future.
14021         * modules/stdlib (Makefile.am): Likewise.
14022         * modules/unistd (Makefile.am): Likewise.
14023         * modules/wchar (Makefile.am): Likewise.
14024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14025         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14026         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14027
14028 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14029             Bruno Haible  <bruno@clisp.org>
14030
14031         stdlib: improve random_r modularization
14032         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14033         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14034         you also need the random_r module to get this material right.
14035         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14036         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14037         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14038
14039 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         stdlib: don't depend on stdint
14042         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14043         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14044         be independent of whether stdint.h is needed.
14045         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14046         here, instead of ...
14047         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14048         struct random_data should be using the random_r module, not just
14049         the stdlib module (which wouldn't make sense: what package needs
14050         just struct random_data without also needing random_r?).
14051         * modules/stdlib (Depends-on): Remove stdint.
14052
14053         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14054         See the thread rooted at
14055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14056         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14057         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14058         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14059         __VMS)); previously it was always included (via fcntl--.h).
14060         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14061         hand; this is good enough for load averages.  Also, do not use
14062         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14063         flags directly if available and don't bother otherwise.  (Packages
14064         that need the extra reliability should use the modules that define
14065         these flags on older platforms that lack them.)
14066         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14067         fcntl-safer.
14068
14069 2011-02-08  Jim Meyering  <meyering@redhat.com>
14070
14071         di-set.h, ino-map.h: add multiple-inclusion guard
14072         Technically, the guard is required only for ino-map.h, due to its
14073         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14074         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14075         * lib/ino-map.h: Likewise.
14076
14077 2011-02-06  Bruno Haible  <bruno@clisp.org>
14078
14079         iswblank: Ensure declaration on glibc systems.
14080         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14081         * modules/iswblank (Dependencies): Add 'extensions'.
14082         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14083
14084 2011-02-06  Bruno Haible  <bruno@clisp.org>
14085
14086         New module 'iswblank'.
14087         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14088         * modules/iswblank: New file.
14089         * modules/wctype-h (Files): Remove lib/iswblank.c.
14090         (Makefile.am): Substitute GNULIB_ISWBLANK.
14091         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14092         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14093         (gl_WCTYPE_H_DEFAULTS): New macro.
14094         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14095         * modules/iswblank-tests: New file.
14096         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14097         * tests/test-wctype-h.c (main): Remove iswblank tests.
14098         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14099         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14100         of 'wctype-h'.
14101         * NEWS: Mention the change.
14102         * modules/mbchar (Depends-on): Add iswblank.
14103
14104 2011-02-08  Bruno Haible  <bruno@clisp.org>
14105
14106         di-set tests: Refactor.
14107         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14108         unnecessary includes.
14109         (ASSERT): Remove macro.
14110         (main): Make C90 compliant by avoiding variable declaration after
14111         statement.
14112         * modules/di-set-tests (Files): Add tests/macros.h.
14113
14114 2011-02-08  Bruno Haible  <bruno@clisp.org>
14115
14116         ino-map tests: Refactor.
14117         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14118         unnecessary includes.
14119         (ASSERT): Remove macro.
14120         (main): Make C90 compliant by avoiding variable declaration after
14121         statement.
14122         * modules/ino-map-tests (Files): Add tests/macros.h.
14123
14124 2011-02-08  Jim Meyering  <meyering@redhat.com>
14125
14126         di-set: add "const" to a cast
14127         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14128         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14129
14130 2011-02-06  Bruno Haible  <bruno@clisp.org>
14131
14132         Rename module 'wctype' to 'wctype-h'.
14133         * modules/wctype-h: Renamed from modules/wctype.
14134         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14135         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14136         (Files, Depends-on, Makefile.am): Update.
14137         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14138         (Files, Makefile.am): Update.
14139         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14140         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14141         * doc/posix-headers/wctype.texi: Update.
14142         * doc/posix-functions/iswalnum.texi: Update.
14143         * doc/posix-functions/iswalpha.texi: Update.
14144         * doc/posix-functions/iswblank.texi: Update.
14145         * doc/posix-functions/iswcntrl.texi: Update.
14146         * doc/posix-functions/iswdigit.texi: Update.
14147         * doc/posix-functions/iswgraph.texi: Update.
14148         * doc/posix-functions/iswlower.texi: Update.
14149         * doc/posix-functions/iswprint.texi: Update.
14150         * doc/posix-functions/iswpunct.texi: Update.
14151         * doc/posix-functions/iswspace.texi: Update.
14152         * doc/posix-functions/iswupper.texi: Update.
14153         * doc/posix-functions/iswxdigit.texi: Update.
14154         * doc/posix-functions/towlower.texi: Update.
14155         * doc/posix-functions/towupper.texi: Update.
14156         * NEWS: Mention the change.
14157         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14158         * modules/mbchar (Dependencies): Likewise.
14159         * modules/mbswidth (Dependencies): Likewise.
14160         * modules/quotearg (Dependencies): Likewise.
14161         * modules/regex (Dependencies): Likewise.
14162         * modules/wcscasecmp (Dependencies): Likewise.
14163         * modules/wcsncasecmp (Dependencies): Likewise.
14164         * modules/wcwidth (Dependencies): Likewise.
14165
14166 2011-02-06  Bruno Haible  <bruno@clisp.org>
14167
14168         New module 'wcswidth'.
14169         * modules/wcswidth: New file.
14170         * lib/wchar.in.h (wcswidth): New declaration.
14171         * lib/wcswidth.c: New file.
14172         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14173         * m4/wcswidth.m4: New file.
14174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14176         REPLACE_WCSWIDTH.
14177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14178         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14179         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14180         * doc/posix-functions/wcswidth.texi: Mention the new module.
14181
14182 2011-02-06  Bruno Haible  <bruno@clisp.org>
14183
14184         New module 'wcstok'.
14185         * modules/wcstok: New file.
14186         * lib/wchar.in.h (wcstok): New declaration.
14187         * lib/wcstok.c: New file.
14188         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14189         * m4/wcstok.m4: New file.
14190         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14191         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14192         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14193         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14194         * doc/posix-functions/wcstok.texi: Mention the new module.
14195
14196 2011-02-06  Bruno Haible  <bruno@clisp.org>
14197
14198         New module 'wcsstr'.
14199         * modules/wcsstr: New file.
14200         * lib/wchar.in.h (wcsstr): New declaration.
14201         * lib/wcsstr.c: New file.
14202         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14203         * m4/wcsstr.m4: New file.
14204         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14205         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14206         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14207         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14208         * doc/posix-functions/wcsstr.texi: Mention the new module.
14209
14210 2011-02-06  Bruno Haible  <bruno@clisp.org>
14211
14212         New module 'wcspbrk'.
14213         * modules/wcspbrk: New file.
14214         * lib/wchar.in.h (wcspbrk): New declaration.
14215         * lib/wcspbrk.c: New file.
14216         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14217         * m4/wcspbrk.m4: New file.
14218         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14219         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14220         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14221         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14222         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14223
14224 2011-02-06  Bruno Haible  <bruno@clisp.org>
14225
14226         New module 'wcsspn'.
14227         * modules/wcsspn: New file.
14228         * lib/wchar.in.h (wcsspn): New declaration.
14229         * lib/wcsspn.c: New file.
14230         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14231         * m4/wcsspn.m4: New file.
14232         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14233         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14234         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14235         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14236         * doc/posix-functions/wcsspn.texi: Mention the new module.
14237
14238 2011-02-06  Bruno Haible  <bruno@clisp.org>
14239
14240         New module 'wcscspn'.
14241         * modules/wcscspn: New file.
14242         * lib/wchar.in.h (wcscspn): New declaration.
14243         * lib/wcscspn.c: New file.
14244         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14245         * m4/wcscspn.m4: New file.
14246         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14247         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14249         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14250         * doc/posix-functions/wcscspn.texi: Mention the new module.
14251
14252 2011-02-06  Bruno Haible  <bruno@clisp.org>
14253
14254         New module 'wcsrchr'.
14255         * modules/wcsrchr: New file.
14256         * lib/wchar.in.h (wcsrchr): New declaration.
14257         * lib/wcsrchr.c: New file.
14258         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14259         * m4/wcsrchr.m4: New file.
14260         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14261         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14262         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14263         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14264         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14265
14266 2011-02-06  Bruno Haible  <bruno@clisp.org>
14267
14268         New module 'wcschr'.
14269         * modules/wcschr: New file.
14270         * lib/wchar.in.h (wcschr): New declaration.
14271         * lib/wcschr.c: New file.
14272         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14273         * m4/wcschr.m4: New file.
14274         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14275         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14276         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14277         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14278         * doc/posix-functions/wcschr.texi: Mention the new module.
14279
14280 2011-02-06  Bruno Haible  <bruno@clisp.org>
14281
14282         New module 'wcsdup'.
14283         * modules/wcsdup: New file.
14284         * lib/wchar.in.h (wcsdup): New declaration.
14285         * lib/wcsdup.c: New file.
14286         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14287         * m4/wcsdup.m4: New file.
14288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14291         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14292         * doc/posix-functions/wcsdup.texi: Mention the new module.
14293
14294 2011-02-06  Bruno Haible  <bruno@clisp.org>
14295
14296         New module 'wcsxfrm'.
14297         * modules/wcsxfrm: New file.
14298         * lib/wchar.in.h (wcsxfrm): New declaration.
14299         * lib/wcsxfrm.c: New file.
14300         * lib/wcsxfrm-impl.h: New file.
14301         * m4/wcsxfrm.m4: New file.
14302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14305         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14306         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14307
14308 2011-02-06  Bruno Haible  <bruno@clisp.org>
14309
14310         New module 'wcscoll'.
14311         * modules/wcscoll: New file.
14312         * lib/wchar.in.h (wcscoll): New declaration.
14313         * lib/wcscoll.c: New file.
14314         * lib/wcscoll-impl.h: New file.
14315         * m4/wcscoll.m4: New file.
14316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14319         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14320         * doc/posix-functions/wcscoll.texi: Mention the new module.
14321
14322 2011-02-06  Bruno Haible  <bruno@clisp.org>
14323
14324         New module 'wcsncasecmp'.
14325         * modules/wcsncasecmp: New file.
14326         * lib/wchar.in.h (wcsncasecmp): New declaration.
14327         * lib/wcsncasecmp.c: New file.
14328         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14329         * m4/wcsncasecmp.m4: New file.
14330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14333         HAVE_WCSNCASECMP.
14334         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14335         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14336
14337 2011-02-06  Bruno Haible  <bruno@clisp.org>
14338
14339         New module 'wcscasecmp'.
14340         * modules/wcscasecmp: New file.
14341         * lib/wchar.in.h (wcscasecmp): New declaration.
14342         * lib/wcscasecmp.c: New file.
14343         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14344         * m4/wcscasecmp.m4: New file.
14345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14347         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14348         HAVE_WCSCASECMP.
14349         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14350         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14351
14352 2011-02-05  Bruno Haible  <bruno@clisp.org>
14353
14354         New module 'wcsncmp'.
14355         * modules/wcsncmp: New file.
14356         * lib/wchar.in.h (wcsncmp): New declaration.
14357         * lib/wcsncmp.c: New file.
14358         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14359         * m4/wcsncmp.m4: New file.
14360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14363         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14364         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14365
14366 2011-02-05  Bruno Haible  <bruno@clisp.org>
14367
14368         New module 'wcscmp'.
14369         * modules/wcscmp: New file.
14370         * lib/wchar.in.h (wcscmp): New declaration.
14371         * lib/wcscmp.c: New file.
14372         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14373         * m4/wcscmp.m4: New file.
14374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14377         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14378         * doc/posix-functions/wcscmp.texi: Mention the new module.
14379
14380 2011-02-05  Bruno Haible  <bruno@clisp.org>
14381
14382         New module 'wcsncat'.
14383         * modules/wcsncat: New file.
14384         * lib/wchar.in.h (wcsncat): New declaration.
14385         * lib/wcsncat.c: New file.
14386         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14387         * m4/wcsncat.m4: New file.
14388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14391         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14392         * doc/posix-functions/wcsncat.texi: Mention the new module.
14393
14394 2011-02-05  Bruno Haible  <bruno@clisp.org>
14395
14396         New module 'wcscat'.
14397         * modules/wcscat: New file.
14398         * lib/wchar.in.h (wcscat): New declaration.
14399         * lib/wcscat.c: New file.
14400         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14401         * m4/wcscat.m4: New file.
14402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14405         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14406         * doc/posix-functions/wcscat.texi: Mention the new module.
14407
14408 2011-02-05  Bruno Haible  <bruno@clisp.org>
14409
14410         New module 'wcpncpy'.
14411         * modules/wcpncpy: New file.
14412         * lib/wchar.in.h (wcpncpy): New declaration.
14413         * lib/wcpncpy.c: New file.
14414         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14415         * m4/wcpncpy.m4: New file.
14416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14418         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14419         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14420         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14421
14422 2011-02-05  Bruno Haible  <bruno@clisp.org>
14423
14424         New module 'wcsncpy'.
14425         * modules/wcsncpy: New file.
14426         * lib/wchar.in.h (wcsncpy): New declaration.
14427         * lib/wcsncpy.c: New file.
14428         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14429         * m4/wcsncpy.m4: New file.
14430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14433         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14434         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14435
14436 2011-02-05  Bruno Haible  <bruno@clisp.org>
14437
14438         New module 'wcpcpy'.
14439         * modules/wcpcpy: New file.
14440         * lib/wchar.in.h (wcpcpy): New declaration.
14441         * lib/wcpcpy.c: New file.
14442         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14443         * m4/wcpcpy.m4: New file.
14444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14446         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
14447         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
14448         * doc/posix-functions/wcpcpy.texi: Mention the new module.
14449
14450 2011-02-05  Bruno Haible  <bruno@clisp.org>
14451
14452         New module 'wcscpy'.
14453         * modules/wcscpy: New file.
14454         * lib/wchar.in.h (wcscpy): New declaration.
14455         * lib/wcscpy.c: New file.
14456         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
14457         * m4/wcscpy.m4: New file.
14458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
14459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
14460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
14461         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
14462         * doc/posix-functions/wcscpy.texi: Mention the new module.
14463
14464 2011-02-05  Bruno Haible  <bruno@clisp.org>
14465
14466         New module 'wcsnlen'.
14467         * modules/wcsnlen: New file.
14468         * lib/wchar.in.h (wcsnlen): New declaration.
14469         * lib/wcsnlen.c: New file.
14470         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
14471         * m4/wcsnlen.m4: New file.
14472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
14473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
14474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
14475         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
14476         * doc/posix-functions/wcsnlen.texi: Mention the new module.
14477
14478 2011-02-05  Bruno Haible  <bruno@clisp.org>
14479
14480         New module 'wcslen'.
14481         * modules/wcslen: New file.
14482         * lib/wchar.in.h (wcslen): New declaration.
14483         * lib/wcslen.c: New file.
14484         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
14485         * m4/wcslen.m4: New file.
14486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
14487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
14488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
14489         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
14490         * doc/posix-functions/wcslen.texi: Mention the new module.
14491
14492 2011-02-05  Bruno Haible  <bruno@clisp.org>
14493
14494         New module 'wmemset'.
14495         * modules/wmemset: New file.
14496         * lib/wchar.in.h (wmemset): New declaration.
14497         * lib/wmemset.c: New file.
14498         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
14499         * m4/wmemset.m4: New file.
14500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
14501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
14502         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
14503         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
14504         * doc/posix-functions/wmemset.texi: Mention the new module.
14505
14506 2011-02-05  Bruno Haible  <bruno@clisp.org>
14507
14508         New module 'wmemmove'.
14509         * modules/wmemmove: New file.
14510         * lib/wchar.in.h (wmemmove): New declaration.
14511         * lib/wmemmove.c: New file.
14512         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
14513         * m4/wmemmove.m4: New file.
14514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
14515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
14516         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
14517         HAVE_WMEMMOVE.
14518         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
14519         * doc/posix-functions/wmemmove.texi: Mention the new module.
14520
14521 2011-02-05  Bruno Haible  <bruno@clisp.org>
14522
14523         New module 'wmemcpy'.
14524         * modules/wmemcpy: New file.
14525         * lib/wchar.in.h (wmemcpy): New declaration.
14526         * lib/wmemcpy.c: New file.
14527         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
14528         * m4/wmemcpy.m4: New file.
14529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
14530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
14531         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
14532         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
14533         * doc/posix-functions/wmemcpy.texi: Mention the new module.
14534
14535 2011-02-05  Bruno Haible  <bruno@clisp.org>
14536
14537         New module 'wmemcmp'.
14538         * modules/wmemcmp: New file.
14539         * lib/wchar.in.h (wmemcmp): New declaration.
14540         * lib/wmemcmp.c: New file.
14541         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
14542         * m4/wmemcmp.m4: New file.
14543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
14544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
14545         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
14546         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
14547         * doc/posix-functions/wmemcmp.texi: Mention the new module.
14548
14549 2011-02-07  Jim Meyering  <meyering@redhat.com>
14550
14551         di-set, ino-map: new modules, from coreutils
14552         * lib/di-set.c: New file.
14553         * lib/di-set.h: Likewise.
14554         * lib/ino-map.c: Likewise.
14555         * lib/ino-map.h: Likewise.
14556         * modules/di-set: Likewise.
14557         * modules/di-set-tests: Likewise.
14558         * modules/ino-map: Likewise.
14559         * modules/ino-map-tests: Likewise.
14560         * tests/test-di-set.c: Likewise.
14561         * tests/test-ino-map.c: Likewise.
14562
14563 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
14564
14565         getloadavg: merge minor changes from Emacs
14566
14567         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
14568         (getloadavg): Use memset, not bzero.
14569
14570         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
14571         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14572         clash (bug#86).
14573
14574 2010-11-14  Bruno Haible  <bruno@clisp.org>
14575
14576         Allow multiple gnulib generated replacements to coexist.
14577         * lib/getopt.in.h (struct option): Avoid identical redefinition.
14578         * lib/inttypes.in.h (imaxdiv_t): Likewise.
14579         * lib/langinfo.in.h (nl_item): Likewise.
14580         * lib/math.in.h (_NaN, NAN): Likewise.
14581         * lib/netdb.in.h (struct addrinfo): Likewise.
14582         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
14583         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
14584         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
14585         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
14586         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
14587         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
14588         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
14589         pthread_mutexattr_init, pthread_mutexattr_settype,
14590         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
14591         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
14592         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
14593         pthread_spin_trylock, pthread_spin_unlock): Likewise.
14594         * lib/sched.in.h (struct sched_param): Likewise.
14595         * lib/se-selinux.in.h (security_class_t, security_context_t,
14596         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
14597         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
14598         lsetfilecon, fsetfilecon, security_check_context,
14599         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
14600         Likewise.
14601         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
14602         Likewise.
14603         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
14604         _gl_function_taking_int_returning_void_t, union sigval,
14605         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
14606         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
14607         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
14608         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
14609         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
14610         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
14611         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
14612         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
14613         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
14614         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
14615         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
14616         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
14617         socklen_t, rpl_fd_isset): Likewise.
14618         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
14619         * lib/sys_time.in.h (struct timeval): Likewise.
14620         * lib/sys_times.in.h (struct tms): Likewise.
14621         * lib/sys_utsname.in.h (struct utsname):
14622         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
14623         * lib/unistd.in.h (getpagesize): Likewise.
14624         * lib/wchar.in.h (mbstate_t): Likewise.
14625         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14626         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
14627         towlower, towupper): Likewise.
14628         Reported by Sam Steingold <sds@gnu.org>.
14629
14630 2011-02-05  Eric Blake  <eblake@redhat.com>
14631
14632         unsetenv: work around Haiku issues
14633         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
14634         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
14635
14636 2010-12-30  Bruce Korb  <bkorb@gnu.org>
14637
14638         libposix: avoid calling error() within libposix
14639         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
14640         is defined.
14641
14642 2011-02-05  Eric Blake  <eblake@redhat.com>
14643
14644         strerror_r-posix: port to cygwin
14645         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
14646         implementation.
14647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
14648         * tests/test-strerror_r.c (main): Fix test.
14649         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14650         issue.
14651
14652 2011-02-05  Bruno Haible  <bruno@clisp.org>
14653
14654         New module 'wmemchr'.
14655         * modules/wmemchr: New file.
14656         * lib/wchar.in.h (wmemchr): New declaration.
14657         * lib/wmemchr.c: New file.
14658         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
14659         * m4/wmemchr.m4: New file.
14660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
14661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
14662         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
14663         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
14664         * doc/posix-functions/wmemchr.texi: Mention the new module.
14665
14666 2011-02-04  Eric Blake  <eblake@redhat.com>
14667
14668         fdopendir: detect FreeBSD bug
14669         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
14670         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
14671
14672 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
14673
14674         stdbool: do not define HAVE_STDBOOL_H
14675         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
14676         AC_HEADER_STDBOOL.  All uses changed.  Do not define
14677         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
14678         imported from the latest Autoconf git.  It was motivated by Emacs,
14679         which uses gnulib but does not need HAVE_STDBOOL_H.
14680
14681 2011-02-04  Bruno Haible  <bruno@clisp.org>
14682
14683         wcsnrtombs: Prepare for new module wwcsnrtombs.
14684         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
14685         * lib/wcsnrtombs.c: Include it.
14686         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
14687
14688         wcsrtombs: Prepare for new module wwcsrtombs.
14689         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
14690         * lib/wcsrtombs.c: Include it.
14691         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
14692
14693         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
14694         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
14695         * lib/mbsnrtowcs.c: Include it.
14696         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
14697
14698         mbsrtowcs: Prepare for new module mbsrtowwcs.
14699         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
14700         * lib/mbsrtowcs.c: Include it.
14701         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
14702
14703 2011-02-04  Bruno Haible  <bruno@clisp.org>
14704
14705         vasnprintf: Reduce use of malloc for small format strings.
14706         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
14707         (arguments): Add room for the first 7 arguments.
14708         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
14709         (char_directives, u8_directives, u16_directives, u32_directives): Add
14710         room for the first 7 directives.
14711         * lib/printf-parse.c: Include <string.h>.
14712         (PRINTF_PARSE): Change memory handling code so that it uses the first
14713         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
14714         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
14715         Reported by Pádraig Brady <P@draigbrady.com>.
14716
14717 2011-01-31  Eric Blake  <eblake@redhat.com>
14718
14719         dup2: work around Haiku bug
14720         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
14721         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
14722         * doc/posix-functions/dup2.texi (dup2): Document the bug.
14723         * tests/test-dup2.c (main): Enhance test.
14724
14725 2011-01-31  Simon Josefsson  <simon@josefsson.org>
14726
14727         doc: off_t is not available in eglibc 2.11.2 stdio.h.
14728         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
14729         declared by eglibc 2.11.2.
14730         * lib/stdio.in.h: Likewise.
14731
14732 2011-01-31  Eric Blake  <eblake@redhat.com>
14733
14734         ignore-value: add missing test dependency
14735         * tests/test-ignore-value.c: Revert previous change; stdio.h
14736         provides off_t.
14737         * modules/ignore-value-tests (Depends-on): Add missing dependency.
14738
14739 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
14740
14741         mktime: clarify long_int width checking
14742         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
14743         the top level, to make it clearer that the assumption about
14744         long_int width is being checked.  See
14745         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
14746
14747 2011-01-30  Simon Josefsson  <simon@josefsson.org>
14748
14749         ignore-value: Fix self-test.
14750         * tests/test-ignore-value.c: Include sys/types.h for off_t.
14751
14752 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         TYPE_MAXIMUM: avoid theoretically undefined behavior
14755         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
14756         negative number, which the C Standard says has undefined behavior.
14757         In practice this is not a problem, but might as well do it by the book.
14758         Reported by Rich Felker and Eric Blake; see
14759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
14760         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
14761         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14762         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14763         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
14764         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14765         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
14766
14767         mktime: #undef mktime before #defining it
14768         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
14769
14770         mktime: systematically normalize tm_isdst comparisons
14771         * lib/mktime.c (isdst_differ): New function.
14772         (__mktime_internal): Use it systematically for all isdst comparisons.
14773         This completes the fix for libc BZ #6723, and removes the need for
14774         normalizing tm_isdst.  See
14775         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
14776         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
14777
14778         mktime: fix some integer overflow issues and sidestep the rest
14779
14780         This was prompted by a bug report by Benjamin Lindner for MinGW
14781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
14782         His bug is due to signed integer overflow (0 - INT_MIN), and I
14783         I scanned through mktime.c looking for other integer overflow
14784         problems, fixing all the bugs I found.
14785
14786         Although the C Standard says the resulting code is still not safe
14787         in the presence of integer overflow, in practice it should be good
14788         enough for all real-world two's-complement implementations, except
14789         for debugging environments that deliberately trap on integer
14790         overflow (e.g., gcc -ftrapv).
14791
14792         * lib/mktime.c (WRAPV): New macro.
14793         (SHR): Also check that long_int and time_t shift right in the
14794         usual way, before using the fast-but-unportable method.
14795         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
14796         used.  The code already assumed two's complement, so there's
14797         no need to test for alternatives.  All uses removed.
14798         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
14799         the C standard.  Problem reported by Rich Felker in
14800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
14801         (twos_complement_arithmetic): Also check long_int and time_t.
14802         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
14803         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
14804         (__mktime_internal): Avoid integer overflow with unary subtraction
14805         in two instances where -1 - X is an adequate replacement for -X,
14806         since the calculations are approximate.
14807
14808 2011-01-29  Eric Blake  <eblake@redhat.com>
14809
14810         mktime: avoid infinite loop
14811         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
14812         type; behavior is still undefined but portable to all known targets.
14813         Reported by Rich Felker.
14814
14815 2011-01-29  Simon Josefsson  <simon@josefsson.org>
14816
14817         rename, unlink, same-inode: Relicense.
14818         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
14819         * modules/unlink (License): Likewise.
14820         * modules/same-inode (License): Likewise.
14821
14822 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14823
14824         mktime: avoid problems on NetBSD 5 / i386
14825         * lib/mktime.c (long_int): New type.  This works around a problem
14826         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
14827         but time_t is 64 bits, and where I expect the existing code is
14828         wrong in some cases.
14829         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
14830         (ydhms_diff): Bring back the compile-time check for wide-enough
14831         year and yday.
14832
14833         mktime: fix misspelling in comment
14834         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
14835         This merges all recent glibc changes of importance.
14836
14837 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14838
14839         move-if-change: cope with concurrent mv of identical file.
14840         * build-aux/move-if-change (CMPPROG): Accept environment
14841         variable as an override for `cmp'.
14842         (usage): Document CMPPROG.
14843         Adjust comparison to drop stdout.  Cope with failure of mv if
14844         the target file exists and is identical to the source, for
14845         parallel builds.
14846         Report from H.J. Lu against binutils in PR binutils/12283.
14847
14848 2011-01-28  Bruce Korb  <bkorb@gnu.org>
14849
14850         * users.txt: Mention sharutils.
14851
14852 2011-01-28  Simon Josefsson  <simon@josefsson.org>
14853
14854         * users.txt: Mention OATH Toolkit.
14855
14856 2011-01-27  Bruno Haible  <bruno@clisp.org>
14857
14858         Prepare for supporting FreeBSD 10.
14859         * build-aux/config.libpath: Remove handling of freebsd1*.
14860
14861 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
14862
14863         Prepare for supporting FreeBSD 10.
14864         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
14865         match FreeBSD 10.0.
14866
14867 2011-01-27  Bruno Haible  <bruno@clisp.org>
14868
14869         vma-iter, get-rusage-as: Add OpenBSD support.
14870         * modules/vma-iter (configure.ac): Test for mquery.
14871         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
14872         * lib/vma-iter.c: Include <sys/mman.h>.
14873         (vma_iterate): Add an implementation based on mquery().
14874         * lib/resource-ext.h (get_rusage_as): Update comments.
14875         * lib/get-rusage-as.c: Likewise.
14876         * lib/get-rusage-data.c: Likewise.
14877
14878 2011-01-26  Karl Berry  <karl@gnu.org>
14879
14880         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
14881         variables to make it easier to override the makeinfo program used.
14882
14883 2011-01-26  Eric Blake  <eblake@redhat.com>
14884
14885         fcntl: work around Haiku F_DUPFD bugs
14886         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
14887         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
14888         cloexec bit on duplication.
14889         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
14890
14891 2011-01-26  Bruno Haible  <bruno@clisp.org>
14892
14893         Enable memory leak tests on AIX.
14894         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
14895         * tests/test-fprintf-posix3.c (main): Likewise.
14896
14897 2011-01-26  Bruno Haible  <bruno@clisp.org>
14898
14899         Tests for module 'get-rusage-data'.
14900         * modules/get-rusage-data-tests: New file.
14901         * tests/test-get-rusage-data.c: New file.
14902
14903         New module 'get-rusage-data'.
14904         * lib/resource-ext.h (get_rusage_data): New declaration.
14905         * lib/get-rusage-data.c: New file.
14906         * modules/get-rusage-data: New file.
14907
14908 2011-01-25  Bruno Haible  <bruno@clisp.org>
14909
14910         get-rusage-as: Allow for easier testing.
14911         * lib/resource-ext.h (get_rusage_as): Add comment.
14912         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
14913         (main): New function for interactive testing.
14914
14915 2011-01-25  Bruno Haible  <bruno@clisp.org>
14916
14917         vma-iter: Treat Haiku like BeOS.
14918         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
14919         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
14920
14921 2011-01-25  Eric Blake  <eblake@redhat.com>
14922
14923         c-stack: fix regression on cygwin when libsigsegv is present
14924         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
14925
14926 2011-01-24  Bruno Haible  <bruno@clisp.org>
14927
14928         vma-iter: Avoid empty intervals.
14929         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
14930         on an empty interval.
14931
14932 2011-01-24  Jim Meyering  <meyering@redhat.com>
14933
14934         u64: remove unnecessary #include
14935         * lib/u64.h: Don't include <stddef.h>.  It was not used.
14936
14937 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14938
14939         Allow the user to avoid the HAVE_RAW_DECL_* macros.
14940         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
14941
14942 2011-01-23  Bruno Haible  <bruno@clisp.org>
14943
14944         New module 'vma-iter'.
14945         * lib/vma-iter.h: New file.
14946         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
14947         * modules/vma-iter: New file.
14948         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
14949         for get_rusage_as_via_iterator.
14950         (vma_iterate_callback): New function.
14951         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
14952         * modules/get-rusage-as (Depends-on): Add vma-iter.
14953
14954 2011-01-23  Bruno Haible  <bruno@clisp.org>
14955
14956         uninorm: Tweak includes.
14957         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
14958         Reported by Jim Meyering.
14959
14960 2011-01-23  Bruno Haible  <bruno@clisp.org>
14961
14962         get-rusage-as: Improve on NetBSD.
14963         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
14964         /proc, like on FreeBSD.
14965
14966 2011-01-23  Jim Meyering  <meyering@redhat.com>
14967
14968         xreadlink.h: remove unnecessary #include
14969         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
14970
14971         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
14972         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
14973
14974 2011-01-23  Bruno Haible  <bruno@clisp.org>
14975
14976         get-rusage-as: Fix bug.
14977         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
14978         original limit when aborting the first loop.
14979
14980 2011-01-23  Bruno Haible  <bruno@clisp.org>
14981
14982         wctype: Ensure valid C syntax.
14983         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
14984         unconditionally, instead of gl_NEXT_HEADERS conditionally.
14985
14986 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14987
14988         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
14989         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
14990         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
14991         as they are needed only for configure's test case.
14992         This removes two unnecessary symbols from config.h.
14993
14994         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
14995         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
14996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
14997         AC_CHECK_HEADERS_ONCE on a header that we also invoke
14998         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
14999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15000         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15001         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15002         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15003         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15004         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15006         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15007         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15008         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15009         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15010         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15011         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15012
15013 2011-01-21  Eric Blake  <eblake@redhat.com>
15014
15015         maintainer-makefile: work with older git for submodule check
15016         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15017         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15018         Reported by Matthias Bolte.
15019
15020         bootstrap: minor portability fixes
15021         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15022         (usage): Omit leading capital and trailing . on help phrases, per
15023         GNU Coding Standards.
15024         (check_versions, top level): Prefix messages with script name.
15025
15026 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15027
15028         bootstrap: support --no-git option
15029         * build-aux/bootstrap: Add --no-git option, to be used when
15030         --gnulib-srcdir points to the exact desired checkout.
15031
15032 2011-01-21  Eric Blake  <eblake@redhat.com>
15033
15034         strerror_r-posix: work with glibc 2.13
15035         * lib/strerror_r.c (strerror_r): Fix return type.
15036
15037 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15038             Bruno Haible  <bruno@clisp.org>
15039
15040         uN_strstr: New unit tests.
15041         * modules/unistr/u8-strstr-tests: New file.
15042         * modules/unistr/u16-strstr-tests: New file.
15043         * modules/unistr/u32-strstr-tests: New file.
15044         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15045         * tests/unistr/test-u8-strstr.c: New file.
15046         * tests/unistr/test-u16-strstr.c: New file.
15047         * tests/unistr/test-u32-strstr.c: New file.
15048
15049 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15050             Bruno Haible  <bruno@clisp.org>
15051
15052         Make uN_strstr functions O(n) worst-case.
15053         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15054         16-bit and 32-bit unit cases, use the unibyte algorithm from
15055         lib/mbsstr.c.
15056         * lib/unistr/u8-strstr.c: Include <string.h>.
15057         (UNIT_IS_UINT8_T): New macro.
15058         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15059         (U_STRLEN, U_STRNLEN): New macros.
15060         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15061         (U_STRLEN, U_STRNLEN): New macros.
15062         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15063         (configure.ac): Update required libunistring version.
15064         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15065         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15066         malloca.
15067         (configure.ac): Update required libunistring version.
15068         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15069         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15070         malloca.
15071         (configure.ac): Update required libunistring version.
15072
15073 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15074             Bruno Haible  <bruno@clisp.org>
15075
15076         Prepare for faster uN_strstr functions.
15077         * lib/str-kmp.h: Support definable UNITs.
15078         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15079         needle_len argument.
15080         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15081         * lib/mbscasestr.c (mbscasestr): Likewise.
15082
15083 2011-01-21  Pádraig Brady <P@draigBrady.com>
15084
15085         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15086         * tests/test-malloca.c (main): Unset the environment variable
15087         to greatly speed up the test.
15088         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15089         * modules/malloca-tests: Depend on unsetenv.
15090
15091 2011-01-21  Pádraig Brady <P@draigBrady.com>
15092
15093         ignore-value: remove stdint dependency
15094         * lib/ignore-value.h: Remove <stdint.h>
15095         * modules/ignore-value: Remove stdint dependency.
15096
15097 2011-01-21  Jim Meyering  <meyering@redhat.com>
15098
15099         maint.mk: adjust variable name to be consistent with other gl_ vars
15100         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15101         to be lower case.
15102
15103 2011-01-20  Jim Meyering  <meyering@redhat.com>
15104
15105         maint.mk: make "check" depend on public-submodule-commit by default
15106         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15107
15108 2011-01-20  Bruno Haible  <bruno@clisp.org>
15109
15110         mbfile, mbiter: Complete change from 2008-12-21.
15111         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15112         * m4/mbiter.m4 (gl_MBITER): Likewise.
15113
15114 2011-01-20  Jim Meyering  <meyering@redhat.com>
15115
15116         init.sh: insert space between each function name and "()"
15117         * tests/init.sh: Make it a little easier to see that a function's
15118         name is "warn_", and not "warn" when looking at the first part of
15119         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15120
15121 2011-01-20  Jim Meyering  <meyering@redhat.com>
15122
15123         mountlist: clean up code formatting
15124         * lib/mountlist.c (read_file_system_list): Split a long line,
15125         correct bracing style, use NULL in place of "(struct statfs *)0",
15126         don't parenthesize return value, add spaces around "=" and after
15127         ";-in-for-stmt".
15128
15129 2011-01-14  Markus Duft <mduft@gentoo.org>
15130
15131         mountlist: add support for Interix
15132         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15133         Apply statvfs to all entries of /dev/fs.
15134         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15135         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15136
15137 2011-01-20  Jim Meyering  <meyering@redhat.com>
15138
15139         maint.mk: improve the public-submodule-commit rule
15140         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15141         to suppress printing of its commands... unless V=1.
15142         Add git submodule's --quiet option to suppress printing of e.g.,
15143         "Entering gnulib" output.
15144         "cd" into $(srcdir) before running git submodule.
15145
15146 2011-01-20  Bruno Haible  <bruno@clisp.org>
15147
15148         include_next: Fix bug introduced on 2011-01-18.
15149         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15150         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15151         ac_cv_header_... variable if the second argument is not 'check'.
15152         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15153         gl_NEXT_HEADERS_INTERNAL.
15154
15155 2011-01-20  Bruno Haible  <bruno@clisp.org>
15156
15157         Allow the user to avoid the GNULIB_TEST_* macros.
15158         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15159         Suggested by Paul Eggert.
15160
15161 2011-01-14  Jim Meyering  <meyering@redhat.com>
15162
15163         bootstrap: avoid failure when there is no .gitmodules file
15164         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15165         has been assigned to, even when its value is the empty string.
15166         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15167         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15168         Reported by John W. Eaton <jwe@gnu.org>.
15169
15170 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15171
15172         assume <ctype.h>, ..., <time.h> exist
15173         For years gnulib has been assuming the existence of the headers
15174         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15175         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15176         them, since they don't appear to be needed.
15177         * README (Portability guidelines): Document this.
15178         * lib/flock.c: Assume <fcntl.h> exists.
15179         * lib/regex_internal.h: Assume <locale.h> exists.
15180         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15181         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15182         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15183         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15184         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15185         * m4/regex.m4 (gl_REGEX): Likewise.
15186         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15187         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15188         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15189         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15190         * tests/test-argp.c: Likewise.
15191         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15192
15193         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15194         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15195         AA_APPLE_UNIVERSAL_BUILD.  See
15196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15197         * NEWS: Document this.
15198
15199 2011-01-19  Eric Blake  <eblake@redhat.com>
15200
15201         c-stack: assume stack overflow if SA_SIGINFO unsupported
15202         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15203         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15204         sigaction will work.
15205         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15206         behavior match Linux.
15207         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15208
15209         stdbool-tests: accomodate Haiku
15210         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15211
15212         binary-io: fix O_TEXT on Haiku
15213         * modules/binary-io (Depends-on): Add fcntl-h.
15214         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15215         than blindly undefining O_TEXT.
15216         Reported by Scott McCreary.
15217
15218 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15219
15220         include_next: do not check for standard headers like stddef.h
15221
15222         I found this problem when modifying Emacs to use gnulib.
15223         I noticed that it added HAVE_STDDEF_H to config.h, even though
15224         gnulib always assumes <stddef.h> exists as per README and this
15225         symbol is unnecessary.
15226         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15227         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15228         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15229         faster for headers like stddef.h that are known to exist.
15230         (gl_CHECK_NEXT_HEADERS): Use it.
15231         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15232         rather than gl_CHECK_NEXT_HEADERS.
15233         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15234         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15235
15236 2011-01-18  Eric Blake  <eblake@redhat.com>
15237
15238         ansi-c++-opt: skip C++ dependency style if C++ is unused
15239         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15240         tests when we know C++ compilation is not desired.
15241         Reported by Scott McCreary.
15242
15243 2011-01-18  Bruno Haible  <bruno@clisp.org>
15244
15245         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15246         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15247         (main): Perform test also when getrlimit and setrlimit don't exist or
15248         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15249         limiting the address space size using setrlimit, compare the address
15250         space size before and after the the test.
15251         * tests/test-dprintf-posix2.c: Likewise.
15252         * tests/test-fprintf-posix3.sh: Update skip messages.
15253         * tests/test-dprintf-posix2.sh: Likewise.
15254         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15255         * modules/dprintf-posix-tests (Depends-on): Likewise.
15256         Reported by Bruce Korb <bkorb@gnu.org> and
15257         Gary V. Vaughan <gary@gnu.org>.
15258
15259 2011-01-18  Bruno Haible  <bruno@clisp.org>
15260
15261         get-rusage-as: Improvement for Cygwin.
15262         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15263         areas that are merely reserved.
15264
15265 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15266
15267         strftime: remove dependencies on multibyte modules
15268
15269         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15270         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15271         only if __osf__ is defined, and I suspect OSF doesn't need these
15272         other modules.  If my guess is wrong, we'll need to come up with a
15273         variant of strftime that doesn't need the multibyte modules.
15274
15275         I discovered this problem when attempting modify Emacs to use the
15276         strftime module.  With the previous gnulib, this caused Emacs to
15277         need 31 new files, ranging from lib/config.charset to
15278         m4/wint_t.m4.  This was overkill and I expect would be offputting
15279         to the Emacs maintainers.  After this change, only 6 new files are
15280         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15281         stdbool.m4, and tm_gmtoff.m4.
15282
15283         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15284         Suggested by Bruno Haible in
15285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15286         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15287         and do not check for wchar.h.
15288         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15289         (Depends-on): Remove mbrlen, mbsinit, wchar.
15290
15291 2011-01-18  Bruno Haible  <bruno@clisp.org>
15292
15293         Tests for module 'get-rusage-as'.
15294         * modules/get-rusage-as-tests: New file.
15295         * tests/test-get-rusage-as.c: New file.
15296
15297         New module 'get-rusage-as'.
15298         * modules/get-rusage-as: New file.
15299         * lib/resource-ext.h: New file.
15300         * lib/get-rusage-as.c: New file.
15301
15302 2011-01-17  Eric Blake  <eblake@redhat.com>
15303
15304         sigaction: relax license from LGPLv3+ to LGPLv2+
15305         * modules/sigaction (License): Relax to LGPLv2+.
15306
15307 2011-01-14  Bruno Haible  <bruno@clisp.org>
15308
15309         filemode: Make function declarations usable in C++ mode.
15310         * lib/filemode.h: Enclose function declarations in extern "C" block.
15311         Reported by John W. Eaton <jwe@gnu.org>.
15312
15313 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15314
15315         save-cwd: no longer include "xgetcwd.h"
15316         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15317         This avoids a compilation failure in projects that use save-cwd
15318         without also using the xgetcwd module.
15319
15320 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15321
15322         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15323         This is so that a program like Emacs, which needs only dtoastr,
15324         does not have to bother with distributing and compiling ftoastr
15325         and ldtoastr.
15326         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15327         * modules/dtoastr, modules/ldtoastr: New files.
15328         * modules/ftoastr: Now works just for 'float'.
15329         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15330         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15331         dtoastr.c, ldtoastr.c.
15332
15333 2011-01-11  Jim Meyering  <meyering@redhat.com>
15334
15335         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15336         There is no need to work around the lack of the fchdir function,
15337         since gnulib can now provide a replacement when required.
15338         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15339         * modules/save-cwd (Depends-on): Add fchdir.
15340
15341 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15342
15343         openat, save-cwd: avoid xmalloc
15344
15345         This removes a direct (but undocumented) dependency of openat on
15346         xalloc, along with an indirect dependency via save-cwd.  It also
15347         removes a dependency of save-cwd on xgetcwd, and thereby
15348         indirectly on xalloc.  This change causes the openat substitute
15349         to fall back on save_cwd when memory is tight, and for save_cwd to
15350         fail instead of dying when memory is tight, but that's good enough.
15351         Problem and initial idea for fix reported by Bastien Roucaries in
15352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15353
15354         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15355         xalloc.h (for xmalloc).
15356         (openat_proc_name): Use malloc, not xmalloc.
15357         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15358         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15359
15360         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15361         This avoids heap allocation for file names whose lengths are in
15362         the range 512..1023, with the upper bound increasing to at most
15363         4031 depending on the platform's PATH_MAX.  (We do not want
15364         pathmax.h here as it might supply a non-constant PATH_MAX.)
15365         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15366         Perhaps they should be moved to malloca.h?
15367         (OPENAT_BUFFER_SIZE): Use them.
15368
15369 2011-01-10  Bruno Haible  <bruno@clisp.org>
15370
15371         doc: Update users.txt.
15372         * users.txt: Add recutils.
15373
15374 2011-01-09  Karl Berry  <karl@gnu.org>
15375
15376         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15377
15378         * doc/configmake.texi: New file.
15379         * doc/gnulib.texi: Include it.
15380         * modules/configmake: Move documentation from here.
15381
15382 2011-01-09  Bruno Haible  <bruno@clisp.org>
15383
15384         Update to Unicode 6.0.0.
15385         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15386         (get_lbp): Update for Unicode 6.0.0.
15387         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15388         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15389         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15390         U+11001, U+11038..U+11046. Remove U+06DE.
15391         (uc_width): Fix bounds of planes.
15392         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15393         lib/uniwidth/width.c.
15394         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15395         trailing whitespace removed.
15396         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15397         without comments, but with the original copyright notice.
15398         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15399         * lib/unicase/ignorable.h: Likewise.
15400         * lib/unicase/tocasefold.h: Likewise.
15401         * lib/unicase/tolower.h: Likewise.
15402         * lib/unicase/totitle.h: Likewise.
15403         * lib/unicase/toupper.h: Likewise.
15404         * lib/unictype/bidi_of.h: Likewise.
15405         * lib/unictype/blocks.h: Likewise.
15406         * lib/unictype/categ_C.h: Likewise.
15407         * lib/unictype/categ_Cn.h: Likewise.
15408         * lib/unictype/categ_L.h: Likewise.
15409         * lib/unictype/categ_Ll.h: Likewise.
15410         * lib/unictype/categ_Lm.h: Likewise.
15411         * lib/unictype/categ_Lo.h: Likewise.
15412         * lib/unictype/categ_Lu.h: Likewise.
15413         * lib/unictype/categ_M.h: Likewise.
15414         * lib/unictype/categ_Mc.h: Likewise.
15415         * lib/unictype/categ_Me.h: Likewise.
15416         * lib/unictype/categ_Mn.h: Likewise.
15417         * lib/unictype/categ_N.h: Likewise.
15418         * lib/unictype/categ_Nd.h: Likewise.
15419         * lib/unictype/categ_No.h: Likewise.
15420         * lib/unictype/categ_P.h: Likewise.
15421         * lib/unictype/categ_Po.h: Likewise.
15422         * lib/unictype/categ_S.h: Likewise.
15423         * lib/unictype/categ_Sc.h: Likewise.
15424         * lib/unictype/categ_Sk.h: Likewise.
15425         * lib/unictype/categ_Sm.h: Likewise.
15426         * lib/unictype/categ_So.h: Likewise.
15427         * lib/unictype/categ_of.h: Likewise.
15428         * lib/unictype/combining.h: Likewise.
15429         * lib/unictype/ctype_alnum.h: Likewise.
15430         * lib/unictype/ctype_alpha.h: Likewise.
15431         * lib/unictype/ctype_graph.h: Likewise.
15432         * lib/unictype/ctype_lower.h: Likewise.
15433         * lib/unictype/ctype_print.h: Likewise.
15434         * lib/unictype/ctype_punct.h: Likewise.
15435         * lib/unictype/ctype_upper.h: Likewise.
15436         * lib/unictype/decdigit.h: Likewise.
15437         * lib/unictype/digit.h: Likewise.
15438         * lib/unictype/numeric.h: Likewise.
15439         * lib/unictype/pr_alphabetic.h: Likewise.
15440         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15441         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15442         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15443         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15444         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15445         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15446         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15447         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15448         * lib/unictype/pr_case_ignorable.h: Likewise.
15449         * lib/unictype/pr_cased.h: Likewise.
15450         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
15451         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
15452         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
15453         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
15454         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
15455         * lib/unictype/pr_combining.h: Likewise.
15456         * lib/unictype/pr_composite.h: Likewise.
15457         * lib/unictype/pr_currency_symbol.h: Likewise.
15458         * lib/unictype/pr_decimal_digit.h: Likewise.
15459         * lib/unictype/pr_deprecated.h: Likewise.
15460         * lib/unictype/pr_format_control.h: Likewise.
15461         * lib/unictype/pr_grapheme_base.h: Likewise.
15462         * lib/unictype/pr_grapheme_extend.h: Likewise.
15463         * lib/unictype/pr_grapheme_link.h: Likewise.
15464         * lib/unictype/pr_id_continue.h: Likewise.
15465         * lib/unictype/pr_id_start.h: Likewise.
15466         * lib/unictype/pr_ideographic.h: Likewise.
15467         * lib/unictype/pr_lowercase.h: Likewise.
15468         * lib/unictype/pr_math.h: Likewise.
15469         * lib/unictype/pr_numeric.h: Likewise.
15470         * lib/unictype/pr_other_alphabetic.h: Likewise.
15471         * lib/unictype/pr_other_id_continue.h: Likewise.
15472         * lib/unictype/pr_other_math.h: Likewise.
15473         * lib/unictype/pr_punctuation.h: Likewise.
15474         * lib/unictype/pr_sentence_terminal.h: Likewise.
15475         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15476         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15477         * lib/unictype/pr_unified_ideograph.h: Likewise.
15478         * lib/unictype/pr_uppercase.h: Likewise.
15479         * lib/unictype/pr_xid_continue.h: Likewise.
15480         * lib/unictype/pr_xid_start.h: Likewise.
15481         * lib/unictype/scripts.h: Likewise.
15482         * lib/unictype/scripts_byname.gperf: Likewise.
15483         * lib/unictype/sy_java_ident.h: Likewise.
15484         * lib/unigbrk/gbrkprop.h: Likewise.
15485         * lib/unilbrk/lbrkprop1.h: Likewise.
15486         * lib/unilbrk/lbrkprop2.h: Likewise.
15487         * lib/uninorm/decomposition-table2.h: Likewise.
15488         * lib/uniwbrk/wbrkprop.h: Likewise.
15489         * tests/unicase/test-cased.c: Likewise.
15490         * tests/unicase/test-ignorable.c: Likewise.
15491         * tests/unicase/test-uc_tolower.c: Likewise.
15492         * tests/unicase/test-uc_totitle.c: Likewise.
15493         * tests/unicase/test-uc_toupper.c: Likewise.
15494         * tests/unictype/test-categ_C.c: Likewise.
15495         * tests/unictype/test-categ_Cn.c: Likewise.
15496         * tests/unictype/test-categ_L.c: Likewise.
15497         * tests/unictype/test-categ_Ll.c: Likewise.
15498         * tests/unictype/test-categ_Lm.c: Likewise.
15499         * tests/unictype/test-categ_Lo.c: Likewise.
15500         * tests/unictype/test-categ_Lu.c: Likewise.
15501         * tests/unictype/test-categ_M.c: Likewise.
15502         * tests/unictype/test-categ_Mc.c: Likewise.
15503         * tests/unictype/test-categ_Me.c: Likewise.
15504         * tests/unictype/test-categ_Mn.c: Likewise.
15505         * tests/unictype/test-categ_N.c: Likewise.
15506         * tests/unictype/test-categ_Nd.c: Likewise.
15507         * tests/unictype/test-categ_No.c: Likewise.
15508         * tests/unictype/test-categ_P.c: Likewise.
15509         * tests/unictype/test-categ_Po.c: Likewise.
15510         * tests/unictype/test-categ_S.c: Likewise.
15511         * tests/unictype/test-categ_Sc.c: Likewise.
15512         * tests/unictype/test-categ_Sk.c: Likewise.
15513         * tests/unictype/test-categ_Sm.c: Likewise.
15514         * tests/unictype/test-categ_So.c: Likewise.
15515         * tests/unictype/test-ctype_alnum.c: Likewise.
15516         * tests/unictype/test-ctype_alpha.c: Likewise.
15517         * tests/unictype/test-ctype_graph.c: Likewise.
15518         * tests/unictype/test-ctype_lower.c: Likewise.
15519         * tests/unictype/test-ctype_print.c: Likewise.
15520         * tests/unictype/test-ctype_punct.c: Likewise.
15521         * tests/unictype/test-ctype_upper.c: Likewise.
15522         * tests/unictype/test-decdigit.h: Likewise.
15523         * tests/unictype/test-digit.h: Likewise.
15524         * tests/unictype/test-numeric.h: Likewise.
15525         * tests/unictype/test-pr_alphabetic.c: Likewise.
15526         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15527         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
15528         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
15529         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15530         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15531         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15532         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15533         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15534         * tests/unictype/test-pr_case_ignorable.c: Likewise.
15535         * tests/unictype/test-pr_cased.c: Likewise.
15536         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
15537         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
15538         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
15539         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
15540         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
15541         * tests/unictype/test-pr_combining.c: Likewise.
15542         * tests/unictype/test-pr_composite.c: Likewise.
15543         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15544         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15545         * tests/unictype/test-pr_deprecated.c: Likewise.
15546         * tests/unictype/test-pr_format_control.c: Likewise.
15547         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15548         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15549         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15550         * tests/unictype/test-pr_id_continue.c: Likewise.
15551         * tests/unictype/test-pr_id_start.c: Likewise.
15552         * tests/unictype/test-pr_ideographic.c: Likewise.
15553         * tests/unictype/test-pr_lowercase.c: Likewise.
15554         * tests/unictype/test-pr_math.c: Likewise.
15555         * tests/unictype/test-pr_numeric.c: Likewise.
15556         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15557         * tests/unictype/test-pr_other_id_continue.c: Likewise.
15558         * tests/unictype/test-pr_other_math.c: Likewise.
15559         * tests/unictype/test-pr_punctuation.c: Likewise.
15560         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15561         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15562         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15563         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15564         * tests/unictype/test-pr_uppercase.c: Likewise.
15565         * tests/unictype/test-pr_xid_continue.c: Likewise.
15566         * tests/unictype/test-pr_xid_start.c: Likewise.
15567         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15568         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15569         changes.
15570         * lib/unictype/categ_Cc.h: Likewise.
15571         * lib/unictype/categ_Cf.h: Likewise.
15572         * lib/unictype/categ_Co.h: Likewise.
15573         * lib/unictype/categ_Cs.h: Likewise.
15574         * lib/unictype/categ_Lt.h: Likewise.
15575         * lib/unictype/categ_Nl.h: Likewise.
15576         * lib/unictype/categ_Pc.h: Likewise.
15577         * lib/unictype/categ_Pd.h: Likewise.
15578         * lib/unictype/categ_Pe.h: Likewise.
15579         * lib/unictype/categ_Pf.h: Likewise.
15580         * lib/unictype/categ_Pi.h: Likewise.
15581         * lib/unictype/categ_Ps.h: Likewise.
15582         * lib/unictype/categ_Z.h: Likewise.
15583         * lib/unictype/categ_Zl.h: Likewise.
15584         * lib/unictype/categ_Zp.h: Likewise.
15585         * lib/unictype/categ_Zs.h: Likewise.
15586         * lib/unictype/ctype_blank.h: Likewise.
15587         * lib/unictype/ctype_cntrl.h: Likewise.
15588         * lib/unictype/ctype_digit.h: Likewise.
15589         * lib/unictype/ctype_space.h: Likewise.
15590         * lib/unictype/ctype_xdigit.h: Likewise.
15591         * lib/unictype/mirror.h: Likewise.
15592         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15593         * lib/unictype/pr_bidi_block_separator.h: Likewise.
15594         * lib/unictype/pr_bidi_common_separator.h: Likewise.
15595         * lib/unictype/pr_bidi_control.h: Likewise.
15596         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
15597         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
15598         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15599         * lib/unictype/pr_bidi_pdf.h: Likewise.
15600         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
15601         * lib/unictype/pr_bidi_whitespace.h: Likewise.
15602         * lib/unictype/pr_dash.h: Likewise.
15603         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
15604         * lib/unictype/pr_diacritic.h: Likewise.
15605         * lib/unictype/pr_extender.h: Likewise.
15606         * lib/unictype/pr_hex_digit.h: Likewise.
15607         * lib/unictype/pr_hyphen.h: Likewise.
15608         * lib/unictype/pr_ids_binary_operator.h: Likewise.
15609         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
15610         * lib/unictype/pr_ignorable_control.h: Likewise.
15611         * lib/unictype/pr_iso_control.h: Likewise.
15612         * lib/unictype/pr_join_control.h: Likewise.
15613         * lib/unictype/pr_left_of_pair.h: Likewise.
15614         * lib/unictype/pr_line_separator.h: Likewise.
15615         * lib/unictype/pr_logical_order_exception.h: Likewise.
15616         * lib/unictype/pr_non_break.h: Likewise.
15617         * lib/unictype/pr_not_a_character.h: Likewise.
15618         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
15619         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
15620         * lib/unictype/pr_other_id_start.h: Likewise.
15621         * lib/unictype/pr_other_lowercase.h: Likewise.
15622         * lib/unictype/pr_other_uppercase.h: Likewise.
15623         * lib/unictype/pr_paired_punctuation.h: Likewise.
15624         * lib/unictype/pr_paragraph_separator.h: Likewise.
15625         * lib/unictype/pr_pattern_syntax.h: Likewise.
15626         * lib/unictype/pr_pattern_white_space.h: Likewise.
15627         * lib/unictype/pr_private_use.h: Likewise.
15628         * lib/unictype/pr_quotation_mark.h: Likewise.
15629         * lib/unictype/pr_radical.h: Likewise.
15630         * lib/unictype/pr_soft_dotted.h: Likewise.
15631         * lib/unictype/pr_space.h: Likewise.
15632         * lib/unictype/pr_titlecase.h: Likewise.
15633         * lib/unictype/pr_variation_selector.h: Likewise.
15634         * lib/unictype/pr_white_space.h: Likewise.
15635         * lib/unictype/pr_zero_width.h: Likewise.
15636         * lib/unictype/sy_c_ident.h: Likewise.
15637         * lib/unictype/sy_c_whitespace.h: Likewise.
15638         * lib/unictype/sy_java_whitespace.h: Likewise.
15639         * lib/uninorm/composition-table.gperf: Likewise.
15640         * lib/uninorm/decomposition-table1.h: Likewise.
15641         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
15642         LB8.
15643         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15644         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15645         * modules/unictype/*: Bump version number of expected libunistring
15646         version.
15647
15648 2011-01-09  Bruno Haible  <bruno@clisp.org>
15649
15650         Update to Unicode 5.2.0.
15651         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
15652         trailing whitespace removed.
15653
15654 2011-01-09  Bruno Haible  <bruno@clisp.org>
15655
15656         New Unicode character properties, from Unicode 5.2.0.
15657         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
15658         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
15659         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
15660         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
15661         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
15662         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
15663         uc_is_property_cased, uc_is_property_case_ignorable,
15664         uc_is_property_changes_when_lowercased,
15665         uc_is_property_changes_when_uppercased,
15666         uc_is_property_changes_when_titlecased,
15667         uc_is_property_changes_when_casefolded,
15668         uc_is_property_changes_when_casemapped): New declarations.
15669         * lib/unictype/pr_byname.gperf: Add the new properties.
15670         * modules/unictype/property-byname (Depends-on): Depend on the new
15671         properties modules.
15672         * modules/unictype/property-all (Depends-on): Likewise.
15673         * MODULES.html.sh (Unicode string functions): Add
15674         unictype/property-case-ignorable, unictype/property-cased,
15675         unictype/property-changes-when-casefolded,
15676         unictype/property-changes-when-casemapped,
15677         unictype/property-changes-when-lowercased,
15678         unictype/property-changes-when-titlecased,
15679         unictype/property-changes-when-uppercased.
15680
15681         New module 'unictype/property-changes-when-casemapped'.
15682         * modules/unictype/property-changes-when-casemapped: New file.
15683         * lib/unictype/pr_changes_when_casemapped.c: New file.
15684         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
15685         generated by gen-uni-tables.
15686         * modules/unictype/property-changes-when-casemapped-tests: New file.
15687         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
15688         automatically generated by gen-uni-tables.
15689
15690         New module 'unictype/property-changes-when-casefolded'.
15691         * modules/unictype/property-changes-when-casefolded: New file.
15692         * lib/unictype/pr_changes_when_casefolded.c: New file.
15693         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
15694         generated by gen-uni-tables.
15695         * modules/unictype/property-changes-when-casefolded-tests: New file.
15696         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
15697         automatically generated by gen-uni-tables.
15698
15699         New module 'unictype/property-changes-when-titlecased'.
15700         * modules/unictype/property-changes-when-titlecased: New file.
15701         * lib/unictype/pr_changes_when_titlecased.c: New file.
15702         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
15703         generated by gen-uni-tables.
15704         * modules/unictype/property-changes-when-titlecased-tests: New file.
15705         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
15706         automatically generated by gen-uni-tables.
15707
15708         New module 'unictype/property-changes-when-uppercased'.
15709         * modules/unictype/property-changes-when-uppercased: New file.
15710         * lib/unictype/pr_changes_when_uppercased.c: New file.
15711         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
15712         generated by gen-uni-tables.
15713         * modules/unictype/property-changes-when-uppercased-tests: New file.
15714         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
15715         automatically generated by gen-uni-tables.
15716
15717         New module 'unictype/property-changes-when-lowercased'.
15718         * modules/unictype/property-changes-when-lowercased: New file.
15719         * lib/unictype/pr_changes_when_lowercased.c: New file.
15720         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
15721         generated by gen-uni-tables.
15722         * modules/unictype/property-changes-when-lowercased-tests: New file.
15723         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
15724         automatically generated by gen-uni-tables.
15725
15726         New module 'unictype/property-case-ignorable'.
15727         * modules/unictype/property-case-ignorable: New file.
15728         * lib/unictype/pr_case_ignorable.c: New file.
15729         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
15730         by gen-uni-tables.
15731         * modules/unictype/property-case-ignorable-tests: New file.
15732         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
15733         generated by gen-uni-tables.
15734
15735         New module 'unictype/property-cased'.
15736         * modules/unictype/property-cased: New file.
15737         * lib/unictype/pr_cased.c: New file.
15738         * lib/unictype/pr_cased.h: New file, automatically generated by
15739         gen-uni-tables.
15740         * modules/unictype/property-cased-tests: New file.
15741         * tests/unictype/test-pr_cased.c: New file, automatically generated by
15742         gen-uni-tables.
15743
15744 2011-01-09  Bruno Haible  <bruno@clisp.org>
15745
15746         Update to Unicode 5.2.0.
15747         * lib/gen-uni-tables.c (output_predicate, output_category,
15748         output_combclass, output_bidi_category, output_decimal_digit_test,
15749         output_decimal_digit, output_digit_test, output_digit,
15750         output_numeric_test, output_numeric, output_mirror, output_scripts,
15751         output_scripts_byname, output_blocks, output_ident_category): Fix
15752         comment header.
15753         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
15754         get_wbp.
15755         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
15756         items.
15757         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
15758         Changes_When_Lowercased, Changes_When_Uppercased,
15759         Changes_When_Titlecased, Changes_When_Casefolded,
15760         Changes_When_Casemapped.
15761         (is_property_alphabetic, is_property_default_ignorable_code_point):
15762         Update for Unicode 5.2.0.
15763         (is_property_cased, is_property_case_ignorable,
15764         is_property_changes_when_lowercased,
15765         is_property_changes_when_uppercased,
15766         is_property_changes_when_titlecased,
15767         is_property_changes_when_casefolded,
15768         is_property_changes_when_casemapped): New functions.
15769         (output_properties): Output also the properties cased, case_ignorable,
15770         changes_when_lowercased, changes_when_uppercased,
15771         changes_when_titlecased, changes_when_casefolded,
15772         changes_when_casemapped.
15773         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
15774         Unicode TR#11 revision 17 -> 19.
15775         (LBP_CP): New enumeration value.
15776         (LBP_*): Adjust values accordingly.
15777         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15778         TR#14 revision 22 -> 24.
15779         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
15780         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
15781         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
15782         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
15783         is_WBP_MIDLETTER.
15784         (output_composition_tables): Allow for 24 bits instead of 16 bits in
15785         the code1 and code2 of each composition rule.
15786         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
15787         * lib/unicase/ignorable.h: Likewise.
15788         * lib/unicase/tocasefold.h: Likewise.
15789         * lib/unicase/tolower.h: Likewise.
15790         * lib/unicase/totitle.h: Likewise.
15791         * lib/unicase/toupper.h: Likewise.
15792         * lib/unictype/bidi_of.h: Likewise.
15793         * lib/unictype/blocks.h: Likewise.
15794         * lib/unictype/categ_C.h: Likewise.
15795         * lib/unictype/categ_Cf.h: Likewise.
15796         * lib/unictype/categ_Cn.h: Likewise.
15797         * lib/unictype/categ_L.h: Likewise.
15798         * lib/unictype/categ_Ll.h: Likewise.
15799         * lib/unictype/categ_Lm.h: Likewise.
15800         * lib/unictype/categ_Lo.h: Likewise.
15801         * lib/unictype/categ_Lu.h: Likewise.
15802         * lib/unictype/categ_M.h: Likewise.
15803         * lib/unictype/categ_Mc.h: Likewise.
15804         * lib/unictype/categ_Mn.h: Likewise.
15805         * lib/unictype/categ_N.h: Likewise.
15806         * lib/unictype/categ_Nd.h: Likewise.
15807         * lib/unictype/categ_Nl.h: Likewise.
15808         * lib/unictype/categ_No.h: Likewise.
15809         * lib/unictype/categ_P.h: Likewise.
15810         * lib/unictype/categ_Pd.h: Likewise.
15811         * lib/unictype/categ_Po.h: Likewise.
15812         * lib/unictype/categ_S.h: Likewise.
15813         * lib/unictype/categ_Sc.h: Likewise.
15814         * lib/unictype/categ_So.h: Likewise.
15815         * lib/unictype/categ_of.h: Likewise.
15816         * lib/unictype/combining.h: Likewise.
15817         * lib/unictype/ctype_alnum.h: Likewise.
15818         * lib/unictype/ctype_alpha.h: Likewise.
15819         * lib/unictype/ctype_graph.h: Likewise.
15820         * lib/unictype/ctype_lower.h: Likewise.
15821         * lib/unictype/ctype_print.h: Likewise.
15822         * lib/unictype/ctype_punct.h: Likewise.
15823         * lib/unictype/ctype_upper.h: Likewise.
15824         * lib/unictype/decdigit.h: Likewise.
15825         * lib/unictype/digit.h: Likewise.
15826         * lib/unictype/numeric.h: Likewise.
15827         * lib/unictype/pr_alphabetic.h: Likewise.
15828         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15829         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15830         * lib/unictype/pr_bidi_european_digit.h: Likewise.
15831         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15832         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15833         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
15834         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
15835         * lib/unictype/pr_combining.h: Likewise.
15836         * lib/unictype/pr_composite.h: Likewise.
15837         * lib/unictype/pr_currency_symbol.h: Likewise.
15838         * lib/unictype/pr_dash.h: Likewise.
15839         * lib/unictype/pr_decimal_digit.h: Likewise.
15840         * lib/unictype/pr_deprecated.h: Likewise.
15841         * lib/unictype/pr_diacritic.h: Likewise.
15842         * lib/unictype/pr_extender.h: Likewise.
15843         * lib/unictype/pr_grapheme_base.h: Likewise.
15844         * lib/unictype/pr_grapheme_extend.h: Likewise.
15845         * lib/unictype/pr_grapheme_link.h: Likewise.
15846         * lib/unictype/pr_id_continue.h: Likewise.
15847         * lib/unictype/pr_id_start.h: Likewise.
15848         * lib/unictype/pr_ideographic.h: Likewise.
15849         * lib/unictype/pr_ignorable_control.h: Likewise.
15850         * lib/unictype/pr_logical_order_exception.h: Likewise.
15851         * lib/unictype/pr_lowercase.h: Likewise.
15852         * lib/unictype/pr_numeric.h: Likewise.
15853         * lib/unictype/pr_other_alphabetic.h: Likewise.
15854         * lib/unictype/pr_punctuation.h: Likewise.
15855         * lib/unictype/pr_sentence_terminal.h: Likewise.
15856         * lib/unictype/pr_terminal_punctuation.h: Likewise.
15857         * lib/unictype/pr_unassigned_code_value.h: Likewise.
15858         * lib/unictype/pr_unified_ideograph.h: Likewise.
15859         * lib/unictype/pr_uppercase.h: Likewise.
15860         * lib/unictype/pr_xid_continue.h: Likewise.
15861         * lib/unictype/pr_xid_start.h: Likewise.
15862         * lib/unictype/pr_zero_width.h: Likewise.
15863         * lib/unictype/scripts.h: Likewise.
15864         * lib/unictype/scripts_byname.gperf: Likewise.
15865         * lib/unictype/sy_java_ident.h: Likewise.
15866         * lib/unigbrk/gbrkprop.h: Likewise.
15867         * lib/unilbrk/lbrkprop1.h: Likewise.
15868         * lib/unilbrk/lbrkprop2.h: Likewise.
15869         * lib/unilbrk/lbrktables.h: Likewise.
15870         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
15871         LBP_CP. Implement rule LB30.
15872         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
15873         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
15874         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
15875         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
15876         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
15877         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
15878         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
15879         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
15880         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
15881         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
15882         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
15883         bits instead of 16 bits in the code1 and code2 of each composition
15884         rule.
15885         (uc_composition): Update for Unicode 5.2.0.
15886         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
15887         * lib/uninorm/decomposition-table2.h: Likewise.
15888         * lib/uniwbrk/wbrkprop.h: Likewise.
15889         * tests/unicase/test-cased.c: Likewise.
15890         * tests/unicase/test-ignorable.c: Likewise.
15891         * tests/unicase/test-uc_tolower.c: Likewise.
15892         * tests/unicase/test-uc_totitle.c: Likewise.
15893         * tests/unicase/test-uc_toupper.c: Likewise.
15894         * tests/unictype/test-categ_C.c: Likewise.
15895         * tests/unictype/test-categ_Cf.c: Likewise.
15896         * tests/unictype/test-categ_Cn.c: Likewise.
15897         * tests/unictype/test-categ_L.c: Likewise.
15898         * tests/unictype/test-categ_Ll.c: Likewise.
15899         * tests/unictype/test-categ_Lm.c: Likewise.
15900         * tests/unictype/test-categ_Lo.c: Likewise.
15901         * tests/unictype/test-categ_Lu.c: Likewise.
15902         * tests/unictype/test-categ_M.c: Likewise.
15903         * tests/unictype/test-categ_Mc.c: Likewise.
15904         * tests/unictype/test-categ_Mn.c: Likewise.
15905         * tests/unictype/test-categ_N.c: Likewise.
15906         * tests/unictype/test-categ_Nd.c: Likewise.
15907         * tests/unictype/test-categ_Nl.c: Likewise.
15908         * tests/unictype/test-categ_No.c: Likewise.
15909         * tests/unictype/test-categ_P.c: Likewise.
15910         * tests/unictype/test-categ_Pd.c: Likewise.
15911         * tests/unictype/test-categ_Po.c: Likewise.
15912         * tests/unictype/test-categ_S.c: Likewise.
15913         * tests/unictype/test-categ_Sc.c: Likewise.
15914         * tests/unictype/test-categ_So.c: Likewise.
15915         * tests/unictype/test-ctype_alnum.c: Likewise.
15916         * tests/unictype/test-ctype_alpha.c: Likewise.
15917         * tests/unictype/test-ctype_graph.c: Likewise.
15918         * tests/unictype/test-ctype_lower.c: Likewise.
15919         * tests/unictype/test-ctype_print.c: Likewise.
15920         * tests/unictype/test-ctype_punct.c: Likewise.
15921         * tests/unictype/test-ctype_upper.c: Likewise.
15922         * tests/unictype/test-decdigit.h: Likewise.
15923         * tests/unictype/test-digit.h: Likewise.
15924         * tests/unictype/test-numeric.h: Likewise.
15925         * tests/unictype/test-pr_alphabetic.c: Likewise.
15926         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
15927         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
15928         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
15929         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
15930         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
15931         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
15932         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
15933         * tests/unictype/test-pr_combining.c: Likewise.
15934         * tests/unictype/test-pr_composite.c: Likewise.
15935         * tests/unictype/test-pr_currency_symbol.c: Likewise.
15936         * tests/unictype/test-pr_dash.c: Likewise.
15937         * tests/unictype/test-pr_decimal_digit.c: Likewise.
15938         * tests/unictype/test-pr_deprecated.c: Likewise.
15939         * tests/unictype/test-pr_diacritic.c: Likewise.
15940         * tests/unictype/test-pr_extender.c: Likewise.
15941         * tests/unictype/test-pr_grapheme_base.c: Likewise.
15942         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
15943         * tests/unictype/test-pr_grapheme_link.c: Likewise.
15944         * tests/unictype/test-pr_id_continue.c: Likewise.
15945         * tests/unictype/test-pr_id_start.c: Likewise.
15946         * tests/unictype/test-pr_ideographic.c: Likewise.
15947         * tests/unictype/test-pr_ignorable_control.c: Likewise.
15948         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
15949         * tests/unictype/test-pr_lowercase.c: Likewise.
15950         * tests/unictype/test-pr_numeric.c: Likewise.
15951         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
15952         * tests/unictype/test-pr_punctuation.c: Likewise.
15953         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
15954         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
15955         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
15956         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
15957         * tests/unictype/test-pr_uppercase.c: Likewise.
15958         * tests/unictype/test-pr_xid_continue.c: Likewise.
15959         * tests/unictype/test-pr_xid_start.c: Likewise.
15960         * tests/unictype/test-pr_zero_width.c: Likewise.
15961         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
15962         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
15963         changed behaviour: line breaking is now disallowed between a letter
15964         or '=' and '('.
15965         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15966         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15967         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15968         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
15969         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15970         lib/uniwidth/width.c.
15971         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
15972         without comments, but with the original copyright notice.
15973         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
15974         changes.
15975         * lib/unictype/categ_Cc.h: Likewise.
15976         * lib/unictype/categ_Co.h: Likewise.
15977         * lib/unictype/categ_Cs.h: Likewise.
15978         * lib/unictype/categ_Lt.h: Likewise.
15979         * lib/unictype/categ_Me.h: Likewise.
15980         * lib/unictype/categ_Pc.h: Likewise.
15981         * lib/unictype/categ_Pe.h: Likewise.
15982         * lib/unictype/categ_Pf.h: Likewise.
15983         * lib/unictype/categ_Pi.h: Likewise.
15984         * lib/unictype/categ_Ps.h: Likewise.
15985         * lib/unictype/categ_Sk.h: Likewise.
15986         * lib/unictype/categ_Sm.h: Likewise.
15987         * lib/unictype/categ_Z.h: Likewise.
15988         * lib/unictype/categ_Zl.h: Likewise.
15989         * lib/unictype/categ_Zp.h: Likewise.
15990         * lib/unictype/categ_Zs.h: Likewise.
15991         * lib/unictype/ctype_blank.h: Likewise.
15992         * lib/unictype/ctype_cntrl.h: Likewise.
15993         * lib/unictype/ctype_digit.h: Likewise.
15994         * lib/unictype/ctype_space.h: Likewise.
15995         * lib/unictype/ctype_xdigit.h: Likewise.
15996         * lib/unictype/mirror.h: Likewise.
15997         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
15998         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15999         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16000         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16001         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16002         * lib/unictype/pr_bidi_control.h: Likewise.
16003         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16004         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16005         * lib/unictype/pr_bidi_pdf.h: Likewise.
16006         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16007         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16008         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16009         * lib/unictype/pr_format_control.h: Likewise.
16010         * lib/unictype/pr_hex_digit.h: Likewise.
16011         * lib/unictype/pr_hyphen.h: Likewise.
16012         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16013         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16014         * lib/unictype/pr_iso_control.h: Likewise.
16015         * lib/unictype/pr_join_control.h: Likewise.
16016         * lib/unictype/pr_left_of_pair.h: Likewise.
16017         * lib/unictype/pr_line_separator.h: Likewise.
16018         * lib/unictype/pr_math.h: Likewise.
16019         * lib/unictype/pr_non_break.h: Likewise.
16020         * lib/unictype/pr_not_a_character.h: Likewise.
16021         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16022         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16023         * lib/unictype/pr_other_id_continue.h: Likewise.
16024         * lib/unictype/pr_other_id_start.h: Likewise.
16025         * lib/unictype/pr_other_lowercase.h: Likewise.
16026         * lib/unictype/pr_other_math.h: Likewise.
16027         * lib/unictype/pr_other_uppercase.h: Likewise.
16028         * lib/unictype/pr_paired_punctuation.h: Likewise.
16029         * lib/unictype/pr_paragraph_separator.h: Likewise.
16030         * lib/unictype/pr_pattern_syntax.h: Likewise.
16031         * lib/unictype/pr_pattern_white_space.h: Likewise.
16032         * lib/unictype/pr_private_use.h: Likewise.
16033         * lib/unictype/pr_quotation_mark.h: Likewise.
16034         * lib/unictype/pr_radical.h: Likewise.
16035         * lib/unictype/pr_soft_dotted.h: Likewise.
16036         * lib/unictype/pr_space.h: Likewise.
16037         * lib/unictype/pr_titlecase.h: Likewise.
16038         * lib/unictype/pr_variation_selector.h: Likewise.
16039         * lib/unictype/pr_white_space.h: Likewise.
16040         * lib/unictype/sy_c_ident.h: Likewise.
16041         * lib/unictype/sy_c_whitespace.h: Likewise.
16042         * lib/unictype/sy_java_whitespace.h: Likewise.
16043         * modules/uni*/*: Bump version number of expected libunistring version.
16044         Reported by Simon Josefsson.
16045
16046 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16047
16048         useless-if-before-free: fix typo in --help and make the internal,
16049         automatic version date update process work once again.
16050         --help output contained a NUL character instead of the
16051         backslash-zero that was intended.  Also, the "must lie within
16052         the first 8 lines" line is on line 9, and hence not getting
16053         automatically updated.
16054         * build-aux/useless-if-before-free: Fix the former by adding a
16055         backslash, and the latter by condensing the three lines of what-it-does
16056         to a single line, leaving one line of slack for the future.
16057
16058 2011-01-09  Bruno Haible  <bruno@clisp.org>
16059
16060         uniwidth/width: Fix width of U+1D173..U+1D17A.
16061         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16062         symbolic_width, output_width_property_test): New functions.
16063         (main): Invoke output_nonspacing_property, output_width_property_test.
16064         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16065         U+1D173..U+1D17A.
16066         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16067         1.
16068         * modules/uniwidth/*: Bump version number of expected libunistring
16069         version.
16070         * modules/unilbrk/*: Likewise.
16071
16072 2011-01-08  Bruno Haible  <bruno@clisp.org>
16073
16074         uninorm tests: Preserve copyright of Unicode data file.
16075         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16076         Mention modifications.
16077
16078 2011-01-08  Bruno Haible  <bruno@clisp.org>
16079
16080         gen-uni-tables: Prepare for Unicode 5.2.0.
16081         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16082         (debug_output_lbp, output_lbp): Update.
16083
16084 2011-01-08  Bruno Haible  <bruno@clisp.org>
16085
16086         unilbrk: Clarify gen-uni-tables.c code.
16087         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16088         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16089         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16090
16091 2011-01-07  Bruno Haible  <bruno@clisp.org>
16092
16093         strtod: Restore errno when successfully parsing Infinity or NaN.
16094         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16095         restore the original errno.
16096
16097 2011-01-07  Bruno Haible  <bruno@clisp.org>
16098
16099         remove test: Avoid failure on HP-UX 11.
16100         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16101
16102 2011-01-07  Bruno Haible  <bruno@clisp.org>
16103
16104         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16105         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16106         error code.
16107
16108 2011-01-07  Pádraig Brady <P@draigBrady.com>
16109
16110         ignore-value: fixup comments, and add Eric Blake
16111         as an author since he rewrote the macros.
16112         * lib/ignore-value.h (ignore_value):  State that
16113         we now support aggregates.  Also specify exactly
16114         when the GCC warn_unused_result feature was added.
16115
16116 2011-01-06  Eric Blake  <eblake@redhat.com>
16117
16118         ignore-value: support aggregate types
16119         * lib/ignore-value.h (ignore_value): Provide separate gcc
16120         definition.
16121         * modules/ignore-value-tests: New test module.
16122         * tests/test-ignore-value.c: New test.
16123
16124         maint.mk: improve sc_prohibit_strcmp regex
16125         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16126         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16127         definition of STRNEQ.
16128
16129         signal: work around Haiku issue with SIGBUS
16130         * lib/siglist.h: Add comment.
16131         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16132         strsignal's favoring of SIGSEGV.
16133         * tests/test-signal.c (main): Avoid test failure.
16134         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16135         Reported by Scott McCreary.
16136
16137         maint.mk: add pre-release check to ensure submodule commits are public
16138         * top/maint.mk (public-submodule-commit): New rule.
16139         (submodule-checks): New variable.
16140         (alpha beta stable): Depend on the variable.
16141
16142 2011-01-05  Pádraig Brady <P@draigBrady.com>
16143         and Jim Meyering  <meyering@redhat.com>
16144
16145         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16146         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16147         (ATTRIBUTE_DEPRECATED): Define.
16148         (_ignore_case): New function.
16149         (ignore_value): New macro, to replace the old function.
16150         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16151         * modules/ignore-value (Depends-on): Add stdint.
16152
16153 2011-01-04  Eric Blake  <eblake@redhat.com>
16154
16155         doc: regenerate INSTALL
16156         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16157         @firstparagraphindent support, now that autoconf dropped it.
16158         (INSTALL_PRELUDE): Reinstate old macro.
16159         * doc/install.texi: Resync from autoconf.
16160         * doc/INSTALL: Reflect recent autoconf update.
16161         * doc/INSTALL.ISO: Likewise.
16162         * doc/INSTALL.UTF-8: Likewise.
16163         Reported by Karl Berry.
16164
16165 2011-01-04  Bruce Korb  <address@hidden>
16166
16167         git-version-gen: avoid a sub-shell
16168         * build-aux/git-version-gen: Redirect stderr in `...` via
16169         "exec 2>...", rather than via an added sub-shell.
16170
16171 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16172
16173         git-version-gen: use (...) rather than sh -c '...'
16174         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16175         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16176
16177 2011-01-03  Jim Meyering  <meyering@redhat.com>
16178
16179         git-version-gen: convert leading TABs to spaces
16180         * build-aux/git-version-gen: Expand leading TABs.
16181
16182         git-version-gen: handle failed "git rev-list"
16183         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16184         from git and proceeding as if it had succeeded but printed no SHA1
16185         checksums, suppress the diagnostic and handle the failure.
16186         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16187
16188         git-version-gen: include command name in one more diagnostic
16189         * build-aux/git-version-gen: When the required .tarball-version file
16190         was missing or unreadable, you might see the diagnostic from "cat",
16191         but no trace of the name of the invoking script.  Now, you still see
16192         the diagnostic from cat, but also get one from "git-version-gen: ".
16193         Inspired by a patch from Bruce Korb.
16194
16195         update-copyright: adjust test to match changed code
16196         * tests/test-update-copyright.sh: Change test's expected output
16197         to match new actual output.
16198
16199 2011-01-02  Bruno Haible  <bruno@clisp.org>
16200
16201         getlogin_r: Avoid test failure on HP-UX 11.
16202         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16203         ERANGE when the second argument is zero.
16204         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16205         portability problem.
16206
16207 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16208
16209         * build-aux/update-copyright: doc Simon's changes
16210
16211 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16212
16213         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16214         environment variable.
16215
16216 2011-01-02  Bruno Haible  <bruno@clisp.org>
16217
16218         unigbrk: Avoid gcc warnings.
16219         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16220         unused variable.
16221         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16222         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16223         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16224         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16225         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16226         Change type of first argument to 'const char *'.
16227         (main): Remove unused variable.
16228         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16229         type of first argument to 'const char *'.
16230         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16231         Likewise.
16232         (main): Change type of variable 's'.
16233         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16234         to 'int'.
16235
16236 2011-01-02  Bruno Haible  <bruno@clisp.org>
16237
16238         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16239         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16240         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16241         bug.
16242         * lib/pwrite.c: Undo 2010-12-31 patch.
16243         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16244
16245 2011-01-02  Bruno Haible  <bruno@clisp.org>
16246
16247         pread: Fix test whether it works.
16248         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16249
16250 2011-01-02  Bruno Haible  <bruno@clisp.org>
16251
16252         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16253         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16254         ends in "6". Don't require a specific month name. Try also the locale
16255         names found on HP-UX 11 and Solaris 7.
16256
16257 2011-01-02  Bruno Haible  <bruno@clisp.org>
16258
16259         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16260         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16261         C linkage.
16262         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16263
16264 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16265
16266         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16267         for consistency, since the "cluster" term is not used elsewhere.
16268         * lib/unigbrk.in.h: Update name.
16269         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16270         * lib/unigbrk/u16-grapheme-next.c: Update name.
16271         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16272         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16273         * lib/unigbrk/u32-grapheme-next.c: Update name.
16274         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16275         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16276         * lib/unigbrk/u8-grapheme-next.c: Update name.
16277         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16278         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16279         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16280         Suggested by Bruno Haible.
16281
16282 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16283
16284         Remove module 'u8-grapheme-len' as too redundant with
16285         'u8-grapheme-next'.
16286         * modules/unigbrk/u8-grapheme-len: Delete file.
16287         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16288         * lib/unigbrk.in.h: Remove prototype for deleted function.
16289         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16290         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16291
16292         Remove module 'u16-grapheme-len' as too redundant with
16293         'u16-grapheme-next'.
16294         * modules/unigbrk/u16-grapheme-len: Delete file.
16295         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16296         * lib/unigbrk.in.h: Remove prototype for deleted function.
16297         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16298         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16299
16300         Remove module 'u32-grapheme-len' as too redundant with
16301         'u32-grapheme-next'.
16302         * modules/unigbrk/u32-grapheme-len: Delete file.
16303         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16304         * lib/unigbrk.in.h: Remove prototype for deleted function.
16305         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16306         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16307
16308         Suggested by Bruno Haible.
16309
16310 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16311
16312         * unigbrk.in.h: Fix typo: "ben" => "been".
16313         Reported by Bruno Haible.
16314
16315 2011-01-01  Jim Meyering  <meyering@redhat.com>
16316
16317         maint: update almost all copyright ranges to include 2011
16318         Run the new "make update-copyright" rule.
16319
16320 2011-01-01  Jim Meyering  <meyering@redhat.com>
16321
16322         maint: update-copyright: exempt doc/INSTALL*
16323         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16324         since they are generated.  Suggested by Bruno Haible.
16325
16326 2011-01-01  Jim Meyering  <meyering@redhat.com>
16327
16328         maint: refine the update-copyright rule
16329         * Makefile (update-copyright): Also exclude any file that includes
16330         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16331         code that merely generates the comment.
16332
16333 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16334
16335         New module 'u8-grapheme-len'.
16336         * modules/unigbrk/u8-grapheme-len: New file.
16337         * modules/unigbrk/u8-grapheme-len-tests: New file.
16338         * lib/unigbrk.in.h: Add prototype for new function.
16339         * lib/unigbrk/u8-grapheme-len.c: New file.
16340         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16341
16342         New module 'u16-grapheme-len'.
16343         * modules/unigbrk/u16-grapheme-len: New file.
16344         * modules/unigbrk/u16-grapheme-len-tests: New file.
16345         * lib/unigbrk.in.h: Add prototype for new function.
16346         * lib/unigbrk/u16-grapheme-len.c: New file.
16347         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16348
16349         New module 'u32-grapheme-len'.
16350         * modules/unigbrk/u32-grapheme-len: New file.
16351         * modules/unigbrk/u32-grapheme-len-tests: New file.
16352         * lib/unigbrk.in.h: Add prototype for new function.
16353         * lib/unigbrk/u32-grapheme-len.c: New file.
16354         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16355
16356         New module 'u8-grapheme-next'.
16357         * modules/unigbrk/u8-grapheme-next: New file.
16358         * modules/unigbrk/u8-grapheme-next-tests: New file.
16359         * lib/unigbrk.in.h: Add prototype for new function.
16360         * lib/unigbrk/u8-grapheme-next.c: New file.
16361         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16362
16363         New module 'u16-grapheme-next'.
16364         * modules/unigbrk/u16-grapheme-next: New file.
16365         * modules/unigbrk/u16-grapheme-next-tests: New file.
16366         * lib/unigbrk.in.h: Add prototype for new function.
16367         * lib/unigbrk/u16-grapheme-next.c: New file.
16368         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16369
16370         New module 'u32-grapheme-next'.
16371         * modules/unigbrk/u32-grapheme-next: New file.
16372         * modules/unigbrk/u32-grapheme-next-tests: New file.
16373         * lib/unigbrk.in.h: Add prototype for new function.
16374         * lib/unigbrk/u32-grapheme-next.c: New file.
16375         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16376
16377         New module 'u8-grapheme-prev'.
16378         * modules/unigbrk/u8-grapheme-prev: New file.
16379         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16380         * lib/unigbrk.in.h: Add prototype for new function.
16381         * lib/unigbrk/u8-grapheme-prev.c: New file.
16382         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16383
16384         New module 'u16-grapheme-prev'.
16385         * modules/unigbrk/u16-grapheme-prev: New file.
16386         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16387         * lib/unigbrk.in.h: Add prototype for new function.
16388         * lib/unigbrk/u16-grapheme-prev.c: New file.
16389         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16390
16391         New module 'u32-grapheme-prev'.
16392         * modules/unigbrk/u32-grapheme-prev: New file.
16393         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16394         * lib/unigbrk.in.h: Add prototype for new function.
16395         * lib/unigbrk/u32-grapheme-prev.c: New file.
16396         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16397
16398         New module 'u8-grapheme-breaks'.
16399         * modules/unigbrk/u8-grapheme-breaks: New file.
16400         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16401         * lib/unigbrk.in.h: Add prototype for new function.
16402         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16403         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16404
16405         New module 'u16-grapheme-breaks'.
16406         * modules/unigbrk/u16-grapheme-breaks: New file.
16407         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16408         * lib/unigbrk.in.h: Add prototype for new function.
16409         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16410         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16411
16412         New module 'u32-grapheme-breaks'.
16413         * modules/unigbrk/u32-grapheme-breaks: New file.
16414         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16415         * lib/unigbrk.in.h: Add prototype for new function.
16416         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16417         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16418
16419         New module 'ulc-grapheme-breaks'.
16420         * modules/unigbrk/ulc-grapheme-breaks: New file.
16421         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16422         * m4/locale-ar.m4: New file.
16423         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16424         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16425         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16426
16427 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16428
16429         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16430         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16431         modified how this file was generated before I initially submitted
16432         the module, but failed to regenerate it.  This meant that several
16433         of the level2 entries were wrong.
16434         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16435         Remove the division-by-2 that is folded into the table now that
16436         gbrkprop.h has been regenerated properly.  Now -1 entries are
16437         handled correctly.
16438
16439         New module 'unigbrk/uc-gbrk-prop-tests'.
16440         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16441         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16442         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16443         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16444
16445 2011-01-01  Bruno Haible  <bruno@clisp.org>
16446
16447         Avoid use of hexadecimal escapes.
16448         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
16449         instead of hexadecimal escapes.
16450
16451 2011-01-01  Jim Meyering  <meyering@redhat.com>
16452
16453         maint: new rule to update copyright year ranges
16454         * Makefile (update-copyright): New rule.
16455
16456         maint: indent with TABs in Makefile
16457         * Makefile: Expand leading sequences of spaces to TABs
16458
16459         version-etc: update the copyright year it reports
16460         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
16461
16462 2010-12-31  Bruno Haible  <bruno@clisp.org>
16463
16464         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
16465         * lib/isfinite.c (zerof, zerod, zerol): New variables.
16466         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
16467         zero.
16468
16469 2010-12-31  Bruno Haible  <bruno@clisp.org>
16470
16471         pwrite: Work around HP-UX 11.11 bug.
16472         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
16473         works and set REPLACE_PWRITE if not.
16474         * lib/pwrite.c (pwrite): Add an implementation that uses the system
16475         function.
16476         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
16477
16478 2010-12-31  Bruno Haible  <bruno@clisp.org>
16479
16480         pread: Work around HP-UX 11 bugs.
16481         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
16482         and set REPLACE_PREAD if not.
16483         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
16484
16485 2010-12-31  Eric Blake  <eblake@redhat.com>
16486
16487         nl_langinfo: fix YESEXPR on Irix 6.5
16488         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
16489         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
16490         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
16491         it.
16492
16493 2010-12-31  Bruno Haible  <bruno@clisp.org>
16494
16495         iconv: Document HP-UX 11 bug.
16496         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
16497
16498 2010-12-31  Bruno Haible  <bruno@clisp.org>
16499
16500         ldexpl: Fix link error on HP-UX 11.
16501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
16502         LDEXPL_LIBM, using $ISNANL_LIBM.
16503
16504 2010-12-31  Eric Blake  <eblake@redhat.com>
16505
16506         ftello: avoid compilation failure with SunStudio c89
16507         * lib/ftello.c (ftello): Use lseek, not llseek.
16508
16509         tests: avoid failing coreutils tests on cygwin
16510         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
16511         (create_exe_shims_): Return 0 when skipping.
16512
16513 2010-12-31  Bruno Haible  <bruno@clisp.org>
16514
16515         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
16516         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
16517
16518 2010-12-31  Bruno Haible  <bruno@clisp.org>
16519
16520         waitpid: Fix link error in C++ mode.
16521         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
16522
16523 2010-12-31  Bruno Haible  <bruno@clisp.org>
16524
16525         isnan: Use GCC built-ins when possible.
16526         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
16527         __builtin_isnan.
16528         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
16529         (isnan): Define using GCC built-ins for GCC >= 4.0.
16530
16531 2010-12-31  Bruno Haible  <bruno@clisp.org>
16532
16533         isnand: Fix mistake.
16534         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
16535         __builtin_isnand.
16536
16537 2010-12-31  Bruno Haible  <bruno@clisp.org>
16538
16539         open: Avoid C++ error on HP-UX 11.
16540         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
16541
16542 2010-12-31  Bruno Haible  <bruno@clisp.org>
16543
16544         time_r: Add missing declarations on HP-UX 11.
16545         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
16546         instead of HAVE_LOCALTIME_R.
16547         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
16548         HAVE_LOCALTIME_R always.
16549         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
16550         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
16551         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
16552         HAVE_LOCALTIME_R.
16553         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
16554         * doc/posix-functions/localtime_r.texi: Likewise.
16555
16556 2010-12-29  Eric Blake  <eblake@redhat.com>
16557
16558         mountlist: tweak previous commit
16559         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
16560         Reported by Paul Eggert.
16561
16562         mountlist: fix local drive detection on cygwin
16563         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
16564         that works for cygwin.
16565
16566 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16567
16568         ftoastr, snprintf: ftoastr + snprintf module
16569         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
16570         since the snprintf module now should be good enough here.
16571         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
16572         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
16573         and gl_MODULE_INDICATOR([snprintf]), but the former enables
16574         GNULIB_SNPRINTF only for the test directory, and the latter
16575         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
16576         seems to suffice by itself.
16577
16578 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         alloca: one step towards thread-safety
16581         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
16582         need for a static variable.  All callers changed.  This does not
16583         make the alloca replacement thread-safe, but it's one step.
16584
16585         tests: minor indenting change
16586         * tests/init.sh: Sync from coreutils housekeeping patch
16587         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
16588         to keep lines within 80 columns.
16589
16590 2010-12-28  Jim Meyering  <meyering@redhat.com>
16591
16592         regex: don't infloop on persistent failing calloc
16593         * lib/regexec.c (build_trtable): Return failure indication upon
16594         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
16595         In glibc, this was fixed for version 2.13:
16596         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
16597
16598 2010-12-28  Bruno Haible  <bruno@clisp.org>
16599             Paul Eggert <eggert@cs.ucla.edu>
16600
16601         linkat: Make implementation robust against system behaviour variations.
16602         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
16603         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
16604         way, and to -2 if it needs a generic runtime test.
16605         * lib/linkat.c (solaris_optimized_link_immediate,
16606         solaris_optimized_link_follow): New functions.
16607         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
16608         (check_same_link): Use it.
16609
16610 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
16611
16612         New module 'unigbrk/base'.
16613         * modules/unigbrk/base: New file.
16614         * lib/unigbrk.in.h: New file.
16615
16616         New module 'unigbrk/uc-gbrk-prop'.
16617         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
16618         * modules/unigbrk/uc-gbrk-prop: New file.
16619         * lib/unigbrk/gbrkprop.h: New file.
16620         * lib/unigbrk/uc-gbrk-prop.c: New file.
16621
16622         New module 'unigbrk/uc-is-grapheme-break'.
16623         * modules/unigbrk/uc-is-grapheme-break: New file.
16624         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
16625         * lib/unigbrk/uc-is-grapheme-break.c: New file.
16626         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
16627         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
16628         * tests/unigbrk/GraphemeBreakTest.txt: New file.
16629
16630         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
16631
16632 2010-12-27  Bruno Haible  <bruno@clisp.org>
16633
16634         linkat test: Avoid failure on Solaris 11 2010-11.
16635         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
16636
16637 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16638
16639         utimens: work around glibc rounding bug on more platforms
16640         * lib/utimens.c (fdutimens): Work around rounding bug even if
16641         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
16642         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
16643
16644 2010-12-27  Bruno Haible  <bruno@clisp.org>
16645
16646         select tests: Improve comments.
16647         * tests/test-select.c (do_select): Add comments.
16648
16649 2010-12-27  Bruno Haible  <bruno@clisp.org>
16650
16651         select tests: Safer way of handling timeout.
16652         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
16653         at every invocation.
16654
16655 2010-12-27  Bruno Haible  <bruno@clisp.org>
16656
16657         select tests: Use 'bool' where appropriate.
16658         * tests/test-select.c (connect_to_socket): Change argument type to
16659         'bool'.
16660
16661 2010-12-27  Bruno Haible  <bruno@clisp.org>
16662
16663         select tests: Use existing modules.
16664         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
16665         (configure.ac): Don't test for unistd.h.
16666         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
16667         declared in <unistd.h>.
16668
16669 2010-12-27  Bruno Haible  <bruno@clisp.org>
16670
16671         mbrtowc: Work around a Solaris 7 bug.
16672         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
16673         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
16674         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
16675         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
16676         MBRTOWC_NULL_ARG1_BUG.
16677         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
16678         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
16679         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
16680         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
16681
16682 2010-12-27  Jim Meyering  <meyering@redhat.com>
16683
16684         read-file.c: tweak syntax
16685         * lib/read-file.c (fread_file): Remove space after "*" in function
16686         definitions.
16687
16688 2010-12-27  Bruno Haible  <bruno@clisp.org>
16689
16690         times test: Avoid gcc warnings on OSF/1.
16691         * tests/test-times.c (main): Cast printf arguments from clock_t to
16692         'long int'.
16693
16694 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16695
16696         utimens: work around glibc rounding bug on older Linux kernels
16697         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
16698         on Linux with a glibc whose utimes might not work, then work
16699         around a longstanding glibc bug involving rounding rather than
16700         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
16701         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16702
16703 2010-12-26  Bruno Haible  <bruno@clisp.org>
16704
16705         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
16706         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
16707         _GL_CXXALIAS_SYS.
16708         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16709
16710 2010-12-26  Bruno Haible  <bruno@clisp.org>
16711
16712         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
16713         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
16714         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16715         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
16716         looking for the declaration.
16717         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
16718         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
16719         problem.
16720         * doc/posix-functions/inet_pton.texi: Likewise.
16721
16722 2010-12-26  Bruno Haible  <bruno@clisp.org>
16723
16724         arpa_inet: Use the common idioms with C++ support.
16725         * lib/arpa_inet.in.h: Include c++defs.h.
16726         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
16727         support.
16728         * modules/arpa_inet (Depends-on): Add c++defs.
16729         (Makefile.am): Substitute the contents of c++defs.h.
16730         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
16731         * modules/arpa_inet-c++-tests: New file.
16732         * tests/test-arpa_inet-c++.cc: New file.
16733
16734 2010-12-25  Bruno Haible  <bruno@clisp.org>
16735
16736         Fix more C++ link errors on Solaris 8.
16737         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
16738         $(LIB_EACCESS).
16739         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
16740         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
16741         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
16742         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
16743         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
16744
16745 2010-12-25  Bruno Haible  <bruno@clisp.org>
16746
16747         printf-posix: Fix link error when a non-GCC compiler is used.
16748         * lib/stdio.in.h (printf): When not using GCC, override printf
16749         correctly.
16750         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16751
16752 2010-12-25  Bruno Haible  <bruno@clisp.org>
16753
16754         strerror_r-posix: Update doc.
16755         * doc/posix-functions/strerror_r.texi: Update doc about the return
16756         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
16757
16758 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         utimens: simplify the logic of the previous change
16761         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
16762         This should not affect whether the test succeeds or fails.
16763
16764         utimens: configure better on hosts with NFS clock skew
16765         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
16766         uses the clock of the local host.  It might use the clock of the
16767         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
16768         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
16769
16770 2010-12-25  Bruno Haible  <bruno@clisp.org>
16771
16772         ptsname test: Avoid failure on Solaris.
16773         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
16774         open a pseudo-terminal; don't use BSD-style ptys.
16775         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
16776
16777 2010-12-25  Bruno Haible  <bruno@clisp.org>
16778
16779         ptsname: Avoid ERANGE failure on some systems.
16780         * lib/ptsname.c (buffer): Increase size.
16781
16782 2010-12-25  Bruno Haible  <bruno@clisp.org>
16783
16784         rename, renameat: Avoid test failures at NFS mounted locations.
16785         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
16786         so that subsequent mkdir calls succeed.
16787
16788 2010-12-25  Bruno Haible  <bruno@clisp.org>
16789
16790         iswblank: Fix C++ link error on Solaris 8.
16791         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
16792         _GL_FUNCDECL_SYS.
16793
16794 2010-12-25  Bruno Haible  <bruno@clisp.org>
16795
16796         unistd: Fix C++ link error on Solaris 8.
16797         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
16798
16799 2010-12-25  Bruno Haible  <bruno@clisp.org>
16800
16801         readlink doc: Mention an old glibc bug.
16802         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
16803
16804 2010-12-25  Bruno Haible  <bruno@clisp.org>
16805
16806         fcntl-h: Fix for use of C++ on glibc systems.
16807         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16808         also on glibc systems in C++ mode.
16809         Reported by Gary V. Vaughan <gary@gnu.org>.
16810
16811 2010-12-25  Bruno Haible  <bruno@clisp.org>
16812
16813         roundl-ieee: Make it work on OSF/1 5.1 with cc.
16814         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
16815
16816 2010-12-25  Bruno Haible  <bruno@clisp.org>
16817
16818         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16819         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
16820         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
16821         test whether truncl works according to ISO C 99 with IEC 60559.
16822         * m4/truncl-ieee.m4: New file.
16823         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
16824         m4/signbit.m4.
16825         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
16826
16827 2010-12-25  Bruno Haible  <bruno@clisp.org>
16828
16829         ceill-ieee: Make it work on OSF/1 5.1 with cc.
16830         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
16831         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
16832         test whether ceill works according to ISO C 99 with IEC 60559.
16833         * m4/ceill-ieee.m4: New file.
16834         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
16835         m4/signbit.m4.
16836         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
16837
16838 2010-12-25  Bruno Haible  <bruno@clisp.org>
16839
16840         Ensure all prerequisites of <wchar.h> are included.
16841         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
16842         before <wchar.h>.
16843         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16844         gl_MBRLEN_NUL_RETVAL): Likewise.
16845         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16846         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
16847         AC_FUNC_MBRTOWC): Likewise.
16848         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16849         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16850         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16851         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
16852         Likewise.
16853         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16854         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
16855         (gl_WCHAR_H): Improve comments.
16856         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16857
16858 2010-12-25  Bruno Haible  <bruno@clisp.org>
16859
16860         strtok_r: Fix C syntax error in autoconf macro.
16861         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
16862         characters in test program.
16863
16864 2010-12-24  Bruno Haible  <bruno@clisp.org>
16865
16866         ceil, trunc, round: Fix gcc warnings.
16867         * lib/ceil.c (MIN): Undefine before redefining.
16868         * lib/trunc.c (MIN): Likewise.
16869         * lib/round.c (MIN): Likewise.
16870         Include <math.h> first.
16871
16872 2010-12-24  Bruno Haible  <bruno@clisp.org>
16873
16874         select tests: Avoid failures on OSF/1 5.1.
16875         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
16876         failure of closing the last socket; it may fail with ECONNRESET.
16877
16878 2010-12-24  Eric Blake  <eblake@redhat.com>
16879
16880         stdint: avoid HP-UX 10.20 preprocessor bug
16881         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
16882         than #if.
16883         * tests/test-floor2.c (main): Likewise.
16884         Reported by Peter O'Gorman.
16885
16886         pipe: make obsoletion transition easier
16887         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
16888         * modules/pipe (Files): Include revived file.
16889         (Include): Drop reference, to mirror getdate's behavior.
16890
16891 2010-12-24  Bruno Haible  <bruno@clisp.org>
16892
16893         sys_socket: Hide mismatch of declarations on NonStop Kernel.
16894         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
16895         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
16896         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16897
16898 2010-12-24  Bruno Haible  <bruno@clisp.org>
16899
16900         gethostname: Ensure declaration on NonStop Kernel.
16901         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
16902         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16903
16904 2010-12-24  Bruno Haible  <bruno@clisp.org>
16905
16906         sys_select: Ensure all necessary types on NonStop Kernel.
16907         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
16908         include <sys/time.h>.
16909         * doc/posix-headers/sys_select.texi: Mention that it's missing on
16910         NonStop Kernel.
16911         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16912
16913 2010-12-24  Bruno Haible  <bruno@clisp.org>
16914
16915         sys_select: Remove unneeded include.
16916         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
16917         have <sys/select.h>.
16918
16919 2010-12-24  Bruno Haible  <bruno@clisp.org>
16920
16921         gethostname: Provide a fallback for HOST_NAME_MAX.
16922         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
16923         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
16924         instead.
16925         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16926
16927 2010-12-24  Bruno Haible  <bruno@clisp.org>
16928
16929         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
16930         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
16931         (SA_RESTART): Likewise.
16932         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16933
16934 2010-12-24  Bruno Haible  <bruno@clisp.org>
16935
16936         signal: Define NSIG.
16937         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
16938         * tests/test-signal.c (nsig): New variable.
16939         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
16940
16941 2010-12-24  Bruno Haible  <bruno@clisp.org>
16942
16943         rename, renameat: Avoid test failures on OSF/1 5.1.
16944         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
16945         alternative error codes.
16946         * tests/test-renameat.c (main): Likewise.
16947
16948 2010-12-24  Bruno Haible  <bruno@clisp.org>
16949
16950         *printf: Detect large precisions bug on Solaris 10/SPARC.
16951         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
16952         by Paul Eggert.
16953         * tests/test-snprintf-posix.h (test_function): Add this test code here
16954         too.
16955         * tests/test-sprintf-posix.h (test_function): Likewise.
16956         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16957         * tests/test-vasprintf-posix.c (test_function): Likewise.
16958         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
16959         around by gnulib.
16960         * doc/posix-functions/printf.texi: Likewise.
16961         * doc/posix-functions/snprintf.texi: Likewise.
16962         * doc/posix-functions/sprintf.texi: Likewise.
16963         * doc/posix-functions/vfprintf.texi: Likewise.
16964         * doc/posix-functions/vprintf.texi: Likewise.
16965         * doc/posix-functions/vsnprintf.texi: Likewise.
16966         * doc/posix-functions/vsprintf.texi: Likewise.
16967         * doc/posix-functions/dprintf.texi: Undo last commit.
16968         * doc/posix-functions/vdprintf.texi: Likewise.
16969
16970 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
16971
16972         tests: port test-fdutimensat.c to Solaris 8
16973         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
16974         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
16975         On Solaris 8, it fails with errno == ENOSYS, because there is no
16976         futimens (so it can't use the fd), and there is no lutimens (so it
16977         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
16978
16979         vsnprintf: make more consistent with snprintf; doc fixes
16980
16981         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
16982         the byte count return problem was promoted from the snprintf-posix
16983         to the snprintf module.
16984         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16985         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
16986         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
16987         * tests/test-snprintf.c (main): Check the byte count returned.
16988         * tests/test-vsnprintf.c (main): Likewise.
16989
16990 2010-12-23  Eric Blake  <eblake@redhat.com>
16991
16992         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
16993         * modules/sigpipe (License): Relax license.
16994
16995 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16996
16997         doc: document Solaris printf bug with large float precisions
16998         * doc/posix-functions/dprintf.texi (dprintf):
16999         * doc/posix-functions/fprintf.texi (fprintf):
17000         * doc/posix-functions/printf.texi (printf):
17001         * doc/posix-functions/snprintf.texi (snprintf):
17002         * doc/posix-functions/sprintf.texi (sprintf):
17003         * doc/posix-functions/vdprintf.texi (vdprintf):
17004         * doc/posix-functions/vfprintf.texi (vfprintf):
17005         * doc/posix-functions/vprintf.texi (vprintf):
17006         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17007         * doc/posix-functions/vsprintf.texi (vsprintf):
17008         Mention that these functions mishandle large floating point
17009         precisions on Solaris 10.  The same bug is also present in Solaris
17010         8, and I assume earlier.  This causes "cd gnulib-tests; make
17011         check" to fail on Solaris 8 (and I assume, later) when building
17012         the latest coreutils, in test-vasprintf-posix's call to
17013         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17014         the wide flavors (e.g., wprintf) so this patch just updates the
17015         documentation for the narrow ones.
17016
17017         test-posixtm.c: add two tests
17018         * tests/test-posixtm.c: Add two tests, to highlight the
17019         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17020         around this bug; this is merely to document it.
17021
17022 2010-12-22  Bruno Haible  <bruno@clisp.org>
17023
17024         getlogin_r: Work around portability problem on OSF/1.
17025         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17026         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17027         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17028         test for a truncated result.
17029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17030         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17031         * modules/getlogin_r (Depends-on): Add memchr.
17032         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17033
17034 2010-12-22  Bruno Haible  <bruno@clisp.org>
17035
17036         ptsname: Avoid test failure on OSF/1 5.1.
17037         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17038         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17039         (same_slave): New function.
17040         (main): Use it to compare ptsname's result with the expected file name.
17041
17042 2010-12-22  Bruno Haible  <bruno@clisp.org>
17043
17044         Port extended stdio modules to HP NonStop Kernel.
17045         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17046         macros.
17047         * lib/fbufmode.c: Update comments.
17048         * lib/fflush.c: Likewise.
17049         * lib/fpurge.c: Likewise.
17050         * lib/freadable.c: Likewise.
17051         * lib/freadahead.c: Likewise.
17052         * lib/freading.c: Likewise.
17053         * lib/freadptr.c: Likewise.
17054         * lib/freadseek.c: Likewise.
17055         * lib/fseeko.c: Likewise.
17056         * lib/fseterr.c: Likewise.
17057         * lib/fwritable.c: Likewise.
17058         * lib/fwriting.c: Likewise.
17059         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17060
17061 2010-12-22  Bruno Haible  <bruno@clisp.org>
17062
17063         ttyname_r: Work around bug on OSF/1 5.1.
17064         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17065         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17066         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17067         present.
17068         * lib/ttyname_r.c (ttyname_r): Update comments.
17069
17070 2010-12-22  Bruno Haible  <bruno@clisp.org>
17071
17072         round: Implement result sign according to IEEE 754.
17073         * lib/round.c (MIN, MINUS_ZERO): New macros.
17074         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17075         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17076         * tests/test-round-ieee.c (main): Likewise.
17077         * tests/test-roundl-ieee.c (main): Likewise.
17078
17079         trunc: Implement result sign according to IEEE 754.
17080         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17081         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17082         * tests/test-trunc2.c: Include minus-zero.h.
17083         (MINUS_ZERO): New macro.
17084         (trunc_reference): Keep in sync with lib/trunc.c.
17085         * tests/test-truncf2.c: Include minus-zero.h.
17086         (MINUS_ZERO): New macro.
17087         (truncf_reference): Keep in sync with lib/trunc.c.
17088         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17089         * tests/test-trunc-ieee.c (main): Likewise.
17090         * tests/test-truncl-ieee.c (main): Likewise.
17091
17092         ceil: Implement result sign according to IEEE 754.
17093         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17094         (FUNC): Return -0.0 for -1 < x < 0.
17095         * tests/test-ceil2.c: Include minus-zero.h.
17096         (MINUS_ZERO): New macro.
17097         (ceil_reference): Keep in sync with lib/ceil.c.
17098         * tests/test-ceilf2.c: Include minus-zero.h.
17099         (MINUS_ZERO): New macro.
17100         (ceilf_reference): Keep in sync with lib/ceil.c.
17101         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17102         * tests/test-ceil-ieee.c (main): Likewise.
17103         * tests/test-ceill-ieee.c (main): Likewise.
17104
17105         floor: Implement result sign according to IEEE 754.
17106         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17107         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17108         * tests/test-floorf2.c (floorf_reference): Likewise.
17109         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17110         * tests/test-floor-ieee.c (main): Likewise.
17111         * tests/test-floorl-ieee.c (main): Likewise.
17112
17113 2010-12-22  Bruno Haible  <bruno@clisp.org>
17114
17115         getaddrinfo: Update doc.
17116         * doc/posix-functions/gai_strerror.texi: Return type is also different
17117         on AIX and HP-UX.
17118
17119 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17120
17121         getaddrinfo, inet_ntop: Update doc for Solaris.
17122         * doc/posix-functions/gai_strerror.texi: Return type is also an
17123         issue on Solaris 9 and earlier.
17124         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17125         on Solaris 10 and earlier.
17126
17127 2010-12-21  Bruno Haible  <bruno@clisp.org>
17128
17129         New module 'roundl-ieee'.
17130         * modules/roundl-ieee: New file.
17131         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17132         test whether roundl works according to ISO C 99 with IEC 60559.
17133         * m4/roundl-ieee.m4: New file.
17134         * modules/roundl-ieee-tests: New file.
17135         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17136         * tests/test-roundl.c (main): Remove signbit tests.
17137         * modules/roundl-tests (Depends-on): Remove signbit.
17138         * doc/posix-functions/roundl.texi: Mention the new module.
17139
17140 2010-12-21  Bruno Haible  <bruno@clisp.org>
17141
17142         New module 'truncl-ieee'.
17143         * modules/truncl-ieee: New file.
17144         * modules/truncl-ieee-tests: New file.
17145         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17146         * tests/test-truncl.c (main): Remove signbit tests.
17147         * modules/truncl-tests (Depends-on): Remove signbit.
17148         * doc/posix-functions/truncl.texi: Mention the new module.
17149
17150 2010-12-21  Bruno Haible  <bruno@clisp.org>
17151
17152         New module 'ceill-ieee'.
17153         * modules/ceill-ieee: New file.
17154         * modules/ceill-ieee-tests: New file.
17155         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17156         * tests/test-ceill.c (main): Remove signbit tests.
17157         * modules/ceill-tests (Depends-on): Remove signbit.
17158         * doc/posix-functions/ceill.texi: Mention the new module.
17159
17160 2010-12-21  Bruno Haible  <bruno@clisp.org>
17161
17162         New module 'floorl-ieee'.
17163         * modules/floorl-ieee: New file.
17164         * modules/floorl-ieee-tests: New file.
17165         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17166         * tests/test-floorl.c (main): Remove signbit tests.
17167         * modules/floorl-tests (Depends-on): Remove signbit.
17168         * doc/posix-functions/floorl.texi: Mention the new module.
17169
17170 2010-12-21  Bruno Haible  <bruno@clisp.org>
17171
17172         New module 'round-ieee'.
17173         * modules/round-ieee: New file.
17174         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17175         whether round works according to ISO C 99 with IEC 60559.
17176         * m4/round-ieee.m4: New file.
17177         * modules/round-ieee-tests: New file.
17178         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17179         * tests/test-round1.c (main): Remove signbit tests.
17180         * modules/round-tests (Depends-on): Remove 'signbit'.
17181         * doc/posix-functions/round.texi: Mention the new module.
17182
17183 2010-12-21  Bruno Haible  <bruno@clisp.org>
17184
17185         New module 'trunc-ieee'.
17186         * modules/trunc-ieee: New file.
17187         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17188         whether trunc works according to ISO C 99 with IEC 60559.
17189         * m4/trunc-ieee.m4: New file.
17190         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17192         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17193         * modules/trunc-ieee-tests: New file.
17194         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17195         * tests/test-trunc1.c (main): Remove signbit tests.
17196         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17197         * doc/posix-functions/trunc.texi: Mention the new module.
17198
17199 2010-12-21  Bruno Haible  <bruno@clisp.org>
17200
17201         New module 'ceil-ieee'.
17202         * modules/ceil-ieee: New file.
17203         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17204         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17205         ISO C 99 with IEC 60559.
17206         * m4/ceil-ieee.m4: New file.
17207         * modules/ceil (Files): Add lib/ceil.c.
17208         (Depends-on): Add 'float'.
17209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17210         * lib/math.in.h (ceil): New declaration.
17211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17212         REPLACE_CEIL.
17213         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17214         * modules/ceil-ieee-tests: New file.
17215         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17216         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17217         * doc/posix-functions/ceil.texi: Mention the new module.
17218
17219 2010-12-21  Bruno Haible  <bruno@clisp.org>
17220
17221         New module 'floor-ieee'.
17222         * modules/floor-ieee: New file.
17223         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17224         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17225         ISO C 99 with IEC 60559.
17226         * m4/floor-ieee.m4: New file.
17227         * modules/floor (Files): Add lib/floor.c.
17228         (Depends-on): Add 'float'.
17229         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17230         * lib/math.in.h (floor): New declaration.
17231         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17232         REPLACE_FLOOR.
17233         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17234         * modules/floor-ieee-tests: New file.
17235         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17236         * tests/test-math-c++.cc: Check the signature of 'floor'.
17237         * doc/posix-functions/floor.texi: Mention the new module.
17238
17239 2010-12-21  Bruno Haible  <bruno@clisp.org>
17240
17241         New module 'roundf-ieee'.
17242         * modules/roundf-ieee: New file.
17243         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17244         test whether roundf works according to ISO C 99 with IEC 60559.
17245         * m4/roundf-ieee.m4: New file.
17246         * modules/roundf-ieee-tests: New file.
17247         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17248         * tests/test-roundf1.c (main): Remove signbit tests.
17249         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17250         * doc/posix-functions/roundf.texi: Mention the new module.
17251
17252 2010-12-21  Bruno Haible  <bruno@clisp.org>
17253
17254         New module 'truncf-ieee'.
17255         * modules/truncf-ieee: New file.
17256         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17257         test whether truncf works according to ISO C 99 with IEC 60559.
17258         * m4/truncf-ieee.m4: New file.
17259         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17260         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17261         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17262         * modules/truncf-ieee-tests: New file.
17263         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17264         * tests/test-truncf1.c (main): Remove signbit tests.
17265         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17266         * doc/posix-functions/truncf.texi: Mention the new module.
17267
17268 2010-12-21  Bruno Haible  <bruno@clisp.org>
17269
17270         New module 'ceilf-ieee'.
17271         * modules/ceilf-ieee: New file.
17272         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17273         test whether ceilf works according to ISO C 99 with IEC 60559.
17274         * m4/ceilf-ieee.m4: New file.
17275         * modules/ceilf-ieee-tests: New file.
17276         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17277         * tests/test-ceilf1.c (main): Remove signbit tests.
17278         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17279         * doc/posix-functions/ceilf.texi: Mention the new module.
17280
17281 2010-12-21  Bruno Haible  <bruno@clisp.org>
17282
17283         New module 'floorf-ieee'.
17284         * modules/floorf-ieee: New file.
17285         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17286         test whether floorf works according to ISO C 99 with IEC 60559.
17287         * m4/floorf-ieee.m4: New file.
17288         * modules/floorf-ieee-tests: New file.
17289         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17290         * tests/test-floorf1.c (main): Remove signbit tests.
17291         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17292         * doc/posix-functions/floorf.texi: Mention the new module.
17293
17294 2010-12-21  Bruno Haible  <bruno@clisp.org>
17295
17296         Support for minus zero in autoconf macros.
17297         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17298         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17299         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17300         * tests/minus-zero.h: Update comments.
17301
17302 2010-12-21  Bruno Haible  <bruno@clisp.org>
17303
17304         Tests for module 'ceil'.
17305         * modules/ceil-tests: New file.
17306         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17307         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17308
17309 2010-12-21  Bruno Haible  <bruno@clisp.org>
17310
17311         Tests for module 'floor'.
17312         * modules/floor-tests: New file.
17313         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17314         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17315
17316 2010-12-21  Bruno Haible  <bruno@clisp.org>
17317
17318         math: Fix indentation.
17319         * lib/math.in.h (floorf): Fix indentation.
17320
17321 2010-12-21  Bruno Haible  <bruno@clisp.org>
17322
17323         Fix cross-compilation guesses on Solaris.
17324         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17325         not match "solaris2.10".
17326         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17327         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17328         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17329
17330 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17331
17332         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17333         This fixes a problem observed with the latest coreutils snapshot
17334         that caused a test to fail on Solaris 8.  src/csplit.c's call
17335         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17336         earlier, instead of returning the number of bytes that would have
17337         been generated; this causes csplit to incorrectly report memory
17338         exhaustion.
17339         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17340         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17341         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17342         comments to match.
17343         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17344         Fix typo in matching older versions of Solaris: "solaris2.10"
17345         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17346         only for guessing while cross-compiling.
17347         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17348
17349 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17350
17351         ftoastr: fix comment again
17352         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17354         Also, simplify example a bit by using flags = 0.
17355
17356 2010-12-20  Bruno Haible  <bruno@clisp.org>
17357
17358         round*, trunc*: Update documentation regarding glibc.
17359         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17360         * doc/posix-functions/round.texi: Likewise.
17361         * doc/posix-functions/roundl.texi: Likewise.
17362         * doc/posix-functions/truncf.texi: Likewise.
17363         * doc/posix-functions/trunc.texi: Likewise.
17364         * doc/posix-functions/truncl.texi: Likewise.
17365
17366 2010-12-20  Bruno Haible  <bruno@clisp.org>
17367
17368         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17369         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17370         * doc/posix-functions/round.texi: Likewise.
17371         * doc/posix-functions/roundl.texi: Likewise.
17372
17373 2010-12-20  Bruno Haible  <bruno@clisp.org>
17374
17375         ttyname_r: Add missing declaration on HP-UX 11.
17376         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17377         HAVE_TTYNAME_R.
17378         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17379         declared. Set HAVE_TTYNAME_R always.
17380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17381         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17382         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17383         HAVE_TTYNAME_R.
17384         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17385
17386 2010-12-20  Bruno Haible  <bruno@clisp.org>
17387
17388         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17389         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17390         * doc/posix-functions/getlogin_r.texi: Likewise.
17391         * tests/test-getlogin.c: Include <errno.h>.
17392         (main): Avoid test failure on HP-UX 11.11.
17393         * tests/test-getlogin_r.c (main): Likewise.
17394
17395 2010-12-20  Bruno Haible  <bruno@clisp.org>
17396
17397         getlogin_r: Add missing declaration on HP-UX 11.
17398         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17399         declared also when it exists as a function.
17400         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17401
17402 2010-12-20  Bruno Haible  <bruno@clisp.org>
17403
17404         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17405         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17406         through wcrtomb.
17407
17408 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17409
17410         ftoastr: fix comment
17411         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17412         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17413
17414 2010-12-19  Bruno Haible  <bruno@clisp.org>
17415
17416         isnan: Ensure it is a macro.
17417         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17418         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17419         Solaris.
17420
17421 2010-12-19  Bruno Haible  <bruno@clisp.org>
17422
17423         ldexpl test: Fix link error on OSF/1 5.1.
17424         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17425
17426 2010-12-19  Bruno Haible  <bruno@clisp.org>
17427
17428         wctype: Make it work in C++ mode on OSF/1 5.1.
17429         * lib/wctype.in.h (iswblank): Declare but not define here.
17430         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17431         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17432         * modules/wctype (Files): Add lib/iswblank.c.
17433
17434 2010-12-19  Bruno Haible  <bruno@clisp.org>
17435
17436         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17437         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17438         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17439
17440 2010-12-19  Bruno Haible  <bruno@clisp.org>
17441
17442         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17444         _POSIX_PII_SOCKET.
17445         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17446         * doc/posix-functions/recvfrom.texi: Likewise.
17447         * doc/posix-functions/send.texi: Likewise.
17448         * doc/posix-functions/sendto.texi: Likewise.
17449
17450 2010-12-19  Bruno Haible  <bruno@clisp.org>
17451
17452         tcgetsid: Add missing declaration on OSF/1 5.1.
17453         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
17454         HAVE_TCGETSID.
17455         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
17456         Don't set HAVE_TCGETSID.
17457         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
17458         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
17459         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
17460         HAVE_TCGETSID.
17461         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
17462
17463 2010-12-19  Bruno Haible  <bruno@clisp.org>
17464
17465         stdio: Fix problem with popen() declaration on OSF/1 5.1.
17466         * lib/stdio.in.h: During the include_next statement, let recursive
17467         includes of this file include only the system header file.
17468
17469 2010-12-19  Bruno Haible  <bruno@clisp.org>
17470
17471         iconv_open: Fix regression from 2010-12-04.
17472         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
17473         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
17474
17475 2010-12-19  Bruno Haible  <bruno@clisp.org>
17476
17477         stdbool test: Avoid a gcc warning.
17478         * tests/test-stdbool.c (main): Fail if e1 is false.
17479         Reported by Jim Meyering.
17480
17481 2010-12-19  Jim Meyering  <meyering@redhat.com>
17482
17483         setenv: restore to working order
17484         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
17485         mistakenly removed.
17486         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
17487         HAVE_SETENV.
17488         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
17489         HAVE_SETENV.
17490
17491 2010-12-19  Bruno Haible  <bruno@clisp.org>
17492
17493         Document some different function declarations on OSF/1 5.1.
17494         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
17495         * doc/posix-functions/inet_ntop.texi: Likewise.
17496         * doc/posix-functions/gethostname.texi: Likewise.
17497         * lib/unistd.in.h (gethostname): Update comment.
17498
17499 2010-12-19  Bruno Haible  <bruno@clisp.org>
17500
17501         doc: Mention vasprintf-posix module.
17502         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
17503         the 'vasprintf-posix' module.
17504         * doc/glibc-functions/vasprintf.texi: Likewise.
17505
17506 2010-12-19  Bruno Haible  <bruno@clisp.org>
17507
17508         unsetenv: Add missing declaration on OSF/1 5.1.
17509         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
17510         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
17511         Don't set HAVE_UNSETENV. In the test program, set _BSD.
17512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
17513         not HAVE_UNSETENV.
17514         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
17515         HAVE_UNSETENV.
17516         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
17517
17518 2010-12-19  Bruno Haible  <bruno@clisp.org>
17519
17520         setenv: Add missing declaration on OSF/1 5.1.
17521         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
17522         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
17523         declared. Don't set HAVE_SETENV.
17524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
17525         not HAVE_SETENV.
17526         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
17527         HAVE_SETENV.
17528         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
17529
17530 2010-12-19  Bruno Haible  <bruno@clisp.org>
17531
17532         nl_langinfo tests: Avoid gcc warning.
17533         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
17534
17535 2010-12-19  Bruno Haible  <bruno@clisp.org>
17536
17537         mknod: Avoid error in C++ mode on OSF/1 with GCC.
17538         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
17539         _GL_CXXALIAS_SYS.
17540
17541 2010-12-19  Bruno Haible  <bruno@clisp.org>
17542
17543         stdbool: Relax test.
17544         * tests/test-stdbool.c (e): Don't require that casts from a variable's
17545         address to 'bool' work in static initializer, for compilers other than
17546         GCC.
17547
17548 2010-12-19  Bruno Haible  <bruno@clisp.org>
17549
17550         ftello: Add missing declaration on OSF/1 5.1.
17551         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
17552         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
17553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
17554         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
17555         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
17556
17557 2010-12-19  Bruno Haible  <bruno@clisp.org>
17558
17559         fseeko: Add missing declaration on OSF/1 5.1.
17560         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
17561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
17562         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
17563         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
17564         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
17565
17566 2010-12-19  Bruno Haible  <bruno@clisp.org>
17567
17568         fchdir: Add missing declaration on OSF/1 5.1.
17569         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
17570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
17571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
17572         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
17573         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
17574
17575 2010-12-19  Bruno Haible  <bruno@clisp.org>
17576
17577         relocatable-prog-wrapper: Separate from relocatable-prog.
17578         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
17579         uninstall-relocwrapper rule here.
17580         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
17581         Reported by Ian Beckwith <ianb@erislabs.net>.
17582
17583 2010-12-19  Bruno Haible  <bruno@clisp.org>
17584
17585         unistr/u8-mbsnlen: Add missing dependency.
17586         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
17587         Reported by Ian Beckwith <ianb@erislabs.net>.
17588
17589 2010-12-19  Bruno Haible  <bruno@clisp.org>
17590
17591         iconv: Make it possible again to use this module without 'iconv-h'.
17592         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
17593         if it is not defined.
17594         Reported by Ian Beckwith <ianb@erislabs.net>.
17595
17596 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         acl: port to Solaris 8 when copying from tmpfs to ufs
17599         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
17600         error number.  Problem observed on Solaris 8 with latest
17601         coreutils, with "mv A B", where A is on a tmpfs file system and B
17602         is on a ufs file system.  This caused coreutils' mv/part-symlink
17603         test to fail.
17604
17605         tests: set fail=0 at start
17606         * tests/init.sh (setup_): Move fail=0 initialization here ...
17607         (mktempd_): ... from here, so that tests can rely on fail being
17608         set to 0 initially.  This fixes a problem in coreutils; see:
17609         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
17610
17611 2010-12-18  Bruno Haible  <bruno@clisp.org>
17612
17613         memmem-simple: Stylistic changes.
17614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
17615         Fix preprocessor directive indentation.
17616
17617 2010-12-15  Pádraig Brady <P@draigBrady.com>
17618
17619         memmem, memmem-simple: reorganize and expand empty needle check
17620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
17621         functional checks to memmem-simple so that one has a fully functional
17622         memmem by using just this module.
17623         Restrict the performance only check to the memmem module.
17624         Also expand the empty needle check to ensure the correct
17625         pointer is returned, not just a non NULL pointer.
17626         * doc/glibc-functions/memmem.texi: Rearrange the portability
17627         documentation to correlate with the rearranged checks.
17628         Clarify exactly how the memmem and memmem-simple modules
17629         relate to each other.
17630
17631 2010-12-15  Pádraig Brady <P@draigBrady.com>
17632             Bruno Haible  <bruno@clisp.org>
17633
17634         Improve cross-compilation guesses for uClibc.
17635         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
17636         that uClibc does not have the glibc bug.
17637         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
17638         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
17639
17640 2010-12-14  Eric Blake  <eblake@redhat.com>
17641
17642         configmake: provide fallbacks for oldest supported autotools
17643         * m4/configmake.m4: New file.
17644         * modules/configmake (Files): Ship it.
17645         (configure.ac): Use it to guarantee fallbacks.
17646
17647 2010-12-13  Pádraig Brady <P@draigBrady.com>
17648
17649         read-file: Improve handling of large files
17650         * lib/read-file.c (fread_file): Minimize realloc()s
17651         for regular files, and better manage sizes around SIZE_MAX.
17652
17653 2010-12-13  Eric Blake  <eblake@redhat.com>
17654
17655         cloexec, fcntl: relax license
17656         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
17657         consent from all contributors.
17658         * modules/fcntl (License): Likewise.
17659
17660 2010-12-10  Bruno Haible  <bruno@clisp.org>
17661
17662         Tests for module 'pipe-posix'.
17663         * modules/pipe-posix-tests: New file.
17664         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
17665
17666 2010-12-10  Bruno Haible  <bruno@clisp.org>
17667
17668         pipe-posix: Make it work in C++ mode.
17669         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
17670         (pipe): Use common idiom, not a macro definition.
17671         * lib/pipe.c: New file.
17672         * m4/pipe.m4: New file.
17673         * modules/pipe-posix (Description): Enhance.
17674         (Files): Add lib/pipe.c, m4/pipe.m4.
17675         (configure.ac): Invoke gl_FUNC_PIPE.
17676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
17677         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
17678         * tests/test-unistd-c++.cc: Check the signature of pipe.
17679
17680 2010-12-10  Bruno Haible  <bruno@clisp.org>
17681
17682         Rename module 'pipe' to 'spawn-pipe'.
17683         * modules/spawn-pipe: New file, renamed from modules/pipe.
17684         (Files, configure.ac, Makefile.am): Update.
17685         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
17686         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
17687         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
17688         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
17689         "spawn-pipe.h" instead of "pipe.h".
17690         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
17691         to gl_SPAWN_PIPE.
17692         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
17693         (Files, Makefile.am): Update.
17694         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
17695         Update.
17696         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
17697         Include "spawn-pipe.h" instead of "pipe.h".
17698         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
17699         * lib/javacomp.c: Likewise.
17700         * lib/javaversion.c: Likewise.
17701         * lib/pipe-filter-gi.c: Likewise.
17702         * lib/pipe-filter-ii.c: Likewise.
17703         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
17704         * modules/javacomp (Depends-on): Likewise.
17705         * modules/javaversion (Depends-on): Likewise.
17706         * modules/pipe-filter-gi (Depends-on): Likewise.
17707         * modules/pipe-filter-ii (Depends-on): Likewise.
17708         * MODULES.html.sh (Executing programs): Update.
17709         * NEWS: Mention the change.
17710
17711 2010-12-10  Eric Blake  <eblake@redhat.com>
17712
17713         pipe-posix: new module
17714         * modules/pipe-posix: New file.
17715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
17716         (gl_UNISTD_H): Check for declaration.
17717         * modules/unistd (Makefile.am): Substitute it.
17718         * lib/unistd.in.h (pipe): Provide it for mingw.
17719         * doc/posix-functions/pipe.texi (pipe): Update documentation.
17720         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
17721
17722 2010-12-07  Bruno Haible  <bruno@clisp.org>
17723
17724         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
17725         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
17726         u8_strcmp_gnu.
17727         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
17728
17729 2010-12-06  Bruno Haible  <bruno@clisp.org>
17730
17731         Update internal documentation.
17732         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
17733
17734 2010-12-04  Bruno Haible  <bruno@clisp.org>
17735
17736         Put more information about failed tests into the test return codes.
17737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
17738         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
17739         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
17740         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
17741         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
17742         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17743         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17744         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17745         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
17746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17747         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
17748         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
17749         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
17750         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17751         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
17752         returns a bit mask.
17753         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
17754         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
17755         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
17756         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
17757         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17758         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17759         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17760         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17761         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17762         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17763         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17764         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17765         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17767         * m4/link.m4 (gl_FUNC_LINK): Likewise.
17768         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17769         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
17770         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
17771         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17772         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
17773         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17774         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
17775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
17776         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17777         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17778         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17779         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
17780         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17781         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17782         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
17783         gl_PRINTF_PRECISION): Likewise.
17784         * m4/regex.m4 (gl_REGEX): Likewise.
17785         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17786         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17787         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
17788         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17789         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17792         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
17793         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
17794         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
17795         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17796         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17797         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17798         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
17799         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17800         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
17801         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17802         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17804         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
17805         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
17806         enumerated value.
17807         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
17808
17809 2010-12-04  Bruno Haible  <bruno@clisp.org>
17810
17811         Update for Solaris 11 2010-11.
17812         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
17813         Express, released in November 2010.
17814
17815 2010-12-04  Bruno Haible  <bruno@clisp.org>
17816
17817         nproc: Relax license.
17818         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
17819         and Paul Eggert.
17820         Requested by Ludovic Courtès <ludo@gnu.org>.
17821
17822 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
17823
17824         utimecmp: fine-grained src to nearby coarse-grained dest
17825
17826         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
17827         and the source is on a file system with higher-resolution time
17828         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
17829         not work, and the time stamps are close together, the algorithm to
17830         determine the exact resolution from the read-back mtime was buggy:
17831         it had a "!=" where it should have had an "==".  This bug has been
17832         in the code ever since it was introduced to gnulib.
17833         Problem reported by Dan Jacobson in
17834         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
17835
17836 2010-11-30  Bruno Haible  <bruno@clisp.org>
17837
17838         strerror_r-posix: Fix autoconf test.
17839         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
17840
17841 2010-11-28  Bruno Haible  <bruno@clisp.org>
17842             Paul Eggert  <eggert@cs.ucla.edu>
17843
17844         Tests for module 'getdomainname'.
17845         * modules/getdomainname-tests: New file.
17846         * tests/test-getdomainname.c: New file, based on
17847         tests/test-gethostname.c.
17848
17849 2010-11-28  Bruno Haible  <bruno@clisp.org>
17850             Paul Eggert  <eggert@cs.ucla.edu>
17851
17852         getdomainname: Use the system function when possible.
17853         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
17854         (getdomainname): Replace if needed. Provide the declaration if it is
17855         missing. Don't use _GL_CXXALIAS_SYS_CAST.
17856         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
17857         (getdomainname): When the system has getdomainname, call the system
17858         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
17859         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
17860         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
17861         found in libnsl. Look for the declaration also in <netdb.h>. Replace
17862         the function if its second argument is of type 'int' or if it is found
17863         in libnsl.
17864         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
17865         <sys/systeminfo.h> and sysinfo().
17866         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
17867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17868         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
17869         HAVE_GETDOMAINNAME.
17870         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
17871         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
17872         * doc/glibc-functions/getdomainname.texi: Document the problems with
17873         the getdomainname declaration.
17874
17875 2010-11-28  Bruno Haible  <bruno@clisp.org>
17876
17877         sys_socket: Ensure ss_family field on AIX.
17878         * lib/sys_socket.in.h (ss_family): New macro definition.
17879         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
17880         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
17881         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17882         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17883         * modules/sys_socket (Makefile.am): Substitute
17884         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
17885         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
17886
17887 2010-11-27  Bruno Haible  <bruno@clisp.org>
17888
17889         readline: Improve configure output.
17890         * m4/readline.m4 (gl_FUNC_READLINE): Make the
17891         "checking for readline..." result understandable.
17892
17893 2010-11-27  Bruno Haible  <bruno@clisp.org>
17894
17895         *printf-posix: Detect a bug on Solaris 10/x86.
17896         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
17897         for floating-point output.
17898         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
17899         directive.
17900         * tests/test-snprintf-posix.h (test_function): Likewise.
17901         * tests/test-sprintf-posix.h (test_function): Likewise.
17902         * tests/test-vasprintf-posix.c (test_function): Likewise.
17903         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
17904         * doc/posix-functions/printf.texi: Likewise.
17905         * doc/posix-functions/snprintf.texi: Likewise.
17906         * doc/posix-functions/sprintf.texi: Likewise.
17907         * doc/posix-functions/vfprintf.texi: Likewise.
17908         * doc/posix-functions/vprintf.texi: Likewise.
17909         * doc/posix-functions/vsnprintf.texi: Likewise.
17910         * doc/posix-functions/vsprintf.texi: Likewise.
17911         * doc/glibc-functions/obstack_printf.texi: Likewise.
17912         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
17913
17914 2010-11-27  Bruno Haible  <bruno@clisp.org>
17915
17916         Fix link error when module libunistring-optional is in use.
17917         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
17918         * modules/striconveha-tests (Makefile.am): Likewise.
17919
17920 2010-11-27  Bruno Haible  <bruno@clisp.org>
17921
17922         regex: Mention link dependencies.
17923         * modules/regex (Link): New section.
17924         * modules/rpmatch (Link): Likewise.
17925         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
17926
17927 2010-11-27  Bruno Haible  <bruno@clisp.org>
17928
17929         ftoastr: Fix compilation error on Solaris.
17930         * lib/ftoastr.c: Include <config.h>.
17931
17932 2010-11-27  Bruno Haible  <bruno@clisp.org>
17933
17934         getloadavg: Update documentation.
17935         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
17936
17937 2010-11-27  Bruno Haible  <bruno@clisp.org>
17938
17939         sys_socket: Fix test whether the functions are declared.
17940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
17941         not <sys/select.h>.
17942
17943 2010-11-27  Bruno Haible  <bruno@clisp.org>
17944
17945         getpass: Make sure to get system declaration on some platforms.
17946         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
17947         gl_USE_SYSTEM_EXTENSIONS.
17948         * modules/getpass (Depends-on): Add extensions.
17949
17950 2010-11-26  Bruno Haible  <bruno@clisp.org>
17951
17952         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
17953         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
17954         'iconv' module is present.
17955         (ICONV_CONST): New macro.
17956         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
17957         ICONV_CONST.
17958         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
17959         set ICONV_CONST.
17960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
17961         here.
17962         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
17963         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
17964         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
17965         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
17966         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
17967         present.
17968
17969 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
17970
17971         ftoastr: comment fix
17972         * lib/ftoastr.c: "little" -> "little or no" in comment
17973
17974 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17975
17976         stdint: port to GCC 4.3 + OSX + Octave
17977         On this platform, stdint.h is buggy and defines int64_t to long
17978         long int.  The replacement defined it to long int, causing
17979         problems with C++ style name mangling.  Instead, trust the system
17980         definition if INT64_MAX is defined, and likewise for the unsigned
17981         variant.   Problem reported by Jarno Rajahalme in
17982         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
17983         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
17984         and don't mess with int64_t and INT64_MAX in this case.
17985         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
17986
17987 2010-11-24  Bruno Haible  <bruno@clisp.org>
17988
17989         doc: Corrections regarding MacOS X 10.4 and 10.5.
17990         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
17991         MacOS X.
17992         Reported by Simon Josefsson.
17993
17994 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
17995
17996         Uninstall ".bin" files installed by relocwrapper.
17997         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
17998         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
17999         unless it is already there.
18000
18001 2010-11-21  Bruno Haible  <bruno@clisp.org>
18002
18003         Update for NetBSD 5.0.
18004         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18005         NetBSD; the test fails on NetBSD 5.0.
18006         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18007         about NetBSD.
18008
18009 2010-11-21  Bruno Haible  <bruno@clisp.org>
18010
18011         Update for HP-UX 11.23 and HP-UX 11.31.
18012         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18013         HP-UX.
18014
18015 2010-11-21  Bruno Haible  <bruno@clisp.org>
18016
18017         Update for MacOS X 10.5.
18018         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18019         MacOS X; the test fails on MacOS X 10.5.8.
18020         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18021         about MacOS X.
18022
18023 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18024
18025         bootstrap: add bootstrap_sync option.
18026         See discussion at
18027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18029         * build-aux/bootstrap: Accept --bootstrap-sync to update
18030         bootstrap if it is not identical to the local gnulib's
18031         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18032         enable this by default.  Accept --no-bootstrap-sync to disable
18033         it.
18034
18035 2010-11-20  Bruno Haible  <bruno@clisp.org>
18036
18037         Ensure that <features.h> is included before __GLIBC__ is tested.
18038         * lib/printf-parse.h: Include <features.h>.
18039         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18040         Reported by Mike Frysinger <vapier@gentoo.org>.
18041
18042         Ensure that <features.h> is included before __GLIBC__ is tested.
18043         * lib/wchar.in.h: Include <features.h>.
18044         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18045         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18046         Reported by Mike Frysinger <vapier@gentoo.org>.
18047
18048         Ensure that <features.h> is included before __GLIBC__ is tested.
18049         * lib/arpa_inet.in.h: Include <features.h>.
18050         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18051         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18052         Reported by Mike Frysinger <vapier@gentoo.org>.
18053
18054         Ensure that <features.h> is included before __GLIBC__ is tested.
18055         * build-aux/link-warning.h: Include <features.h>.
18056         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18057         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18058         Reported by Mike Frysinger <vapier@gentoo.org>.
18059
18060         Ensure that <features.h> is included before __GLIBC__ is tested.
18061         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18062         Reported by Mike Frysinger <vapier@gentoo.org>.
18063
18064 2010-11-20  Bruno Haible  <bruno@clisp.org>
18065
18066         memmem: Fix autoconf test.
18067         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18068
18069 2010-11-20  Bruno Haible  <bruno@clisp.org>
18070
18071         Port to uClibc.
18072         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18073         * lib/fcntl.in.h: Likewise.
18074         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18075         * lib/mbrtowc.c (mbrtowc): Likewise.
18076         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18077         * lib/strerror_r.c: Likewise.
18078         * lib/unistr/u8-strnlen.c: Likewise.
18079         * lib/vasnprintf.c (decimal_point_char): Likewise.
18080         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18081         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18082         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18083         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18084         * tests/test-sigaction.c (handler, main): Likewise.
18085         * lib/freading.h: Treat uClibc like a non-glibc platform.
18086         * lib/freading.c: Likewise.
18087         * lib/gettext.h: Likewise.
18088         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18089         Likewise.
18090         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18091         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18092         * lib/propername.c (proper_name_utf8): Likewise.
18093         * lib/spawn.in.h: Likewise.
18094         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18095         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18096         mem_cd_iconveh_internal): Likewise.
18097         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18098         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18099         strstr, strcasestr): Likewise.
18100         * lib/unicodeio.c (unicode_to_mb): Likewise.
18101         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18102         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18103         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18104         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18105         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18106         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18107         * lib/unistr/u8-stpncpy.c: Likewise.
18108         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18109         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18110         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18111         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18112         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18113         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18115         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18117         Likewise.
18118         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18119         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18120         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18121         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18122         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18123         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18124         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18125         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18126         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18127         * tests/test-striconveha.c (main): Likewise.
18128         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18129         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18130         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18131         * doc/posix-functions/getline.texi: Likewise.
18132         Reported by Mike Frysinger <vapier@gentoo.org>.
18133
18134 2010-11-20  Bruno Haible  <bruno@clisp.org>
18135
18136         nproc: Fix condition.
18137         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18138         HAVE_PTHREAD_AFFINITY_NP.
18139
18140 2010-11-20  Bruno Haible  <bruno@clisp.org>
18141
18142         Fix a comment.
18143         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18144
18145 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18146
18147         ftoastr: don't assume snprintf
18148         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18149         Implement a subset of snprintf here, by using sprintf safely.
18150         * modules/ftoastr (Depends-on): Remove snprintf.
18151
18152 2010-11-19  Jim Meyering  <meyering@redhat.com>
18153
18154         test-rename.h: fix compilation failure
18155         * tests/test-rename.h (test_rename): Add omitted "}".
18156
18157 2010-11-17  Jim Meyering  <meyering@redhat.com>
18158
18159         maint.mk: add a URL discussing the no-@acronym policy
18160         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18161
18162 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         ftoastr: depend on snprintf, improve comments
18165         * lib/ftoastr.c: Also mention Loitsch's draft.
18166         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18167         needed in the current implementation, but it might simplify
18168         speeding up the code later.
18169         * modules/ftoastr: Depend on snprintf; this improves portability.
18170         Suggested by Bruno Haible in the same email.
18171
18172         ftoastr: port to hosts lacking strtof and strtold
18173         Problem reported by Bruno Haible in
18174         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18175         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18176         environment and strtold (and presumably strtof) are not available.
18177         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18178         (configure.ac): Require gl_C99_STRTOLD.
18179
18180 2010-11-18  Bruno Haible  <bruno@clisp.org>
18181
18182         c-strtold: Avoid link error on AIX 7.
18183         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18184         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18185         (gl_C_STRTOLD): Test whether strtold_l exists.
18186         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18187
18188 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18189
18190         intprops: new macro INT_BITS_STRLEN_BOUND
18191         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18192         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18193         not exposed.  Also, it uses a slightly tighter bound than before;
18194         though this makes no practical difference, we might as well be as
18195         tight as we easily can.
18196
18197         ftoastr: new module, for lossless conversion of floats to short strings
18198         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18199         * modules/ftoastr: New files.
18200
18201 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18202
18203         bootstrap: port to Solaris sed
18204         * build-aux/bootstrap (get_version): Port to Solaris sed.
18205         See Ralf Wildenhues's note in
18206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18207
18208 2010-11-14  Jim Meyering  <meyering@redhat.com>
18209
18210         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18211         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18212         and move definition closer to sole use.
18213
18214 2010-11-13  Jim Meyering  <meyering@redhat.com>
18215
18216         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18217         Now we require at least autoconf-2.59, which means the work-around
18218         is no longer needed.
18219         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18220         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18221         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18222         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18223         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18224
18225 2010-11-13  Bruno Haible  <bruno@clisp.org>
18226
18227         rename, renameat: Avoid test failures at NFS mounted locations.
18228         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18229         functions.
18230         (test_rename): Use assert_nonexistent.
18231         * tests/test-rename.c: Include <dirent.h>.
18232         * tests/test-renameat.c: Likewise.
18233         Reported by Gary V. Vaughan <gary@gnu.org>.
18234
18235         rename, renameat: Document Linux bug with NFS
18236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18237         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18238         * doc/posix-functions/renameat.texi: Likewise.
18239         Suggested by Eric Blake.
18240
18241 2010-11-13  Bruno Haible  <bruno@clisp.org>
18242
18243         rename test: Add comments.
18244         * tests/test-rename.h (test_rename): Add structure and comments.
18245
18246 2010-11-13  Eric Blake  <eblake@redhat.com>
18247
18248         maintainer-makefile: cover a few more files
18249         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18250         scripts generated within C files, for libvirt.
18251
18252 2010-11-13  Bruno Haible  <bruno@clisp.org>
18253
18254         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18255         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18256         character, return the number of bytes that belong together, not always
18257         1.
18258         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18259         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18260         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18261         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18262         number of bytes of an invalid character.
18263         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18264         (main): Invoke it.
18265         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18266         results.
18267         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18268         malformed byte sequences.
18269         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18270         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18271         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18272         Reported by Ben Pfaff and Paolo Bonzini.
18273
18274 2010-11-13  Bruno Haible  <bruno@clisp.org>
18275
18276         openat: Work around glibc bug with fchownat() and empty file names.
18277         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18278         (gl_FUNC_FCHOWNAT): Invoke it.
18279         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18280         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18281         Reported by Gary V. Vaughan <gary@gnu.org>.
18282
18283 2010-11-13  Bruno Haible  <bruno@clisp.org>
18284
18285         openat: Ensure autoconf macro ordering.
18286         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18287         gl_USE_SYSTEM_EXTENSIONS.
18288         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18289
18290 2010-11-13  Bruno Haible  <bruno@clisp.org>
18291
18292         Update comments.
18293         * lib/unistr/u8-check.c: Update file name in comments.
18294         * lib/unistr/u8-mblen.c: Likewise.
18295         * lib/unistr/u8-prev.c: Likewise.
18296         * lib/unistr/u8-strmblen.c: Likewise.
18297         * lib/unistr/u8-strmbtouc.c: Likewise.
18298
18299 2010-11-13  Jim Meyering  <meyering@redhat.com>
18300
18301         tests: avoid test failure on Solaris 10 due to lack of PATH export
18302         * tests/test-update-copyright.sh: Don't forget to export PATH.
18303
18304         init.sh: ensure that IFS is defined, just in case...
18305         * tests/init.sh (setup_): Ensure that IFS is defined,
18306         so that saving and restoring it works as expected.  This
18307         appears to be useful at least for an old version of dash
18308         from a long time ago (RH 6).  See here for details:
18309         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18310
18311         maint.mk: tighten "test a == b" check
18312         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18313         test to files that contain something like #!/bin/sh.
18314         Without this, coreutils would get two false positives in
18315         the comments of C source files.
18316
18317 2010-11-12  Eric Blake  <eblake@redhat.com>
18318
18319         bootstrap: fix typo in previous attempt
18320         * build-aux/bootstrap (buildreq): Correct the grouping.
18321         Reported by Paul Eggert.
18322
18323         maintainer-makefile: prohibit test x == x
18324         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18325         Based on a report by Matthias Bolte.
18326
18327         bootstrap: allow FreeBSD gzip
18328         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18329         which has no '.' and goes to stderr.
18330         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18331         Reported by Matthias Bolte.
18332
18333         maintainer-makefile: check for i18n setup
18334         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18335         will likely work.
18336
18337 2010-11-12  Bruno Haible  <bruno@clisp.org>
18338
18339         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18340         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18341         * lib/nanosleep.c (nanosleep): Likewise.
18342
18343 2010-11-11  Bruno Haible  <bruno@clisp.org>
18344
18345         fcntl-h: Fix for use of C++ on glibc systems.
18346         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18347         also on glibc systems in C++ mode.
18348         Reported by Gary V. Vaughan <gary@gnu.org>.
18349
18350 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18351
18352         mknod: avoid false failure with dash
18353         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18354
18355 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18356
18357         unlink: Fix "is it should" typo in diagnostic.
18358         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18360
18361 2010-11-11  Bruno Haible  <bruno@clisp.org>
18362
18363         Tests for module 'strerror_r-posix'.
18364         * modules/strerror_r-posix-tests: New file.
18365         * tests/test-strerror_r.c: New file.
18366         * tests/test-string-c++.cc: Check the signature of strerror_r.
18367
18368         New module 'strerror_r-posix'.
18369         * lib/string.in.h (strerror_r): New declaration.
18370         * lib/strerror_r.c: New file.
18371         * m4/strerror_r.m4: New file.
18372         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18373         of strerror_r.
18374         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18375         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18376         * modules/strerror_r-posix: New file.
18377         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18378         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18379         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18380         portability problems.
18381
18382 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18383
18384         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18385         line is also considered for output. Quoted function name in shell
18386         command, so temporary files for functions like MyClass::operator()
18387         are removed correctly without errors.
18388
18389 2010-11-09  Bruno Haible  <bruno@clisp.org>
18390
18391         * doc/posix-functions/strerror.texi: List more failing platforms.
18392
18393         * doc/posix-functions/strerror.texi: Add a comment.
18394
18395 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18396
18397         fdopendir: fix bug on MacOS X when low on file descriptors
18398
18399         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18400         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18401         All callers changed.
18402         (fdopendir): Invoke save_cwd at the top level, not after using
18403         multiple dup() calls to use up file descriptors.  Then retry
18404         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18405         less than the maximum number of open file descriptors, because
18406         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18407         on Mac OS X 10.6.4 for tar 1.24
18408         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18409         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18410         and for tar 1.25
18411         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18412
18413 2010-11-07  Bruno Haible  <bruno@clisp.org>
18414
18415         vasnprintf: Support I flag on glibc systems.
18416         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18417         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18418         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18419         snprintf function.
18420         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18421         glibc systems.
18422         * tests/test-vasnprintf-posix3.c: New file.
18423         * modules/vasnprintf-posix-tests (Files): Add it.
18424         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18425
18426 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18427
18428         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18429         * MODULES.html.sh: For compiler warnings, use name
18430         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18431
18432 2010-11-05  Eric Blake  <eblake@redhat.com>
18433
18434         ceil, floor: avoid spurious failure with icc
18435         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18436         [denormals-as-zero] when optimizing without -mieee-fp option.
18437         * tests/test-floorf2.c (floorf_reference): Likewise.
18438         * tests/test-ceilf1.c (dummy): New function.
18439         (main): Use it to outsmart icc's optimization.
18440         * tests/test-floorf1.c (dummy, main): Likewise.
18441
18442         tests: require working signbit
18443         * modules/ceilf-tests (Depends-on): Add signbit.
18444         * modules/ceill-tests (Depends-on): Likewise.
18445         * modules/floorf-tests (Depends-on): Likewise.
18446         * modules/floorl-tests (Depends-on): Likewise.
18447         * modules/round-tests (Depends-on): Likewise.
18448         * modules/roundf-tests (Depends-on): Likewise.
18449         * modules/roundl-tests (Depends-on): Likewise.
18450         * modules/trunc-tests (Depends-on): Likewise.
18451         * modules/truncf-tests (Depends-on): Likewise.
18452         * modules/truncl-tests (Depends-on): Likewise.
18453
18454         strtod: work around icc bug
18455         * lib/strtod.c (minus_zero): Define to working value.
18456         (strtod): Use it to avoid icc bug.
18457
18458         copysign: enhance tests
18459         * modules/copysign-tests (Files): Add minus-zero.h.
18460         * tests/test-copysign.c (main): Also test zeros.
18461
18462 2010-11-04  Eric Blake  <eblake@redhat.com>
18463
18464         ceil, floor, round, trunc: enhance tests of -0
18465         * tests/test-ceilf1.c (main): Ensure correct sign of result.
18466         * tests/test-ceill.c (main): Likewise.
18467         * tests/test-floorf1.c (main): Likewise.
18468         * tests/test-floorl.c (main): Likewise.
18469         * tests/test-round1.c (main): Likewise.
18470         * tests/test-roundf1.c (main): Likewise.
18471         * tests/test-roundl.c (main): Likewise.
18472         * tests/test-trunc1.c (main): Likewise.
18473         * tests/test-truncf1.c (main): Likewise.
18474         * tests/test-truncl.c (main): Likewise.
18475
18476 2010-11-04  Eric Blake  <eblake@redhat.com>
18477
18478         frexp, tests: work around ICC bug with -zero
18479         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
18480         works with more compilers.
18481         * tests/minus-zero.h: New file.
18482         * modules/ceilf-tests (Files): Include it.
18483         * modules/ceill-tests (Files): Likewise.
18484         * modules/floorf-tests (Files): Likewise.
18485         * modules/floorl-tests (Files): Likewise.
18486         * modules/frexp-nolibm-tests (Files): Likewise.
18487         * modules/frexp-tests (Files): Likewise.
18488         * modules/frexpl-nolibm-tests (Files): Likewise.
18489         * modules/frexpl-tests (Files): Likewise.
18490         * modules/isnan-tests (Files): Likewise.
18491         * modules/isnand-nolibm-tests (Files): Likewise.
18492         * modules/isnand-tests (Files): Likewise.
18493         * modules/isnanf-nolibm-tests (Files): Likewise.
18494         * modules/isnanf-tests (Files): Likewise.
18495         * modules/isnanl-nolibm-tests (Files): Likewise.
18496         * modules/isnanl-tests (Files): Likewise.
18497         * modules/round-tests (Files): Likewise.
18498         * modules/roundf-tests (Files): Likewise.
18499         * modules/roundl-tests (Files): Likewise.
18500         * modules/ldexpl-tests (Files): Likewise.
18501         * modules/signbit-tests (Files): Likewise.
18502         * modules/snprintf-posix-tests (Files): Likewise.
18503         * modules/sprintf-posix-tests (Files): Likewise.
18504         * modules/strtod-tests (Files): Likewise.
18505         * modules/trunc-tests (Files): Likewise.
18506         * modules/truncf-tests (Files): Likewise.
18507         * modules/truncl-tests (Files): Likewise.
18508         * modules/vsnprintf-posix-tests (Files): Likewise.
18509         * modules/vsprintf-posix-tests (Files): Likewise.
18510         * modules/vasnprintf-posix-tests (Files): Likewise.
18511         * modules/vasprintf-posix-tests (Files): Likewise.
18512         * tests/test-ceilf1.c (main): Use it.
18513         * tests/test-ceill.c (main): Likewise.
18514         * tests/test-floorf1.c (main): Likewise.
18515         * tests/test-floorl.c (main): Likewise.
18516         * tests/test-frexp.c (main): Likewise.
18517         * tests/test-frexpl.c (main): Likewise.
18518         * tests/test-isnan.c (main): Likewise.
18519         * tests/test-isnand.h (main): Likewise.
18520         * tests/test-isnanf.h (main): Likewise.
18521         * tests/test-isnanl.h (main): Likewise.
18522         * tests/test-ldexpl.c (main): Likewise.
18523         * tests/test-round.c (main): Likewise.
18524         * tests/test-roundf.c (main): Likewise.
18525         * tests/test-roundl.c (main): Likewise.
18526         * tests/test-signbit.c (test_signbitf, test_signbitd)
18527         (test_signbitl): Likewise.
18528         * tests/test-snprintf-posix.h (test_function): Likewise.
18529         * tests/test-sprintf-posix.h (test_function): Likewise.
18530         * tests/test-strtod.c (main): Likewise.
18531         * tests/test-trunc1.c (main): Likewise.
18532         * tests/test-truncf1.c (main): Likewise.
18533         * tests/test-truncl.c (main): Likewise.
18534
18535         isnanl: work around icc bug
18536         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
18537
18538 2010-11-03  Eric Blake  <eblake@redhat.com>
18539
18540         tests: fix compiler warnings
18541         * tests/test-getopt.h (test_getopt): Fix condition.
18542         * tests/test-getopt_long.h (test_getopt_long): Likewise.
18543         * tests/test-pipe2.c (main): Likewise.
18544         * tests/test-quotearg-simple.c (main): Avoid icc warning.
18545
18546         utimens: fix broken m4 test
18547         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
18548
18549 2010-10-28  Bruno Haible  <bruno@clisp.org>
18550
18551         posix_spawn*, getdtablesize: Relax license.
18552         * modules/posix_spawn (License): Change to LGPLv2+.
18553         * modules/posix_spawnp (License): Likewise.
18554         * modules/posix_spawn-internal (License): Likewise.
18555         * modules/posix_spawnattr_init (License): Likewise.
18556         * modules/posix_spawnattr_getflags (License): Likewise.
18557         * modules/posix_spawnattr_setflags (License): Likewise.
18558         * modules/posix_spawnattr_getpgroup (License): Likewise.
18559         * modules/posix_spawnattr_setpgroup (License): Likewise.
18560         * modules/posix_spawnattr_getschedparam (License): Likewise.
18561         * modules/posix_spawnattr_setschedparam (License): Likewise.
18562         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
18563         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
18564         * modules/posix_spawnattr_getsigdefault (License): Likewise.
18565         * modules/posix_spawnattr_setsigdefault (License): Likewise.
18566         * modules/posix_spawnattr_getsigmask (License): Likewise.
18567         * modules/posix_spawnattr_setsigmask (License): Likewise.
18568         * modules/posix_spawnattr_destroy (License): Likewise.
18569         * modules/posix_spawn_file_actions_init (License): Likewise.
18570         * modules/posix_spawn_file_actions_addclose (License): Likewise.
18571         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
18572         * modules/posix_spawn_file_actions_addopen (License): Likewise.
18573         * modules/posix_spawn_file_actions_destroy (License): Likewise.
18574         * modules/getdtablesize (License): Likewise.
18575         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
18576
18577 2010-10-26  Bruno Haible  <bruno@clisp.org>
18578
18579         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
18580         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
18581         Cygwin and mingw.
18582         Suggested by Eric Blake.
18583
18584 2010-10-26  Bruno Haible  <bruno@clisp.org>
18585
18586         stdio: Work around compilation error due to renameat() on Solaris 10.
18587         * lib/stdio.in.h: Include <unistd.h> on Solaris.
18588         * lib/renameat.c: Don't include <unistd.h> here.
18589         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
18590         Reported by Paul Eggert and Eric Blake.
18591
18592 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
18593
18594         renameat: port to Solaris 10, which declares renameat in unistd.h
18595
18596         * lib/renameat.c: Include unistd.h before stdio.h, because
18597         Solaris 10 declares renameat in unistd.h.  Problem encountered
18598         when building GNU tar 1.24 on Solaris 10.
18599
18600 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18601
18602         fdopendir: fix C89 compilation
18603         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
18604         compilers.
18605
18606 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
18607
18608         inttostr: simplify by removing unnecessary redundancy
18609         * lib/anytostr.c: Don't include verify.h.
18610         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
18611         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
18612         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
18613         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
18614         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
18615         Likewise.
18616         * modules/inttostr (Depends-on): Remove 'verify'.
18617
18618 2010-10-23  Bruno Haible  <bruno@clisp.org>
18619
18620         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
18621         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
18622         Reported by Eric Blake.
18623
18624 2010-10-23  Bruno Haible  <bruno@clisp.org>
18625
18626         Tests: Fix LOCALE_JA on MirBSD 10.
18627         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
18628         to an UTF-8 locale.
18629         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
18630         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18631         Reported by Eric Blake.
18632
18633 2010-10-21  Bruno Haible  <bruno@clisp.org>
18634
18635         nl_langinfo test: Avoid test failure on NetBSD 5.
18636         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
18637         Reported by Eric Blake.
18638
18639 2010-10-21  Eric Blake  <eblake@redhat.com>
18640
18641         c-stack: work around libsigsegv 2.8 bug
18642         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
18643         overflow on at least PowerPC64.
18644
18645 2010-10-17  Bruno Haible  <bruno@clisp.org>
18646
18647         userspec: Drop redundant file.
18648         * modules/userspec (Files): Remove lib/inttostr.h.
18649
18650 2010-10-17  Bruno Haible  <bruno@clisp.org>
18651
18652         nl_langinfo tests: Silence some warnings.
18653         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
18654         Reported by Jim Meyering.
18655
18656 2010-10-17  Bruno Haible  <bruno@clisp.org>
18657
18658         Make use of GCC's attribute __alloc_size__.
18659         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
18660         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
18661         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
18662         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
18663         __alloc_size__.
18664         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18665         Suggested by Jim Meyering.
18666
18667 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
18668
18669         bootstrap: anchor .gitignore entries.
18670         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
18671         with...
18672         (insert_vc_ignore): ... this new function, which prepends `/' to
18673         all .gitignore entries before passing them to
18674         insert_sorted_if_absent.
18675
18676 2010-10-16  Bruno Haible  <bruno@clisp.org>
18677
18678         nextafter: Fix configure check.
18679         * modules/nextafter (configure.ac): Correct expected prototype.
18680
18681 2010-10-16  Bruno Haible  <bruno@clisp.org>
18682
18683         termios: Update documentation.
18684         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
18685
18686 2010-10-16  Bruno Haible  <bruno@clisp.org>
18687
18688         tests: Make them compile with TinyCC.
18689         * tests/test-strstr.c (main): Remove parentheses around array
18690         initializer.
18691
18692 2010-10-15  Eric Blake  <eblake@redhat.com>
18693
18694         ignore-value: make header idempotent
18695         * lib/ignore-value.h: Add double-inclusion guards.
18696         Reported by Stefan Berger.
18697
18698 2010-10-15  Jim Meyering  <meyering@redhat.com>
18699
18700         GNUmakefile: handle "stable" target, not "major"
18701         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
18702         lists in maint.mk and announce-gen.  Without this, "make stable"
18703         would fail to ensure that $(VERSION) is up to date.
18704
18705 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
18706
18707         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
18708         & co.
18709
18710 2010-10-14  Bruno Haible  <bruno@clisp.org>
18711
18712         vasnprintf: Don't set errno to 0.
18713         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
18714         block that sets it to 0.
18715         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
18716
18717 2010-10-14  Bruno Haible  <bruno@clisp.org>
18718
18719         socketlib: Fix.
18720         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
18721         gl_PREREQ_SYS_H_WINSOCK2.
18722         Reported by Ian Beckwith <ianb@erislabs.net>.
18723
18724 2010-10-13  Jim Meyering  <meyering@redhat.com>
18725
18726         test-select-stdin.c: avoid warn_unused_result warnings
18727         * tests/test-select-stdin.c: Include "macros.h".
18728         ASSERT that read and fflush succeed.
18729
18730 2010-10-13  Jim Meyering  <meyering@redhat.com>
18731
18732         git-version-gen: do require git-VC'd files in cwd
18733         * build-aux/git-version-gen: Reject a git version string
18734         if there are no commits associated with the current directory.
18735         This avoids an unlikely false-positive (unrelated dir whose parent
18736         repository also contains a tag matching v*), as pointed out
18737         by Giuseppe Scrivano in
18738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
18739
18740 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18741
18742         argv-iter: omit nonconforming declaration
18743         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
18744         enum arg_iter_err declaration, which doesn't conform to C99.
18745         Solaris 10 cc warns about this.
18746
18747 2010-10-13  Eric Blake  <eblake@redhat.com>
18748
18749         termios: fix compilation on mingw
18750         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
18751         (gl_TERMIOS_H): Adjust it on mingw.
18752         * modules/termios (Makefile.am): Substitute new key.
18753         * lib/termios.in.h (includes): Make include_next conditional.
18754         * doc/posix-headers/termios.texi (termios.h): Update
18755         documentation.
18756         Reported by Daniel P. Berrange.
18757
18758 2010-10-13  Jim Meyering  <meyering@redhat.com>
18759
18760         git-version-gen: don't require that .git/ be in the current dir
18761         * build-aux/git-version-gen: Adjust this script so that it works
18762         when run from any working directory beneath the top-level .git/-
18763         containing directory.  Inspired by a patch from Giuseppe Scrivano,
18764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
18765
18766         test-select: avoid warn_unused_result warnings
18767         * tests/test-select.c: Include "macros.h".
18768         ASSERT that each call to read, write, and pipe succeeds.
18769         While not technically required, also check each "close".
18770         * modules/select-tests (Files): Add tests/macros.h.
18771
18772         test-symlinkat: remove declaration of unused local
18773         * tests/test-symlinkat.c (main): Remove unused local, "buf".
18774
18775         test-inttostr: avoid shadowing warnings
18776         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
18777         and use malloc rather than the stack for the same reason as
18778         mentioned in the comment justifying the other allocation.
18779
18780 2010-10-11  Bruno Haible  <bruno@clisp.org>
18781
18782         stdlib: Allow multiple gnulib generated replacements to coexist.
18783         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
18784         Reported by Sam Steingold <sds@gnu.org>.
18785
18786 2010-10-11  Jim Meyering  <meyering@redhat.com>
18787
18788         fix a documentation typo
18789         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
18790
18791 2010-10-11  Eric Blake  <eblake@redhat.com>
18792
18793         futimens: work around Solaris 11 bug
18794         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
18795         * tests/test-futimens.h (test_futimens): Enhance, rather than
18796         weaken test.
18797         * doc/posix-functions/futimens.texi (futimens): Document the bug.
18798
18799 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
18800
18801         Indentation.
18802         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
18803         higher-level operators more to the left.
18804
18805 2010-10-11  Jim Meyering  <meyering@redhat.com>
18806
18807         test-futimens: avoid unwarranted test failure on Solaris 5.11
18808         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
18809         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
18810         because it tries to dereference the NULL name argument.
18811
18812 2010-10-11  Bruno Haible  <bruno@clisp.org>
18813
18814         Indentation.
18815         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
18816         indentation.
18817
18818 2010-10-11  Jim Meyering  <meyering@redhat.com>
18819
18820         spawn.in.h: make indentation consistent with parentheses
18821         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
18822         Make indentation consistent with parentheses.
18823
18824 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
18825
18826         Fix mismatched parens in previous commit
18827         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
18828         parens.
18829
18830 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
18833
18834         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
18835         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
18836         * lib/malloca.c: Include "verify.h".
18837         (verify1): Remove, replacing with a verify call.
18838         * lib/relocwrapper.c (verify1): Likewise.
18839         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
18840         Likewise.
18841         * modules/malloca (Depends-on): Add 'verify'.
18842         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
18843         * modules/vasnprintf (Depends-on): Add 'verify'.
18844         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18845         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18846         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18847         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18848         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18849         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18850         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18851
18852         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
18853
18854         Formerly the style was sometimes 2*X - 1, because the C standard
18855         was wrongly thought to disallow ?: in integral constant expressions.
18856         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
18857         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
18858         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
18859         * lib/stdint.in.h (_verify_intmax_size): Likewise.
18860         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
18861         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
18862         verify that time_t cannot be floating.
18863
18864 2010-10-08  Eric Blake  <eblake@redhat.com>
18865
18866         time: enforce recent POSIX ruling that time_t is integral
18867         * lib/time.in.h (__time_t_must_be_integral): Detect any
18868         problematic systems, allowing the rest of gnulib to assume POSIX.
18869
18870 2010-10-08  Jim Meyering  <meyering@redhat.com>
18871
18872         fdopendir: fix a bug on systems lacking openat and /proc support
18873         OpenBSD 4.7 is one such system.  The most noticeable effect was
18874         failure of any application making nontrivial use of fts: rm, du,
18875         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
18876           ./rm: traversal failed: `a': Bad file descriptor
18877         Debugging that, you see that even though FD 6 was closed just
18878         prior to the opendir call in fd_clone_opendir, its resulting
18879         dir->dd_fd was 8, rather than the expected value of 6:
18880
18881         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
18882         93                close (fd);
18883         (gdb) n
18884         94                dir = fd_clone_opendir (dupfd);
18885         (gdb) n
18886         95                saved_errno = errno;
18887         (gdb) p dir->dd_fd
18888         $11 = 8
18889
18890         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
18891         The problem is that on OpenBSD, fd_clone_opendir has to resort
18892         to using the old-style save/restore CWD mechanism, due to its
18893         lack of openat/proc support, and *that* would steal the FD (6)
18894         that opendir was supposed to use.
18895
18896         The fix is to squirrel away the desired FD so that save_cwd uses a
18897         different one, and then free the dest FD right before calling opendir.
18898         That guarantees opendir will use the required file descriptor.
18899
18900         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
18901
18902 2010-10-08  Bruno Haible  <bruno@clisp.org>
18903
18904         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
18905         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
18906
18907 2010-10-08  Bruno Haible  <bruno@clisp.org>
18908
18909         nanosleep: Make replacement POSIX compliant.
18910         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
18911         is out of range.
18912         Reported by Jim Meyering.
18913
18914 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18915
18916         bootstrap: add hook for altering gnulib.mk, for Bison
18917         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
18918         the Bison bootstrapping process can rewrite file names and variables
18919         in this file before later parts of 'bootstrap' use the file.
18920         Bison wants to include lib/gnulib.mk from the top-level makefile,
18921         so it needs the file names in this file to be relative to the top
18922         level, not relative to lib; plus it needs variable names to be
18923         rewritten.
18924         (slurp): Use the new function.
18925
18926         bootstrap: reformat for readability
18927         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
18928
18929 2010-10-08  Eric Blake  <eblake@redhat.com>
18930
18931         docs: update cygwin progress
18932         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
18933         1.7.7.
18934         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
18935         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
18936         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
18937         * doc/posix-functions/carg.texi (carg): Likewise.
18938         * doc/posix-functions/cargf.texi (cargf): Likewise.
18939         * doc/posix-functions/casin.texi (casin): Likewise.
18940         * doc/posix-functions/casinf.texi (casinf): Likewise.
18941         * doc/posix-functions/casinh.texi (casinh): Likewise.
18942         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
18943         * doc/posix-functions/catan.texi (catan): Likewise.
18944         * doc/posix-functions/catanf.texi (catanf): Likewise.
18945         * doc/posix-functions/catanh.texi (catanh): Likewise.
18946         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
18947         * doc/posix-functions/ccos.texi (ccos): Likewise.
18948         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
18949         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
18950         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
18951         * doc/posix-functions/cexp.texi (cexp): Likewise.
18952         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
18953         * doc/posix-functions/cimag.texi (cimag): Likewise.
18954         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
18955         * doc/posix-functions/clog.texi (clog): Likewise.
18956         * doc/posix-functions/clogf.texi (clogf): Likewise.
18957         * doc/posix-functions/conj.texi (conj): Likewise.
18958         * doc/posix-functions/conjf.texi (conjf): Likewise.
18959         * doc/posix-functions/cpow.texi (cpow): Likewise.
18960         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
18961         * doc/posix-functions/cproj.texi (cproj): Likewise.
18962         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
18963         * doc/posix-functions/creal.texi (creal): Likewise.
18964         * doc/posix-functions/crealf.texi (crealf): Likewise.
18965         * doc/posix-functions/csin.texi (csin): Likewise.
18966         * doc/posix-functions/csinf.texi (csinf): Likewise.
18967         * doc/posix-functions/csinh.texi (csinh): Likewise.
18968         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
18969         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
18970         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
18971         * doc/posix-functions/ctan.texi (ctan): Likewise.
18972         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
18973         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
18974         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
18975         * doc/posix-headers/complex.texi (complex.h): Likewise.
18976
18977 2010-10-07  Jim Meyering  <meyering@redhat.com>
18978
18979         parse-datetime: avoid compilation failure on OpenBSD 4.7
18980         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
18981         This works around a compilation failure on OpenBSD 4.7:
18982         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
18983
18984 2010-10-07  Eric Blake  <eblake@redhat.com>
18985
18986         docs: update cygwin progress
18987         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
18988         1.7.6.
18989         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
18990         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
18991         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
18992         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
18993         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
18994         Likewise.
18995         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
18996         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
18997         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
18998         Likewise.
18999         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19000         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19001         Likewise.
19002         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19003         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19004         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19005         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19006         Likewise.
19007         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19008         Likewise.
19009         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19010
19011         docs: update parse-datetime history
19012         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19013         documentation of this function's history and alternatives.
19014
19015         cygwin: use more robust version check
19016         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19017         exclude an eventual cygwin 1.9.1.
19018         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19019         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19020         (gl_FUNC_STRCASESTR): Likewise.
19021         Reported by Bruno Haible.
19022
19023 2010-10-06  Bruno Haible  <bruno@clisp.org>
19024
19025         string, sys_select: Avoid #including large headers unless necessary.
19026         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19027         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19028         OSF/1, BeOS, Haiku.
19029         Reported by Jim Meyering.
19030
19031 2010-10-05  Eric Blake  <eblake@redhat.com>
19032
19033         memmem, strstr, strcasestr: fix bug with long periodic needle
19034         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19035         periodic needle having false positive.
19036         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19037         and cygwin 1.7.7.
19038         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19040         (gl_FUNC_STRCASESTR): Likewise.
19041         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19042         * tests/test-memmem.c (main): Expose the bug.
19043         * tests/test-strcasestr.c (main): Likewise.
19044         * tests/test-strstr.c (main): Likewise.
19045         * tests/test-c-strcasestr.c (main): Likewise.
19046         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19047         * doc/posix-functions/strstr.texi (strstr): Likewise.
19048         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19049         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19050
19051 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19052
19053         parse-datetime: do some more renaming
19054         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19055         parse_datetime, not get_date.  Mention the renaming.
19056         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19057         in comments.
19058         * m4/bison.m4: Likewise.
19059
19060 2010-10-05  Eric Blake  <eblake@redhat.com>
19061
19062         parse-datetime: better name than get_date
19063         * NEWS: Reword the deprecation notice.
19064         * modules/get_date: Rename to modules/parse-datetime.
19065         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19066         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19067         * lib/get_date.y: Rename to lib/parse-datetime.y.
19068         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19069         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19070         * doc/getdate.texi: Provide fallback wrapper.
19071         * lib/getdate.h: Move guts, and wrap...
19072         * lib/parse-datetime.h: ...new file.
19073         * lib/parse-datetime.y (get_date): Rename...
19074         (parse_datetime): ...to this.
19075         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19076         (gl_PARSE_DATETIME): ...to this.
19077         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19078         documentation.
19079         * modules/getdate (Files): Provide fallback docs and header.
19080         (Notice, Depends-on): Update references.
19081         * tests/test-parse-datetime.c: Likewise.
19082         * DEPENDENCIES: Likewise.
19083         * MODULES.html.sh (Date and time <time.h>): Likewise.
19084         * doc/parse-datetime.texi (Date input formats)
19085         (Authors of parse_datetime): Likewise.
19086         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19087         (Include): Likewise.
19088         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19089         * gnulib-tool: Likewise.
19090         * m4/bison.m4 (gl_BISON): Likewise.
19091         Suggested by Bruno Haible.
19092
19093 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19094
19095         more ports to Solaris tr, which needs [] around ranges
19096         * gnulib-tool: Solaris tr needs [] around ranges.
19097         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19098         * tests/test-pipe-filter-gi1.c (main): Likewise.
19099         * tests/test-pipe-filter-ii1.c (main): Likewise.
19100
19101 2010-10-05  Eric Blake  <eblake@redhat.com>
19102
19103         bootstrap: fix Solaris regression
19104         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19105         around ranges.
19106         Reported by Pádraig Brady.
19107
19108         bootstrap: work with pkg-config
19109         * build-aux/bootstrap (check_versions): Also transliterate - in
19110         prerequisite name.
19111         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19112         prerequisites that were already found, to avoid confusion.
19113         Reported by Justin Clift.
19114
19115         faccessat: remove unused wrappers
19116         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19117         presence of these wrappers dragged in -lgen on Solaris.
19118         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19119
19120 2010-10-05  Jim Meyering  <meyering@redhat.com>
19121
19122         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19123         * Makefile (sc_pragma_columns): New syntax-check rule.
19124
19125 2010-10-04  Bruno Haible  <bruno@clisp.org>
19126
19127         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19128         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19129         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19130         Reported by Bruce Korb and Eric Blake.
19131
19132 2010-10-04  Bruno Haible  <bruno@clisp.org>
19133
19134         threadlib: Make option --with-libpth-prefix work.
19135         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19136         use $LIBPTH, not just -lpth.
19137
19138 2010-10-04  Bruno Haible  <bruno@clisp.org>
19139
19140         Avoid line length limitation from HP NonStop system header files.
19141         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19142         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19143         * lib/ctype.in.h: Likewise.
19144         * lib/dirent.in.h: Likewise.
19145         * lib/errno.in.h: Likewise.
19146         * lib/fcntl.in.h: Likewise.
19147         * lib/float.in.h: Likewise.
19148         * lib/getopt.in.h: Likewise.
19149         * lib/iconv.in.h: Likewise.
19150         * lib/inttypes.in.h: Likewise.
19151         * lib/langinfo.in.h: Likewise.
19152         * lib/locale.in.h: Likewise.
19153         * lib/math.in.h: Likewise.
19154         * lib/netdb.in.h: Likewise.
19155         * lib/netinet_in.in.h: Likewise.
19156         * lib/poll.in.h: Likewise.
19157         * lib/pthread.in.h: Likewise.
19158         * lib/pty.in.h: Likewise.
19159         * lib/sched.in.h: Likewise.
19160         * lib/se-selinux.in.h: Likewise.
19161         * lib/search.in.h: Likewise.
19162         * lib/signal.in.h: Likewise.
19163         * lib/spawn.in.h: Likewise.
19164         * lib/stdarg.in.h: Likewise.
19165         * lib/stddef.in.h: Likewise.
19166         * lib/stdint.in.h: Likewise.
19167         * lib/stdio.in.h: Likewise.
19168         * lib/stdlib.in.h: Likewise.
19169         * lib/string.in.h: Likewise.
19170         * lib/strings.in.h: Likewise.
19171         * lib/sys_file.in.h: Likewise.
19172         * lib/sys_ioctl.in.h: Likewise.
19173         * lib/sys_select.in.h: Likewise.
19174         * lib/sys_socket.in.h: Likewise.
19175         * lib/sys_stat.in.h: Likewise.
19176         * lib/sys_time.in.h: Likewise.
19177         * lib/sys_times.in.h: Likewise.
19178         * lib/sys_utsname.in.h: Likewise.
19179         * lib/sys_wait.in.h: Likewise.
19180         * lib/sysexits.in.h: Likewise.
19181         * lib/termios.in.h: Likewise.
19182         * lib/time.in.h: Likewise.
19183         * lib/unistd.in.h: Likewise.
19184         * lib/wchar.in.h: Likewise.
19185         * lib/wctype.in.h: Likewise.
19186         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19187         * modules/ctype (Makefile.am): Likewise.
19188         * modules/dirent (Makefile.am): Likewise.
19189         * modules/errno (Makefile.am): Likewise.
19190         * modules/fcntl-h (Makefile.am): Likewise.
19191         * modules/float (Makefile.am): Likewise.
19192         * modules/getopt-posix (Makefile.am): Likewise.
19193         * modules/iconv-h (Makefile.am): Likewise.
19194         * modules/inttypes (Makefile.am): Likewise.
19195         * modules/langinfo (Makefile.am): Likewise.
19196         * modules/locale (Makefile.am): Likewise.
19197         * modules/math (Makefile.am): Likewise.
19198         * modules/netdb (Makefile.am): Likewise.
19199         * modules/netinet_in (Makefile.am): Likewise.
19200         * modules/poll-h (Makefile.am): Likewise.
19201         * modules/pthread (Makefile.am): Likewise.
19202         * modules/pty (Makefile.am): Likewise.
19203         * modules/sched (Makefile.am): Likewise.
19204         * modules/search (Makefile.am): Likewise.
19205         * modules/selinux-h (Makefile.am): Likewise.
19206         * modules/signal (Makefile.am): Likewise.
19207         * modules/spawn (Makefile.am): Likewise.
19208         * modules/stdarg (Makefile.am): Likewise.
19209         * modules/stddef (Makefile.am): Likewise.
19210         * modules/stdint (Makefile.am): Likewise.
19211         * modules/stdio (Makefile.am): Likewise.
19212         * modules/stdlib (Makefile.am): Likewise.
19213         * modules/string (Makefile.am): Likewise.
19214         * modules/strings (Makefile.am): Likewise.
19215         * modules/sys_file (Makefile.am): Likewise.
19216         * modules/sys_ioctl (Makefile.am): Likewise.
19217         * modules/sys_select (Makefile.am): Likewise.
19218         * modules/sys_socket (Makefile.am): Likewise.
19219         * modules/sys_stat (Makefile.am): Likewise.
19220         * modules/sys_time (Makefile.am): Likewise.
19221         * modules/sys_times (Makefile.am): Likewise.
19222         * modules/sys_utsname (Makefile.am): Likewise.
19223         * modules/sys_wait (Makefile.am): Likewise.
19224         * modules/sysexits (Makefile.am): Likewise.
19225         * modules/termios (Makefile.am): Likewise.
19226         * modules/time (Makefile.am): Likewise.
19227         * modules/unistd (Makefile.am): Likewise.
19228         * modules/wchar (Makefile.am): Likewise.
19229         * modules/wctype (Makefile.am): Likewise.
19230
19231 2010-10-04  Bruno Haible  <bruno@clisp.org>
19232
19233         read-file tests: Avoid a test failure on NonStop Kernel.
19234         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19235         a regular file.
19236         Reported by Joachim Schmitz <schmitz@hp.com>.
19237
19238 2010-10-03  Bruno Haible  <bruno@clisp.org>
19239
19240         gnulib-tool: Fixes for --create-testdir with --libtool.
19241         * gnulib-tool (func_get_automake_snippet): Don't augment
19242         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19243         an executable.
19244         (func_create_testdir): Handle module 'alloca' like func_import.
19245         Reported by Bruce Korb <bruce.korb@gmail.com>.
19246
19247 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19248
19249         Avoid some lines longer than 80 characters.
19250         * lib/stdint.in.h: Break long comment lines.
19251         * lib/math.in.h: Likewise.
19252         (_GL_NUM_UINT_WORDS): New macro, for readability.
19253         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19254         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19255         * lib/stdlib.in.h: Likewise.
19256         * lib/spawn.in.h: Likewise.
19257         * lib/sys_socket.in.h: Update an URL.
19258         * lib/sys_stat.in.h: Break long line.
19259
19260 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19261
19262         Improve pmccabe2html.
19263         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19264         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19265         when the sources change. Remove the line in the HTML about "Used
19266         ranges" (which implied that there might be other unused ranges),
19267         rename "Resume" to "Summary" (easier to understand for more users).
19268         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19269         styles, and some unnecessary blank lines.
19270
19271 2010-10-03  Bruno Haible  <bruno@clisp.org>
19272             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19273
19274         acl: Add support for ACLs on NonStop Kernel.
19275         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19276         Check whether the function aclsort() exists.
19277         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19278         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19279         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19280         (acl_nontrivial [HAVE_ACLSORT]: New function.
19281         (file_has_acl): Implement for NonStop Kernel.
19282         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19283         (qset_acl): Implement for NonStop Kernel.
19284         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19285         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19286         (main): Implement for NonStop Kernel.
19287         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19288         Kernel. Handle this flavor.
19289         * tests/test-set-mode-acl.sh: Likewise.
19290         * tests/test-copy-acl.sh: Likewise.
19291         * tests/test-copy-file.sh: Likewise.
19292
19293 2010-10-03  Bruno Haible  <bruno@clisp.org>
19294
19295         Info about ACLs on NonStop Kernel.
19296         * doc/acl-resources.txt: Add info about NonStop Kernel.
19297         References by Joachim Schmitz <schmitz@hp.com>.
19298
19299 2010-10-02  Bruno Haible  <bruno@clisp.org>
19300
19301         Define missing EDQUOT on NonStop Kernel.
19302         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19303         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19304         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19305         missing.
19306         * doc/posix-headers/errno.texi: Mention the NSK bug.
19307         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19308         Reported by Joachim Schmitz <schmitz@hp.com>.
19309
19310 2010-10-02  Bruno Haible  <bruno@clisp.org>
19311
19312         Update doc for POSIX:2008.
19313         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19314         Update URL of POSIX specification.
19315
19316 2010-10-02  Bruno Haible  <bruno@clisp.org>
19317
19318         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19319         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19320         from gnulib, not from Automake.
19321
19322 2010-10-02  Bruno Haible  <bruno@clisp.org>
19323
19324         New module 'system-posix'.
19325         * modules/system-posix: New file.
19326         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19327         module is present.
19328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19329         GNULIB_SYSTEM_POSIX.
19330         * modules/stdlib (Depends-on): Remove sys_wait.
19331         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19332         * doc/posix-functions/system.texi: Mention the new module.
19333         * doc/posix-headers/stdlib.texi: Likewise.
19334         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19335         define test_sys_wait_macros to a no-op.
19336         Reported by Sam Steingold <sds@gnu.org>.
19337
19338 2010-09-30  Bruno Haible  <bruno@clisp.org>
19339
19340         More renaming from 'getdate' to 'get_date'.
19341         * doc/get_date.texi: Renamed from doc/getdate.texi.
19342         * modules/get_date (Files): Update.
19343         * MODULES.html.sh (Date and time <time.h>): Update.
19344         * DEPENDENCIES: Update.
19345         * gnulib-tool: Update comment.
19346         * m4/bison.m4 (gl_BISON): Likewise.
19347         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19348
19349 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19350
19351         bootstrap: support ACLOCAL_FLAGS during aclocal
19352         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19353         can add additional -I dir for third-party .m4 files.
19354
19355 2010-09-30  Eric Blake  <eblake@redhat.com>
19356
19357         bootstrap: use glibtoolize on MacOS
19358         * build-aux/bootstrap (check_versions): Convert libtool into
19359         libtoolize.
19360         (tool search): Move libtool check earlier, and look for
19361         glibtoolize for MacOS.
19362         (gnulib_tool_options): Auto-add --libtool when appropriate.
19363         Reported by Justin Clift.
19364
19365         poll: fix typo that broke test on MacOS
19366         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19367         Reported by Justin Clift.
19368
19369         getdate: rename to get_date
19370         Note: getdate.h is not renamed, to minimize client impact.
19371         * modules/getdate: Mark obsolete.  Move old contents...
19372         * modules/get_date: ...to new module name.
19373         * modules/getdate-tests: Move...
19374         * modules/get_date-tests: ...here.
19375         * m4/getdate.m4: Move...
19376         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19377         * lib/getdate.y: Move...
19378         * lib/get_date.y: ...here.
19379         * tests/test-getdate.c: Move...
19380         * tests/test-get_date.c: ...here.
19381         * doc/posix-functions/getdate.texi (getdate): Update name.
19382         * NEWS: Mention the change.
19383
19384 2010-09-29  Bruno Haible  <bruno@clisp.org>
19385
19386         Separate the module 'waitpid' from the module 'sys_wait'.
19387         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19388         present.
19389         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19390         gl_MODULE_INDICATOR_FOR_TESTS.
19391         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19392         * modules/sys_wait (Depends-on): Remove waitpid.
19393         (Makefile.am): Substitute GNULIB_WAITPID.
19394         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19395         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19396         signature only if the 'waitpid' module is present.
19397         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19398         * NEWS: Mention the change.
19399         * modules/grantpt (Depends-on): Add waitpid.
19400         * modules/wait-process (Depends-on): Likewise.
19401
19402 2010-09-29  Bruno Haible  <bruno@clisp.org>
19403
19404         More tests for module 'sys_wait'.
19405         * modules/sys_wait-c++-tests: New file.
19406         * tests/test-sys_wait-c++.cc: New file.
19407         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19408         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19409
19410 2010-09-29  Bruno Haible  <bruno@clisp.org>
19411
19412         New module 'waitpid'.
19413         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19414         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19415         Don't include <process.h>.
19416         (waitpid): Declare only, using modern idiom.
19417         * m4/waitpid.m4: New file.
19418         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19419         * modules/waitpid: New file.
19420         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19421         (Makefile.am): Update.
19422         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19423
19424 2010-09-28  Bruno Haible  <bruno@clisp.org>
19425
19426         poll: Assume ANSI C.
19427         * lib/poll.c (poll): Use an ANSI C declaration.
19428
19429 2010-09-28  Bruno Haible  <bruno@clisp.org>
19430
19431         poll-h: Create poll.h on all platforms.
19432         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19433         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19434         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19435         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19436         (gl_REPLACE_POLL_H): Don't set POLL_H.
19437         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19438         * modules/poll-h (Depends-on): Add include_next.
19439         (Makefile.am): Create poll.h unconditionally. Substitute also
19440         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19441
19442 2010-09-28  Bruno Haible  <bruno@clisp.org>
19443
19444         Tests for module 'poll-h'.
19445         * modules/poll-h-c++-tests: New file.
19446         * tests/test-poll-h-c++.cc: New file.
19447
19448         Tests for module 'poll-h'.
19449         * modules/poll-h-tests: New file.
19450         * tests/test-poll-h.c: New file.
19451
19452 2010-09-28  Bruno Haible  <bruno@clisp.org>
19453
19454         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
19455         * modules/poll-h (Depends-on): Add 'extensions'.
19456
19457 2010-09-28  Bruno Haible  <bruno@clisp.org>
19458
19459         New module 'poll-h'.
19460         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
19461         (poll): Use modern idiom.
19462         * modules/poll-h: New file.
19463         * modules/poll (Files): Remove lib/poll.in.h.
19464         (Depends-on): Add poll-h.
19465         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
19466         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
19467         * m4/poll_h.m4: New file.
19468         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
19469         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
19470         and invoke gl_REPLACE_POLL_H.
19471         * lib/poll.c: Use common idiom.
19472         * tests/test-poll.c: Likewise.
19473         * doc/posix-headers/poll.texi: Mention the poll-h module.
19474         Suggested by Eric Blake.
19475
19476 2010-09-26  Bruno Haible  <bruno@clisp.org>
19477
19478         sys_wait: Implement WSTOPSIG.
19479         * lib/sys_wait.in.h (WSTOPSIG): New macro.
19480         Reported by Simon Josefsson.
19481
19482 2010-09-26  Simon Josefsson  <simon@josefsson.org>
19483
19484         stdlib, sys_wait: Avoid compilation error on mingw.
19485         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
19486
19487 2010-09-26  Bruno Haible  <bruno@clisp.org>
19488
19489         stdlib tests: Avoid code duplication.
19490         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
19491         * modules/sys_wait-tests (Files): Likewise.
19492         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
19493         * tests/test-stdlib.c: Include test-sys_wait.h.
19494         (main): Invoke test_sys_wait_macros.
19495         * tests/test-sys_wait.c: Include test-sys_wait.h.
19496         (main): Invoke test_sys_wait_macros.
19497
19498 2010-09-25  Simon Josefsson  <simon@josefsson.org>
19499
19500         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
19501         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
19502         sure Windows sockets are working before calling getaddrinfo.
19503         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
19504         * doc/gnulib.texi (Windows sockets): Fix typo.
19505
19506 2010-09-25  Bruno Haible  <bruno@clisp.org>
19507
19508         Tests for module 'regex-quote'.
19509         * modules/regex-quote-tests: New file.
19510         * tests/test-regex-quote.c: New file.
19511
19512         New module 'regex-quote'.
19513         * lib/regex-quote.h: New file.
19514         * lib/regex-quote.c: New file.
19515         * modules/regex-quote: New file.
19516         Suggested by Reuben Thomas <rrt@sc3d.org>.
19517
19518 2010-09-24  Bruno Haible  <bruno@clisp.org>
19519
19520         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
19521         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
19522
19523 2010-09-23  Bruno Haible  <bruno@clisp.org>
19524
19525         setenv: Relax license.
19526         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
19527         Blake.
19528         Requested by Eric Blake.
19529
19530 2010-09-22  Bruno Haible  <bruno@clisp.org>
19531
19532         termios: Relax license.
19533         * modules/termios (License): Change to LGPLv2+.
19534         Requested by Eric Blake.
19535
19536 2010-09-22  Bruno Haible  <bruno@clisp.org>
19537
19538         threadlib: Allow the package to change the default to 'no'.
19539         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
19540         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
19541         Reported by Paul Eggert.
19542
19543 2010-09-22  Pádraig Brady  <P@draigbrady.com>
19544             Bruno Haible  <bruno@clisp.org>
19545
19546         Fix endless loop in mbmemcasecoll.
19547         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
19548         byte.
19549         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
19550
19551 2010-09-22  Bruno Haible  <bruno@clisp.org>
19552
19553         Tests for module 'memcoll'.
19554         * modules/memcoll-tests: New file.
19555         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
19556
19557         memcoll, xmemcoll: Clarify size vs. length.
19558         * modules/memcoll.c (memcoll0): Clarify specification.
19559         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
19560         passed to collate_error.
19561
19562 2010-09-22  Bruno Haible  <bruno@clisp.org>
19563
19564         Tests for module 'memcasecmp'.
19565         * modules/memcasecmp-tests: New file.
19566         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
19567
19568 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19569
19570         * lib/pthread.in.h: Add split double-inclusion guard, and include
19571         system <pthread.h> if there is one.  Use @@-style as in other
19572         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
19573         pthread.h doesn't.
19574         (pthread_mutexattr_destroy, pthread_mutexattr_init):
19575         (pthread_mutexattr_settype, pthread_mutex_trylock):
19576         New static inline functions, if there's no system <pthread.h>.
19577         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
19578         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
19579         Approximate with mutexes if the system lacks spinlocks, as in
19580         MacOS.
19581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
19582         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
19583         @@-style.  Check for spinlocks separately.
19584         (gl_PTHREAD_DEFAULTS): New macro.
19585         * modules/pthread: Redo to use a more typical style for in.h files.
19586
19587 2010-09-21  Eric Blake  <eblake@redhat.com>
19588
19589         net_if: enhance tests
19590         * tests/test-net_if.c (main): Move signature checks earlier.
19591         Print failures to stderr.
19592         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
19593         Document the bug that we do not yet fix.
19594
19595 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19596
19597         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
19598         about gnulib, not GSS.
19599
19600 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
19601
19602         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
19603         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
19604         for Emacs.
19605         * build-aux/pmccabe2html: Make Makefile.am example code more
19606         cut-and-paste friendly.
19607
19608 2010-09-21  Simon Josefsson  <simon@josefsson.org>
19609
19610         * tests/test-net_if.c: New file.
19611         * modules/net_if-tests: New file.
19612
19613 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19614
19615         pthread: add pthread_spin_destroy
19616         * lib/pthread.in.h (pthread_spin_destroy): New function.
19617
19618 2010-09-19  Bruno Haible  <bruno@clisp.org>
19619
19620         gnulib-tool: Fix --help output.
19621         * gnulib-tool (func_usage): Fix help message.
19622         Reported by Reuben Thomas <rrt@sc3d.org>.
19623
19624 2010-09-18  Jim Meyering  <meyering@redhat.com>
19625
19626         maint.mk: avoid unexpanded \n in two diagnostics
19627         * top/maint.mk (sc_prohibit_always_true_header_tests):
19628         Don't use a literal \n in a halt=... assignment.  It would not be
19629         expanded, and the two \n bytes would appear in the diagnostic output
19630         rather than the desired newline.  Use halt=$$(printf ... instead.
19631         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
19632
19633 2010-09-18  Bruno Haible  <bruno@clisp.org>
19634
19635         netinet_in: Doc tweak.
19636         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
19637         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19638
19639 2010-09-18  Jim Meyering  <meyering@redhat.com>
19640
19641         init.sh: correct an outdated comment
19642         * tests/init.sh (create_exe_shims_):  s/function/alias/
19643
19644         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
19645         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
19646         a file named "*.exe" is removed between the glob expansion and the
19647         processing of that oddly named file.
19648
19649 2010-09-17  Eric Blake  <eblake@redhat.com>
19650
19651         mirbsd: add some more support
19652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
19653         in BSD family.
19654         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
19655         devices as OpenBSD.
19656         * m4/host-os.m4 (mirbsd): Add MirBSD.
19657
19658         tests: fix unportable assumption on sys/wait.h
19659         * tests/test-sys_wait.c (main): Relax test.
19660         * tests/test-stdlib.c (main): Likewise.
19661
19662         init.sh: accomodate directory with no .exes
19663         * tests/init.sh: Accomodate directory containing only scripts.
19664
19665         tests: avoid compiler warning
19666         * tests/test-stdlib.c (main): Use the variable.
19667
19668         fdutimens, fdutimensat: update signature, again
19669         * lib/utimens.h (gl_futimens): Delete, and move signature...
19670         (fdutimens): ...here.
19671         (fdutimensat): Rearrange signature.
19672         (lutimensat): Rename variable for clarity.
19673         * lib/fdutimensat.c (fdutimensat): Update signature.
19674         * lib/utimens.c (fdutimens): Likewise.
19675         (gl_futimens): Delete.
19676         (utimens, lutimens): Update callers.
19677         * lib/futimens.c (futimens): Likewise.
19678         * tests/test-fdutimensat.c: Likewise.
19679         * tests/test-utimens.c: Likewise.
19680         * tests/test-futimens.h: Update comment.
19681         * NEWS: Mention this.
19682         Suggested by Paul Eggert.
19683
19684 2010-09-17  Bruno Haible  <bruno@clisp.org>
19685
19686         Take over the maintenance of some older macros from Autoconf.
19687         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
19688         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
19689         GNU Autoconf.
19690         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
19691         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
19692
19693 2010-09-17  Eric Blake  <eblake@redhat.com>
19694
19695         fdutimensat: drop atflag validation
19696         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
19697         with valid fd, to close a race scenario where futimens is
19698         unsupported and FILE was replaced by a symlink.
19699         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
19700         accordingly.
19701         Suggested by Paul Eggert.
19702
19703 2010-09-16  Bruno Haible  <bruno@clisp.org>
19704
19705         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
19706         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
19707
19708 2010-09-16  Bruno Haible  <bruno@clisp.org>
19709
19710         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
19711         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
19712         login_tty exists.
19713         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19714
19715 2010-09-16  Bruno Haible  <bruno@clisp.org>
19716
19717         login_tty: Make the replacement code work on BSD systems.
19718         * lib/login_tty.c: Include <sys/ioctl.h>.
19719         (login_tty): Use ioctl TIOCSCTTY when available.
19720         * modules/login_tty (Depends-on): Add sys_ioctl.
19721         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19722
19723 2010-09-16  Bruno Haible  <bruno@clisp.org>
19724
19725         login_tty: Stricter unit test.
19726         * modules/login_tty-tests (Depends-on): Add tcgetsid.
19727         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
19728         and tcgetsid() after login_tty.
19729         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19730
19731 2010-09-16  Bruno Haible  <bruno@clisp.org>
19732
19733         New module 'tcgetsid'.
19734         * lib/tcgetsid.c: New file.
19735         * m4/tcgetsid.m4: New file.
19736         * modules/tcgetsid: New file.
19737         * modules/termios (Depends-on): Add c++defs, warn-on-use.
19738         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
19739         GNULIB_TCGETSID, HAVE_TCGETSID.
19740         * lib/termios.in.h: Include <sys/types.h>.
19741         (tcgetsid): New declaration.
19742         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
19743         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
19744         * doc/posix-functions/tcgetsid.texi: Mention the new module.
19745         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
19746
19747 2010-09-16  Bruno Haible  <bruno@clisp.org>
19748
19749         Tests for module 'termios'.
19750         * modules/termios-c++-tests: New file.
19751         * modules/termios-tests: New file.
19752         * tests/test-termios-c++.cc: New file.
19753         * tests/test-termios.c: New file.
19754
19755         New module 'termios'.
19756         * modules/termios: New file.
19757         * lib/termios.in.h: New file.
19758         * m4/termios_h.m4: New file.
19759         * doc/posix-headers/termios.texi: Mention the new module.
19760
19761 2010-09-16  Eric Blake  <eblake@redhat.com>
19762
19763         fdutimensat: add an atflag parameter
19764         * lib/fdutimensat.c (fdutimensat): Add new parameter.
19765         * lib/utimens.h (fdutimensat): Update prototype.
19766         * tests/test-fdutimensat.c: Adjust test to match.
19767         * NEWS: Document the change.
19768         Suggested by Paul Eggert.
19769
19770 2010-09-16  Bruno Haible  <bruno@clisp.org>
19771
19772         Fix typos in comments.
19773         * lib/striconveh.h: Fix typo in comment.
19774         * lib/login_tty.c (login_tty): Likewise.
19775
19776 2010-09-15  Bruno Haible  <bruno@clisp.org>
19777
19778         stdlib: clarify MirBSD WEXITSTATUS bug
19779         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
19780         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19781
19782 2010-09-15  Eric Blake  <eblake@redhat.com>
19783
19784         stdlib: work around MirBSD WEXITSTATUS bug
19785         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
19786         * modules/stdlib (Depends-on): Add sys_wait.
19787         * tests/test-sys_wait.c (main): Enhance test.
19788         * tests/test-stdlib.c (main): Likewise.
19789         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
19790
19791         docs: mention MacOS issue with WEXITSTATUS(constant)
19792         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
19793         issue.
19794         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19795
19796         strnlen: add tests
19797         * modules/strnlen-tests: New file.
19798         * tests/test-strnlen.c: Likewise.
19799
19800 2010-09-14  Bruno Haible  <bruno@clisp.org>
19801
19802         unistr/base: Avoid link errors when module 'libunistring' is also used.
19803         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
19804         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
19805         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
19806         Declare also when HAVE_LIBUNISTRING is set.
19807         Reported by Pádraig Brady <P@draigbrady.com>.
19808
19809 2010-09-14  Eric Blake  <eblake@redhat.com>
19810
19811         test-rawmemchr: make more robust
19812         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
19813         (Depends-on, configure.ac): Add needed prerequisites to use it.
19814         * modules/memchr-tests (Files, Depends-on, configure.ac):
19815         Likewise, to avoid implicit reliance on memchr module prereqs.
19816         * tests/test-memchr.c (main): Ensure proper masking.
19817         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
19818         reads.
19819
19820         memchr: detect glibc Alpha bug
19821         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
19822         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
19823         Alpha.
19824         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
19825         * tests/test-memchr.c (main): Enhance test.
19826         Reported by Nelson H. F. Beebe.
19827
19828 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19829
19830         fts, getcwd, glob: audit for dirfd returning -1
19831         * lib/fts.c (opendir): Remove #define; no longer used.
19832         (opendirat): New arg PDIR_FD.  All callers changed.
19833         (fts_build, _opendir2): Use new opendirat to avoid the need for
19834         dirfd, or for checking whether dirfd returns a negative value.
19835         Don't use opendir; always use openat followed by fdopendir.
19836         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
19837         it.
19838         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
19839         returns -1 here.
19840         * modules/fts (Depends-on): Remove dirfd.
19841         * modules/getcwd (Depends-on): Likewise.
19842
19843 2010-09-13  Eric Blake  <eblake@redhat.com>
19844
19845         float: fix broken MirBSD header
19846         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
19847         * doc/posix-headers/float.texi (float.h): Document it.
19848
19849 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19850
19851         fts: use O_NOFOLLOW to avoid race condition when opening a directory
19852         * lib/fts.c (opendirat): New arg extra_flags.
19853         (__opendir2): Use it to avoid following symlinks when opening
19854         a directory, if symlinks are not supposed to be followed.  See
19855         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
19856
19857         fdopendir: preserve argument fd before returning
19858         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
19859         (fdopendir_with_dup, fd_clone_opendir): New static functions.
19860         (fdopendir): Use them, arranging for FD to be open to the same
19861         directory that it was when it started.  (It might be temporarily
19862         closed while fdopendir is running, so this not thread- or
19863         signal-safe.)  Be careful to do the right thing even when file
19864         descriptors are scarce and dup fails with errno == EMFILE.  See
19865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
19866
19867 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
19868
19869         regex: Pass the system regex if its only problem is 32-bit regoff_t.
19870         * NEWS: Document change.
19871         * m4/regex.m4: Disable test for regoff_t size.
19872
19873 2010-09-13  Jim Meyering  <meyering@redhat.com>
19874
19875         fts: don't operate on an invalid file descriptor after failed dup
19876         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
19877         negative file descriptor.
19878
19879 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
19880
19881         savedir: add streamsavedir, deprecate fdsavedir
19882         * NEWS: Mention deprecation of fdsavedir.
19883         * lib/savedir.c (streamsavedir): New extern function, whose name
19884         ends in "savedir" to be consistent with the others.  This differs
19885         from savedirstream in that it doesn't close its argument.  The
19886         next version of GNU tar will use this instead of fdsavedir, to
19887         avoid some race conditions and conserve file descriptors.
19888         (savedirstream): Reimplement as a wrapper around streamsavedir.
19889         (fdsavedir): Add a comment deprecating this function.  As far as
19890         I know, only GNU tar used it, and GNU tar doesn't need it any more.
19891         * lib/savedir.h (streamsavedir): New decl.
19892         (fdsavedir): Add a comment deprecating this.
19893
19894 2010-09-10  Bruno Haible  <bruno@clisp.org>
19895
19896         langinfo: Fix last commit.
19897         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
19898         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
19899         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19900
19901 2010-09-10  Bruno Haible  <bruno@clisp.org>
19902
19903         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
19904         * lib/progreloc.c (O_EXEC): Define fallback.
19905
19906 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19907
19908         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
19909         * NEWS: Document recent changes to fcntl-h.
19910         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
19911         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
19912         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
19913         Similarly for O_SEARCH; this last was already true, but not documented.
19914         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
19915         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
19916         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
19917         Likewise.
19918         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
19919         is zero, not whether it is defined.
19920         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
19921         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
19922         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
19923
19924 2010-09-10  Bruno Haible  <bruno@clisp.org>
19925
19926         langinfo, nl_langinfo: Fix for IRIX 5.3.
19927         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
19928         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
19929         HAVE_LANGINFO_YESEXPR.
19930         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
19931         HAVE_LANGINFO_YESEXPR.
19932         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
19933         HAVE_LANGINFO_T_FMT_AMPM is 0.
19934         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
19935         HAVE_LANGINFO_YESEXPR is 0.
19936         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
19937         NOEXPR.
19938         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
19939         * doc/posix-functions/nl_langinfo.texi: Likewise.
19940         Reported by Eric Blake.
19941
19942 2010-09-10  Bruno Haible  <bruno@clisp.org>
19943
19944         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
19945         * doc/glibc-functions/login_tty.texi: Mention the include file problem
19946         on FreeBSD 8.0 and OpenBSD 4.6.
19947         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
19948         * m4/pty_h.m4 (gl_PTY_H): Likewise.
19949         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
19950         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
19951         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
19952         ac_includes_default.
19953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
19954
19955 2010-09-09  Eric Blake  <eblake@redhat.com>
19956
19957         strsignal: work around NetBSD bug
19958         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
19959         * lib/string.in.h (includes): Likewise.
19960         * doc/posix-functions/strsignal.texi (strsignal): Document the
19961         bug.
19962         Reported by Nelson H. F. Beebe.
19963
19964         gnulib-tool: work with NetBSD /bin/sh
19965         * gnulib-tool (func_cache_var, func_cache_lookup_module)
19966         (func_get_description, func_get_comment, func_get_status)
19967         (func_get_notice, func_get_applicability, func_get_filelist)
19968         (func_get_dependencies, func_get_autoconf_early_snippet)
19969         (func_get_autoconf_snippet, func_get_automake_snippet)
19970         (func_get_include_directive, func_get_link_directive)
19971         (func_get_license, func_get_maintainer, func_import): Avoid
19972         shell syntax errors from parsing syntax extensions.
19973
19974 2010-09-09  Bruno Haible  <bruno@clisp.org>
19975
19976         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
19977         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
19978         a reliable way to determine whether the 'alias' command works.
19979
19980 2010-09-08  Jim Meyering  <meyering@redhat.com>
19981
19982         init.sh: penalize a set-x-impaired shell; don't disqualify it
19983         * tests/init.sh: Too many shells corrupt application stderr when
19984         you set -x, so we can't afford to disqualify them, since at least
19985         on Irix-6.5, that would disqualify all bourne shells.
19986         Instead, use a two-pass approach.
19987         On the first pass, try to find a shell that meets the stricter
19988         condition that set -x does not corrupt stderr.
19989         If no shell meets the stricter condition, retest each candidate
19990         shell, but without that extra condition.  Finally, when
19991         VERBOSE=yes is requested and set -x might cause trouble, simply
19992         issue a warning and refrain from enabling debug output.
19993
19994 2010-09-08  Eric Blake  <eblake@redhat.com>
19995
19996         unsetenv: fix OpenBSD bug
19997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
19998         * doc/posix-functions/unsetenv.texi (unsetenv): Update
19999         documentation.
20000         Reported by Jim Meyering.
20001
20002         strtod: work around IRIX 6.5 bug
20003         * lib/strtod.c (strtod): Reparse number on shorter string if
20004         exponent parse was invalid.
20005         * tests/test-strtod.c (main): Add check for "0x1p 2".
20006         Reported by Tom G. Christensen.
20007
20008         getopt: optimize previous patch
20009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20010         empty variable.  Speed up awk script.
20011         Reported by Paolo Bonzini.
20012
20013 2010-09-08  Jim Meyering  <meyering@redhat.com>
20014
20015         test.sh: disqualify shells for which set -x corrupts stderr
20016         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20017         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20018         appear in stderr output.  For example, this command:
20019             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20020         prints "P=1" on those two systems:
20021
20022 2010-09-08  Bruno Haible  <bruno@clisp.org>
20023
20024         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20025         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20026         commands, because some shells ignore redirections when there is an
20027         error in the command lookup.
20028         Reported by Eric Blake.
20029
20030 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20031
20032         * lib/regex.h: Fix a mention of `regex_compile' (should be
20033         `re_compile_pattern').
20034         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20035         (re_set_registers): Correct name of parameter in comment.
20036
20037         * doc/regex.texi: Add documentation for missing syntax flags.
20038         Remove commented-out documentation of defunct syntax option
20039         RE_NO_EMPTY_ALTS.
20040         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20041         Add documentation of re_set_registers.
20042         Document trick to re-use a pattern buffer by setting fastmap manually.
20043         Update documentation of struct re_pattern_buffer per public members.
20044         Uncomment documentation of equivalence class operators and
20045         collating symbol operators, since they are now implemented,
20046         Explain leftmost-longest matching in relation to alternatives.
20047         Tidy documentation of substring matching.
20048         Remove POSIX documentation, which is done better in
20049         glibc, and refer the reader there. Keep BSD API documentation, as
20050         that is not readily available elsewhere.
20051
20052 2010-09-07  Eric Blake  <eblake@redhat.com>
20053
20054         getopt: handle POSIXLY_CORRECT set but not exported
20055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20056         export state of POSIXLY_CORRECT, due to bash set -o posix.
20057         Reported by Dustin J. Mitchell.
20058
20059 2010-09-05  Bruno Haible  <bruno@clisp.org>
20060
20061         gnulib-tool: Highlight the changed options.
20062         * gnulib-tool (func_usage): Display the --import, --add-import,
20063         --remove-import explanations in bold font.
20064
20065 2010-09-06  Karl Berry  <karl@gnu.org>
20066
20067         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20068
20069 2010-09-05  Bruno Haible  <bruno@clisp.org>
20070
20071         uniwidth/width: Update comment.
20072         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20073         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20074
20075 2010-09-05  Bruno Haible  <bruno@clisp.org>
20076
20077         isinf, isnan: Relax license.
20078         * modules/isinf (License): Change from GPL to LGPL, with consent from
20079         Ben Pfaff.
20080         * modules/isnan (License): Likewise.
20081         Requested by Ludovic Courtès.
20082
20083 2010-09-04  Bruno Haible  <bruno@clisp.org>
20084
20085         gnulib-tool: Help migration from --import to --add-import or --update.
20086         * gnulib-tool: Emit a verbose error message when --import is used
20087         without any module name.
20088
20089 2010-09-04  Bruno Haible  <bruno@clisp.org>
20090
20091         Update doc about gnulib-tool.
20092         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20093         'gnulib-tool --update' in more detail.
20094         Reported by Eric Blake.
20095
20096 2010-09-04  Bruno Haible  <bruno@clisp.org>
20097
20098         gnulib-tool: Change --import. New options --add/remove-import.
20099         * gnulib-tool: New options --add-import, --remove-import.
20100         (func_usage): Document them.
20101         (have_associative): Define always.
20102         (func_import): In import mode, don't merge the specified settings with
20103         the cached settings. Implement remove-import mode.
20104         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20105         Explain when to use them versus --import.
20106         (Simple update): Use --add-import instead of --import.
20107         * NEWS: Mention the change.
20108
20109 2010-09-04  Bruno Haible  <bruno@clisp.org>
20110
20111         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20112         separate gnulib.mk.
20113
20114 2010-09-04  Bruno Haible  <bruno@clisp.org>
20115
20116         gnulib-tool: Don't talk about CVS any more.
20117         * gnulib-tool (func_usage, func_import): Write "version control"
20118         instead of CVS.
20119
20120 2010-09-04  Jim Meyering  <meyering@redhat.com>
20121
20122         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20123         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20124         false positives (whose names may be ill-chosen) when searching
20125         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20126         would cause a false-positive.
20127
20128         avoid coreutils "make distcheck" failure
20129         Coreutils tests with an absolute build directory name that contains
20130         a space.  Not quoting this directory name caused a failure.
20131         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20132         * tests/test-vc-list-files-cvs.sh: Likewise.
20133
20134 2010-09-04  Bruno Haible  <bruno@clisp.org>
20135
20136         gnulib-tool: Avoid error when run in a package without Makefile.am.
20137         * gnulib-tool: When collecting the m4dirs in a package that does not
20138         have a Makefile.am, eliminate those directories that contain no
20139         gnulib-cache.m4. Fix expression that counts these directories.
20140
20141 2010-09-04  Bruno Haible  <bruno@clisp.org>
20142
20143         update-copyright test: Improve output when perl is missing or too old.
20144         * tests/test-update-copyright.sh: Move test of Perl version down after
20145         the test whether Perl exists. Provide an explanation relating Perl's
20146         error message to Automake's SKIP: message.
20147
20148 2010-09-04  Bruno Haible  <bruno@clisp.org>
20149
20150         Don't augment PATH in TESTS_ENVIRONMENT.
20151         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20152         set abs_aux_dir instead of augmenting PATH.
20153         * modules/vc-list-files-tests (Makefile.am): Likewise.
20154         * tests/test-update-copyright.sh: Augment PATH here.
20155         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20156         path_prepend_.
20157         * tests/test-vc-list-files-git.sh: Likewise.
20158
20159 2010-09-04  Jim Meyering  <meyering@redhat.com>
20160
20161         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20162         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20163
20164 2010-09-04  Bruno Haible  <bruno@clisp.org>
20165
20166         strdup: Fix compilation error in C++ mode.
20167         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20168         the macro.
20169
20170 2010-09-04  Bruno Haible  <bruno@clisp.org>
20171
20172         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20173         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20174         macro into a function.
20175         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20176
20177 2010-09-04  Bruno Haible  <bruno@clisp.org>
20178
20179         Set PATH_SEPARATOR the same way autoconf does.
20180         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20181         the value of PATH_SEPARATOR the same way autoconf-generated configure
20182         scripts do.
20183         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20184         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20185
20186 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20187
20188         Set PATH_SEPARATOR the same way autoconf does.
20189         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20190         the same way autoconf-generated configure scripts do.
20191         * posix-modules: Likewise.
20192
20193 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20194
20195         hash: fix safe_hasher const typo
20196         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20197         const; otherwise, there is a type error later.
20198
20199 2010-09-02  Jim Meyering  <meyering@redhat.com>
20200
20201         test-update-copyright.sh: require perl 5.8.0
20202         * tests/test-update-copyright.sh: Require 5.8.0,
20203         which Tom G. Christensen has confirmed is adequate,
20204         while 5.6.1 is not.
20205
20206 2010-09-02  Eric Blake  <eblake@redhat.com>
20207
20208         tests: init.sh improvements for re-exec'ing with zsh
20209         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20210         -vx through shell re-exec.
20211         Reported by Tom G. Christensen.
20212
20213         wctype: fix typo in previous commit
20214         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20215         Reported by Ludovic Courtès.
20216
20217 2010-09-02  Jim Meyering  <meyering@redhat.com>
20218
20219         test-update-copyright.sh: skip test if Perl is too old
20220         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20221         Reported by Tom G. Christensen.
20222
20223 2010-09-02  Bruno Haible  <bruno@clisp.org>
20224
20225         wctype: Avoid compilation error on IRIX 6.5.30.
20226         * lib/wctype.in.h (iswblank): Declare with a replacement if
20227         REPLACE_ISWBLANK is set.
20228         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20229         declared. Set REPLACE_ISWBLANK.
20230         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20231         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20232         * doc/posix-headers/wctype.texi: Likewise.
20233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20234
20235 2010-09-01  Bruno Haible  <bruno@clisp.org>
20236
20237         New module 'socketlib'.
20238         * modules/socketlib: New file.
20239         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20240         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20241         * modules/sockets (Depends-on): Add socketlib.
20242         Suggested by Sam Steingold <sds@gnu.org>.
20243
20244 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20245
20246         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20247
20248         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20249         when one needs search access to a directory but not read access.
20250         On systems where it is available, it works in some cases where
20251         O_RDONLY does not, namely on directories that are searchable but
20252         not readable, and which need only to be searchable.  If O_SEARCH
20253         is not available, fall back to the traditional method of using
20254         O_RDONLY.
20255
20256         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20257         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20258         when opening a directory that needs only to be searchable.
20259         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20260         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20261         * lib/openat-proc.c (openat_proc_name): Likewise.
20262         * lib/openat.c (openat_needs_fchdir): Likewise.
20263         * lib/save-cwd.c (save_cwd): Likewise.
20264         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20265
20266 2010-08-28  Bruno Haible  <bruno@clisp.org>
20267
20268         New module 'host-cpu-c-abi'.
20269         * modules/host-cpu-c-abi: New file.
20270         * m4/host-cpu-c-abi.m4: New file, based on part of
20271         clisp/src/m4/general.m4.
20272         Requested by Sam Steingold <sds@gnu.org>.
20273
20274 2010-08-31  Eric Blake  <eblake@redhat.com>
20275         and Jim Meyering  <meyering@redhat.com>
20276
20277         hash: factor, and guard against misbehaving hasher function
20278         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20279         of table->hasher's return value.  Also protect against a hash value
20280         so large that adding it to table->bucket results in a NULL pointer.
20281         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20282         Use it in place of open-coded check-and-abort.
20283
20284 2010-08-30  Bruno Haible  <bruno@clisp.org>
20285
20286         hash: silence spurious clang warning
20287         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20288         Reported by Eric Blake.
20289
20290 2010-08-30  Eric Blake  <eblake@redhat.com>
20291
20292         strstr, memmem, strcasestr: avoid leaked shell message
20293         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20294         FreeBSD.
20295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20297
20298         tests: silence clang warning
20299         * tests/test-malloca.c (do_allocation): Avoid dead store.
20300
20301 2010-08-29  Bruno Haible  <bruno@clisp.org>
20302
20303         gettext: Fix recent mistake.
20304         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20305
20306 2010-08-29  Bruno Haible  <bruno@clisp.org>
20307
20308         selinux-h: Offer a --without-selinux option.
20309         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20310         --without-selinux was specified, skip all tests and define
20311         HAVE_SELINUX_SELINUX_H to 0.
20312         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20313         set LIB_SELINUX to empty.
20314         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20315         gl_LIBSELINUX. If --without-selinux was specified, replace
20316         selinux/context.h.
20317         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20318
20319 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20320             Bruno Haible  <bruno@clisp.org>
20321
20322         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20323         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20324         of HAVE_REALLOC.
20325         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20326         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20327         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20328         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20329
20330 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20331             Bruno Haible  <bruno@clisp.org>
20332
20333         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20334         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20335         HAVE_CALLOC.
20336         * lib/xmalloc.c: Update accordingly.
20337         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20338         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20339         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20340
20341 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20342             Bruno Haible  <bruno@clisp.org>
20343
20344         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20345         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20346         HAVE_MALLOC.
20347         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20348         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20349         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20350
20351 2010-08-29  Bruno Haible  <bruno@clisp.org>
20352
20353         Update modules list.
20354         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20355         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20356         (String handling <string.h>): Add astrxfrm.
20357         (File system functions): Add readlinkat.
20358
20359 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20360
20361         Tests for module 'realloc-gnu'.
20362         * modules/realloc-gnu-tests: New file.
20363         * tests/test-realloc-gnu.c: New file.
20364
20365         Tests for module 'calloc-gnu'.
20366         * modules/calloc-gnu-tests: New file.
20367         * tests/test-calloc-gnu.c: New file.
20368
20369         Tests for module 'malloc-gnu'.
20370         * modules/malloc-gnu-tests: New file.
20371         * tests/test-malloc-gnu.c: New file.
20372
20373 2010-08-28  Bruno Haible  <bruno@clisp.org>
20374
20375         Rename module 'realloc' -> 'realloc-gnu'.
20376         * modules/realloc-gnu: New file, copied from modules/realloc.
20377         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20378         obsolete.
20379         * modules/mgetgroups (Depends-on): Update.
20380         * doc/posix-functions/realloc.texi: Update.
20381         * NEWS: Mention the change.
20382
20383         Rename module 'calloc' -> 'calloc-gnu'.
20384         * modules/calloc-gnu: New file, copied from modules/calloc.
20385         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20386         obsolete.
20387         * doc/posix-functions/calloc.texi: Update.
20388         * NEWS: Mention the change.
20389
20390         Rename module 'malloc' -> 'malloc-gnu'.
20391         * modules/malloc-gnu: New file, copied from modules/malloc.
20392         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20393         obsolete.
20394         * modules/argp (Depends-on): Update.
20395         * modules/regex (Depends-on): Update.
20396         * doc/posix-functions/malloc.texi: Update.
20397         * NEWS: Mention the change.
20398
20399 2010-08-28  Eric Blake  <eblake@redhat.com>
20400
20401         pread, pwrite: add missing dependency
20402         * modules/pread (Depends-on): Add extensions.
20403         * modules/pwrite (Depends-on): Likewise.
20404
20405 2010-08-28  Bruno Haible  <bruno@clisp.org>
20406
20407         unistr/u*-strchr: Fix tests dependencies.
20408         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20409         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20410         Reported by Ian Beckwith <ianb@erislabs.net>.
20411
20412 2010-08-28  Bruno Haible  <bruno@clisp.org>
20413
20414         read-file: Don't occupy too much unused memory.
20415         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20416
20417 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20418             Eric Blake  <eblake@redhat.com>
20419             Bruno Haible  <bruno@clisp.org>
20420
20421         read-file: Avoid memory reallocations with regular files.
20422         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20423         (fread_file): With regular files, use the remaining length as the
20424         initial buffer size.  Check against overflow.
20425         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20426         sys_stat.
20427
20428 2010-08-28  Bruno Haible  <bruno@clisp.org>
20429
20430         ftello: Relax license.
20431         * modules/ftello (License): Relax to LGPLv2+.
20432         Reported by Eric Blake.
20433
20434 2010-08-28  Bruno Haible  <bruno@clisp.org>
20435
20436         Avoid relocwrapper link errors due to gnulib replacement functions.
20437         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20438         function.
20439         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20440
20441 2010-08-28  Bruno Haible  <bruno@clisp.org>
20442
20443         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20444         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20445         defined.
20446         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
20447         Suggested by Eric Blake.
20448
20449 2010-08-28  Bruno Haible  <bruno@clisp.org>
20450
20451         sys_socket, netdb: Ensure socklen_t gets defined.
20452         * modules/sys_socket (Depends-on): Add socklen.
20453         * modules/netdb (Depends-on): Likewise.
20454         * modules/getaddrinfo (Depends-on): Remove socklen.
20455         * modules/getsockopt (Depends-on): Likewise.
20456         * modules/setsockopt (Depends-on): Likewise.
20457         * tests/test-sys_socket.c: Check that socklen_t is defined.
20458         * tests/test-netdb.c: Likewise.
20459         * m4/socklen.m4: Update comments.
20460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20461
20462 2010-08-27  Eric Blake  <eblake@redhat.com>
20463
20464         login_tty: add missing dependency
20465         * modules/login_tty (Depends-on): Add pty.
20466
20467 2010-08-26  Eric Blake  <eblake@redhat.com>
20468
20469         lib-symbol-versions: fix m4 quoting
20470         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
20471         format for AC_LINK_IFELSE.
20472
20473         glob: fix compile test
20474         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
20475
20476         btowc: fix missing file
20477         * modules/btowc (Files): Also ship locale-fr.m4.
20478
20479         lseek: fix link test
20480         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
20481         AC_LINK_IFELSE.
20482
20483         include_next: silence autoconf 2.68 warning
20484         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
20485         AC_COMPILE_IFELSE as special.
20486         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
20487         autoconf < 2.68.
20488
20489         acl: fix compilation test
20490         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
20491         AC_COMPILE_IFELSE.
20492
20493 2010-08-26  Bruno Haible  <bruno@clisp.org>
20494
20495         Modernize AC_TRY_RUN invocations.
20496         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
20497         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20498         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
20499         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
20500         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
20501         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
20502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20503         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20504         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20505         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20506         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20507         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20508         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20510         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20511         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
20512         gl_MBRLEN_NUL_RETVAL): Likewise.
20513         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20514         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20515         Likewise.
20516         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20517         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20518         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20519         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20520         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
20521         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
20522         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
20523         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
20524         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
20525         Likewise.
20526         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
20527         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20528         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20529         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20530         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20531         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20532         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20533         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
20534         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20536
20537 2010-08-26  Bruno Haible  <bruno@clisp.org>
20538
20539         Modernize AC_TRY_LINK invocations.
20540         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
20541         AC_TRY_LINK.
20542         * m4/argp.m4 (gl_ARGP): Likewise.
20543         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
20544         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
20545         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20546         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20547         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20548         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
20549         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
20550         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
20551         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20552         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
20553         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20554         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
20555         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
20556         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20557         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
20558         * m4/hostent.m4 (gl_HOSTENT): Likewise.
20559         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20560         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
20561         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
20562         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
20563         Likewise.
20564         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
20565         Likewise.
20566         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
20567         Likewise.
20568         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
20569         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
20570         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
20571         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20572         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
20573         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20574         * m4/servent.m4 (gl_SERVENT): Likewise.
20575         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
20576         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
20577         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
20578         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
20579         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
20580         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
20581         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20582         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20583         * modules/tsearch-tests (configure.ac): Likewise.
20584
20585 2010-08-26  Bruno Haible  <bruno@clisp.org>
20586
20587         Modernize AC_TRY_COMPILE invocations.
20588         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
20589         AC_TRY_COMPILE.
20590         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
20591         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
20592         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
20593         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20594         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
20595         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20596         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
20597         * m4/lock.m4 (gl_LOCK): Likewise.
20598         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20599         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
20600         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
20601         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20602         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
20603         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
20604         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
20605         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
20606         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
20607         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
20608         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
20609         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20610         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
20611         extraneous semicolon.
20612
20613 2010-08-26  Jim Meyering  <meyering@redhat.com>
20614
20615         stat-time: relax license LGPL
20616         * modules/stat-time (License): Change from GPL to LGPL,
20617         with consent from all contributors, for use in libguile.
20618         Requested by Ludovic Courtès.
20619
20620 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
20621
20622         poll: return immediately on POLLHUP.
20623         * lib/poll.c (poll): Always set timeout before wait_timeout is
20624         computed.
20625
20626 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20627
20628         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
20629         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
20630         rmdir ("dir/.//"), unlinkat.
20631
20632 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20633
20634         stdbool: avoid spurious failure with modern xlc
20635         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20636
20637 2010-08-24  Bruno Haible  <bruno@clisp.org>
20638
20639         getloadavg: simplify code
20640         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
20641         gl_have_func. Update comments.
20642
20643 2010-08-24  Eric Blake  <eblake@redhat.com>
20644
20645         getloadavg: don't define SVR4 on cygwin
20646         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
20647         only define SVR4 when -lkvm is required.
20648         Reported by Yaakov Selkowitz.
20649
20650 2010-08-24  Bruno Haible  <bruno@clisp.org>
20651
20652         priv-set: fix comment
20653         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
20654
20655 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         priv-set: fix comments
20658         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
20659         to match code, as suggested by David Bartley in:
20660         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
20661
20662 2010-08-23  Eric Blake  <eblake@redhat.com>
20663
20664         stdbool: avoid rejecting clang
20665         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
20666         * tests/test-stdbool.c: Enable more tests if using the system
20667         <stdbool.h> instead of the gnulib replacement.
20668         (main): Move xlc bug test to a runtime test for all compilers.
20669         Reported by Anders Kaseorg.
20670
20671         argz: fix shell quoting issue
20672         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
20673         Reported by Charles Wilson.
20674
20675 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
20676             Erik Faye-Lund <kusmabite@gmail.com>
20677
20678         poll, select: handle ERROR_BROKEN_PIPE.
20679         * lib/poll.c (win32_compute_revents): Return POLLHUP when
20680         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20681         * lib/select.c (win32_compute_revents): Do not mark a pipe
20682         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
20683
20684 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
20685
20686         fts: allow compilation with C++
20687         * lib/fts_.h: Specify extern "C" linkage with C++.
20688
20689 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20690
20691         Fix gnulib-tool sed script de-commentation for AIX sed.
20692         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
20693         sed.
20694
20695 2010-08-17  Eric Blake  <eblake@redhat.com>
20696
20697         test-stddef: test for (some) offsetof bugs
20698         * tests/test-stddef.c: Enhance test to ensure correct type of
20699         offsetof.
20700         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
20701         that we are not fixing at this time.
20702
20703 2010-08-15  Bruno Haible  <bruno@clisp.org>
20704
20705         stpncpy: Allow stpncpy to be defined as a macro.
20706         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
20707         if it's already correctly declared.
20708         * lib/string.in.h (stpncpy): Undefine before redefining.
20709         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
20710
20711 2010-08-14  Bruno Haible  <bruno@clisp.org>
20712
20713         Rename module 'memxfrm' to 'amemxfrm'.
20714         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
20715         (amemxfrm): Renamed from memxfrm.
20716         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
20717         (amemxfrm): Renamed from memxfrm.
20718         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
20719         * NEWS: Mention the change.
20720         * MODULES.html.sh (String handling <string.h>): Update.
20721         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
20722         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
20723         * lib/unicase/u16-casexfrm.c: Likewise.
20724         * lib/unicase/u32-casexfrm.c: Likewise.
20725         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
20726         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
20727         * lib/uninorm/u16-normxfrm.c: Likewise.
20728         * lib/uninorm/u32-normxfrm.c: Likewise.
20729         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
20730         memxfrm.
20731         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
20732         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
20733         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
20734         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
20735         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
20736         Suggested by Paul Eggert.
20737
20738 2010-08-14  Bruno Haible  <bruno@clisp.org>
20739
20740         Tests for module 'astrxfrm'.
20741         * modules/astrxfrm-tests: New file.
20742         * tests/test-astrxfrm.c: New file.
20743
20744         New module 'astrxfrm'.
20745         * lib/astrxfrm.h: New file.
20746         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
20747         * modules/astrxfrm: New file.
20748
20749 2010-08-14  Reuben Thomas <rrt@sc3d.org>
20750
20751         regex: Tweak doc.
20752         * doc/regex.texi (Overview): Don't mention regex.c.
20753         (GNU Regular Expression Compiling): Likewise.
20754         (Match-end-of-line Operator): Mention 'not_eol'.
20755
20756 2010-08-14  Brian Gough  <bjg@gnu.org>
20757             Bruno Haible  <bruno@clisp.org>
20758
20759         git-merge-changelog: add doc relating to use with bzr and hg.
20760         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
20761
20762 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
20763
20764         pthread: fix pthread.h creation for srcdir != builddir
20765         * modules/pthread (Makefile.am): Fix the rule to work also in a
20766         non-srcdir build.
20767
20768 2010-08-13  Karl Berry  <karl@gnu.org>
20769
20770         * doc/regex.texi (Predefined Syntaxes): @smallexample.
20771         * doc/posix-*/*: force line break before @url of POSIX
20772         specifications.
20773         Suggested by Werner Lemberg.
20774
20775 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
20776
20777         strtod: fix const diagnostic
20778         * lib/strtod.c (strtod): Don't assign const char * to char *,
20779         as this elicits a warning from GCC when warnings are enabled.
20780
20781 2010-08-10  Pádraig Brady <P@draigbrady.com>
20782         and Eric Blake  <eblake@redhat.com>
20783
20784         copy-acl: ignore ENOTSUP on HP-UX
20785         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
20786         so that it is available for HP-UX.
20787         * lib/copy-acl.c (qcopy_acl): Use it.
20788         Reported by Patrick M. Callahan.
20789
20790 2010-08-10  Eric Blake  <eblake@redhat.com>
20791
20792         open, chown: relax license
20793         * modules/open (License): Change to LGPLv2+, with consent by all
20794         authors, for use in augeas.
20795         * modules/chown (License): Likewise.
20796         * modules/lchown (Likewise): Likewise.
20797         Requested by Adam Stokes.
20798
20799 2010-08-09  Karl Berry  <karl@gnu.org>
20800
20801         * build-aux/ar-lib: new file, import from Automake.
20802         * config/srclist.txt: autocheck for updates.
20803
20804 2010-08-09  Eric Blake  <eblake@redhat.com>
20805
20806         readlinkat: adjust client modules
20807         * modules/areadlinkat (Depends-on): Use readlinkat, not
20808         symlinkat.
20809         * modules/areadlinkat-with-size (Depends-on): Likewise.
20810
20811         mknod: be more vocal about danger of running tests as root
20812         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
20813         root, since that is just asking for problems.
20814         Suggested by Bruno Haible, based on a report by Rainer Tammer.
20815
20816         readlinkat: split into its own module
20817         * modules/symlinkat: Split readlinkat...
20818         * modules/readlinkat: ...into separate module.
20819         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
20820         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
20821         * lib/symlinkat.c (readlinkat): Move...
20822         * lib/readlinkat.c: ...into new file.
20823         * modules/symlinkat-tests: Split readlinkat test...
20824         * modules/readlinkat-tests: ...into separate module.
20825         * tests/test-symlinkat.c: Split...
20826         * tests/test-readlinkat.c: ...into new file.
20827         * NEWS: Document the split.
20828         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
20829         * lib/unistd.in.h (readlinkat): Likewise.
20830         Suggested by Bruno Haible.
20831
20832 2010-08-08  Bruno Haible  <bruno@clisp.org>
20833
20834         memxfrm: Speed up.
20835         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
20836         that usually only one call to strxfrm is necessary for each string
20837         part.
20838         Reported by Paul Eggert <eggert@cs.ucla.edu>.
20839
20840 2010-08-07  Karl Berry  <karl@gnu.org>
20841
20842         * doc/posix-headers/limits.texi,
20843         * doc/posix-functions/malloc.texi,
20844         * doc/posix-functions/strsignal.texi: missing @item.
20845         * doc/ld-version-script.texi: spurious leading i.
20846         * doc/regex.texi (Interval Operators): no commas inside @var.
20847
20848 2010-08-01  Bruno Haible  <bruno@clisp.org>
20849
20850         Integrate the regex documentation.
20851         * doc/gnulib.texi: Define 'cn' index.
20852         (Regular expressions): New a chapter that includes regex.texi and
20853         regexprops-generic.texi.
20854         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
20855         syntax.
20856
20857         Whitespace cleanup.
20858         * doc/regex.texi: Remove trailing spaces.
20859
20860         Add regex documentation.
20861         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
20862         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
20863         Written by Kathy A. Hargreaves and Karl Berry.
20864
20865 2010-08-01  Bruno Haible  <bruno@clisp.org>
20866
20867         link: Update documentation.
20868         * doc/posix-functions/link.texi: Update regarding Solaris.
20869
20870 2010-07-31  Bruno Haible  <bruno@clisp.org>
20871
20872         Update modules list.
20873         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
20874         (String handling <string.h>): Add memcmp2, memxfrm.
20875         (Container data structures): Add xlist, xsublist, xoset.
20876         (Core language properties): Add alignof, unused-parameter.
20877         (Process control, Numeric conversion functions <stdlib.h>): Renamed
20878         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
20879         (Unibyte characters <ctype.h>): New section.
20880         (String handling <string.h>): New section.
20881         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
20882         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
20883         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
20884         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
20885         tan, tanh, tanl, y0, y1, yn.
20886         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
20887         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
20888         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
20889         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
20890         unlockpt, vdprintf, vdprintf-posix.
20891         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
20892         (File system functions): Add concat-filename, sys_file, sys_ioctl,
20893         xconcat-filename.
20894         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
20895         getdtablesize, pipe2, pipe2-safer.
20896         (Security): New section.
20897         (Networking functions): Add accept4.
20898         (Signal handling): Add sigpipe.
20899         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
20900         mbmemcasecoll.
20901         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
20902         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
20903         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
20904         pipe-filter-ii.
20905         (Misc): Add argp-version-etc, login_tty, parse-duration.
20906
20907 2010-07-31  Bruno Haible  <bruno@clisp.org>
20908
20909         Improve doc in MODULES.html.
20910         * modules/linkat (Description): Add the word "function".
20911         * modules/mkfifo (Description): Likewise.
20912         * modules/mknod (Description): Likewise.
20913         * modules/remove (Description): Likewise.
20914         * modules/renameat (Description): Likewise.
20915         * modules/stat (Description): Likewise.
20916         * modules/symlink (Description): Likewise.
20917         * modules/unlink (Description): Likewise.
20918
20919 2010-07-31  Bruno Haible  <bruno@clisp.org>
20920
20921         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
20922         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
20923         option --enable/disable-c++ instead of --enable/disable-cxx.
20924         * NEWS: Mention the change.
20925
20926 2010-07-31  Bruno Haible  <bruno@clisp.org>
20927
20928         readlink, areadlink: Relax test a bit.
20929         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
20930         alternative to ENOTDIR.
20931         * tests/test-areadlink.h (test_areadlink): Likewise.
20932         Reported by Rainer Tammer.
20933
20934 2010-07-31  Bruno Haible  <bruno@clisp.org>
20935
20936         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
20937         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
20938         character, perform the search using U_STRCHR.
20939         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
20940         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
20941         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
20942         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
20943         Suggested by Paolo Bonzini.
20944
20945 2010-07-31  Bruno Haible  <bruno@clisp.org>
20946
20947         unistr/u*-strstr: Fix dependencies.
20948         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
20949         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
20950         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
20951
20952 2010-07-31  Bruno Haible  <bruno@clisp.org>
20953
20954         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
20955         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
20956         the beginning of the loop.
20957         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
20958         cases in 'switch' statement.
20959
20960         unistr/u8-strchr: Fix several bugs.
20961         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
20962         the string. When not found, return NULL, not a pointer near the end.
20963
20964         More tests for unistr/u8-strchr.
20965         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
20966         that the function does not read past the first occurrence of the byte
20967         being searched.
20968         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
20969         * tests/unistr/test-u16-strchr.c (main): New function.
20970         * tests/unistr/test-u32-strchr.c (main): New function.
20971
20972 2010-07-31  Bruno Haible  <bruno@clisp.org>
20973
20974         posix-modules: Ignore backup files of documentation files.
20975         * posix-modules: grep only through files named *.texi.
20976
20977 2010-07-31  Bruno Haible  <bruno@clisp.org>
20978
20979         symlinkat: Fix documentation.
20980         * doc/posix-functions/readlinkat.texi: Fix module name.
20981
20982 2010-07-31  Bruno Haible  <bruno@clisp.org>
20983
20984         fchownat: Replace also when chown has the trailing slash bug.
20985         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
20986         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
20987         introduced on 2010-04-10.
20988         Reported by Rainer Tammer.
20989
20990 2010-07-31  Bruno Haible  <bruno@clisp.org>
20991
20992         linkat: Work around AIX 7.1 bug.
20993         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
20994         whether linkat handles trailing slash correctly. If not, replace linkat
20995         and define LINKAT_TRAILING_SLASH_BUG.
20996         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
20997         check whether (fd1,file1) points to a directory if file1 or file2 ends
20998         in a slash. Code taken from lib/link.c.
20999         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21000         Reported by Rainer Tammer.
21001
21002 2010-07-31  Bruno Haible  <bruno@clisp.org>
21003
21004         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21005         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21006         This disables an xlc optimization that was causing wrong test results.
21007         Reported by Rainer Tammer.
21008
21009 2010-07-31  Bruno Haible  <bruno@clisp.org>
21010
21011         iconv: Work around AIX 6.1..7.1 bug.
21012         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21013         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21014         cross-compiling, guess no on all versions of AIX.
21015         Reported by Rainer Tammer.
21016
21017 2010-07-31  Bruno Haible  <bruno@clisp.org>
21018
21019         readlink: Relax test a bit.
21020         * tests/test-readlink.h (test_readlink): Allow different errno value
21021         when readlink is called with a file name that ends in / and refers to
21022         a file.
21023         Suggested by Eric Blake.
21024         Reported by Rainer Tammer.
21025
21026 2010-07-31  Bruno Haible  <bruno@clisp.org>
21027
21028         copysign: Does not require -lm on glibc systems.
21029         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21030         gl_COMMON_DOUBLE_MATHFUNC.
21031         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21032
21033 2010-07-31  Bruno Haible  <bruno@clisp.org>
21034
21035         duplocale: Work around AIX 7.1 bug.
21036         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21037         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21038         * lib/duplocale.c (rpl_duplocale): Update comment.
21039         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21040         Reported by Rainer Tammer.
21041
21042 2010-07-30  Bruno Haible  <bruno@clisp.org>
21043
21044         dirfd: Avoid link error on AIX 7.1.
21045         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21046         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21047         exist, set REPLACE_DIRFD.
21048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21049         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21050         * doc/posix-functions/dirfd.texi: Update.
21051         Reported by Rainer Tammer.
21052
21053 2010-07-30  Eric Blake  <eblake@redhat.com>
21054
21055         strtod: next round of AIX fixes
21056         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21057         exponent.
21058         * tests/test-strtod.c (main): Enhance tests.
21059         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21060         Reported by Rainer Tammer.
21061
21062         futimens: fix configure check
21063         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21064         Reported by Bruno Haible.
21065
21066 2010-07-30  Bruno Haible  <bruno@clisp.org>
21067
21068         getline: Update regarding AIX.
21069         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21070         Reported by Rainer Tammer.
21071
21072 2010-07-30  Bruno Haible  <bruno@clisp.org>
21073
21074         wcwidth: Drop replacement on AIX 7.
21075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21076         AIX 7.
21077         Reported by Rainer Tammer.
21078
21079 2010-07-30  Bruno Haible  <bruno@clisp.org>
21080
21081         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21083         a 'char *'.
21084         Reported by Rainer Tammer.
21085
21086 2010-07-30  Bruno Haible  <bruno@clisp.org>
21087
21088         unlink: Update regarding AIX.
21089         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21090         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21091         Reported by Rainer Tammer.
21092
21093 2010-07-30  Bruno Haible  <bruno@clisp.org>
21094
21095         symlink: Update regarding AIX.
21096         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21097         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21098         Reported by Rainer Tammer.
21099
21100 2010-07-30  Bruno Haible  <bruno@clisp.org>
21101
21102         strndup: Update regarding AIX.
21103         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21104         AIX 7.
21105         Reported by Rainer Tammer.
21106
21107 2010-07-30  Bruno Haible  <bruno@clisp.org>
21108
21109         stat: Update regarding AIX.
21110         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21111         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21112         Reported by Rainer Tammer.
21113
21114 2010-07-30  Bruno Haible  <bruno@clisp.org>
21115
21116         truncl: Fix autoconf test.
21117         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21118         whether truncl works.
21119         Reported by Rainer Tammer.
21120
21121 2010-07-30  Bruno Haible  <bruno@clisp.org>
21122
21123         round: Update regarding AIX.
21124         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21125         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21126         Reported by Rainer Tammer.
21127
21128 2010-07-30  Bruno Haible  <bruno@clisp.org>
21129
21130         rename: Update regarding AIX.
21131         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21132         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21133         Reported by Rainer Tammer.
21134
21135 2010-07-30  Bruno Haible  <bruno@clisp.org>
21136
21137         printf.m4: Update regarding AIX.
21138         * m4/printf.m4: Update comments regarding AIX.
21139         Reported by Rainer Tammer.
21140
21141 2010-07-30  Bruno Haible  <bruno@clisp.org>
21142
21143         iconv: Update regarding AIX.
21144         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21145         AIX 7.
21146         Reported by Rainer Tammer.
21147
21148 2010-07-30  Bruno Haible  <bruno@clisp.org>
21149
21150         getopt: Update regarding AIX.
21151         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21152         no on AIX.
21153         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21154         Reported by Rainer Tammer.
21155
21156 2010-07-30  Bruno Haible  <bruno@clisp.org>
21157
21158         ldexpl; Update regarding AIX.
21159         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21160         on AIX 7.
21161         Reported by Rainer Tammer.
21162
21163 2010-07-30  Bruno Haible  <bruno@clisp.org>
21164
21165         frexpl: Update regarding AIX.
21166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21167         on AIX 7.
21168         Reported by Rainer Tammer.
21169
21170 2010-07-30  Bruno Haible  <bruno@clisp.org>
21171
21172         open, fopen: Update regarding AIX.
21173         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21174         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21175         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21176         * doc/posix-functions/fopen.texi: Likewise.
21177         Reported by Rainer Tammer.
21178
21179 2010-07-30  Bruno Haible  <bruno@clisp.org>
21180
21181         chown: Update doc regarding AIX.
21182         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21183         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21184         Reported by Rainer Tammer.
21185
21186 2010-07-30  Eric Blake  <eblake@redhat.com>
21187
21188         strtod: fix bug in replacement function on AIX
21189         * lib/strtod.c (strtod): Special case broken "0x" parse in
21190         underlying strtod.
21191         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21192         * doc/posix-functions/strtod.texi (strtod): Likewise.
21193         Reported by Rainer Tammer.
21194
21195 2010-07-30  Bruno Haible  <bruno@clisp.org>
21196
21197         mbrlen: Fix cross-compilation guess for AIX.
21198         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21199         guess. Leftover from 2008-12-22.
21200
21201 2010-07-30  Bruno Haible  <bruno@clisp.org>
21202
21203         mbrtowc: Fix cross-compilation guess for AIX.
21204         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21205         guess. Leftover from 2008-12-21.
21206
21207 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21208
21209         init.sh: work around trap limitation of some shells
21210         * tests/init.sh (setup_): Move exit trap outside of shell function.
21211
21212 2010-07-29  Eric Blake  <eblake@redhat.com>
21213
21214         strtod: aid debugging
21215         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21216         understanding why strtod is rejected.
21217
21218 2010-07-28  Bruno Haible  <bruno@clisp.org>
21219
21220         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21221         * lib/unistr/u8-chr.c: Include <string.h>.
21222         * tests/unistr/test-u8-chr.c: Likewise.
21223         * tests/unistr/test-u16-chr.c: Likewise.
21224         * tests/unistr/test-u32-chr.c: Likewise.
21225         * tests/unistr/test-u8-strchr.c: Likewise.
21226         * tests/unistr/test-u16-strchr.c: Likewise.
21227         * tests/unistr/test-u32-strchr.c: Likewise.
21228         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21229         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21230         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21231         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21232
21233 2010-07-28  Bruno Haible  <bruno@clisp.org>
21234
21235         Use spaces for indentation, not tabs.
21236         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21237
21238 2010-07-27  Bruno Haible  <bruno@clisp.org>
21239
21240         mbspcasecmp: Fix function specification.
21241         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21242         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21243         Reported by Eric Blake <eblake@redhat.com>.
21244
21245 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21246
21247         timespec: use cast and not conditional, as truncation isn't possible
21248         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21249         instead of a conditional.  Comment about the situation in more detail.
21250         This undoes most of the 2009-10-29 patch.
21251
21252 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21253
21254         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21255         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21256         * lib/unistr/u8-strchr.c: Likewise.
21257         * modules/unistr/u8-chr: Depend on memchr.
21258
21259         unistr/u*-strchr: add tests
21260         * modules/unistr/u8-strchr-tests: New file.
21261         * modules/unistr/u16-strchr-tests: New file.
21262         * modules/unistr/u32-strchr-tests: New file.
21263         * tests/unistr/test-strchr.h: New file.
21264         * tests/unistr/test-u8-strchr.c: New file.
21265         * tests/unistr/test-u16-strchr.c: New file.
21266         * tests/unistr/test-u32-strchr.c: New file.
21267
21268         unistr/u*-chr: test multibyte sequences more
21269         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21270         test vector.
21271         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21272         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21273         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21274
21275         unistr/u*-chr: test multibyte sequences
21276         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21277
21278         unistr/u*-chr: prepare for multibyte tests
21279         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21280         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21281         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21282         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21283         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21284         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21285
21286 2010-07-18  Bruno Haible  <bruno@clisp.org>
21287
21288         unistr/u8-strchr: Optimize non-ASCII argument case.
21289         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21290         because the first byte often matches anyway.
21291         Reported by Pádraig Brady <P@draigbrady.com>.
21292
21293 2010-07-15  Karl Berry  <karl@gnu.org>
21294
21295         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21296
21297 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21298
21299         getcwd: on Solaris, work better if ancestors are inaccessible
21300         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21301         buffer and size, try again with a large buffer.  This works better
21302         on Solaris, since its getcwd succeeds even if the path to the root
21303         is inaccessible, and this is helpful in common cases such as .zfs
21304         hidden directories.  Problem reported by J Chapman Flack in
21305         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21306         Use system getcwd if it's declared, not merely if it's partly
21307         working; use the partly-working test only to avoid needless effort
21308         if the system getcwd fails.
21309         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21310         comment that was already obsolete and is now even more obsolete.
21311         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21312         now might call strdup.
21313
21314 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21315
21316         pthread: Add enough so that coreutils/src/sort.c compiles.
21317         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21318         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21319         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21320         Include <sys/types.h>, in case it defines pthread_t.
21321         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21322         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21323         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21324         (pthread_rwlockattr_t, pthread_spinlock_t):
21325         New typedefs, if HAVE_PTHREAD_T is not defined.
21326         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21327         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21328         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21329         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21330         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21331         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21332         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21333         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21334         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21335         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21336         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21337         New macros.
21338         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21339         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21340         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21341         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21342         (pthread_spin_unlock): New dummy functions.
21343         (pthread_create): Return EAGAIN; don't set errno.
21344         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21345         require AC_C_INLINE.
21346         * modules/pthread (Depends-on): Add sched, time.
21347         (pthread.h): Use AM_V_GEN.
21348
21349 2010-07-13  Bruno Haible  <bruno@clisp.org>
21350
21351         striconveh: Don't malloc memory if the result buffer is sufficient.
21352         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21353         buffer if its size is sufficient.
21354         Reported by Ludovic Courtès <ludo@gnu.org>.
21355
21356 2010-07-13  Bruno Haible  <bruno@clisp.org>
21357
21358         strtod: Add safety check.
21359         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21360
21361 2010-07-12  Bruno Haible  <bruno@clisp.org>
21362
21363         Unify tests that set gl_cv_func_ldexpl_no_libm.
21364         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21365         gl_FUNC_LDEXPL.
21366         (gl_FUNC_LDEXPL): Invoke it.
21367         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21368
21369 2010-07-12  Bruno Haible  <bruno@clisp.org>
21370
21371         Unify tests that set gl_cv_func_ldexp_no_libm.
21372         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21373         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21374         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21375         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21376         * modules/strtod (Files): Add m4/ldexp.m4.
21377
21378 2010-07-12  Bruno Haible  <bruno@clisp.org>
21379
21380         Unify tests that set gl_cv_func_frexpl_no_libm.
21381         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21382         gl_FUNC_FREXPL_NO_LIBM.
21383         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21385
21386 2010-07-12  Bruno Haible  <bruno@clisp.org>
21387
21388         Unify tests that set gl_cv_func_frexp_no_libm.
21389         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21390         gl_FUNC_FREXP_NO_LIBM.
21391         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21392         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21393
21394 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21395
21396         memcoll: clarify sizes versus lengths, document better, and tweak perf
21397         * lib/memcoll.c (strcoll_loop, memcoll0):
21398         Improve quality of descriptive comments.  Name variables
21399         consistently as to whether they are lengths (which do not include
21400         terminating null) versus sizes (which do).
21401         * lib/xmemcoll.c (xmemcoll0): Likewise.
21402         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21403         returned when s1size == 0; this is easier to compile and saves
21404         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21405
21406 2010-07-12  Bruno Haible  <bruno@clisp.org>
21407
21408         Tests for module '_Exit'.
21409         * modules/_Exit-tests: New file.
21410         * tests/test-_Exit.sh: New file.
21411         * tests/test-_Exit.c: New file.
21412
21413         New module '_Exit'.
21414         * lib/stdlib.in.h (__attribute__): New macro.
21415         (_Exit): New declaration.
21416         * lib/_Exit.c: New file.
21417         * m4/_Exit.m4: New file.
21418         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21419         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21420         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21421         * modules/_Exit: New file.
21422         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21423         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21424
21425 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21426
21427         strtod: make it more-accurate typically, and don't require libm
21428         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21429         Include limits.h.  Don't include string.h.
21430         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21431         (locale_isspace): New function, so that no casts are needed to
21432         check whether *s is a space.
21433         (ldexp): Provide an unused dummy if not available.
21434         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21435         (strtod): Use them.  This implementation prefers to use the
21436         underlying strtod if available, falling back on our own code
21437         only to fix known bugs.  This is more likely to produce an
21438         accurate result.  Also, it avoids the use of libm functions.
21439         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21440         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21441         was absent, but it caused a test failure with coreutils.
21442         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21443         with libm.
21444         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21445         * modules/strtod-tests (Makefile.am): Likewise.
21446
21447 2010-07-11  Pádraig Brady  <P@draigBrady.com>
21448             Bruno Haible  <bruno@clisp.org>
21449
21450         unistr/u8-strchr: Optimize ASCII argument case.
21451         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
21452
21453 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
21454
21455         (x)memcoll: minor tweaks
21456         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
21457         is after the type that it qualifies.
21458         (memcoll0): Likewise.
21459         * lib/memcoll.h (memcoll0): Likewise.
21460         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
21461         * lib/xmemcoll.h (xmemcoll0): Likewise.
21462         * lib/memcoll.c (memcoll0): Correct the comment.  This function
21463         differs from memcoll in that the NUL byte is part of the argument.
21464         Omit the abort-checks, as performance is a real issue here.  Plus,
21465         the checks were wrong anyway (an off-by-one error).  Omit local
21466         variable 'diff', as it's a bit clearer that way.
21467         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
21468         no longer needed.
21469
21470 2010-07-08  Chen Guo <chenguo4@yahoo.com>
21471
21472         (x)memcoll: speedup when input is known to be NUL delimited
21473         * lib/memcoll.c: Include stdlib.
21474         (memcoll0): New function.
21475         (strcoll_loop): New function, refactored for use in both memcoll
21476         and memcoll0.
21477         * lib/memcoll.h (memcoll0): Add prototype.
21478         * lib/xmemcoll.c (xmemcoll0): New function.
21479         (collate_error): New function, refactored for use in both xmemcoll
21480         and xmemcoll0.
21481         * lib/xmemcoll.h (xmemcoll0): Add prototype.
21482         * m4/memcoll.m4: add inline invocation.
21483
21484 2010-07-06  Pádraig Brady  <P@draigBrady.com>
21485
21486         * build-aux/bootstrap: Remove any local translations
21487         from the translation project synchronization directory,
21488         so that local only translations are not distributed.
21489
21490 2010-07-04  Bruno Haible  <bruno@clisp.org>
21491
21492         fsusage: Clarify which code applies to which platforms.
21493         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
21494         platform.
21495         * lib/fsusage.c (get_fs_usage): Likewise.
21496
21497 2010-07-04  Bruno Haible  <bruno@clisp.org>
21498
21499         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
21500         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
21501         Reported by Martin Lambers <marlam@marlam.de>.
21502
21503 2010-07-04  Jim Meyering  <meyering@redhat.com>
21504
21505         hash: once again explicitly disallow insertion of NULL
21506         * lib/hash.c (hash_insert0): Reinstate just-removed test:
21507         inserting a NULL pointer cannot work with these functions.
21508         Add a comment with details.
21509         This reverts part of the 2010-07-01 commit, 5bef1a35
21510         "hash: extend module to deal with non-pointer keys".
21511
21512 2010-07-01  Bruno Haible  <bruno@clisp.org>
21513
21514         stdbool: Update doc.
21515         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
21516         Info from Christian Weisgerber <naddy@mips.inka.de>.
21517
21518 2010-07-01  Jim Meyering  <meyering@redhat.com>
21519
21520         hash: extend module to deal with non-pointer keys
21521         * lib/hash.c (hash_insert0): New interface, much like hash_insert
21522         but that allows insertion of non-pointer entries.
21523         Do not disallow an ENTRY value of NULL.
21524         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
21525         * lib/hash.h (hash_insert0): Declare.
21526
21527 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21528
21529         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
21530         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
21531         not present (i.e. with autoconf 2.59 and when using gettextize, not
21532         gnulib), require AC_GNU_SOURCE instead.
21533
21534 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
21535
21536         idpriv-drop: Fix tests.
21537         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
21538         not to the test-idpriv-droptemp program.
21539
21540 2010-06-29  Bruno Haible  <bruno@clisp.org>
21541
21542         string: Fix syntax error with g++ 2.96.
21543         * lib/string.in.h (__pure__): Remove definition.
21544         (_GL_ATTRIBUTE_PURE): New macro.
21545         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
21546         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
21547         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21548
21549 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
21550
21551         unitypes: Fix bug introduced on 2010-05-18.
21552         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
21553
21554 2010-06-22  Eric Blake  <eblake@redhat.com>
21555
21556         memmem: slight optimization
21557         * lib/str-two-way.h (critical_factorization): Update comments.
21558         Reduce work during factorization phase.
21559         Reported by Carlos Bueno <carlos@bueno.org>.
21560
21561 2010-06-21  Bruno Haible  <bruno@clisp.org>
21562
21563         Fix HAVE_CALLOC_POSIX misnomer.
21564         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
21565         !HAVE_CALLOC_POSIX.
21566         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
21567         HAVE_CALLOC_POSIX.
21568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
21569         instead of HAVE_CALLOC_POSIX.
21570         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
21571         HAVE_CALLOC_POSIX.
21572
21573         Use modern idiom for calloc() replacement.
21574         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
21575         AC_FUNC_CALLOC.
21576         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
21577         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
21578         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21579         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
21580         (gl_REPLACE_CALLOC): New macro.
21581
21582 2010-06-21  Bruno Haible  <bruno@clisp.org>
21583
21584         Fix HAVE_REALLOC_POSIX misnomer.
21585         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
21586         !HAVE_REALLOC_POSIX.
21587         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
21588         HAVE_REALLOC_POSIX.
21589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
21590         instead of HAVE_REALLOC_POSIX.
21591         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
21592         HAVE_REALLOC_POSIX.
21593
21594         Use modern idiom for realloc() replacement.
21595         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
21596         AC_FUNC_REALLOC.
21597         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
21598         Autoconf's AC_FUNC_REALLOC.
21599         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21600         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
21601         (gl_REPLACE_REALLOC): New macro.
21602         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21603
21604 2010-06-21  Bruno Haible  <bruno@clisp.org>
21605
21606         Fix HAVE_MALLOC_POSIX misnomer.
21607         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
21608         !HAVE_MALLOC_POSIX.
21609         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
21610         HAVE_MALLOC_POSIX.
21611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
21612         instead of HAVE_MALLOC_POSIX.
21613         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
21614         HAVE_MALLOC_POSIX.
21615
21616         Use modern idiom for malloc() replacement.
21617         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
21618         AC_FUNC_MALLOC.
21619         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
21620         Autoconf's AC_FUNC_MALLOC.
21621         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
21622         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
21623         (gl_REPLACE_MALLOC): New macro.
21624         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
21625
21626 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
21627
21628         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
21629         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
21630         This macro takes 3 arguments, not 4.
21631
21632 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
21633
21634         ipv6: fix detection under mingw
21635         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
21636         in6_addr.
21637
21638 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
21639
21640         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
21641         that strtod() works when cross-compiling to a glibc version known
21642         to work.
21643
21644 2010-06-15  Bruno Haible  <bruno@clisp.org>
21645
21646         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
21647
21648 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
21649
21650         select: Correct timeout.
21651         * lib/select.c (rpl_select): Compute wait_timeout correctly.
21652
21653 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21654
21655         git-version-gen: init shell var to avoid env var influence
21656         * build-aux/git-version-gen (v): Init shell var to empty.
21657
21658 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
21659
21660         priv-set: Don't assume that priv.h exists merely because getppriv does.
21661         See Jan Andersen's bug report about AIX 5L in
21662         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
21663         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
21664         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
21665         * lib/priv-set.h: Likewise.
21666         * tests/test-priv-set.c: Likewise.
21667
21668 2010-06-13  Bruno Haible  <bruno@clisp.org>
21669
21670         relocatable: Make it easier to test whether to install wrappers.
21671         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
21672         RELOCATABLE_VIA_WRAPPER.
21673
21674 2010-06-13  Bruno Haible  <bruno@clisp.org>
21675
21676         gnulib-tool: Display specified modules and dependencies differently.
21677         * gnulib-tool (func_show_module_list): New function.
21678         (func_import, func_create_testdir): Invoke it.
21679         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21680
21681 2010-06-13  Bruno Haible  <bruno@clisp.org>
21682
21683         gnulib-tool: Align code of func_import and func_create_testdir.
21684         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
21685         specified_modules.
21686
21687 2010-06-12  Jim Meyering  <meyering@redhat.com>
21688
21689         test-inttostr: avoid spurious failure on Solaris 9
21690         * tests/test-inttostr.c (main): Skip the test when snprintf fails
21691         to accept "%ju".  Reported by Bruno Haible.
21692
21693 2010-06-11  Jim Meyering  <meyering@redhat.com>
21694
21695         test-sys_socket: mark variables as used more readably
21696         * tests/test-sys_socket.c (main): Mark otherwise unused variables
21697         as "used" explicitly via (void) statement casts.  This is more
21698         readable than using them in an artificial return expression.
21699         Suggestion from Bruno Haible.
21700
21701 2010-06-11  Bruno Haible  <bruno@clisp.org>
21702
21703         Avoid some more warnings from "gcc -Wwrite-strings".
21704         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
21705         to 'const char *'.
21706         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
21707         * tests/test-c-strcasestr.c (main): Likewise.
21708         * tests/test-mbscasestr1.c (main): Likewise.
21709         * tests/test-mbscasestr2.c (main): Likewise.
21710         * tests/test-memmem.c (main): Likewise.
21711         * tests/test-strstr.c (main): Likewise.
21712         * tests/test-strcasestr.c (main): Likewise.
21713
21714 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21715
21716         init.sh: change framework_failure_ to fail with status 99, not 1
21717         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
21718         automake's parallel-tests rule that this is an unexpected failure,
21719         even if the test is listed in XFAIL_TESTS.
21720
21721 2010-06-11  Jim Meyering  <meyering@redhat.com>
21722
21723         test-inttostr: avoid warnings about 4-6KB literal strings
21724         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
21725         Include "macros.h", for its definition of ASSERT.
21726         (CK): s/assert/ASSERT/
21727         * modules/inttostr-tests (Files): Add macros.h.
21728
21729         init.sh: don't use $ME_ or skip_ before they are defined
21730         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
21731         their first uses.  Also hoist their companions: warn_, fail_,
21732         framework_failure_, $stderr_fileno.  Prompted by a patch from
21733         Stefano Lattarini.
21734
21735         test-sys_socket: avoid set-but-not-used warnings from gcc
21736         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
21737         avoid warning about set-but-not-used variables.
21738
21739         test-xvasprintf: avoid 'const' discard warnings
21740         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
21741         "const" when assigning from literal strings.
21742         (test_xasprintf): Add "void" in function argument list to placate
21743         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
21744
21745         tests: avoid compilation warnings in argmatch and exclude tests...
21746         in packages that define ARGMATCH_DIE_DECL, like coreutils.
21747         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
21748         Since it always exits, declare with the "noreturn" attribute.
21749         * tests/test-argmatch.c: Likewise.
21750
21751         tests: avoid 'const' discard warnings in mbsstr tests
21752         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
21753         * tests/test-mbsstr2.c (main): Likewise.
21754
21755         test-verify: avoid warning from gcc's -Wmissing-declarations
21756         * tests/test-verify.c (function): Declare to be static.
21757
21758         test-inttostr.c: include <string.h> for use of strcmp
21759         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
21760
21761         test-linkat: avoid failed assertion on "other" architectures
21762         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
21763         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
21764         sparc: https://bugs.launchpad.net/bugs/591968
21765
21766 2010-06-11  Jim Meyering  <meyering@redhat.com>
21767
21768         printf.m4: avoid autoconf's "Expanded Before Required" warning
21769         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
21770         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
21771         autoconf warning.
21772
21773 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
21774
21775         Replacement header templates are now named with ".in", not "_".
21776         * doc/gnulib-intro.texi: Correct.
21777
21778 2010-06-10  Jim Meyering  <meyering@redhat.com>
21779
21780         inttostr-tests: depend on snprintf, not snprintf-posix
21781         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
21782         snprintf-posix, to avoid this aclocal failure:
21783           missing file gnulib-tests/vasnprintf.c
21784           configure.ac:45: error: expected source file, required through \
21785           AC_LIBSOURCES, not found
21786
21787 2010-06-10  Jim Meyering  <meyering@redhat.com>
21788
21789         inttostr: add a new function, inttostr, and tests
21790         The namesake function was not available.  The existence of the
21791         template file, inttostr.c makes its addition nontrivial.
21792         * lib/anytostr.c: Rename from inttostr.c.
21793         (anytostr): Rename from inttostr.
21794         * lib/inttostr.c: New file.
21795         * modules/inttostr (Files): Add anytostr.c.
21796         (Makefile.am): Set lib_SOURCES instead of ...
21797         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
21798         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
21799         * lib/offtostr.c: Likewise.
21800         * lib/uinttostr.c: Likewise.
21801         * lib/umaxtostr.c: Likewise.
21802         * modules/inttostr-tests: New file.
21803         * tests/test-inttostr.c: New file.  Test these functions.
21804
21805 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
21806             Bruno Haible  <bruno@clisp.org>
21807
21808         Add "Extending Gnulib" chapter to manual.
21809         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
21810         chapter.
21811         (Extending Gnulib): New chapter.
21812         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
21813         chapter.
21814
21815 2010-06-09  Bruno Haible  <bruno@clisp.org>
21816
21817         Avoid relocwrapper link errors due to gnulib replacement functions.
21818         * lib/areadlink.c: Use the system's malloc, realloc functions.
21819         (areadlink): Set errno to ENOMEM explicitly.
21820         * modules/areadlink (Depends-on): Remove malloc-posix.
21821         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21822
21823 2010-06-09  Bruno Haible  <bruno@clisp.org>
21824
21825         Avoid relocwrapper link errors due to gnulib replacement functions.
21826         * lib/canonicalize-lgpl.c: Use the system's malloc function.
21827         * lib/malloca.c: Likewise.
21828         * lib/relocatable.c: Likewise.
21829         * lib/progreloc.c: Use the system's malloc, sprintf functions.
21830         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
21831         * lib/setenv.c: Use the system's malloc, realloc functions.
21832         * lib/strerror.c: Use the system's sprintf function.
21833         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21834
21835 2010-06-04  Bruno Haible  <bruno@clisp.org>
21836
21837         Prefer documented low-level autoconf macro names.
21838         * m4/lib-link.m4: Use m4_translit instead of translit.
21839         * m4/environ.m4: Likewise.
21840         * m4/mathfunc.m4: Likewise.
21841         * m4/onceonly.m4: Likewise.
21842         * m4/stdint.m4: Likewise.
21843         Suggested by Eric Blake.
21844
21845 2010-06-04  Martin Lambers  <marlam@marlam.de>
21846             Bruno Haible  <bruno@clisp.org>
21847
21848         havelib: Allow library names with '+' characters.
21849         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21850         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
21851
21852 2010-06-09  Bruno Haible  <bruno@clisp.org>
21853
21854         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
21855         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
21856         realloc failed.
21857
21858 2010-06-08  Peter Simons  <simons@cryp.to>
21859
21860         maint.mk: make the news-check rule more configurable
21861         * top/maint.mk (news-check-lines-spec): New variable.
21862         (news-check): Use "sed -n 1,10p" in place of "head".
21863
21864 2010-06-07  Jim Meyering  <meyering@redhat.com>
21865
21866         do-release-commit-and-tag: fix typo in --help
21867         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
21868
21869         regex: avoid new dead-code warning with gcc-4.6.0
21870         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
21871         if-block containing a while-loop.  It's been unused for at least
21872         5 years.
21873
21874 2010-06-05  Bruno Haible  <bruno@clisp.org>
21875
21876         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
21877         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
21878
21879 2010-06-04  Bruno Haible  <bruno@clisp.org>
21880
21881         Update to GNU gettext 0.18.1.
21882         * modules/gettext (configure.ac): Require gettext infrastructure from
21883         version 0.18.1.
21884
21885 2010-06-03  Bruno Haible  <bruno@clisp.org>
21886
21887         Don't use AC_LIBOBJ with file names in subdirectories.
21888         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
21889         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
21890         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
21891         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
21892         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
21893         gl_LIBUNISTRING_LIBSOURCE.
21894         (Makefile.am): Augment lib_SOURCES here, conditionally.
21895         * NEWS: Drop requirement for Automake option 'subdir-objects'.
21896
21897 2010-06-03  Bruno Haible  <bruno@clisp.org>
21898
21899         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
21900         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
21901         expansion does not end with a newline.
21902         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
21903         unnecessary newline.
21904
21905 2010-06-03  Bruno Haible  <bruno@clisp.org>
21906
21907         Reduce dependencies.
21908         * tests/test-quotearg.h: New file, extracted from
21909         tests/test-quotearg.c.
21910         * tests/test-quotearg-simple.c: New file, extracted from
21911         tests/test-quotearg.c.
21912         * tests/test-quotearg.c: Don't include <ctype.h>.
21913         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
21914         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
21915         use_quote_double_quotes, use_quotearg_colon): Moved to
21916         tests/test-quotearg.h.
21917         (results_g, flag_results, custom_quotes, custom_results): Moved
21918         to tests/test-quotearg-simple.c.
21919         (main): Moved the part that does not depend on gettext to
21920         tests/test-quotearg-simple.c. Return 77 if the test cannot be
21921         performed.
21922         * modules/quotearg-simple: New file.
21923         * modules/quotearg-simple-tests: New file.
21924         * modules/quotearg (Depends-on): Add quotearg-simple.
21925         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
21926         (Files): Add tests/test-quotearg.h.
21927         Reported by Paolo Bonzini.
21928
21929 2010-06-03  Bruno Haible  <bruno@clisp.org>
21930
21931         Reduce dependencies.
21932         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
21933
21934 2010-06-03  Bruno Haible  <bruno@clisp.org>
21935
21936         time: Undefine more broken macros.
21937         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
21938         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
21939         Reported by Eric Blake.
21940
21941 2010-06-03  Bruno Haible  <bruno@clisp.org>
21942
21943         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
21944         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
21945         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
21946         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
21947         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
21948         Reported by Ludovic Courtès <ludo@gnu.org>.
21949
21950 2010-06-02  Eric Blake  <eblake@redhat.com>
21951
21952         time: work with mingw + pthreads-win32 library
21953         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
21954         if timespec is defined only in pthread.h.
21955         * modules/time (Makefile.am): Substitute it.
21956         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
21957         <pthread.h>, when needed.
21958         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
21959         from the library.
21960
21961 2010-05-31  Bruno Haible  <bruno@clisp.org>
21962
21963         Avoid expanding two macros in the wrong order.
21964         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
21965         gl_LIBUNISTRING if it is defined.
21966         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
21967         autoconf >= 2.64.
21968         Reported by Ludovic Courtès <ludo@gnu.org>.
21969
21970 2010-05-27  Jim Meyering  <meyering@redhat.com>
21971
21972         maint.mk: also prohibit "#undef" of always-defined symbols
21973         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
21974         Allow more than one space before the symbol name.
21975         (sc_prohibit_always-defined_macros): Use grep's -E, now that
21976         the regexp uses alternation.
21977
21978 2010-05-26  Eric Blake  <eblake@redhat.com>
21979
21980         maint.mk: avoid echo -e
21981         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
21982         Convert all uses of echo -* to printf.
21983         Reported by Matthias Bolte.
21984
21985 2010-05-25  Bruno Haible  <bruno@clisp.org>
21986
21987         Update to GNU gettext 0.18, part 2.
21988         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
21989         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
21990
21991 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21992
21993         Add missing include in test-pwrite.c.
21994         * tests/test-pwrite.c: Include string.h, for strcmp.
21995
21996 2010-05-24  Bruno Haible  <bruno@clisp.org>
21997
21998         * NEWS: Mention requirement for Automake option 'subdir-objects'.
21999
22000 2010-05-24  Bruno Haible  <bruno@clisp.org>
22001
22002         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22003         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22004         iconveh_error argument.
22005         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22006         U_STRCONV_TO_LOCALE.
22007         * lib/unistr/u16-strcoll.c: Likewise.
22008         * lib/unistr/u32-strcoll.c: Likewise.
22009         * modules/unistr/u8-strcoll (Depends-on): Add
22010         uniconv/u8-strconv-to-enc, localcharset. Remove
22011         uniconv/u8-strconv-to-locale.
22012         (configure.ac): Bump version number.
22013         * modules/unistr/u16-strcoll (Depends-on): Add
22014         uniconv/u16-strconv-to-enc, localcharset. Remove
22015         uniconv/u16-strconv-to-locale.
22016         (configure.ac): Bump version number.
22017         * modules/unistr/u32-strcoll (Depends-on): Add
22018         uniconv/u32-strconv-to-enc, localcharset. Remove
22019         uniconv/u32-strconv-to-locale.
22020         (configure.ac): Bump version number.
22021
22022 2010-05-24  Bruno Haible  <bruno@clisp.org>
22023
22024         Avoid a test failure on NetBSD 5.0.
22025         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22026         an iconv() bug.
22027
22028 2010-05-24  Bruno Haible  <bruno@clisp.org>
22029
22030         Adjust #include directive style.
22031         * modules/regex (Includes): Recommend to write <regex.h>.
22032
22033 2010-05-24  Bruno Haible  <bruno@clisp.org>
22034
22035         regex: Don't require alloca.
22036         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22037         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22038         only inside if (0).
22039
22040 2010-05-23  Jim Meyering  <meyering@redhat.com>
22041
22042         test-renameat.c: include <sys/stat.h>
22043         * tests/test-renameat.c: Include <sys/stat.h>; required for
22044         definition of S_IS* macros.
22045
22046 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22047
22048         Update maintainer documentation for 'relocatable-prog' module.
22049         * doc/relocatable-maint.texi: Update.
22050         Comments by Bruno Haible.
22051
22052 2010-05-23  Bruno Haible  <bruno@clisp.org>
22053
22054         git-merge-changelog: Enable --split-merged-entry by default.
22055         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22056         (usage): Don't mention this option any more.
22057         Reported by Ralf Wildenhues.
22058
22059 2010-05-23  Jim Meyering  <meyering@redhat.com>
22060
22061         test-pwrite: do not leave behind a test file named "out"
22062         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22063         The trivial-looking use of init.sh is really necessary.
22064         It ensures that the temporary file, "out", is created in
22065         a temporary directory, and removed upon termination.
22066         * tests/test-pwrite.sh: Re-add file.
22067         * modules/pwrite-tests: Reference it.
22068
22069 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22070
22071         Fix output redirection buglet in init.sh.
22072         * tests/init.sh: Fix redirection of stderr.
22073
22074 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22075
22076         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22077
22078 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22079
22080         * modules/valgrind-tests: New file.
22081         * m4/valgrind-tests.m4: New file.
22082         * doc/valgrind-tests.texi: New file.
22083         * doc/gnulib.texi (Running self-tests under valgrind): New
22084         section.
22085
22086 2010-05-19  Bruno Haible  <bruno@clisp.org>
22087
22088         Clean up dead code in recent commit.
22089         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22090         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22091         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22092         Suggested by Paolo Bonzini.
22093
22094 2010-05-19  Bruno Haible  <bruno@clisp.org>
22095
22096         Avoid valgrind error reports from libunistring.
22097         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22098         * modules/libunistring (Files): Add it.
22099         * modules/libunistring-optional (Files): Likewise.
22100
22101 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22102             Bruno Haible  <bruno@clisp.org>
22103
22104         New module 'libunistring-optional'.
22105         * modules/libunistring-optional: New file.
22106         * m4/libunistring-base.m4: New file.
22107         * m4/libunistring-optional.m4: New file.
22108         * lib/unicase.in.h: Renamed from lib/unicase.h.
22109         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22110         * lib/unictype.in.h: Renamed from lib/unictype.h.
22111         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22112         * lib/uniname.in.h: Renamed from lib/uniname.h.
22113         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22114         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22115         * lib/unistr.in.h: Renamed from lib/unistr.h.
22116         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22117         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22118         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22119         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22120         gl_LIBUNISTRING. If the library was found, determine the installed
22121         version and set LIBUNISTRING_VERSION.
22122         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22123         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22124         handle a configuration option --with-included-libunistring.
22125         * modules/libunistring (Files): Add m4/absolute-header.m4.
22126         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22127         Add m4/libunistring-base.m4.
22128         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22129         (Makefile.am): Build unicase.h from unicase.in.h.
22130         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22131         Add m4/libunistring-base.m4.
22132         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22133         (Makefile.am): Build uniconv.h from uniconv.in.h.
22134         * modules/unictype/base (Files): Use unictype.in.h instead of
22135         unictype.h. Add m4/libunistring-base.m4.
22136         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22137         (Makefile.am): Build unictype.h from unictype.in.h.
22138         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22139         Add m4/libunistring-base.m4.
22140         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22141         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22142         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22143         Add m4/libunistring-base.m4.
22144         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22145         (Makefile.am): Build uniname.h from uniname.in.h.
22146         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22147         Add m4/libunistring-base.m4.
22148         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22149         (Makefile.am): Build uninorm.h from uninorm.in.h.
22150         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22151         unistdio.h. Add m4/libunistring-base.m4.
22152         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22153         (Makefile.am): Build unistdio.h from unistdio.in.h.
22154         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22155         Add m4/libunistring-base.m4.
22156         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22157         (Makefile.am): Build unistr.h from unistr.in.h.
22158         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22159         Add m4/libunistring-base.m4.
22160         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22161         (Makefile.am): Build unitypes.h from unitypes.in.h.
22162         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22163         Add m4/libunistring-base.m4.
22164         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22165         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22166         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22167         uniwidth.h. Add m4/libunistring-base.m4.
22168         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22169         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22170         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22171         instead of augmenting lib_SOURCES.
22172         * modules/unicase/empty-suffix-context: Likewise.
22173         * modules/unicase/locale-language: Likewise.
22174         * modules/unicase/tolower: Likewise.
22175         * modules/unicase/totitle: Likewise.
22176         * modules/unicase/toupper: Likewise.
22177         * modules/unicase/u8-casecmp: Likewise.
22178         * modules/unicase/u8-casecoll: Likewise.
22179         * modules/unicase/u8-casefold: Likewise.
22180         * modules/unicase/u8-casexfrm: Likewise.
22181         * modules/unicase/u8-ct-casefold: Likewise.
22182         * modules/unicase/u8-ct-tolower: Likewise.
22183         * modules/unicase/u8-ct-totitle: Likewise.
22184         * modules/unicase/u8-ct-toupper: Likewise.
22185         * modules/unicase/u8-is-cased: Likewise.
22186         * modules/unicase/u8-is-casefolded: Likewise.
22187         * modules/unicase/u8-is-lowercase: Likewise.
22188         * modules/unicase/u8-is-titlecase: Likewise.
22189         * modules/unicase/u8-is-uppercase: Likewise.
22190         * modules/unicase/u8-prefix-context: Likewise.
22191         * modules/unicase/u8-suffix-context: Likewise.
22192         * modules/unicase/u8-tolower: Likewise.
22193         * modules/unicase/u8-totitle: Likewise.
22194         * modules/unicase/u8-toupper: Likewise.
22195         * modules/unicase/u16-casecmp: Likewise.
22196         * modules/unicase/u16-casecoll: Likewise.
22197         * modules/unicase/u16-casefold: Likewise.
22198         * modules/unicase/u16-casexfrm: Likewise.
22199         * modules/unicase/u16-ct-casefold: Likewise.
22200         * modules/unicase/u16-ct-tolower: Likewise.
22201         * modules/unicase/u16-ct-totitle: Likewise.
22202         * modules/unicase/u16-ct-toupper: Likewise.
22203         * modules/unicase/u16-is-cased: Likewise.
22204         * modules/unicase/u16-is-casefolded: Likewise.
22205         * modules/unicase/u16-is-lowercase: Likewise.
22206         * modules/unicase/u16-is-titlecase: Likewise.
22207         * modules/unicase/u16-is-uppercase: Likewise.
22208         * modules/unicase/u16-prefix-context: Likewise.
22209         * modules/unicase/u16-suffix-context: Likewise.
22210         * modules/unicase/u16-tolower: Likewise.
22211         * modules/unicase/u16-totitle: Likewise.
22212         * modules/unicase/u16-toupper: Likewise.
22213         * modules/unicase/u32-casecmp: Likewise.
22214         * modules/unicase/u32-casecoll: Likewise.
22215         * modules/unicase/u32-casefold: Likewise.
22216         * modules/unicase/u32-casexfrm: Likewise.
22217         * modules/unicase/u32-ct-casefold: Likewise.
22218         * modules/unicase/u32-ct-tolower: Likewise.
22219         * modules/unicase/u32-ct-totitle: Likewise.
22220         * modules/unicase/u32-ct-toupper: Likewise.
22221         * modules/unicase/u32-is-cased: Likewise.
22222         * modules/unicase/u32-is-casefolded: Likewise.
22223         * modules/unicase/u32-is-lowercase: Likewise.
22224         * modules/unicase/u32-is-titlecase: Likewise.
22225         * modules/unicase/u32-is-uppercase: Likewise.
22226         * modules/unicase/u32-prefix-context: Likewise.
22227         * modules/unicase/u32-suffix-context: Likewise.
22228         * modules/unicase/u32-tolower: Likewise.
22229         * modules/unicase/u32-totitle: Likewise.
22230         * modules/unicase/u32-toupper: Likewise.
22231         * modules/unicase/ulc-casecmp: Likewise.
22232         * modules/unicase/ulc-casecoll: Likewise.
22233         * modules/unicase/ulc-casexfrm: Likewise.
22234         * modules/uniconv/u8-conv-from-enc: Likewise.
22235         * modules/uniconv/u8-conv-to-enc: Likewise.
22236         * modules/uniconv/u8-strconv-from-enc: Likewise.
22237         * modules/uniconv/u8-strconv-from-locale: Likewise.
22238         * modules/uniconv/u8-strconv-to-enc: Likewise.
22239         * modules/uniconv/u8-strconv-to-locale: Likewise.
22240         * modules/uniconv/u16-conv-from-enc: Likewise.
22241         * modules/uniconv/u16-conv-to-enc: Likewise.
22242         * modules/uniconv/u16-strconv-from-enc: Likewise.
22243         * modules/uniconv/u16-strconv-from-locale: Likewise.
22244         * modules/uniconv/u16-strconv-to-enc: Likewise.
22245         * modules/uniconv/u16-strconv-to-locale: Likewise.
22246         * modules/uniconv/u32-conv-from-enc: Likewise.
22247         * modules/uniconv/u32-conv-to-enc: Likewise.
22248         * modules/uniconv/u32-strconv-from-enc: Likewise.
22249         * modules/uniconv/u32-strconv-from-locale: Likewise.
22250         * modules/uniconv/u32-strconv-to-enc: Likewise.
22251         * modules/uniconv/u32-strconv-to-locale: Likewise.
22252         * modules/unictype/bidicategory-byname: Likewise.
22253         * modules/unictype/bidicategory-name: Likewise.
22254         * modules/unictype/bidicategory-of: Likewise.
22255         * modules/unictype/bidicategory-test: Likewise.
22256         * modules/unictype/block-list: Likewise.
22257         * modules/unictype/block-test: Likewise.
22258         * modules/unictype/category-C: Likewise.
22259         * modules/unictype/category-Cc: Likewise.
22260         * modules/unictype/category-Cf: Likewise.
22261         * modules/unictype/category-Cn: Likewise.
22262         * modules/unictype/category-Co: Likewise.
22263         * modules/unictype/category-Cs: Likewise.
22264         * modules/unictype/category-L: Likewise.
22265         * modules/unictype/category-Ll: Likewise.
22266         * modules/unictype/category-Lm: Likewise.
22267         * modules/unictype/category-Lo: Likewise.
22268         * modules/unictype/category-Lt: Likewise.
22269         * modules/unictype/category-Lu: Likewise.
22270         * modules/unictype/category-M: Likewise.
22271         * modules/unictype/category-Mc: Likewise.
22272         * modules/unictype/category-Me: Likewise.
22273         * modules/unictype/category-Mn: Likewise.
22274         * modules/unictype/category-N: Likewise.
22275         * modules/unictype/category-Nd: Likewise.
22276         * modules/unictype/category-Nl: Likewise.
22277         * modules/unictype/category-No: Likewise.
22278         * modules/unictype/category-P: Likewise.
22279         * modules/unictype/category-Pc: Likewise.
22280         * modules/unictype/category-Pd: Likewise.
22281         * modules/unictype/category-Pe: Likewise.
22282         * modules/unictype/category-Pf: Likewise.
22283         * modules/unictype/category-Pi: Likewise.
22284         * modules/unictype/category-Po: Likewise.
22285         * modules/unictype/category-Ps: Likewise.
22286         * modules/unictype/category-S: Likewise.
22287         * modules/unictype/category-Sc: Likewise.
22288         * modules/unictype/category-Sk: Likewise.
22289         * modules/unictype/category-Sm: Likewise.
22290         * modules/unictype/category-So: Likewise.
22291         * modules/unictype/category-Z: Likewise.
22292         * modules/unictype/category-Zl: Likewise.
22293         * modules/unictype/category-Zp: Likewise.
22294         * modules/unictype/category-Zs: Likewise.
22295         * modules/unictype/category-and: Likewise.
22296         * modules/unictype/category-and-not: Likewise.
22297         * modules/unictype/category-byname: Likewise.
22298         * modules/unictype/category-name: Likewise.
22299         * modules/unictype/category-none: Likewise.
22300         * modules/unictype/category-of: Likewise.
22301         * modules/unictype/category-or: Likewise.
22302         * modules/unictype/category-test: Likewise.
22303         * modules/unictype/combining-class: Likewise.
22304         * modules/unictype/ctype-alnum: Likewise.
22305         * modules/unictype/ctype-alpha: Likewise.
22306         * modules/unictype/ctype-blank: Likewise.
22307         * modules/unictype/ctype-cntrl: Likewise.
22308         * modules/unictype/ctype-digit: Likewise.
22309         * modules/unictype/ctype-graph: Likewise.
22310         * modules/unictype/ctype-lower: Likewise.
22311         * modules/unictype/ctype-print: Likewise.
22312         * modules/unictype/ctype-punct: Likewise.
22313         * modules/unictype/ctype-space: Likewise.
22314         * modules/unictype/ctype-upper: Likewise.
22315         * modules/unictype/ctype-xdigit: Likewise.
22316         * modules/unictype/decimal-digit: Likewise.
22317         * modules/unictype/digit: Likewise.
22318         * modules/unictype/mirror: Likewise.
22319         * modules/unictype/numeric: Likewise.
22320         * modules/unictype/property-alphabetic: Likewise.
22321         * modules/unictype/property-ascii-hex-digit: Likewise.
22322         * modules/unictype/property-bidi-arabic-digit: Likewise.
22323         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22324         * modules/unictype/property-bidi-block-separator: Likewise.
22325         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22326         * modules/unictype/property-bidi-common-separator: Likewise.
22327         * modules/unictype/property-bidi-control: Likewise.
22328         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22329         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22330         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22331         * modules/unictype/property-bidi-european-digit: Likewise.
22332         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22333         * modules/unictype/property-bidi-left-to-right: Likewise.
22334         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22335         * modules/unictype/property-bidi-other-neutral: Likewise.
22336         * modules/unictype/property-bidi-pdf: Likewise.
22337         * modules/unictype/property-bidi-segment-separator: Likewise.
22338         * modules/unictype/property-bidi-whitespace: Likewise.
22339         * modules/unictype/property-byname: Likewise.
22340         * modules/unictype/property-combining: Likewise.
22341         * modules/unictype/property-composite: Likewise.
22342         * modules/unictype/property-currency-symbol: Likewise.
22343         * modules/unictype/property-dash: Likewise.
22344         * modules/unictype/property-decimal-digit: Likewise.
22345         * modules/unictype/property-default-ignorable-code-point: Likewise.
22346         * modules/unictype/property-deprecated: Likewise.
22347         * modules/unictype/property-diacritic: Likewise.
22348         * modules/unictype/property-extender: Likewise.
22349         * modules/unictype/property-format-control: Likewise.
22350         * modules/unictype/property-grapheme-base: Likewise.
22351         * modules/unictype/property-grapheme-extend: Likewise.
22352         * modules/unictype/property-grapheme-link: Likewise.
22353         * modules/unictype/property-hex-digit: Likewise.
22354         * modules/unictype/property-hyphen: Likewise.
22355         * modules/unictype/property-id-continue: Likewise.
22356         * modules/unictype/property-id-start: Likewise.
22357         * modules/unictype/property-ideographic: Likewise.
22358         * modules/unictype/property-ids-binary-operator: Likewise.
22359         * modules/unictype/property-ids-trinary-operator: Likewise.
22360         * modules/unictype/property-ignorable-control: Likewise.
22361         * modules/unictype/property-iso-control: Likewise.
22362         * modules/unictype/property-join-control: Likewise.
22363         * modules/unictype/property-left-of-pair: Likewise.
22364         * modules/unictype/property-line-separator: Likewise.
22365         * modules/unictype/property-logical-order-exception: Likewise.
22366         * modules/unictype/property-lowercase: Likewise.
22367         * modules/unictype/property-math: Likewise.
22368         * modules/unictype/property-non-break: Likewise.
22369         * modules/unictype/property-not-a-character: Likewise.
22370         * modules/unictype/property-numeric: Likewise.
22371         * modules/unictype/property-other-alphabetic: Likewise.
22372         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22373         * modules/unictype/property-other-grapheme-extend: Likewise.
22374         * modules/unictype/property-other-id-continue: Likewise.
22375         * modules/unictype/property-other-id-start: Likewise.
22376         * modules/unictype/property-other-lowercase: Likewise.
22377         * modules/unictype/property-other-math: Likewise.
22378         * modules/unictype/property-other-uppercase: Likewise.
22379         * modules/unictype/property-paired-punctuation: Likewise.
22380         * modules/unictype/property-paragraph-separator: Likewise.
22381         * modules/unictype/property-pattern-syntax: Likewise.
22382         * modules/unictype/property-pattern-white-space: Likewise.
22383         * modules/unictype/property-private-use: Likewise.
22384         * modules/unictype/property-punctuation: Likewise.
22385         * modules/unictype/property-quotation-mark: Likewise.
22386         * modules/unictype/property-radical: Likewise.
22387         * modules/unictype/property-sentence-terminal: Likewise.
22388         * modules/unictype/property-soft-dotted: Likewise.
22389         * modules/unictype/property-space: Likewise.
22390         * modules/unictype/property-terminal-punctuation: Likewise.
22391         * modules/unictype/property-test: Likewise.
22392         * modules/unictype/property-titlecase: Likewise.
22393         * modules/unictype/property-unassigned-code-value: Likewise.
22394         * modules/unictype/property-unified-ideograph: Likewise.
22395         * modules/unictype/property-uppercase: Likewise.
22396         * modules/unictype/property-variation-selector: Likewise.
22397         * modules/unictype/property-white-space: Likewise.
22398         * modules/unictype/property-xid-continue: Likewise.
22399         * modules/unictype/property-xid-start: Likewise.
22400         * modules/unictype/property-zero-width: Likewise.
22401         * modules/unictype/scripts: Likewise.
22402         * modules/unictype/syntax-c-ident: Likewise.
22403         * modules/unictype/syntax-c-whitespace: Likewise.
22404         * modules/unictype/syntax-java-ident: Likewise.
22405         * modules/unictype/syntax-java-whitespace: Likewise.
22406         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22407         * modules/unilbrk/u8-width-linebreaks: Likewise.
22408         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22409         * modules/unilbrk/u16-width-linebreaks: Likewise.
22410         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22411         * modules/unilbrk/u32-width-linebreaks: Likewise.
22412         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22413         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22414         * modules/uniname/uniname: Likewise.
22415         * modules/uninorm/canonical-decomposition: Likewise.
22416         * modules/uninorm/composition: Likewise.
22417         * modules/uninorm/decomposing-form: Likewise.
22418         * modules/uninorm/decomposition: Likewise.
22419         * modules/uninorm/filter: Likewise.
22420         * modules/uninorm/nfc: Likewise.
22421         * modules/uninorm/nfd: Likewise.
22422         * modules/uninorm/nfkc: Likewise.
22423         * modules/uninorm/nfkd: Likewise.
22424         * modules/uninorm/u8-normalize: Likewise.
22425         * modules/uninorm/u8-normcmp: Likewise.
22426         * modules/uninorm/u8-normcoll: Likewise.
22427         * modules/uninorm/u8-normxfrm: Likewise.
22428         * modules/uninorm/u16-normalize: Likewise.
22429         * modules/uninorm/u16-normcmp: Likewise.
22430         * modules/uninorm/u16-normcoll: Likewise.
22431         * modules/uninorm/u16-normxfrm: Likewise.
22432         * modules/uninorm/u32-normalize: Likewise.
22433         * modules/uninorm/u32-normcmp: Likewise.
22434         * modules/uninorm/u32-normcoll: Likewise.
22435         * modules/uninorm/u32-normxfrm: Likewise.
22436         * modules/unistdio/u8-asnprintf: Likewise.
22437         * modules/unistdio/u8-asprintf: Likewise.
22438         * modules/unistdio/u8-snprintf: Likewise.
22439         * modules/unistdio/u8-sprintf: Likewise.
22440         * modules/unistdio/u8-u8-asnprintf: Likewise.
22441         * modules/unistdio/u8-u8-asprintf: Likewise.
22442         * modules/unistdio/u8-u8-snprintf: Likewise.
22443         * modules/unistdio/u8-u8-sprintf: Likewise.
22444         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22445         * modules/unistdio/u8-u8-vasprintf: Likewise.
22446         * modules/unistdio/u8-u8-vsnprintf: Likewise.
22447         * modules/unistdio/u8-u8-vsprintf: Likewise.
22448         * modules/unistdio/u8-vasnprintf: Likewise.
22449         * modules/unistdio/u8-vasprintf: Likewise.
22450         * modules/unistdio/u8-vsnprintf: Likewise.
22451         * modules/unistdio/u8-vsprintf: Likewise.
22452         * modules/unistdio/u16-asnprintf: Likewise.
22453         * modules/unistdio/u16-asprintf: Likewise.
22454         * modules/unistdio/u16-snprintf: Likewise.
22455         * modules/unistdio/u16-sprintf: Likewise.
22456         * modules/unistdio/u16-u16-asnprintf: Likewise.
22457         * modules/unistdio/u16-u16-asprintf: Likewise.
22458         * modules/unistdio/u16-u16-snprintf: Likewise.
22459         * modules/unistdio/u16-u16-sprintf: Likewise.
22460         * modules/unistdio/u16-u16-vasnprintf: Likewise.
22461         * modules/unistdio/u16-u16-vasprintf: Likewise.
22462         * modules/unistdio/u16-u16-vsnprintf: Likewise.
22463         * modules/unistdio/u16-u16-vsprintf: Likewise.
22464         * modules/unistdio/u16-vasnprintf: Likewise.
22465         * modules/unistdio/u16-vasprintf: Likewise.
22466         * modules/unistdio/u16-vsnprintf: Likewise.
22467         * modules/unistdio/u16-vsprintf: Likewise.
22468         * modules/unistdio/u32-asnprintf: Likewise.
22469         * modules/unistdio/u32-asprintf: Likewise.
22470         * modules/unistdio/u32-snprintf: Likewise.
22471         * modules/unistdio/u32-sprintf: Likewise.
22472         * modules/unistdio/u32-u32-asnprintf: Likewise.
22473         * modules/unistdio/u32-u32-asprintf: Likewise.
22474         * modules/unistdio/u32-u32-snprintf: Likewise.
22475         * modules/unistdio/u32-u32-sprintf: Likewise.
22476         * modules/unistdio/u32-u32-vasnprintf: Likewise.
22477         * modules/unistdio/u32-u32-vasprintf: Likewise.
22478         * modules/unistdio/u32-u32-vsnprintf: Likewise.
22479         * modules/unistdio/u32-u32-vsprintf: Likewise.
22480         * modules/unistdio/u32-vasnprintf: Likewise.
22481         * modules/unistdio/u32-vasprintf: Likewise.
22482         * modules/unistdio/u32-vsnprintf: Likewise.
22483         * modules/unistdio/u32-vsprintf: Likewise.
22484         * modules/unistdio/ulc-asnprintf: Likewise.
22485         * modules/unistdio/ulc-asprintf: Likewise.
22486         * modules/unistdio/ulc-fprintf: Likewise.
22487         * modules/unistdio/ulc-snprintf: Likewise.
22488         * modules/unistdio/ulc-sprintf: Likewise.
22489         * modules/unistdio/ulc-vasnprintf: Likewise.
22490         * modules/unistdio/ulc-vasprintf: Likewise.
22491         * modules/unistdio/ulc-vfprintf: Likewise.
22492         * modules/unistdio/ulc-vsnprintf: Likewise.
22493         * modules/unistdio/ulc-vsprintf: Likewise.
22494         * modules/unistr/u8-check: Likewise.
22495         * modules/unistr/u8-chr: Likewise.
22496         * modules/unistr/u8-cmp: Likewise.
22497         * modules/unistr/u8-cmp2: Likewise.
22498         * modules/unistr/u8-cpy: Likewise.
22499         * modules/unistr/u8-cpy-alloc: Likewise.
22500         * modules/unistr/u8-endswith: Likewise.
22501         * modules/unistr/u8-mblen: Likewise.
22502         * modules/unistr/u8-mbsnlen: Likewise.
22503         * modules/unistr/u8-mbtouc: Likewise.
22504         * modules/unistr/u8-mbtouc-unsafe: Likewise.
22505         * modules/unistr/u8-mbtoucr: Likewise.
22506         * modules/unistr/u8-move: Likewise.
22507         * modules/unistr/u8-next: Likewise.
22508         * modules/unistr/u8-prev: Likewise.
22509         * modules/unistr/u8-set: Likewise.
22510         * modules/unistr/u8-startswith: Likewise.
22511         * modules/unistr/u8-stpcpy: Likewise.
22512         * modules/unistr/u8-stpncpy: Likewise.
22513         * modules/unistr/u8-strcat: Likewise.
22514         * modules/unistr/u8-strchr: Likewise.
22515         * modules/unistr/u8-strcmp: Likewise.
22516         * modules/unistr/u8-strcoll: Likewise.
22517         * modules/unistr/u8-strcpy: Likewise.
22518         * modules/unistr/u8-strcspn: Likewise.
22519         * modules/unistr/u8-strdup: Likewise.
22520         * modules/unistr/u8-strlen: Likewise.
22521         * modules/unistr/u8-strmblen: Likewise.
22522         * modules/unistr/u8-strmbtouc: Likewise.
22523         * modules/unistr/u8-strncat: Likewise.
22524         * modules/unistr/u8-strncmp: Likewise.
22525         * modules/unistr/u8-strncpy: Likewise.
22526         * modules/unistr/u8-strnlen: Likewise.
22527         * modules/unistr/u8-strpbrk: Likewise.
22528         * modules/unistr/u8-strrchr: Likewise.
22529         * modules/unistr/u8-strspn: Likewise.
22530         * modules/unistr/u8-strstr: Likewise.
22531         * modules/unistr/u8-strtok: Likewise.
22532         * modules/unistr/u8-to-u16: Likewise.
22533         * modules/unistr/u8-to-u32: Likewise.
22534         * modules/unistr/u8-uctomb: Likewise.
22535         * modules/unistr/u16-check: Likewise.
22536         * modules/unistr/u16-chr: Likewise.
22537         * modules/unistr/u16-cmp: Likewise.
22538         * modules/unistr/u16-cmp2: Likewise.
22539         * modules/unistr/u16-cpy: Likewise.
22540         * modules/unistr/u16-cpy-alloc: Likewise.
22541         * modules/unistr/u16-endswith: Likewise.
22542         * modules/unistr/u16-mblen: Likewise.
22543         * modules/unistr/u16-mbsnlen: Likewise.
22544         * modules/unistr/u16-mbtouc: Likewise.
22545         * modules/unistr/u16-mbtouc-unsafe: Likewise.
22546         * modules/unistr/u16-mbtoucr: Likewise.
22547         * modules/unistr/u16-move: Likewise.
22548         * modules/unistr/u16-next: Likewise.
22549         * modules/unistr/u16-prev: Likewise.
22550         * modules/unistr/u16-set: Likewise.
22551         * modules/unistr/u16-startswith: Likewise.
22552         * modules/unistr/u16-stpcpy: Likewise.
22553         * modules/unistr/u16-stpncpy: Likewise.
22554         * modules/unistr/u16-strcat: Likewise.
22555         * modules/unistr/u16-strchr: Likewise.
22556         * modules/unistr/u16-strcmp: Likewise.
22557         * modules/unistr/u16-strcoll: Likewise.
22558         * modules/unistr/u16-strcpy: Likewise.
22559         * modules/unistr/u16-strcspn: Likewise.
22560         * modules/unistr/u16-strdup: Likewise.
22561         * modules/unistr/u16-strlen: Likewise.
22562         * modules/unistr/u16-strmblen: Likewise.
22563         * modules/unistr/u16-strmbtouc: Likewise.
22564         * modules/unistr/u16-strncat: Likewise.
22565         * modules/unistr/u16-strncmp: Likewise.
22566         * modules/unistr/u16-strncpy: Likewise.
22567         * modules/unistr/u16-strnlen: Likewise.
22568         * modules/unistr/u16-strpbrk: Likewise.
22569         * modules/unistr/u16-strrchr: Likewise.
22570         * modules/unistr/u16-strspn: Likewise.
22571         * modules/unistr/u16-strstr: Likewise.
22572         * modules/unistr/u16-strtok: Likewise.
22573         * modules/unistr/u16-to-u32: Likewise.
22574         * modules/unistr/u16-to-u8: Likewise.
22575         * modules/unistr/u16-uctomb: Likewise.
22576         * modules/unistr/u32-check: Likewise.
22577         * modules/unistr/u32-chr: Likewise.
22578         * modules/unistr/u32-cmp: Likewise.
22579         * modules/unistr/u32-cmp2: Likewise.
22580         * modules/unistr/u32-cpy: Likewise.
22581         * modules/unistr/u32-cpy-alloc: Likewise.
22582         * modules/unistr/u32-endswith: Likewise.
22583         * modules/unistr/u32-mblen: Likewise.
22584         * modules/unistr/u32-mbsnlen: Likewise.
22585         * modules/unistr/u32-mbtouc: Likewise.
22586         * modules/unistr/u32-mbtouc-unsafe: Likewise.
22587         * modules/unistr/u32-mbtoucr: Likewise.
22588         * modules/unistr/u32-move: Likewise.
22589         * modules/unistr/u32-next: Likewise.
22590         * modules/unistr/u32-prev: Likewise.
22591         * modules/unistr/u32-set: Likewise.
22592         * modules/unistr/u32-startswith: Likewise.
22593         * modules/unistr/u32-stpcpy: Likewise.
22594         * modules/unistr/u32-stpncpy: Likewise.
22595         * modules/unistr/u32-strcat: Likewise.
22596         * modules/unistr/u32-strchr: Likewise.
22597         * modules/unistr/u32-strcmp: Likewise.
22598         * modules/unistr/u32-strcoll: Likewise.
22599         * modules/unistr/u32-strcpy: Likewise.
22600         * modules/unistr/u32-strcspn: Likewise.
22601         * modules/unistr/u32-strdup: Likewise.
22602         * modules/unistr/u32-strlen: Likewise.
22603         * modules/unistr/u32-strmblen: Likewise.
22604         * modules/unistr/u32-strmbtouc: Likewise.
22605         * modules/unistr/u32-strncat: Likewise.
22606         * modules/unistr/u32-strncmp: Likewise.
22607         * modules/unistr/u32-strncpy: Likewise.
22608         * modules/unistr/u32-strnlen: Likewise.
22609         * modules/unistr/u32-strpbrk: Likewise.
22610         * modules/unistr/u32-strrchr: Likewise.
22611         * modules/unistr/u32-strspn: Likewise.
22612         * modules/unistr/u32-strstr: Likewise.
22613         * modules/unistr/u32-strtok: Likewise.
22614         * modules/unistr/u32-to-u16: Likewise.
22615         * modules/unistr/u32-to-u8: Likewise.
22616         * modules/unistr/u32-uctomb: Likewise.
22617         * modules/uniwbrk/u8-wordbreaks: Likewise.
22618         * modules/uniwbrk/u16-wordbreaks: Likewise.
22619         * modules/uniwbrk/u32-wordbreaks: Likewise.
22620         * modules/uniwbrk/ulc-wordbreaks: Likewise.
22621         * modules/uniwbrk/wordbreak-property: Likewise.
22622         * modules/uniwidth/u8-strwidth: Likewise.
22623         * modules/uniwidth/u8-width: Likewise.
22624         * modules/uniwidth/u16-strwidth: Likewise.
22625         * modules/uniwidth/u16-width: Likewise.
22626         * modules/uniwidth/u32-strwidth: Likewise.
22627         * modules/uniwidth/u32-width: Likewise.
22628         * modules/uniwidth/width: Likewise.
22629         * modules/unicase/cased-tests (Makefile.am): Link all test programs
22630         with $(LIBUNISTRING).
22631         * modules/unicase/ignorable-tests: Likewise.
22632         * modules/unicase/locale-language-tests: Likewise.
22633         * modules/unicase/tolower-tests: Likewise.
22634         * modules/unicase/totitle-tests: Likewise.
22635         * modules/unicase/toupper-tests: Likewise.
22636         * modules/unicase/u8-casecmp-tests: Likewise.
22637         * modules/unicase/u8-casecoll-tests: Likewise.
22638         * modules/unicase/u8-casefold-tests: Likewise.
22639         * modules/unicase/u8-is-cased-tests: Likewise.
22640         * modules/unicase/u8-is-casefolded-tests: Likewise.
22641         * modules/unicase/u8-is-lowercase-tests: Likewise.
22642         * modules/unicase/u8-is-titlecase-tests: Likewise.
22643         * modules/unicase/u8-is-uppercase-tests: Likewise.
22644         * modules/unicase/u8-tolower-tests: Likewise.
22645         * modules/unicase/u8-totitle-tests: Likewise.
22646         * modules/unicase/u8-toupper-tests: Likewise.
22647         * modules/unicase/u16-casecmp-tests: Likewise.
22648         * modules/unicase/u16-casecoll-tests: Likewise.
22649         * modules/unicase/u16-casefold-tests: Likewise.
22650         * modules/unicase/u16-is-cased-tests: Likewise.
22651         * modules/unicase/u16-is-casefolded-tests: Likewise.
22652         * modules/unicase/u16-is-lowercase-tests: Likewise.
22653         * modules/unicase/u16-is-titlecase-tests: Likewise.
22654         * modules/unicase/u16-is-uppercase-tests: Likewise.
22655         * modules/unicase/u16-tolower-tests: Likewise.
22656         * modules/unicase/u16-totitle-tests: Likewise.
22657         * modules/unicase/u16-toupper-tests: Likewise.
22658         * modules/unicase/u32-casecmp-tests: Likewise.
22659         * modules/unicase/u32-casecoll-tests: Likewise.
22660         * modules/unicase/u32-casefold-tests: Likewise.
22661         * modules/unicase/u32-is-cased-tests: Likewise.
22662         * modules/unicase/u32-is-casefolded-tests: Likewise.
22663         * modules/unicase/u32-is-lowercase-tests: Likewise.
22664         * modules/unicase/u32-is-titlecase-tests: Likewise.
22665         * modules/unicase/u32-is-uppercase-tests: Likewise.
22666         * modules/unicase/u32-tolower-tests: Likewise.
22667         * modules/unicase/u32-totitle-tests: Likewise.
22668         * modules/unicase/u32-toupper-tests: Likewise.
22669         * modules/unicase/ulc-casecmp-tests: Likewise.
22670         * modules/unicase/ulc-casecoll-tests: Likewise.
22671         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
22672         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
22673         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
22674         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
22675         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
22676         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
22677         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
22678         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
22679         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
22680         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
22681         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
22682         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
22683         * modules/unictype/bidicategory-byname-tests: Likewise.
22684         * modules/unictype/bidicategory-name-tests: Likewise.
22685         * modules/unictype/bidicategory-of-tests: Likewise.
22686         * modules/unictype/bidicategory-test-tests: Likewise.
22687         * modules/unictype/block-list-tests: Likewise.
22688         * modules/unictype/block-of-tests: Likewise.
22689         * modules/unictype/block-test-tests: Likewise.
22690         * modules/unictype/category-C-tests: Likewise.
22691         * modules/unictype/category-Cc-tests: Likewise.
22692         * modules/unictype/category-Cf-tests: Likewise.
22693         * modules/unictype/category-Cn-tests: Likewise.
22694         * modules/unictype/category-Co-tests: Likewise.
22695         * modules/unictype/category-Cs-tests: Likewise.
22696         * modules/unictype/category-L-tests: Likewise.
22697         * modules/unictype/category-Ll-tests: Likewise.
22698         * modules/unictype/category-Lm-tests: Likewise.
22699         * modules/unictype/category-Lo-tests: Likewise.
22700         * modules/unictype/category-Lt-tests: Likewise.
22701         * modules/unictype/category-Lu-tests: Likewise.
22702         * modules/unictype/category-M-tests: Likewise.
22703         * modules/unictype/category-Mc-tests: Likewise.
22704         * modules/unictype/category-Me-tests: Likewise.
22705         * modules/unictype/category-Mn-tests: Likewise.
22706         * modules/unictype/category-N-tests: Likewise.
22707         * modules/unictype/category-Nd-tests: Likewise.
22708         * modules/unictype/category-Nl-tests: Likewise.
22709         * modules/unictype/category-No-tests: Likewise.
22710         * modules/unictype/category-P-tests: Likewise.
22711         * modules/unictype/category-Pc-tests: Likewise.
22712         * modules/unictype/category-Pd-tests: Likewise.
22713         * modules/unictype/category-Pe-tests: Likewise.
22714         * modules/unictype/category-Pf-tests: Likewise.
22715         * modules/unictype/category-Pi-tests: Likewise.
22716         * modules/unictype/category-Po-tests: Likewise.
22717         * modules/unictype/category-Ps-tests: Likewise.
22718         * modules/unictype/category-S-tests: Likewise.
22719         * modules/unictype/category-Sc-tests: Likewise.
22720         * modules/unictype/category-Sk-tests: Likewise.
22721         * modules/unictype/category-Sm-tests: Likewise.
22722         * modules/unictype/category-So-tests: Likewise.
22723         * modules/unictype/category-Z-tests: Likewise.
22724         * modules/unictype/category-Zl-tests: Likewise.
22725         * modules/unictype/category-Zp-tests: Likewise.
22726         * modules/unictype/category-Zs-tests: Likewise.
22727         * modules/unictype/category-and-not-tests: Likewise.
22728         * modules/unictype/category-and-tests: Likewise.
22729         * modules/unictype/category-byname-tests: Likewise.
22730         * modules/unictype/category-name-tests: Likewise.
22731         * modules/unictype/category-none-tests: Likewise.
22732         * modules/unictype/category-of-tests: Likewise.
22733         * modules/unictype/category-or-tests: Likewise.
22734         * modules/unictype/category-test-withtable-tests: Likewise.
22735         * modules/unictype/combining-class-tests: Likewise.
22736         * modules/unictype/ctype-alnum-tests: Likewise.
22737         * modules/unictype/ctype-alpha-tests: Likewise.
22738         * modules/unictype/ctype-blank-tests: Likewise.
22739         * modules/unictype/ctype-cntrl-tests: Likewise.
22740         * modules/unictype/ctype-digit-tests: Likewise.
22741         * modules/unictype/ctype-graph-tests: Likewise.
22742         * modules/unictype/ctype-lower-tests: Likewise.
22743         * modules/unictype/ctype-print-tests: Likewise.
22744         * modules/unictype/ctype-punct-tests: Likewise.
22745         * modules/unictype/ctype-space-tests: Likewise.
22746         * modules/unictype/ctype-upper-tests: Likewise.
22747         * modules/unictype/ctype-xdigit-tests: Likewise.
22748         * modules/unictype/decimal-digit-tests: Likewise.
22749         * modules/unictype/digit-tests: Likewise.
22750         * modules/unictype/mirror-tests: Likewise.
22751         * modules/unictype/numeric-tests: Likewise.
22752         * modules/unictype/property-alphabetic-tests: Likewise.
22753         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
22754         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
22755         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
22756         * modules/unictype/property-bidi-block-separator-tests: Likewise.
22757         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
22758         * modules/unictype/property-bidi-common-separator-tests: Likewise.
22759         * modules/unictype/property-bidi-control-tests: Likewise.
22760         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
22761         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
22762         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
22763         * modules/unictype/property-bidi-european-digit-tests: Likewise.
22764         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
22765         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
22766         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
22767         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
22768         * modules/unictype/property-bidi-pdf-tests: Likewise.
22769         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
22770         * modules/unictype/property-bidi-whitespace-tests: Likewise.
22771         * modules/unictype/property-byname-tests: Likewise.
22772         * modules/unictype/property-combining-tests: Likewise.
22773         * modules/unictype/property-composite-tests: Likewise.
22774         * modules/unictype/property-currency-symbol-tests: Likewise.
22775         * modules/unictype/property-dash-tests: Likewise.
22776         * modules/unictype/property-decimal-digit-tests: Likewise.
22777         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
22778         * modules/unictype/property-deprecated-tests: Likewise.
22779         * modules/unictype/property-diacritic-tests: Likewise.
22780         * modules/unictype/property-extender-tests: Likewise.
22781         * modules/unictype/property-format-control-tests: Likewise.
22782         * modules/unictype/property-grapheme-base-tests: Likewise.
22783         * modules/unictype/property-grapheme-extend-tests: Likewise.
22784         * modules/unictype/property-grapheme-link-tests: Likewise.
22785         * modules/unictype/property-hex-digit-tests: Likewise.
22786         * modules/unictype/property-hyphen-tests: Likewise.
22787         * modules/unictype/property-id-continue-tests: Likewise.
22788         * modules/unictype/property-id-start-tests: Likewise.
22789         * modules/unictype/property-ideographic-tests: Likewise.
22790         * modules/unictype/property-ids-binary-operator-tests: Likewise.
22791         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
22792         * modules/unictype/property-ignorable-control-tests: Likewise.
22793         * modules/unictype/property-iso-control-tests: Likewise.
22794         * modules/unictype/property-join-control-tests: Likewise.
22795         * modules/unictype/property-left-of-pair-tests: Likewise.
22796         * modules/unictype/property-line-separator-tests: Likewise.
22797         * modules/unictype/property-logical-order-exception-tests: Likewise.
22798         * modules/unictype/property-lowercase-tests: Likewise.
22799         * modules/unictype/property-math-tests: Likewise.
22800         * modules/unictype/property-non-break-tests: Likewise.
22801         * modules/unictype/property-not-a-character-tests: Likewise.
22802         * modules/unictype/property-numeric-tests: Likewise.
22803         * modules/unictype/property-other-alphabetic-tests: Likewise.
22804         * modules/unictype/property-other-default-ignorable-code-point-tests:
22805         Likewise.
22806         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
22807         * modules/unictype/property-other-id-continue-tests: Likewise.
22808         * modules/unictype/property-other-id-start-tests: Likewise.
22809         * modules/unictype/property-other-lowercase-tests: Likewise.
22810         * modules/unictype/property-other-math-tests: Likewise.
22811         * modules/unictype/property-other-uppercase-tests: Likewise.
22812         * modules/unictype/property-paired-punctuation-tests: Likewise.
22813         * modules/unictype/property-paragraph-separator-tests: Likewise.
22814         * modules/unictype/property-pattern-syntax-tests: Likewise.
22815         * modules/unictype/property-pattern-white-space-tests: Likewise.
22816         * modules/unictype/property-private-use-tests: Likewise.
22817         * modules/unictype/property-punctuation-tests: Likewise.
22818         * modules/unictype/property-quotation-mark-tests: Likewise.
22819         * modules/unictype/property-radical-tests: Likewise.
22820         * modules/unictype/property-sentence-terminal-tests: Likewise.
22821         * modules/unictype/property-soft-dotted-tests: Likewise.
22822         * modules/unictype/property-space-tests: Likewise.
22823         * modules/unictype/property-terminal-punctuation-tests: Likewise.
22824         * modules/unictype/property-test-tests: Likewise.
22825         * modules/unictype/property-titlecase-tests: Likewise.
22826         * modules/unictype/property-unassigned-code-value-tests: Likewise.
22827         * modules/unictype/property-unified-ideograph-tests: Likewise.
22828         * modules/unictype/property-uppercase-tests: Likewise.
22829         * modules/unictype/property-variation-selector-tests: Likewise.
22830         * modules/unictype/property-white-space-tests: Likewise.
22831         * modules/unictype/property-xid-continue-tests: Likewise.
22832         * modules/unictype/property-xid-start-tests: Likewise.
22833         * modules/unictype/property-zero-width-tests: Likewise.
22834         * modules/unictype/scripts-tests: Likewise.
22835         * modules/unictype/syntax-c-ident-tests: Likewise.
22836         * modules/unictype/syntax-c-whitespace-tests: Likewise.
22837         * modules/unictype/syntax-java-ident-tests: Likewise.
22838         * modules/unictype/syntax-java-whitespace-tests: Likewise.
22839         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
22840         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
22841         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
22842         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
22843         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
22844         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
22845         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
22846         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
22847         * modules/uniname/uniname-tests: Likewise.
22848         * modules/uninorm/canonical-decomposition-tests: Likewise.
22849         * modules/uninorm/compat-decomposition-tests: Likewise.
22850         * modules/uninorm/composition-tests: Likewise.
22851         * modules/uninorm/decomposing-form-tests: Likewise.
22852         * modules/uninorm/decomposition-tests: Likewise.
22853         * modules/uninorm/filter-tests: Likewise.
22854         * modules/uninorm/nfc-tests: Likewise.
22855         * modules/uninorm/nfd-tests: Likewise.
22856         * modules/uninorm/nfkc-tests: Likewise.
22857         * modules/uninorm/nfkd-tests: Likewise.
22858         * modules/uninorm/u8-normcmp-tests: Likewise.
22859         * modules/uninorm/u8-normcoll-tests: Likewise.
22860         * modules/uninorm/u16-normcmp-tests: Likewise.
22861         * modules/uninorm/u16-normcoll-tests: Likewise.
22862         * modules/uninorm/u32-normcmp-tests: Likewise.
22863         * modules/uninorm/u32-normcoll-tests: Likewise.
22864         * modules/unistdio/u8-asnprintf-tests: Likewise.
22865         * modules/unistdio/u8-vasnprintf-tests: Likewise.
22866         * modules/unistdio/u8-vasprintf-tests: Likewise.
22867         * modules/unistdio/u8-vsnprintf-tests: Likewise.
22868         * modules/unistdio/u8-vsprintf-tests: Likewise.
22869         * modules/unistdio/u16-asnprintf-tests: Likewise.
22870         * modules/unistdio/u16-vasnprintf-tests: Likewise.
22871         * modules/unistdio/u16-vasprintf-tests: Likewise.
22872         * modules/unistdio/u16-vsnprintf-tests: Likewise.
22873         * modules/unistdio/u16-vsprintf-tests: Likewise.
22874         * modules/unistdio/u32-asnprintf-tests: Likewise.
22875         * modules/unistdio/u32-vasnprintf-tests: Likewise.
22876         * modules/unistdio/u32-vasprintf-tests: Likewise.
22877         * modules/unistdio/u32-vsnprintf-tests: Likewise.
22878         * modules/unistdio/u32-vsprintf-tests: Likewise.
22879         * modules/unistdio/ulc-asnprintf-tests: Likewise.
22880         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
22881         * modules/unistdio/ulc-vasprintf-tests: Likewise.
22882         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
22883         * modules/unistdio/ulc-vsprintf-tests: Likewise.
22884         * modules/unistr/u8-check-tests: Likewise.
22885         * modules/unistr/u8-chr-tests: Likewise.
22886         * modules/unistr/u8-cmp-tests: Likewise.
22887         * modules/unistr/u8-cmp2-tests: Likewise.
22888         * modules/unistr/u8-cpy-alloc-tests: Likewise.
22889         * modules/unistr/u8-cpy-tests: Likewise.
22890         * modules/unistr/u8-mblen-tests: Likewise.
22891         * modules/unistr/u8-mbsnlen-tests: Likewise.
22892         * modules/unistr/u8-mbtouc-tests: Likewise.
22893         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
22894         * modules/unistr/u8-mbtoucr-tests: Likewise.
22895         * modules/unistr/u8-move-tests: Likewise.
22896         * modules/unistr/u8-next-tests: Likewise.
22897         * modules/unistr/u8-prev-tests: Likewise.
22898         * modules/unistr/u8-set-tests: Likewise.
22899         * modules/unistr/u8-stpcpy-tests: Likewise.
22900         * modules/unistr/u8-stpncpy-tests: Likewise.
22901         * modules/unistr/u8-strcat-tests: Likewise.
22902         * modules/unistr/u8-strcmp-tests: Likewise.
22903         * modules/unistr/u8-strcoll-tests: Likewise.
22904         * modules/unistr/u8-strcpy-tests: Likewise.
22905         * modules/unistr/u8-strdup-tests: Likewise.
22906         * modules/unistr/u8-strlen-tests: Likewise.
22907         * modules/unistr/u8-strmblen-tests: Likewise.
22908         * modules/unistr/u8-strmbtouc-tests: Likewise.
22909         * modules/unistr/u8-strncat-tests: Likewise.
22910         * modules/unistr/u8-strncmp-tests: Likewise.
22911         * modules/unistr/u8-strncpy-tests: Likewise.
22912         * modules/unistr/u8-strnlen-tests: Likewise.
22913         * modules/unistr/u8-to-u16-tests: Likewise.
22914         * modules/unistr/u8-to-u32-tests: Likewise.
22915         * modules/unistr/u8-uctomb-tests: Likewise.
22916         * modules/unistr/u16-check-tests: Likewise.
22917         * modules/unistr/u16-chr-tests: Likewise.
22918         * modules/unistr/u16-cmp-tests: Likewise.
22919         * modules/unistr/u16-cmp2-tests: Likewise.
22920         * modules/unistr/u16-cpy-alloc-tests: Likewise.
22921         * modules/unistr/u16-cpy-tests: Likewise.
22922         * modules/unistr/u16-mblen-tests: Likewise.
22923         * modules/unistr/u16-mbsnlen-tests: Likewise.
22924         * modules/unistr/u16-mbtouc-tests: Likewise.
22925         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
22926         * modules/unistr/u16-mbtoucr-tests: Likewise.
22927         * modules/unistr/u16-move-tests: Likewise.
22928         * modules/unistr/u16-next-tests: Likewise.
22929         * modules/unistr/u16-prev-tests: Likewise.
22930         * modules/unistr/u16-set-tests: Likewise.
22931         * modules/unistr/u16-stpcpy-tests: Likewise.
22932         * modules/unistr/u16-stpncpy-tests: Likewise.
22933         * modules/unistr/u16-strcat-tests: Likewise.
22934         * modules/unistr/u16-strcmp-tests: Likewise.
22935         * modules/unistr/u16-strcoll-tests: Likewise.
22936         * modules/unistr/u16-strcpy-tests: Likewise.
22937         * modules/unistr/u16-strdup-tests: Likewise.
22938         * modules/unistr/u16-strlen-tests: Likewise.
22939         * modules/unistr/u16-strmblen-tests: Likewise.
22940         * modules/unistr/u16-strmbtouc-tests: Likewise.
22941         * modules/unistr/u16-strncat-tests: Likewise.
22942         * modules/unistr/u16-strncmp-tests: Likewise.
22943         * modules/unistr/u16-strncpy-tests: Likewise.
22944         * modules/unistr/u16-strnlen-tests: Likewise.
22945         * modules/unistr/u16-to-u32-tests: Likewise.
22946         * modules/unistr/u16-to-u8-tests: Likewise.
22947         * modules/unistr/u16-uctomb-tests: Likewise.
22948         * modules/unistr/u32-check-tests: Likewise.
22949         * modules/unistr/u32-chr-tests: Likewise.
22950         * modules/unistr/u32-cmp-tests: Likewise.
22951         * modules/unistr/u32-cmp2-tests: Likewise.
22952         * modules/unistr/u32-cpy-alloc-tests: Likewise.
22953         * modules/unistr/u32-cpy-tests: Likewise.
22954         * modules/unistr/u32-mblen-tests: Likewise.
22955         * modules/unistr/u32-mbsnlen-tests: Likewise.
22956         * modules/unistr/u32-mbtouc-tests: Likewise.
22957         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
22958         * modules/unistr/u32-mbtoucr-tests: Likewise.
22959         * modules/unistr/u32-move-tests: Likewise.
22960         * modules/unistr/u32-next-tests: Likewise.
22961         * modules/unistr/u32-prev-tests: Likewise.
22962         * modules/unistr/u32-set-tests: Likewise.
22963         * modules/unistr/u32-stpcpy-tests: Likewise.
22964         * modules/unistr/u32-stpncpy-tests: Likewise.
22965         * modules/unistr/u32-strcat-tests: Likewise.
22966         * modules/unistr/u32-strcmp-tests: Likewise.
22967         * modules/unistr/u32-strcoll-tests: Likewise.
22968         * modules/unistr/u32-strcpy-tests: Likewise.
22969         * modules/unistr/u32-strdup-tests: Likewise.
22970         * modules/unistr/u32-strlen-tests: Likewise.
22971         * modules/unistr/u32-strmblen-tests: Likewise.
22972         * modules/unistr/u32-strmbtouc-tests: Likewise.
22973         * modules/unistr/u32-strncat-tests: Likewise.
22974         * modules/unistr/u32-strncmp-tests: Likewise.
22975         * modules/unistr/u32-strncpy-tests: Likewise.
22976         * modules/unistr/u32-strnlen-tests: Likewise.
22977         * modules/unistr/u32-to-u16-tests: Likewise.
22978         * modules/unistr/u32-to-u8-tests: Likewise.
22979         * modules/unistr/u32-uctomb-tests: Likewise.
22980         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
22981         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
22982         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
22983         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
22984         * modules/uniwidth/u8-strwidth-tests: Likewise.
22985         * modules/uniwidth/u8-width-tests: Likewise.
22986         * modules/uniwidth/u16-strwidth-tests: Likewise.
22987         * modules/uniwidth/u16-width-tests: Likewise.
22988         * modules/uniwidth/u32-strwidth-tests: Likewise.
22989         * modules/uniwidth/u32-width-tests: Likewise.
22990         * modules/uniwidth/width-tests: Likewise.
22991
22992 2010-05-18  Richard Jones  <rjones@redhat.com>
22993
22994         doc: users.txt: list hivex
22995         * users.txt: Add hivex.
22996
22997 2010-05-18  Richard Jones  <rjones@redhat.com>
22998
22999         doc: users.txt: list febootstrap
23000         * users.txt: Add febootstrap.
23001
23002 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23003
23004         bootstrap: fix an error when gnulib is not used as a git submodule
23005         * build-aux/bootstrap (gnulib_path): If its length is zero then
23006         assign "gnulib" to it.
23007         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23008
23009 2010-05-16  Bruno Haible  <bruno@clisp.org>
23010
23011         Avoid autoconf warnings about AM_ICONV.
23012         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23013         2.64.
23014
23015 2010-05-16  Bruno Haible  <bruno@clisp.org>
23016
23017         absolute-header: Make the macro usable in more situations.
23018         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23019         from gl_ABSOLUTE_HEADER.
23020         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23021
23022 2010-05-16  James Youngman  <jay@gnu.org>
23023
23024         doc: update users.txt
23025         * users.txt: Add CSSC.
23026
23027 2010-05-16  Jim Meyering  <meyering@redhat.com>
23028
23029         init.sh: fix an error in the previous change; add more comments
23030         * tests/init.sh: Compare exit code in loop against 9, not 2.
23031         Patch by Bruno Haible.
23032         Make the two tests more similar by adding an empty "then" clause.
23033         Add comments.
23034
23035         init.sh: avoid unnecessary shell re-exec
23036         * tests/init.sh: Improve the re-exec-required check to first test the
23037         current shell.  If it passes the test, do not search for a shell that
23038         does pass, and do not re-exec.  This test is particularly contorted to
23039         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23040         of $(...) evokes a syntax error and causes immediate shell exit with
23041         status 2.  Bruno Haible reported that the re-exec made it impossible
23042         to single-step through any init.sh-using script.
23043
23044 2010-05-16  Bruno Haible  <bruno@clisp.org>
23045
23046         Fix collision between gnulib's and libintl's printf replacements.
23047         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23048         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23049         (printf): When using GNU C, map the __printf__ function to rpl_printf
23050         via __asm__. When not using GNU C, define rpl_printf instead of
23051         __printf__.
23052         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23053         commit.
23054         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23055         commit.
23056         * m4/asm-underscore.m4: New file.
23057         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23058         * modules/stdio (Files): Add m4/asm-underscore.m4.
23059         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23060         Reported by Ben Pfaff.
23061
23062 2010-05-16  Bruno Haible  <bruno@clisp.org>
23063
23064         verify: Avoid skipping the test on openSUSE 11.0.
23065         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23066
23067 2010-05-13  Bruno Haible  <bruno@clisp.org>
23068
23069         Avoid useless warnings from G++.
23070         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23071         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23072         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23073
23074 2010-05-11  Jim Meyering  <meyering@redhat.com>
23075
23076         maint.mk: tweak preceding change
23077         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23078         regexps tighter by anchoring at EOL, and make the new group "shy"
23079         for slightly decreased overhead.
23080
23081 2010-05-11  Eric Blake  <eblake@redhat.com>
23082
23083         maint.mk: gnulib doesn't guarantee NSIG
23084         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23085
23086 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23087
23088         test-pwrite.c: Remove unused variable declaration.
23089         * tests/test-pwrite.c (main): Remove read_buf declaration.
23090
23091         Remove useless test-pwrite.sh file.
23092         * tests/test-pwrite.sh: Delete file.
23093         * modules/pwrite-tests: Remove references.
23094         Reported by Bruno Haible.
23095
23096 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23097
23098         init.sh: fix a typo
23099         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23100
23101 2010-05-10  Jim Meyering  <meyering@redhat.com>
23102
23103         maint.mk: avoid using a temporary file in the always-defined-macros check
23104         * top/maint.mk (.re-defmac): Remove rule.
23105         (gl_trap_): Remove definition.
23106         (sc_prohibit_always-defined_macros): Rewrite not to create and
23107         depend on a temporary file.  Instead, depend on GNU grep's ability
23108         to read a list of regular expressions from stdin when given "-f -".
23109
23110 2010-05-09  Bruno Haible  <bruno@clisp.org>
23111
23112         Update to GNU gettext 0.18, part 1.
23113         * m4/gettext.m4: Update to GNU gettext 0.18.
23114         * m4/intl.m4: Likewise.
23115         * m4/po.m4: Likewise.
23116         * modules/gettext (Files): Add m4/fcntl-o.m4.
23117         (configure.ac): Require gettext infrastructure from version 0.18.
23118
23119 2010-05-09  Jim Meyering  <meyering@redhat.com>
23120
23121         init.sh: enable MALLOC_PERTURB_
23122         * tests/init.sh: Enable glibc's malloc-perturbing option.
23123
23124         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23125         With my recent change in init.sh from the two-line form:
23126             -#   : ${srcdir=.}
23127             -#   . "$srcdir/init.sh"; path_prepend_ .
23128             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23129         I noticed that using the one-line form would cause this test
23130         to fail with a false-positive, or to stop working altogether,
23131         depending on whether help-version changed or all the tests did.
23132         * top/maint.mk (_hv_regex): Remove this definition.
23133         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23134         (_hv_regex_strong): Use a stronger regex to check for conformance.
23135         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23136         Give a separate diagnostic for lack of conforming use.
23137
23138         maint.mk: prohibit definition of symbols defined by gnulib
23139         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23140         definition of symbols defined by gnulib.
23141
23142 2010-05-09  Bruno Haible  <bruno@clisp.org>
23143
23144         acl: Avoid test failure on Cygwin-hosted mingw.
23145         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23146
23147 2010-05-09  Bruno Haible  <bruno@clisp.org>
23148
23149         error: Use system's fcntl function.
23150         * lib/error.c (fcntl): Undefine.
23151
23152 2010-05-09  Jim Meyering  <meyering@redhat.com>
23153
23154         verify: adjust formatting to be more consistent
23155         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23156         argument-list '('s, and after one comma.
23157
23158 2010-05-09  Bruno Haible  <bruno@clisp.org>
23159
23160         error: More reliable output on mingw.
23161         * lib/error.c: Include <windows.h>.
23162         (is_open): New function.
23163         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23164         defined.
23165
23166 2010-05-09  Bruno Haible  <bruno@clisp.org>
23167
23168         vasnprintf: Fix syntax errors in libintl build on mingw.
23169         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23170         pad_ourselves and prec_ourselves after use.
23171
23172 2010-05-08  Bruno Haible  <bruno@clisp.org>
23173
23174         * lib/config.charset: Update comments for Cygwin 1.7.
23175         * lib/localcharset.c: Likewise.
23176
23177 2010-05-07  Jim Meyering  <meyering@redhat.com>
23178
23179         init.sh: improve comments
23180         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23181         . "${srcdir=.}/init.sh"; path_prepend_ .
23182         Add a note about path_prepend_ and the alternative of using
23183         TESTS_ENVIRONMENT.
23184
23185 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23186
23187         exclude: Unescape hashed patterns in wildcard mode.
23188         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23189         to the hash list.
23190         * tests/test-exclude8.sh: New test case.
23191         * modules/exclude-tests: Add new test.
23192
23193 2010-05-05  Eric Blake  <eblake@redhat.com>
23194
23195         verify: automate tests
23196         * modules/verify-tests: New module.
23197         * tests/test-verify.sh: New file.
23198         * tests/test-verify.c: Guard each negative test with a unique id.
23199         Also avoid warning about unused left hand of comma expressions.
23200
23201 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23202
23203         Further improvements to verify.h, suggested by Eric Blake.
23204         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23205         the GL_* versions, to avoid collision with OpenGL.
23206         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23207         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23208         than testing merely whether it's defined.
23209
23210         Modify verify.h to pacify gcc -Wredundant_decls.
23211         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23212         These use the prefix "GL_" since they're likely to be useful elsewhere.
23213         We may need to break them out into a different .h file.
23214         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23215         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23216         of verify_function__.
23217
23218 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23219
23220         Tests for module pwrite.
23221         * modules/pwrite-tests: New file.
23222         * tests/test-pwrite.sh: New file.
23223         * tests/test-pwrite.c: New file.
23224
23225         New module pwrite.
23226         * lib/unistd.in.h (pwrite): New declaration.
23227         * lib/pwrite.c: New file, from glibc with modifications.
23228         * m4/pwrite.m4: New file.
23229         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23230         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23231         REPLACE_PWRITE.
23232         * modules/pwrite: New file.
23233         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23234         REPLACE_PWRITE.
23235         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23236         * doc/posix-functions/pwrite.texi: Mention the new module.
23237
23238 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23239
23240         pread: Update documentation.
23241         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23242
23243 2010-05-04  Eric Blake  <eblake@redhat.com>
23244
23245         docs: update cygwin progress
23246         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23247         this bug.
23248         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23249         Added in cygwin 1.7.2.
23250         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23251         Likewise.
23252         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23253         Likewise.
23254         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23255         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23256         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23257         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23258         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23259         Mention nproc module.
23260         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23261         bug in cygwin 1.7.5 addition.
23262         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23263         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23264         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23265         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23266         1.7.5.
23267         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23268         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23269         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23270         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23271         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23272         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23273         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23274         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23275         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23276         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23277         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23278         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23279         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23280         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23281         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23282         Likewise.
23283         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23284         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23285         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23286         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23287         Likewise.
23288         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23289         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23290         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23291         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23292         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23293         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23294         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23295         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23296         Likewise.
23297         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23298         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23299         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23300         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23301         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23302         Likewise.
23303         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23304         Likewise.
23305         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23306         Likewise.
23307         * doc/glibc-functions/xdrrec_endofrecord.texi
23308         (xdrrec_endofrecord): Likewise.
23309         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23310         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23311         Likewise.
23312         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23313         Likewise.
23314
23315 2010-05-04  Jim Meyering  <meyering@redhat.com>
23316
23317         gendocs.sh: make its "-s FILE" option more useful
23318         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23319         $PACKAGE to reflect the probably-different basename of "FILE".
23320
23321 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23322
23323         bootstrap: don't ignore download_po_files failure
23324         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23325         failure.
23326
23327 2010-05-03  Jim Meyering  <meyering@redhat.com>
23328
23329         maint.mk: allow to pass options to gendocs.sh
23330         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23331         (gendocs_options_): New overridable variable.
23332
23333         gnu-web-doc-update: don't ignore configure or build failure
23334         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23335
23336         announce-gen: backslash-escape '@'s in --help output
23337         * build-aux/announce-gen: Fix syntax errors.
23338
23339         maint.mk, announce-gen: allow project-specific announcement mail headers
23340         * top/maint.mk (translation_project_): Define default.
23341         (announcement_Cc_, announcement_mail_headers_): Likewise.
23342         (announcement): Invoke announce-gen with new --mail-headers option.
23343         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23344
23345         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23346         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23347         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23348         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23349         line in the "err2" output file when running "make check" in verbose
23350         mode (i.e., with set -x enabled).
23351
23352 2010-05-03  Bruno Haible  <bruno@clisp.org>
23353
23354         wctob: Fix for weird platforms.
23355         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23356         argument value.
23357
23358 2010-05-03  Jim Meyering  <meyering@redhat.com>
23359
23360         maint.mk: prohibit unwarranted use of <strings.h>
23361         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23362         strings.h in a file that does not also use strcasecmp, strncasecmp,
23363         ffs or ffsll.
23364
23365         maint.mk: remove obsolete comments
23366         * top/maint.mk: Remove stale, commented-out rules.
23367
23368 2010-05-02  Bruno Haible  <bruno@clisp.org>
23369
23370         wcwidth: Declare also when it's aliased.
23371         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23372         macro.
23373
23374 2010-05-02  Bruno Haible  <bruno@clisp.org>
23375
23376         Fix regression from 2010-04-25.
23377         * gnulib-tool (func_modules_transitive_closure): Check the status of
23378         all modules, not only of the tests that are of the form foo-tests where
23379         foo is a module.
23380
23381 2010-05-02  Bruno Haible  <bruno@clisp.org>
23382
23383         wctob: Work around nasty Cygwin 1.7.2 bug.
23384         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23385         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23386
23387 2010-05-01  Bruno Haible  <bruno@clisp.org>
23388
23389         fpurge: Sharper test.
23390         * tests/test-fpurge.c (main): Add one more ftell check.
23391         * modules/fpurge-tests (Depends-on): Add ftell.
23392         Suggested by Eric Blake.
23393
23394 2010-05-01  Bruno Haible  <bruno@clisp.org>
23395
23396         ftello: Another test.
23397         * tests/test-ftello3.c: New file.
23398         * modules/ftello-tests (Files): Add it.
23399         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23400         MOSTLYCLEANFILES.
23401
23402         ftell: Another test.
23403         * tests/test-ftell3.c: New file.
23404         * modules/ftell-tests (Files): Add it.
23405         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23406         MOSTLYCLEANFILES.
23407
23408 2010-05-01  Bruno Haible  <bruno@clisp.org>
23409
23410         ftell, ftello: Work around Solaris bug.
23411         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23412         * lib/ftello.c: Include stdio-impl.h.
23413         (ftello): On Solaris, when _IOWRT is set, compute the result without
23414         looking at _IOREAD.
23415         * modules/ftello (Files): Add lib/stdio-impl.h.
23416         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23417         * doc/posix-functions/ftello.texi: Likewise.
23418         Reported by Eric Blake.
23419
23420 2010-05-01  Bruno Haible  <bruno@clisp.org>
23421
23422         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23423         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23424         the _IOWRT flag is also set.
23425
23426 2010-05-01  Bruno Haible  <bruno@clisp.org>
23427
23428         Fix doc about a HP-UX stdio bug.
23429         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23430         * doc/posix-functions/ftello.texi: Likewise.
23431
23432 2010-05-01  Bruno Haible  <bruno@clisp.org>
23433
23434         lseek test: Fix failure on Solaris.
23435         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23436         output.
23437
23438 2010-04-30  Jim Meyering  <meyering@redhat.com>
23439
23440         bootstrap: don't ignore failure to generate po*/Makevars
23441         * build-aux/bootstrap (with_gettext): Don't ignore failure
23442         to create po/Makevars or runtime-po/Makevars.
23443
23444 2010-04-29  Eric Blake  <eblake@redhat.com>
23445
23446         headers: relax license to LGPLv2+
23447         * modules/fcntl-h (License): Relax license.
23448         * modules/getopt-posix (License): Likewise.
23449         * modules/locale (License): Likewise.
23450         * modules/math (License): Likewise.
23451         * modules/pty (License): Likewise.
23452         * modules/sched (License): Likewise.
23453         * modules/search (License): Likewise.
23454         * modules/spawn (License): Likewise.
23455         * modules/stdarg (License): Likewise.
23456         * modules/sysexits (License): Likewise.
23457
23458 2010-04-29  Jim Meyering  <meyering@redhat.com>
23459
23460         inttypes: relax license to LGPLv2+
23461         * modules/inttypes (License): Relax license.
23462
23463 2010-04-29  Simon Josefsson  <simon@josefsson.org>
23464
23465         * top/maint.mk (indent): Run twice to produce idempotent results.
23466
23467 2010-04-28  Bruno Haible  <bruno@clisp.org>
23468
23469         getdate: Generate getdate.c in the source directory.
23470         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
23471         MOSTLYCLEANFILES.
23472         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
23473
23474 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
23475
23476         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
23477         is not declared as a const *; avoid warnings in that case.
23478
23479 2010-04-28  Eric Blake  <eblake@redhat.com>
23480
23481         canonicalize-lgpl: avoid compiler warning
23482         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
23483         declaration' / 'extraneous semicolon' warning with some compilers.
23484         Reported by Andreas Gruenbacher.
23485
23486 2010-04-28  Jim Meyering  <meyering@redhat.com>
23487
23488         init.sh: ensure a more reliable exit status when exiting via trap
23489         * tests/init.sh (setup_): Don't rely on $? in signal handler.
23490         Inspired by patches from Dmitry V. Levin.
23491         Also trap on signal 3 (SIGQUIT).
23492
23493 2010-04-27  Bruno Haible  <bruno@clisp.org>
23494
23495         Update doc about utimes().
23496         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
23497         'utimens' module.
23498         Reported by Andreas Gruenbacher <agruen@suse.de>.
23499
23500 2010-04-27  Eric Blake  <eblake@redhat.com>
23501
23502         full-read, full-write: relax license
23503         * modules/full-read (License): Drop to LGPLv2+.
23504         * modules/full-write (License): Likewise.
23505         * modules/safe-read (License): Likewise.
23506         * modules/safe-write (License): Likewise.
23507
23508         pthread: mention library for linking
23509         * modules/pthread (Link): Mention $(LIB_PTHREAD).
23510
23511 2010-04-27  Jim Meyering  <meyering@redhat.com>
23512
23513         maint.mk: fix a bug introduced in last change
23514         * top/maint.mk (gl_assured_headers_): Now that all names are on
23515         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
23516         is not anchored to end of word, it should be adequate.
23517
23518         maint.mk: avoid side-effect in latest syntax-check
23519         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
23520         to run commands via $(shell...), and hence to incur cost only when
23521         the new rule is actually run.
23522
23523         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
23524         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
23525         and use that to create a regexp used to detect all #if HAVE_..._H uses.
23526         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
23527         (gl_assured_headers_, az_, AZ_): Define.
23528         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
23529
23530 2010-04-26  Jim Meyering  <jim@meyering.net>
23531             Bruno Haible  <bruno@clisp.org>
23532
23533         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
23534         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
23535         Prompted by an exchange with Gilles Espinasse.
23536
23537 2010-04-26  Jim Meyering  <meyering@redhat.com>
23538
23539         git-version-gen: aesthetic tweak
23540         * build-aux/git-version-gen: Use "$nl" rather than a literal,
23541         so that the command remains on a single line.
23542
23543 2010-04-26  Eric Blake  <eblake@redhat.com>
23544
23545         git-version-gen: allow use on EBCDIC hosts
23546         * build-aux/git-version-gen (dirty): Use literal rather than tying
23547         ourselves to ascii.
23548         Reported by Steve Goetze.
23549
23550 2010-04-25  Bruno Haible  <bruno@clisp.org>
23551
23552         netdb: Add support for GNULIB_POSIXCHECK.
23553         * lib/netdb.in.h: Include warn-on-use.h.
23554         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
23555         functions are used when GNULIB_POSIXCHECK is defined and the
23556         getaddrinfo module is not in use.
23557         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
23558         freeaddrinfo, gai_strerror, getnameinfo are declared.
23559         * modules/netdb (Depends-on): Add warn-on-use.
23560         (Makefile.am): Include warn-on-use.h in netdb.h.
23561
23562 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
23563
23564         build: avoid "make check" failure without .git/ directory
23565         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
23566         there is no .git/ directory.
23567
23568 2010-04-25  Bruno Haible  <bruno@clisp.org>
23569
23570         ptsname: Fix misuse of ttyname_r.
23571         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
23572         of errno.
23573
23574 2010-04-25  Bruno Haible  <bruno@clisp.org>
23575
23576         ttyname_r: Make it work on Solaris 10.
23577         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
23578         if the system function has the POSIX declaration. Test whether the
23579         function fails if the buffer is less than 128 bytes large.
23580         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
23581         system's ttyname_r function. Provide a reasonably large buffer.
23582         * modules/ttyname_r (Depends-on): Add extensions.
23583         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
23584
23585 2010-04-25  Bruno Haible  <bruno@clisp.org>
23586
23587         Use the 'extensions' module for some more functions on Solaris.
23588         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
23589         module.
23590         * doc/posix-functions/ctime_r.texi: Likewise.
23591         * doc/posix-functions/getgrgid_r.texi: Likewise.
23592         * doc/posix-functions/getgrnam_r.texi: Likewise.
23593         * doc/posix-functions/getpwnam_r.texi: Likewise.
23594         * doc/posix-functions/getpwuid_r.texi: Likewise.
23595         * doc/posix-functions/readdir_r.texi: Likewise.
23596         * doc/posix-functions/sigwait.texi: Likewise.
23597         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
23598         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
23599
23600 2010-04-25  Bruno Haible  <bruno@clisp.org>
23601
23602         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
23603         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
23604         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
23605         * lib/ttyname_r.c: Include <limits.h>.
23606         (ttyname_r): Define using the system's ttyname_r function, if it exists
23607         and not on Solaris.
23608         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
23609         set.
23610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
23611         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
23612         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
23613         Reported by Simon Josefsson.
23614
23615 2010-04-25  Bruno Haible  <bruno@clisp.org>
23616
23617         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
23618         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
23619         * doc/posix-functions/ctime_r.texi: Likewise.
23620         * doc/posix-functions/getgrgid_r.texi: Likewise.
23621         * doc/posix-functions/getgrnam_r.texi: Likewise.
23622         * doc/posix-functions/getlogin_r.texi: Likewise.
23623         * doc/posix-functions/getpwnam_r.texi: Likewise.
23624         * doc/posix-functions/getpwuid_r.texi: Likewise.
23625         * doc/posix-functions/readdir_r.texi: Likewise.
23626         * doc/posix-functions/sigwait.texi: Likewise.
23627         * doc/posix-functions/ttyname_r.texi: Likewise.
23628         Reported by Simon Josefsson.
23629
23630 2010-04-25  Bruno Haible  <bruno@clisp.org>
23631
23632         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
23633         * gnulib-tool (func_usage): Document that --with-*-tests options apply
23634         also to --create-testdir.
23635         (func_acceptable): Don't consider the status of *-tests modules here.
23636         (func_modules_transitive_closure): Consider it here, before including a
23637         test module.
23638         (func_import, func_create_testdir): Set inc_all_direct_tests,
23639         inc_all_indirect_tests.
23640         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
23641         --create-testdir and --create-megatestdir.
23642
23643 2010-04-25  Bruno Haible  <bruno@clisp.org>
23644
23645         gnulib-tool: Add --without-*-tests options.
23646         * gnulib-tool (func_usage): Document the --without-*-tests options.
23647         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
23648         excl_unportable_tests): New variables.
23649         Fail if they are specified with --import or --update.
23650         (func_acceptable): Respect the excl_*_tests variables.
23651         (func_import): Set the excl_*_tests variables to empty.
23652
23653 2010-04-25  Simon Josefsson  <simon@josefsson.org>
23654             Bruno Haible  <bruno@clisp.org>
23655
23656         Work around a MacOS X 10.4 bug with openpty.
23657         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
23658         * tests/test-openpty.c (main): Close the master side explicitly.
23659
23660 2010-04-25  Bruno Haible  <bruno@clisp.org>
23661
23662         strnlen: Fix a C++ test error on MacOS X and Solaris.
23663         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
23664         the function is not declared.
23665         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
23666         Simon Josefsson.
23667
23668 2010-04-24  Bruno Haible  <bruno@clisp.org>
23669
23670         Avoid a gcc warning.
23671         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
23672         of correct type for %08lx directive.
23673         Reported by Eric Blake.
23674
23675 2010-04-24  Bruno Haible  <bruno@clisp.org>
23676
23677         vasnprintf: Correct errno value in case of out-of-memory.
23678         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
23679         or sprintf. Use the errno value from SNPRINTF or sprintf.
23680         Reported by Ian Beckwith <ianb@erislabs.net>.
23681
23682 2010-04-24  Bruno Haible  <bruno@clisp.org>
23683
23684         ansi-c++-opt: Find correct compiler when cross-compiling.
23685         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
23686         AC_CHECK_PROGS.
23687         Reported by Simon Josefsson.
23688
23689 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
23690
23691         vc-list-files: Add support for subversion
23692         * build-aux/vc-list-files: Use "svn list" to generate the list of
23693         files controlled by subversion.
23694
23695 2010-04-23  Jim Meyering  <meyering@redhat.com>
23696
23697         vc-list-files tests: convert to use init.sh
23698         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
23699         path_prepend_.
23700         Use Exit, not exit.
23701         Use skip_ rather than open coding it.
23702         Remove trap set-up and compare definitions.
23703         * tests/test-vc-list-files-git.sh: Likewise.
23704         * modules/vc-list-files-tests (Files): Add tests/init.sh.
23705
23706 2010-04-22  Simon Josefsson  <simon@josefsson.org>
23707
23708         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
23709         backup files.
23710
23711 2010-04-21  Simon Josefsson  <simon@josefsson.org>
23712
23713         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
23714
23715 2010-04-20  Eric Blake  <eblake@redhat.com>
23716
23717         tests: be robust to ignored SIGPIPE
23718         * tests/test-select-in.sh: Consume all output.
23719         * tests/test-lseek.sh: Check correct exit status, while avoiding
23720         EPIPE.
23721
23722 2010-04-20  Simon Josefsson  <simon@josefsson.org>
23723             Bruno Haible  <bruno@clisp.org>
23724
23725         visibility: Don't use -fvisibility if it leads to a warning.
23726         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
23727         yes, don't pretend that visibility works if it leads to a warning.
23728         Reported by Mike Gran <spk121@yahoo.com>.
23729
23730 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
23731
23732         * build-aux/bootstrap: Use "git -h" for testing for supported options
23733         instead of "git --help".  The short-form option only shows a summary,
23734         and doesn't layout the full man page.  Grep for the full option name
23735         in the summary, too.
23736
23737 2010-04-19  Bruno Haible  <bruno@clisp.org>
23738
23739         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
23740         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
23741         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
23742         mention of RELOCATABLE_STRIP.
23743         Reported by Sylvain Beucler <beuc@beuc.net>.
23744
23745 2010-04-19  Bruno Haible  <bruno@clisp.org>
23746
23747         * lib/diffseq.h: Fix typo in comment.
23748         Reported by Eric Blake.
23749
23750 2010-04-19  Bruno Haible  <bruno@clisp.org>
23751
23752         ioctl: Move autoconf macro to a .m4 file.
23753         * m4/ioctl.m4: New file, extracted from modules/ioctl.
23754         * modules/ioctl (Files): Add it.
23755         (configure.ac): Simply invoke gl_FUNC_IOCTL.
23756         Reported by Ian Beckwith <ianb@erislabs.net>.
23757
23758 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
23759             Bruno Haible  <bruno@clisp.org>
23760
23761         diffseq: Accommodate use-case with abstract arrays.
23762         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
23763         is not defined.
23764         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
23765         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
23766
23767 2010-04-18  Bruno Haible  <bruno@clisp.org>
23768
23769         * doc/posix-headers/stdbool.texi: More precise wording.
23770
23771 2010-04-17  Jim Meyering  <meyering@redhat.com>
23772
23773         maint.mk: use gnu-style indentation in an embedded perl script
23774         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
23775         Rename variable: s/two/last_two_bytes/
23776
23777 2010-04-16  Eric Blake  <eblake@redhat.com>
23778
23779         test-stdbool: skip test that fails with Solaris CC
23780         * tests/test-stdbool.c (f): Skip test that causes compilation
23781         error under buggy C++ compiler.
23782         * lib/stdbool.in.h: Document the limitation.
23783         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
23784
23785         setenv: allow compilation with C++
23786         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
23787         register keyword.
23788
23789         stdint: allow test to pass with C++
23790         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
23791
23792         getopt: allow compilation with C++
23793         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
23794         struct.
23795         * lib/getopt.c (_getopt_internal_r): Use correct type.
23796         Reported by Dagobert Michelson, via Joel E. Denny.
23797
23798 2010-04-16  Bruno Haible  <bruno@clisp.org>
23799
23800         Override netdb.h always.
23801         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
23802         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
23803         Reported by Ludovic Courtès <ludo@gnu.org>.
23804
23805 2010-04-15  Bruno Haible  <bruno@clisp.org>
23806
23807         openpty: Fix mistake from 2010-03-21.
23808         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
23809         Reported by Simon Josefsson.
23810
23811 2010-04-15  Eric Blake  <eblake@redhat.com>
23812
23813         test-forkpty: fix expected signature
23814         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
23815         Reported by Simon Josefsson.
23816
23817 2010-04-15  Jim Meyering  <meyering@redhat.com>
23818
23819         maint.mk: texinfo_suffix_re_: correct the default regexp
23820         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
23821
23822         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
23823         make it configurable via texinfo_suffix_re_.
23824
23825 2010-04-14  Eric Blake  <eblake@redhat.com>
23826
23827         strtok_r: relax license to LGPLv2+
23828         * modules/strtok_r (License): Relax license.
23829         Reported by Matthias Bolte.
23830
23831 2010-04-14  Simon Josefsson  <simon@josefsson.org>
23832
23833         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
23834         version 1.4.4 by default instead of requiring the libgcrypt
23835         version used during build.  This makes it possible to use the
23836         application with older but still binary compatible libgcrypt
23837         versions.
23838
23839 2010-04-13  Eric Blake  <eblake@redhat.com>
23840
23841         getopt-gnu: match recent glibc fixes and posix ruling
23842         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
23843         '+' handling, when requesting extensions.
23844         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
23845         'W;' handling.
23846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
23847         * doc/posix-functions/getopt.texi (getopt): Document this.
23848         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23849         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23850         Likewise.
23851
23852         getopt: merge bug fixes from glibc
23853         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
23854         diagnostics.  Honor '+:' correctly.  Reject ';'.
23855
23856         getopt-posix: detect MacOS bug
23857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
23858         optind when missing a required argument.
23859         * doc/posix-functions/getopt.texi (getopt): Document the bug.
23860         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
23861         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23862         Likewise.
23863
23864         getopt-posix: avoid spurious failure on Solaris
23865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
23866         an indicator that setting optind=1 is sufficient for reset.
23867
23868         getopt-posix: avoid spurious failure on FreeBSD
23869         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
23870         in POSIX mode, since the m4 test uses it.
23871
23872         gnulib-tool: silence warning on BSD sh
23873         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
23874
23875 2010-04-13  Jim Meyering  <meyering@redhat.com>
23876
23877         doc: users.txt: GNU patch now uses gnulib
23878         * users.txt: Add patch.
23879
23880 2010-04-12  Jim Meyering  <meyering@redhat.com>
23881
23882         maint.mk: generate more concise timing data for syntax-check rules
23883         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
23884         " done" from each line that reports a syntax-check test duration.
23885
23886 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
23887
23888         git-version-gen: use "git update-index..." rather than "git status"
23889         * build-aux/git-version-gen: Use git update-index --refresh, not
23890         "git status".  With some versions of git, "git status" would fail
23891         to update the index and result in an unwarranted "-dirty" suffix.
23892
23893 2010-04-11  Jim Meyering  <meyering@redhat.com>
23894
23895         openat: correct formatting (no semantic change)
23896         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
23897         Suggested by Bruno Haible.
23898
23899 2010-04-11  Bruno Haible  <bruno@clisp.org>
23900
23901         Stricter declaration checking in testdirs.
23902         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23903         If for_tests is true, augment AM_CPPFLAGS to define
23904         GNULIB_STRICT_CHECKING.
23905         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
23906         GNULIB_STRICT_CHECKING is defined, verify that the function is
23907         declared.
23908
23909 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
23910             Bruno Haible  <bruno@clisp.org>
23911
23912         libunistring: Improve configure output.
23913         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
23914         Don't say "consider installing GNU libunistring" when checking again
23915         with libiconv.
23916
23917 2010-04-11  Bruno Haible  <bruno@clisp.org>
23918
23919         libunistring: Correct value of $LTLIBUNISTRING.
23920         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23921         correct the value of $LTLIBUNISTRING.
23922
23923 2010-04-11  Bruno Haible  <bruno@clisp.org>
23924
23925         havelib: Add static libraries to LIBS in the right order.
23926         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
23927         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
23928
23929 2010-04-11  Bruno Haible  <bruno@clisp.org>
23930
23931         libunistring: Detect libunistring also when it depends on libiconv.
23932         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
23933         the second AC_LIB_HAVE_LINKFLAGS invocation.
23934
23935 2010-04-11  James Youngman  <jay@gnu.org>
23936
23937         close-stream: declare local scalars to be "const"
23938         * lib/close-stream.c (close_stream): Make boolean variables const
23939         to document the fact that we set but do not change them.
23940
23941 2010-04-11  Bruno Haible  <bruno@clisp.org>
23942
23943         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
23944
23945 2010-04-11  Jim Meyering  <meyering@redhat.com>
23946
23947         maint.mk: don't include dist-check.mk
23948         * top/maint.mk: Remove bogus include directive.
23949
23950         maint.mk: improve empty-line-at-EOF check
23951         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
23952         solution, rather than tail+Perl-based one.  The latter would read
23953         a few kilobytes from the end of each file, and did not handle empty
23954         files properly.
23955
23956         maint.mk: print the elapsed time for each syntax-check rule
23957         * top/maint.mk (sc_m_rules_): Save start time in a file.
23958         (sc_z_rules_): New rules: remove temp file and print elapsed time.
23959         (local-check): Interpose the .z rules
23960
23961 2010-04-11  Jim Meyering  <meyering@redhat.com>
23962
23963         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
23964         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
23965         empty file with one that ends in an empty line.
23966
23967 2010-04-10  Bruno Haible  <bruno@clisp.org>
23968
23969         mkdir: Make it work on mingw64.
23970         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
23971         * lib/mkdir.c: Update comment.
23972         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
23973
23974 2010-04-10  Bruno Haible  <bruno@clisp.org>
23975
23976         Don't override improved macro from newer autoconf.
23977         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
23978         autoconf >= 2.62.
23979         Reported by Joel E. Denny <jdenny@clemson.edu>.
23980
23981 2010-04-10  Jim Meyering  <meyering@redhat.com>
23982
23983         maint.mk: new syntax-check rule: prohibit empty lines at end of file
23984         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
23985
23986         maint.mk: correct a diagnostic
23987         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
23988         in diagnostic; now use $prohibit.
23989
23990 2010-04-10  Bruno Haible  <address@hidden>
23991
23992         fchownat: Fix a C++ test error on Solaris 8.
23993         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
23994         the function does not exist.
23995
23996 2010-04-10  Bruno Haible  <bruno@clisp.org>
23997
23998         vasnprintf: Add more tests.
23999         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24000         (test_function): Test converting an invalid wide string.
24001
24002         vasnprintf: Correct handling of unconvertible wide string arguments.
24003         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24004         VASNPRINTF.
24005         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24006         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24007         smaller than the expected maximum need for the directive. Set errno to
24008         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24009         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24010         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24011         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24012         * modules/vasnprintf (Files): Add m4/printf.m4.
24013         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24014
24015 2010-04-10  Bruno Haible  <bruno@clisp.org>
24016
24017         vasnprintf: Fix crash in %ls directive.
24018         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24019         string is passed as argument to %ls, with no precision and no width.
24020         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24021
24022 2010-04-10  Bruno Haible  <bruno@clisp.org>
24023
24024         vasnprintf: Fix multiple test failures on mingw.
24025         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24026         _snprintf, or snwprintf, not _snwprintf.
24027
24028 2010-04-10  Bruno Haible  <bruno@clisp.org>
24029
24030         write: Fix a C++ test error on mingw.
24031         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24032
24033 2010-04-10  Bruno Haible  <bruno@clisp.org>
24034
24035         vasnprintf test: Reduce code duplication.
24036         * tests/test-vasnprintf.c (test_function): New function, extracted from
24037         test_vasnprintf.
24038         (test_vasnprintf, test_asnprintf): Invoke it.
24039
24040 2010-04-10  Bruno Haible  <bruno@clisp.org>
24041
24042         strnlen: Fix warning in C++ mode on MacOS X.
24043         * lib/string.in.h (strnlen): Use the modern idiom.
24044         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24045         defining strnlen as a macro already in <config.h>.
24046         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24047         REPLACE_STRNLEN.
24048         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24049         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24050
24051 2010-04-08  James Youngman  <jay@gnu.org>
24052
24053         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24054         the example.
24055
24056 2010-04-09  Jim Meyering  <meyering@redhat.com>
24057
24058         maint.mk: print better diagnostic when there is no $(_hv_file)
24059         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24060         announce that when $(_hv_file) (aka help-version) does not exist.
24061
24062         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24063         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24064         not try to interpret its random input bytes.  Jarno Rajahalme reported
24065         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24066         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24067         (mktempd_): Likewise, just in case.
24068
24069         ftruncate: add two years to projected module removal date: 2012
24070         * m4/ftruncate.m4: Adjust comments.
24071
24072         ftruncate: mark module as obsolete; even MinGW provides it, now
24073         * modules/ftruncate (Status): Obsolete.
24074         (Notice): Say that.
24075         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24076         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24077
24078 2010-04-08  Bruno Haible  <bruno@clisp.org>
24079
24080         Fix side effects from tests-related modules.
24081         * modules/dprintf-posix (Comment): New section.
24082         * modules/fprintf-posix (Comment): Likewise.
24083         * modules/obstack-printf-posix (Comment): Likewise.
24084         * modules/printf-posix (Comment): Likewise.
24085         * modules/snprintf-posix (Comment): Likewise.
24086         * modules/sprintf-posix (Comment): Likewise.
24087         * modules/vasnprintf-posix (Comment): Likewise.
24088         * modules/vasprintf-posix (Comment): Likewise.
24089         * modules/vdprintf-posix (Comment): Likewise.
24090         * modules/vfprintf-posix (Comment): Likewise.
24091         * modules/vprintf-posix (Comment): Likewise.
24092         * modules/vsnprintf-posix (Comment): Likewise.
24093         * modules/vsprintf-posix (Comment): Likewise.
24094         * modules/xprintf-posix (Comment): Likewise.
24095         * modules/xvasprintf-posix (Comment): Likewise.
24096         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24097         * modules/floorf-tests (Depends-on): Likewise.
24098         * modules/round-tests (Depends-on): Likewise.
24099         * modules/roundf-tests (Depends-on): Likewise.
24100         * modules/trunc-tests (Depends-on): Likewise.
24101         * modules/truncf-tests (Depends-on): Likewise.
24102         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24103         'fprintf-posix' module is not present.
24104         * tests/test-floorf2.c (check): Likewise.
24105         * tests/test-trunc2.c (check): Likewise.
24106         * tests/test-truncf2.c (check): Likewise.
24107         * tests/test-round2.c (equal): Likewise.
24108         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24109
24110 2010-04-07  Karl Berry  <karl@gnu.org>
24111
24112         * config/srclist.txt,
24113         * config/srclistvars.sh,
24114         * config/srclist-update: doc fixes.
24115
24116 2010-04-07  Jim Meyering  <meyering@redhat.com>
24117
24118         maint.mk: add a PATH crosschecking syntax-check rule
24119         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24120         Useful if you use a test like the one in help-version (coreutils,
24121         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24122         printed by prog --version.
24123
24124 2010-04-06  Bruno Haible  <bruno@clisp.org>
24125
24126         Fix link error on mingw.
24127         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24128         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24129
24130 2010-04-06  Bruno Haible  <bruno@clisp.org>
24131
24132         Assume rmdir exists.
24133         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24134
24135 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24136
24137         doc: update users.txt
24138         * users.txt: Add gcal.
24139
24140 2010-04-06  Jim Meyering  <meyering@redhat.com>
24141
24142         init.sh: simply unset TMPDIR rather than risking env -i
24143         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24144         although it probably works fine on all Unix-based systems, some
24145         systems (Cygwin?) cannot tolerate a totally cleared environment.
24146         Suggestion from Eric Blake.
24147
24148 2010-04-06  Jim Meyering  <meyering@redhat.com>
24149
24150         init.sh: portability fix: use env's POSIX-specified -i option not -u
24151         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24152         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24153
24154 2010-04-05  Bruno Haible  <bruno@clisp.org>
24155
24156         btowc: Work around Cygwin 1.7.2 bug.
24157         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24158         does not map NUL to 0.
24159         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24160
24161 2010-04-05  Bruno Haible  <bruno@clisp.org>
24162
24163         Make the multithread modules work on Cygwin 1.7.2.
24164         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24165         imported symbols can be declared weak, so that it returns "no" on
24166         Cygwin 1.7.2.
24167
24168 2010-04-05  Bruno Haible  <bruno@clisp.org>
24169
24170         Use the module 'strncat'.
24171         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24172
24173         Tests for module 'strncat'.
24174         * modules/strncat-tests: New file.
24175         * tests/test-strncat.c: New file.
24176
24177         New module 'strncat'.
24178         * lib/string.in.h (strncat): New declaration.
24179         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24180         * m4/strncat.m4: New file, based on m4/memchr.m4.
24181         * modules/strncat: New file.
24182         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24183         is declared.
24184         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24185         REPLACE_STRNCAT.
24186         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24187         REPLACE_STRNCAT.
24188         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24189         module.
24190         * tests/test-string-c++.cc: Check signature of strncat.
24191
24192 2010-04-05  Jim Meyering  <meyering@redhat.com>
24193
24194         xstrtoumax-tests: convert to use init.sh
24195         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24196         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24197         Use Exit, not exit.
24198         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24199
24200         xstrtoimax-tests: convert to use init.sh
24201         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24202         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24203         Use Exit, not exit.
24204         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24205
24206 2010-04-05  Bruno Haible  <bruno@clisp.org>
24207
24208         sys_socket: Avoid #define replacements in C++ mode.
24209         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24210         warning to the function if possible, rather than #defining the symbol
24211         to a dysfunctional alias.
24212
24213 2010-04-05  Bruno Haible  <bruno@clisp.org>
24214
24215         fseeko: Fix C++ test error on mingw.
24216         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24217         gl_FUNC_FSEEKO.
24218         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24219         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24220         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24221         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24222
24223 2010-04-05  Bruno Haible  <bruno@clisp.org>
24224
24225         duplocale: Improve test output.
24226         * tests/test-duplocale.c (main): Print reason for skipped test.
24227
24228 2010-04-05  Bruno Haible  <bruno@clisp.org>
24229
24230         Assume rmdir exists.
24231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24232         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24233
24234 2010-04-05  Bruno Haible  <bruno@clisp.org>
24235
24236         Fix link error on Solaris 8 with cc.
24237         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24238
24239 2010-04-05  Bruno Haible  <bruno@clisp.org>
24240
24241         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24242         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24243
24244 2010-04-05  Bruno Haible  <bruno@clisp.org>
24245
24246         vasprintf: Update documentation.
24247         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24248
24249 2010-04-05  Bruno Haible  <bruno@clisp.org>
24250
24251         ptsname: Improve test.
24252         * tests/test-ptsname.c (main): Also try the various master names of BSD
24253         systems.
24254
24255 2010-04-05  Bruno Haible  <bruno@clisp.org>
24256
24257         memchr: Avoid a possible C++ test error.
24258         * lib/string.in.h (memchr): Provide declaration if function is missing.
24259         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24260         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24262         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24263
24264 2010-04-05  Bruno Haible  <bruno@clisp.org>
24265
24266         strtok_r: Improve idiom.
24267         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24268         AC_LIBOBJ is used.
24269
24270 2010-04-05  Bruno Haible  <bruno@clisp.org>
24271
24272         strdup: Improve idiom.
24273         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24274         AC_LIBOBJ is used.
24275         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24276         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24277         when AC_LIBOBJ is used.
24278
24279 2010-04-05  Bruno Haible  <bruno@clisp.org>
24280
24281         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24282         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24283         don't set REPLACE_MBSINIT to 1.
24284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24285         don't set REPLACE_MBRTOWC to 1.
24286         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24287         exist, don't set REPLACE_MBSRTOWCS to 1.
24288         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24289         exist, don't set REPLACE_MBSNRTOWCS to 1.
24290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24291         don't set REPLACE_WCRTOMB to 1.
24292         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24293         exist, don't set REPLACE_WCSRTOMBS to 1.
24294         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24295         exist, don't set REPLACE_WCSNRTOMBS to 1.
24296
24297 2010-04-05  Bruno Haible  <bruno@clisp.org>
24298
24299         ldexpl: Improve idiom.
24300         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24301         make sure to set HAVE_DECL_LDEXPL to 0.
24302
24303 2010-04-05  Jim Meyering  <meyering@redhat.com>
24304
24305         xstrtol-tests: convert to use init.sh
24306         * modules/xstrtol-tests (Files): Add tests/init.sh.
24307         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24308         Use Exit, not exit.
24309         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24310
24311         atexit-tests: convert to use init.sh
24312         * modules/atexit-tests (Files): Add tests/init.sh.
24313         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24314         Use Exit, not exit.
24315         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24316
24317         init.sh: fix typo
24318         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24319
24320         init.sh: make it easier for a test script to write to the tty, ...
24321         when using automake's parallel-tests mode.
24322         * tests/init.sh (stderr_fileno_): Define overridable variable.
24323         (warn_): New function, to use it.
24324         (fail_, skip_, framework_failure_): Use warn_.
24325
24326 2010-04-04  Bruno Haible  <bruno@clisp.org>
24327
24328         btowc: Avoid warning.
24329         * lib/btowc.c: Include <stdlib.h>.
24330         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24331
24332 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24333             Bruno Haible  <bruno@clisp.org>
24334
24335         wchar: Port to NetBSD 1.5.
24336         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24337         * lib/wctype.in.h (WEOF): Likewise.
24338
24339 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24340             Bruno Haible  <bruno@clisp.org>
24341
24342         Port extended stdio to NetBSD 1.5.
24343         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24344         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24345         older.
24346
24347 2010-04-04  Bruno Haible  <bruno@clisp.org>
24348
24349         string: Remove unused substitution.
24350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24351         HAVE_DECL_STRERROR.
24352         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24353
24354 2010-04-04  Bruno Haible  <bruno@clisp.org>
24355
24356         strtod: Avoid a possible C++ test error.
24357         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24358         set REPLACE_STRTOD.
24359
24360 2010-04-04  Bruno Haible  <bruno@clisp.org>
24361
24362         strerror: Update documentation.
24363         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24364
24365 2010-04-04  Bruno Haible  <bruno@clisp.org>
24366
24367         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24368         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24369         _GL_CXXALIAS_SYS_CAST.
24370
24371 2010-04-04  Bruno Haible  <bruno@clisp.org>
24372
24373         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24374         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24375         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24376         REPLACE_FREXPL to 1.
24377         * doc/posix-functions/frexpl.texi: Update documentation.
24378
24379 2010-04-04  Bruno Haible  <bruno@clisp.org>
24380
24381         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24382         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24383
24384 2010-04-04  Bruno Haible  <bruno@clisp.org>
24385
24386         Implement nanosleep for native Windows.
24387         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24388
24389 2010-04-04  Bruno Haible  <bruno@clisp.org>
24390
24391         math: Fix some C++ test errors on Solaris 8.
24392         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24393
24394 2010-04-04  Bruno Haible  <bruno@clisp.org>
24395
24396         math: Fix some C++ test errors on Cygwin.
24397         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24398         truncl): Provide declaration if the system does not have it.
24399         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24400         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24401         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24402         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24403         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24404         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24405         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24406         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24407         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24408         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24409         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24410         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24411         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24412         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24413         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24414         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24416         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24417         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24418         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24419         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24420         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24421
24422 2010-04-04  Bruno Haible  <bruno@clisp.org>
24423
24424         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24425         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24426         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24427         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24428         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24429         * m4/isinf.m4 (gl_ISINF): Likewise.
24430         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24431
24432 2010-04-04  Bruno Haible  <bruno@clisp.org>
24433
24434         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24435         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24436
24437 2010-04-04  Bruno Haible  <bruno@clisp.org>
24438
24439         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24440         * modules/tmpfile (configure.ac): Update.
24441
24442         tmpfile: Fix C++ test error on mingw.
24443         * lib/stdio.in.h (tmpfile): New declaration.
24444         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24445         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24446         * modules/tmpfile (Depends-on): Add stdio.
24447         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
24448         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
24449         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
24450         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
24451         REPLACE_TMPFILE.
24452         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
24453
24454 2010-04-04  Bruno Haible  <bruno@clisp.org>
24455
24456         ioctl: Fix C++ test error on mingw.
24457         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
24458         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
24459         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
24460
24461 2010-04-03  Bruno Haible  <bruno@clisp.org>
24462
24463         wcwidth: Fix C++ test error on mingw.
24464         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
24465         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
24466         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
24467
24468 2010-04-03  Bruno Haible  <bruno@clisp.org>
24469
24470         nanosleep: Fix C++ test error on mingw.
24471         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
24472         * lib/time.in.h (nanosleep): Use modern idiom.
24473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
24474         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
24475         REPLACE_NANOSLEEP to 1.
24476         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
24477         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
24478
24479 2010-04-03  Bruno Haible  <bruno@clisp.org>
24480
24481         strptime: Fix C++ test error on mingw.
24482         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
24483         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
24484         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
24485         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
24486         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
24487         not REPLACE_STRPTIME.
24488         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
24489         REPLACE_STRPTIME.
24490
24491 2010-04-03  Bruno Haible  <bruno@clisp.org>
24492
24493         timegm: Fix C++ test error on mingw.
24494         * lib/time.in.h (timegm): Use modern idiom.
24495         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
24496         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
24497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
24498         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
24499
24500 2010-04-03  Bruno Haible  <bruno@clisp.org>
24501
24502         timegm: Assume declaration if function exists.
24503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
24504         if it exists. Don't clobber ac_cv_func_timegm.
24505
24506 2010-04-03  Bruno Haible  <bruno@clisp.org>
24507
24508         time_r: Fix C++ test error on mingw.
24509         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
24510         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
24511         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
24512         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
24513         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
24514
24515 2010-04-03  Bruno Haible  <bruno@clisp.org>
24516
24517         time_r: Minor updates.
24518         * modules/time_r (Description): Mention the provided functions.
24519         * lib/time_r.c: Don't include <string.h>.
24520         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
24521         * doc/posix-functions/localtime_r.texi: Likewise.
24522
24523 2010-04-03  Bruno Haible  <bruno@clisp.org>
24524
24525         time: Fix regression introduced on 2010-03-08.
24526         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
24527         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
24528
24529 2010-04-03  Jim Meyering  <meyering@redhat.com>
24530
24531         maint.mk: don't silently disable project-specific syntax-check rules
24532         * top/maint.mk (_prohibit_regexp): Define, to help people realize
24533         that they need to convert their project-specific syntax-check rules
24534         to use the new _sc_search_regexp.
24535
24536 2010-04-03  Bruno Haible  <bruno@clisp.org>
24537
24538         fchdir: Fix regression introduced on 2010-03-08.
24539         * lib/unistd.in.h (fchdir): Fix declaration.
24540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
24541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
24542         REPLACE_FCHDIR.
24543         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
24544         REPLACE_FCHDIR.
24545
24546 2010-04-03  Bruno Haible  <bruno@clisp.org>
24547
24548         getpagesize: Fix C++ test error on mingw.
24549         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
24550         system does not declare the function.
24551         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
24552         declared.
24553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24554         HAVE_DECL_GETPAGESIZE.
24555         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
24556
24557 2010-04-03  Bruno Haible  <bruno@clisp.org>
24558
24559         stdio: Make C++ tests work on mingw.
24560         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
24561         does not declare the function.
24562
24563 2010-04-03  Bruno Haible  <bruno@clisp.org>
24564
24565         ftello: Fix C++ test error on mingw.
24566         * lib/stdio.in.h (ftello): Use modern idiom.
24567         * lib/ftello.c (ftello): Renamed from rpl_ftello.
24568         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
24569         is missing and that it needs to be replaced.
24570         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
24571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
24572         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
24573
24574 2010-04-03  Bruno Haible  <bruno@clisp.org>
24575
24576         fseeko: Fix C++ test error on mingw.
24577         * lib/stdio.in.h (fseeko): Use modern idiom.
24578         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
24579         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
24580         is missing and that it needs to be replaced.
24581         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
24582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
24583         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
24584
24585 2010-04-03  Bruno Haible  <bruno@clisp.org>
24586
24587         mkstemp: Fix C++ test error on mingw.
24588         * lib/stdlib.in.h (mkstemp): Use modern idiom.
24589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
24590         function is missing and that it needs to be replaced.
24591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
24592         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
24593
24594 2010-04-03  Bruno Haible  <bruno@clisp.org>
24595
24596         stpncpy: Fix C++ test error on mingw.
24597         * lib/string.in.h (stpncpy): Use modern idiom.
24598         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
24599         function is missing and that it needs to be replaced.
24600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24601         REPLACE_STPNCPY.
24602         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
24603
24604 2010-04-03  Bruno Haible  <bruno@clisp.org>
24605
24606         sys_stat: Fix C++ test error on mingw.
24607         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
24608         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
24609
24610 2010-04-03  Bruno Haible  <bruno@clisp.org>
24611
24612         pty: Update doc.
24613         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
24614
24615 2010-04-03  Bruno Haible  <bruno@clisp.org>
24616
24617         unistd: Fix C++ test error on mingw.
24618         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
24619
24620 2010-04-03  Bruno Haible  <bruno@clisp.org>
24621
24622         Update doc regarding mingw.
24623         * doc/glibc-functions/openpty.texi: Update regarding mingw.
24624         * doc/glibc-functions/login_tty.texi: Likewise.
24625         * doc/glibc-functions/forkpty.texi: Likewise.
24626
24627 2010-04-03  Bruno Haible  <bruno@clisp.org>
24628
24629         stdlib: Avoid compilation failure of c-strtold on mingw.
24630         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
24631
24632 2010-04-03  Bruno Haible  <bruno@clisp.org>
24633
24634         locale: Make C++ tests work on Cygwin and mingw.
24635         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
24636         cannot provide the function.
24637         Reported by Simon Josefsson.
24638
24639 2010-04-03  Bruno Haible  <bruno@clisp.org>
24640
24641         localename: Port to MacOS X 10.6.
24642         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
24643         memory layout of the locales in MacOS X 10.6 as well.
24644         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
24645
24646 2010-04-02  Bruno Haible  <bruno@clisp.org>
24647
24648         gnulib-tool: Ensure that long-running tests are executed last.
24649         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
24650         running tests after the one for the other tests.
24651
24652 2010-04-02  Bruno Haible  <bruno@clisp.org>
24653
24654         gnulib-tool: Ensure the tests in the main directory are executed first.
24655         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
24656         start with the current directory.
24657
24658 2010-04-02  Bruno Haible  <bruno@clisp.org>
24659
24660         Tests for module 'havelib', moved here from GNU gettext.
24661         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
24662         modifications.
24663         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
24664         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
24665         with modifications.
24666         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
24667         modifications.
24668         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
24669         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
24670         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
24671         with modifications.
24672         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
24673         with modifications.
24674         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
24675         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
24676         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
24677         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
24678         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
24679         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
24680         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
24681         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
24682         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
24683         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
24684         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
24685         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
24686         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
24687         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
24688         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
24689         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
24690         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
24691         with modifications.
24692         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
24693         with modifications.
24694         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
24695         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
24696         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
24697         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
24698         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
24699         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
24700         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
24701         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
24702         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
24703         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
24704         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
24705         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
24706         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
24707         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
24708         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
24709         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
24710         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
24711         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
24712         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
24713         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
24714         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
24715         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
24716         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
24717         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
24718         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
24719         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
24720         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
24721         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
24722         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
24723         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
24724         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
24725         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
24726         * tests/havelib/rpathx/rpathx.c: New file, from
24727         gettext/autoconf-lib-link.
24728         * tests/havelib/rpathx/Makefile.am: New file, from
24729         gettext/autoconf-lib-link.
24730         * tests/havelib/rpathx/configure.ac: New file, from
24731         gettext/autoconf-lib-link with modifications.
24732         * tests/havelib/rpathy/rpathy.c: New file, from
24733         gettext/autoconf-lib-link.
24734         * tests/havelib/rpathy/Makefile.am: New file, from
24735         gettext/autoconf-lib-link.
24736         * tests/havelib/rpathy/configure.ac: New file, from
24737         gettext/autoconf-lib-link with modifications.
24738         * tests/havelib/rpathz/rpathz.c: New file, from
24739         gettext/autoconf-lib-link.
24740         * tests/havelib/rpathz/Makefile.am: New file, from
24741         gettext/autoconf-lib-link.
24742         * tests/havelib/rpathz/configure.ac: New file, from
24743         gettext/autoconf-lib-link with modifications.
24744         * tests/havelib/rpathlx/usex.c: New file, from
24745         gettext/autoconf-lib-link.
24746         * tests/havelib/rpathlx/Makefile.am: New file, from
24747         gettext/autoconf-lib-link.
24748         * tests/havelib/rpathlx/configure.ac: New file, from
24749         gettext/autoconf-lib-link with modifications.
24750         * tests/havelib/rpathly/usey.c: New file, from
24751         gettext/autoconf-lib-link.
24752         * tests/havelib/rpathly/Makefile.am: New file, from
24753         gettext/autoconf-lib-link.
24754         * tests/havelib/rpathly/configure.ac: New file, from
24755         gettext/autoconf-lib-link with modifications.
24756         * tests/havelib/rpathlz/usez.c: New file, from
24757         gettext/autoconf-lib-link.
24758         * tests/havelib/rpathlz/Makefile.am: New file, from
24759         gettext/autoconf-lib-link.
24760         * tests/havelib/rpathlz/configure.ac: New file, from
24761         gettext/autoconf-lib-link with modifications.
24762         * tests/havelib/rpathlyx/usey.c: New file, from
24763         gettext/autoconf-lib-link.
24764         * tests/havelib/rpathlyx/Makefile.am: New file, from
24765         gettext/autoconf-lib-link.
24766         * tests/havelib/rpathlyx/configure.ac: New file, from
24767         gettext/autoconf-lib-link with modifications.
24768         * tests/havelib/rpathlzyx/usez.c: New file, from
24769         gettext/autoconf-lib-link.
24770         * tests/havelib/rpathlzyx/Makefile.am: New file, from
24771         gettext/autoconf-lib-link.
24772         * tests/havelib/rpathlzyx/configure.ac: New file, from
24773         gettext/autoconf-lib-link with modifications.
24774         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
24775         with modifications.
24776
24777 2010-04-02  Bruno Haible  <bruno@clisp.org>
24778
24779         gnulib-tool: Create distributed built sources also for the tests.
24780         * gnulib-tool (func_create_testdir): Also generate distributed built
24781         sources in the tests directory.
24782
24783 2010-04-02  Bruno Haible  <bruno@clisp.org>
24784
24785         gnulib-tool: Obey user's environment variables.
24786         * gnulib-tool (func_create_testdir): When creating built sources,
24787         respect the environment variables for autoconf, automake, etc. given by
24788         the user.
24789
24790 2010-04-02  Bruno Haible  <bruno@clisp.org>
24791
24792         gnulib-tool: Provide the value of --m4-base to modules.
24793         * gnulib-tool (func_import, func_create_testdir): Emit a definition
24794         of gl_m4_base.
24795
24796 2010-04-02  Eric Blake  <eblake@redhat.com>
24797
24798         maint.mk: fix some fallout
24799         * NEWS: Document the incompatible change, and its effect on cfg.mk.
24800         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
24801
24802 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24803
24804         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
24805         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
24806         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
24807         (sc_cast_of_x_alloc_return_value): Likewise.
24808         (sc_cast_of_alloca_return_value): Likewise.
24809         (sc_space_tab): Likewise.
24810         (sc_prohibit_atoi_atof): Likewise.
24811         (sc_prohibit_magic_number_exit): Likewise.
24812         (sc_error_exit_success): Likewise.
24813         (sc_file_system): Likewise.
24814         (sc_prohibit_have_config_h): Likewise.
24815         (sc_require_config_h): Likewise.
24816         (sc_prohibit_HAVE_MBRTOWC): Likewise.
24817         (sc_obsolete_symbols): Likewise.
24818         (sc_changelog): Likewise.
24819         (sc_program_name): Likewise.
24820         (sc_the_the): Likewise.
24821         (sc_trailing_blank): Likewise.
24822         (sc_two_space_separator_in_usage): Likewise.
24823         (sc_useless_cpp_parens): Likewise.
24824         (sc_GPL_version): Likewise.
24825         (sc_GFDL_version): Likewise.
24826         (sc_texinfo_acronym): Likewise.
24827         (sc_prohibit_cvs_keyword): Likewise.
24828         (sc_prohibit_stat_st_blocks): Likewise.
24829         (sc_prohibit_S_IS_definition): Likewise.
24830         (sc_redundant_const): Likewise.
24831         (sc_makefile_TAB_only_indentation): Likewise.
24832         (sc_m4_quote_check): Likewise.
24833         (sc_makefile_path_separator_check): Likewise.
24834         (sc_copyright_check): Likewise.
24835         (sc_Wundef_boolean): Likewise.
24836         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24837
24838         maint.mk: match 0 or more whitespace-before-function-call '('
24839         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
24840         that have zero or two-and-more spaces between the function name
24841         and the open parenthesis.
24842         (sc_error_message_warn_fatal): Likewise.
24843         (sc_error_message_uppercase): Likewise.
24844         (sc_error_message_period): Likewise.
24845
24846 2010-03-31  Eric Blake  <eblake@redhat.com>
24847
24848         maint.mk: check for [ as well as test
24849         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
24850         Based on a libvirt report by Matthias Bolte.
24851
24852         gnumakefile: don't squelch _version output
24853         * top/GNUmakefile (_version): Create one-shot dependency rather
24854         than using $(shell) when version must be regenerated.
24855         (_autoreconf): Run verbosely, by default.
24856
24857         sys_time: avoid compiler warnings
24858         * lib/sys_time.in.h (includes): Ensure gcc pragma is
24859         unconditional, fixing regression from 2010-03-29.
24860         Reported by Simon Josefsson.
24861
24862 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
24863
24864         maint.mk: s/_header_without_use/_sc_header_without_use/
24865         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
24866         (sc_prohibit_assert_without_use): Use the new name.
24867         (sc_prohibit_close_stream_without_use): Likewise.
24868         (sc_prohibit_getopt_without_use): Likewise.
24869         (sc_prohibit_quotearg_without_use): Likewise.
24870         (sc_prohibit_quote_without_use): Likewise.
24871         (sc_prohibit_long_options_without_use): Likewise.
24872         (sc_prohibit_inttostr_without_use): Likewise.
24873         (sc_prohibit_ignore_value_without_use): Likewise.
24874         (sc_prohibit_error_without_use): Likewise.
24875         (sc_prohibit_xalloc_without_use): Likewise.
24876         (sc_prohibit_hash_without_use): Likewise.
24877         (sc_prohibit_hash_pjw_without_use): Likewise.
24878         (sc_prohibit_safe_read_without_use): Likewise.
24879         (sc_prohibit_argmatch_without_use): Likewise.
24880         (sc_prohibit_canonicalize_without_use): Likewise.
24881         (sc_prohibit_root_dev_ino_without_use): Likewise.
24882         (sc_prohibit_openat_without_use): Likewise.
24883         (sc_prohibit_c_ctype_without_use): Likewise.
24884         (sc_prohibit_signal_without_use): Likewise.
24885         (sc_prohibit_intprops_without_use): Likewise.
24886
24887 2010-03-30  Eric Blake  <eblake@redhat.com>
24888
24889         maint: improve module indicators
24890         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
24891         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
24892         columns, and avoid extra macro expansion.
24893
24894         fdopendir: work around FreeBSD bug
24895         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24896         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
24897         * modules/dirent (Makefile.am): Substitute it.
24898         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
24899         declaration.
24900         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
24901         fix.
24902         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24903
24904 2010-03-29  Bruno Haible  <bruno@clisp.org>
24905
24906         Emit #pragma system_header after the inclusion guard, not before.
24907         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
24908         guard that spans the entire file, not before. This enables an
24909         optimization in GCC's preprocessor.
24910         * lib/ctype.in.h: Likewise.
24911         * lib/dirent.in.h: Likewise.
24912         * lib/errno.in.h: Likewise.
24913         * lib/float.in.h: Likewise.
24914         * lib/getopt.in.h: Likewise.
24915         * lib/iconv.in.h: Likewise.
24916         * lib/langinfo.in.h: Likewise.
24917         * lib/locale.in.h: Likewise.
24918         * lib/math.in.h: Likewise.
24919         * lib/netdb.in.h: Likewise.
24920         * lib/netinet_in.in.h: Likewise.
24921         * lib/pty.in.h: Likewise.
24922         * lib/sched.in.h: Likewise.
24923         * lib/se-selinux.in.h: Likewise.
24924         * lib/search.in.h: Likewise.
24925         * lib/spawn.in.h: Likewise.
24926         * lib/stdarg.in.h: Likewise.
24927         * lib/stdint.in.h: Likewise.
24928         * lib/string.in.h: Likewise.
24929         * lib/strings.in.h: Likewise.
24930         * lib/sys_file.in.h: Likewise.
24931         * lib/sys_ioctl.in.h: Likewise.
24932         * lib/sys_time.in.h: Likewise.
24933         * lib/sys_times.in.h: Likewise.
24934         * lib/sys_utsname.in.h: Likewise.
24935         * lib/sys_wait.in.h: Likewise.
24936         * lib/sysexits.in.h: Likewise.
24937         * lib/wctype.in.h: Likewise.
24938
24939 2010-03-28  James Youngman  <jay@gnu.org>
24940
24941         save-cwd: don't leak a file descriptor when the caller execs.
24942         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
24943         saved file descriptor.
24944         * modules/save-cwd (Depends-on): Depend on cloexec.
24945
24946 2010-03-29  Bruno Haible  <bruno@clisp.org>
24947
24948         Remove vestiges of fts-lgpl module.
24949         * lib/fts_.h: Assume GNULIB_FTS is 1.
24950         * lib/fts.c: Likewise.
24951         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
24952
24953 2010-03-28  Bruno Haible  <bruno@clisp.org>
24954
24955         Fix definition of tests witness macro.
24956         * gnulib-tool (func_import): Fix definition of witness macro.
24957
24958 2010-03-28  Bruno Haible  <bruno@clisp.org>
24959
24960         Fix ioctl's protoype on glibc systems.
24961         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
24962         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
24963         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
24964         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
24965         signature. If not, arrange to replace the ioctl function.
24966         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
24967         REPLACE_IOCTL.
24968         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
24969         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
24970         Reported by Ludovic Courtès <ludo@gnu.org>.
24971
24972 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
24973
24974         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
24975         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
24976         made it so grep -r --include=GLOB* ... did not work.
24977
24978 2010-03-26  Jim Meyering  <meyering@redhat.com>
24979             Eric Blake  <eblake@redhat.com>
24980
24981         maint.mk: prohibit use of test's -o and -a operators
24982         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
24983
24984 2010-03-28  Bruno Haible  <bruno@clisp.org>
24985
24986         Remove unused GNULIB_XYZ macro definitions.
24987         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
24988         invocation.
24989
24990 2010-03-28  Bruno Haible  <bruno@clisp.org>
24991
24992         Mark privileged tests modules.
24993         * modules/idpriv-drop-tests (Status): New section.
24994         * modules/idpriv-droptemp-tests (Status): New section.
24995
24996 2010-03-28  Bruno Haible  <bruno@clisp.org>
24997
24998         Split C++ tests into separate tests modules.
24999         * modules/dirent-c++-tests: New file, extracted from
25000         modules/dirent-tests.
25001         * modules/dirent-tests: Depend on it.
25002         * modules/fcntl-h-c++-tests: New file, extracted from
25003         modules/fcntl-h-tests.
25004         * modules/fcntl-h-tests: Depend on it.
25005         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25006         * modules/glob-tests: Depend on it.
25007         * modules/iconv-h-c++-tests: New file, extracted from
25008         modules/iconv-h-tests.
25009         * modules/iconv-h-tests: Depend on it.
25010         * modules/langinfo-c++-tests: New file, extracted from
25011         modules/langinfo-tests.
25012         * modules/langinfo-tests: Depend on it.
25013         * modules/locale-c++-tests: New file, extracted from
25014         modules/locale-tests.
25015         * modules/locale-tests: Depend on it.
25016         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25017         * modules/math-tests: Depend on it.
25018         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25019         * modules/pty-tests: Depend on it.
25020         * modules/search-c++-tests: New file, extracted from
25021         modules/search-tests.
25022         * modules/search-tests: Depend on it.
25023         * modules/signal-c++-tests: New file, extracted from
25024         modules/signal-tests.
25025         * modules/signal-tests: Depend on it.
25026         * modules/spawn-c++-tests: New file, extracted from
25027         modules/spawn-tests.
25028         * modules/spawn-tests: Depend on it.
25029         * modules/stdio-c++-tests: New file, extracted from
25030         modules/stdio-tests.
25031         * modules/stdio-tests: Depend on it.
25032         * modules/stdlib-c++-tests: New file, extracted from
25033         modules/stdlib-tests.
25034         * modules/stdlib-tests: Depend on it.
25035         * modules/string-c++-tests: New file, extracted from
25036         modules/string-tests.
25037         * modules/string-tests: Depend on it.
25038         * modules/sys_ioctl-c++-tests: New file, extracted from
25039         modules/sys_ioctl-tests.
25040         * modules/sys_ioctl-tests: Depend on it.
25041         * modules/sys_select-c++-tests: New file, extracted from
25042         modules/sys_select-tests.
25043         * modules/sys_select-tests: Depend on it.
25044         * modules/sys_socket-c++-tests: New file, extracted from
25045         modules/sys_socket-tests.
25046         * modules/sys_socket-tests: Depend on it.
25047         * modules/sys_stat-c++-tests: New file, extracted from
25048         modules/sys_stat-tests.
25049         * modules/sys_stat-tests: Depend on it.
25050         * modules/sys_time-c++-tests: New file, extracted from
25051         modules/sys_time-tests.
25052         * modules/sys_time-tests: Depend on it.
25053         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25054         * modules/time-tests: Depend on it.
25055         * modules/unistd-c++-tests: New file, extracted from
25056         modules/unistd-tests.
25057         * modules/unistd-tests: Depend on it.
25058         * modules/wchar-c++-tests: New file, extracted from
25059         modules/wchar-tests.
25060         * modules/wchar-tests: Depend on it.
25061         * modules/wctype-c++-tests: New file, extracted from
25062         modules/wctype-tests.
25063         * modules/wctype-tests: Depend on it.
25064         Reported by Simon Josefsson.
25065
25066 2010-03-28  Bruno Haible  <bruno@clisp.org>
25067
25068         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25069         * gnulib-tool (func_exists_module): New function, extracted from
25070         func_verify_module.
25071         (func_verify_module): Use it.
25072         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25073         'foo' only if 'foo' exists.
25074         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25075         module.
25076
25077 2010-03-28  Bruno Haible  <bruno@clisp.org>
25078
25079         gnulib-tool: Add support for special categories of tests.
25080         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25081         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25082         (func_usage): Document them.
25083         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25084         inc_unportable_tests, inc_all_tests): New variables.
25085         (func_acceptable): Consider these variables.
25086         (func_modules_transitive_closure): Make it work when the 'Status' field
25087         consists of multiple words.
25088         (func_import): Store and restore the values of inc_cxx_tests,
25089         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25090         inc_all_tests in gnulib-comp.m4.
25091         (func_create_testdir): Set inc_all_tests to true.
25092         * doc/gnulib.texi (Extra tests modules): New section.
25093         Suggested by Jim Meyering.
25094
25095 2010-03-28  Bruno Haible  <bruno@clisp.org>
25096
25097         ansi-c++-opt: Allow turning off the C++ build by default.
25098         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25099         gl_CXX_CHOICE_DEFAULT_NO is defined.
25100         Requested by Eric Blake.
25101
25102 2010-03-28  Bruno Haible  <bruno@clisp.org>
25103
25104         unistd: Avoid #define replacements in C++ mode.
25105         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25106         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25107         setsockopt, shutdown, select): In C++, attach a warning to the function
25108         if possible, rather than #defining the symbol to a dysfunctional alias.
25109         Reported by John W. Eaton <jwe@gnu.org>.
25110
25111 2010-03-28  Bruno Haible  <bruno@clisp.org>
25112
25113         Fix link errors on mingw.
25114         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25115         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25116         $(LIBSOCKET).
25117         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25118         $(LIBSOCKET).
25119
25120 2010-03-28  Bruno Haible  <bruno@clisp.org>
25121             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25122
25123         lib-ignore: Determine different options for different compilers.
25124         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25125         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25126         Add comments.
25127         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25128         * NEWS: Mention the change.
25129
25130 2010-03-27  Bruno Haible  <bruno@clisp.org>
25131
25132         Remove unused GNULIB_XYZ macro definitions.
25133         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25134         * modules/fseek (configure.ac): Likewise.
25135         * modules/ioctl (configure.ac): Likewise.
25136         * modules/open (configure.ac): Likewise.
25137         * modules/stdlib-safer (configure.ac): Likewise.
25138
25139 2010-03-27  Bruno Haible  <bruno@clisp.org>
25140
25141         Add a remark about certain modules.
25142         * modules/malloc (Comment): New section.
25143         * modules/realloc (Comment): Likewise.
25144         * modules/sigpipe (Comment): Likewise.
25145
25146 2010-03-27  Bruno Haible  <bruno@clisp.org>
25147
25148         Resolve conflict between the two kinds of module indicators.
25149         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25150         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25151         * modules/canonicalize (configure.ac): Invoke
25152         gl_MODULE_INDICATOR_FOR_TESTS.
25153         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25154         GNULIB_XYZ.
25155         * tests/test-dirent-c++.cc: Likewise.
25156         * tests/test-dirent-safer.c: Likewise.
25157         * tests/test-dup2.c: Likewise.
25158         * tests/test-fchdir.c: Likewise.
25159         * tests/test-fcntl-h-c++.cc: Likewise.
25160         * tests/test-getopt.c: Likewise.
25161         * tests/test-getopt.h: Likewise.
25162         * tests/test-langinfo-c++.cc: Likewise.
25163         * tests/test-locale-c++.cc: Likewise.
25164         * tests/test-math-c++.cc: Likewise.
25165         * tests/test-pty-c++.cc: Likewise.
25166         * tests/test-search-c++.cc: Likewise.
25167         * tests/test-signal-c++.cc: Likewise.
25168         * tests/test-spawn-c++.cc: Likewise.
25169         * tests/test-stdio-c++.cc: Likewise.
25170         * tests/test-stdlib-c++.cc: Likewise.
25171         * tests/test-string-c++.cc: Likewise.
25172         * tests/test-sys_ioctl-c++.cc: Likewise.
25173         * tests/test-sys_select-c++.cc: Likewise.
25174         * tests/test-sys_socket-c++.cc: Likewise.
25175         * tests/test-sys_stat-c++.cc: Likewise.
25176         * tests/test-sys_time-c++.cc: Likewise.
25177         * tests/test-time-c++.cc: Likewise.
25178         * tests/test-unistd-c++.cc: Likewise.
25179         * tests/test-wchar-c++.cc: Likewise.
25180         * tests/uninorm/test-u8-nfc.c: Likewise.
25181         * tests/uninorm/test-u8-nfd.c: Likewise.
25182         * tests/uninorm/test-u8-nfkc.c: Likewise.
25183         * tests/uninorm/test-u8-nfkd.c: Likewise.
25184         * tests/uninorm/test-u16-nfc.c: Likewise.
25185         * tests/uninorm/test-u16-nfd.c: Likewise.
25186         * tests/uninorm/test-u16-nfkc.c: Likewise.
25187         * tests/uninorm/test-u16-nfkd.c: Likewise.
25188         * tests/uninorm/test-u32-nfc.c: Likewise.
25189         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25190         * tests/uninorm/test-u32-nfd.c: Likewise.
25191         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25192         * tests/uninorm/test-u32-nfkc.c: Likewise.
25193         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25194         * tests/uninorm/test-u32-nfkd.c: Likewise.
25195         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25196         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25197
25198 2010-03-27  Bruno Haible  <bruno@clisp.org>
25199
25200         Distinguish two kinds of module indicators.
25201         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25202         gl_MODULE_INDICATOR.
25203         (gl_MODULE_INDICATOR): New macro.
25204         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25205         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25206         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25207         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25208         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25209         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25210         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25211         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25212         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25213         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25214         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25215         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25217         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25218         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25220         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25221         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25222         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25223         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25224         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25225         * modules/cloexec (configure.ac): Likewise.
25226         * modules/getopt-gnu (configure.ac): Likewise.
25227         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25228         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25229         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25230         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25231
25232 2010-03-27  Bruno Haible  <bruno@clisp.org>
25233
25234         New module description field 'Comment'.
25235         * gnulib-tool: New option --extract-comment.
25236         (func_usage): Document it.
25237         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25238         (func_get_comment): New function.
25239         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25240
25241 2010-03-27  Bruno Haible  <bruno@clisp.org>
25242
25243         Addendum to 2010-02-07 commit.
25244         * gnulib-tool (func_usage): Document --extract-applicability option.
25245
25246 2010-03-27  Bruno Haible  <bruno@clisp.org>
25247
25248         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25249         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25250         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25251         rather than link errors.
25252
25253 2010-03-27  Bruno Haible  <bruno@clisp.org>
25254
25255         Avoid side effects from tests-related modules on the compilation of lib.
25256         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25257         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25258         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25259         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25260         macro.
25261         (func_import): Define a witness macro. Assign it a value that depends
25262         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25263         tests-related modules.
25264         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25265         Reported by Jim Meyering.
25266
25267 2010-03-27  Bruno Haible  <bruno@clisp.org>
25268
25269         Factorize common .m4 code.
25270         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25271         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25272         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25273         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25274         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25275         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25276         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25277         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25278         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25279         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25280         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25281         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25282         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25283         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25284         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25285         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25286         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25287         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25288         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25289         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25290         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25292         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25293         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25294         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25295         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25296         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25297         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25298         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25299         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25300         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25301         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25302
25303 2010-03-27  Bruno Haible  <bruno@clisp.org>
25304
25305         Fix a compilation error on Cygwin with g++ >= 4.3.
25306         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25307         if it is undefined or if we alias it to chmod.
25308         (lstat): Don't warn about the use of this function if it is undefined
25309         or if we alias it to stat.
25310         Reported by Simon Josefsson.
25311
25312 2010-03-27  Bruno Haible  <bruno@clisp.org>
25313
25314         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25315         * modules/getlogin (configure.ac): Update.
25316
25317         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25318         * modules/getlogin_r (configure.ac): Update.
25319
25320         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25321         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25322         * modules/inet_ntop (configure.ac): Update.
25323
25324         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25325         * modules/inet_pton (configure.ac): Update.
25326
25327         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25328         * modules/mbslen (configure.ac): Update.
25329
25330         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25331         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25332         * modules/forkpty (configure.ac): Update.
25333         * modules/openpty (configure.ac): Update.
25334
25335 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25336
25337         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25338         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25339
25340 2010-03-25  Eric Blake  <eblake@redhat.com>
25341
25342         maint: use pragma consistently across replacement headers
25343         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25344         * lib/dirent.in.h (system_header): Likewise.
25345         * lib/errno.in.h (system_header): Likewise.
25346         * lib/float.in.h (system_header): Likewise.
25347         * lib/getopt.in.h (system_header): Likewise.
25348         * lib/iconv.in.h (system_header): Likewise.
25349         * lib/inttypes.in.h (system_header): Likewise.
25350         * lib/langinfo.in.h (system_header): Likewise.
25351         * lib/locale.in.h (system_header): Likewise.
25352         * lib/math.in.h (system_header): Likewise.
25353         * lib/netdb.in.h (system_header): Likewise.
25354         * lib/netinet_in.in.h (system_header): Likewise.
25355         * lib/pty.in.h (system_header): Likewise.
25356         * lib/sched.in.h (system_header): Likewise.
25357         * lib/se-selinux.in.h (system_header): Likewise.
25358         * lib/search.in.h (system_header): Likewise.
25359         * lib/spawn.in.h (system_header): Likewise.
25360         * lib/stdarg.in.h (system_header): Likewise.
25361         * lib/stdint.in.h (system_header): Likewise.
25362         * lib/string.in.h (system_header): Likewise.
25363         * lib/strings.in.h (system_header): Likewise.
25364         * lib/sys_file.in.h (system_header): Likewise.
25365         * lib/sys_ioctl.in.h (system_header): Likewise.
25366         * lib/sys_socket.in.h (system_header): Likewise.
25367         * lib/sys_times.in.h (system_header): Likewise.
25368         * lib/sys_utsname.in.h (system_header): Likewise.
25369         * lib/sys_wait.in.h (system_header): Likewise.
25370         * lib/sysexits.in.h (system_header): Likewise.
25371         * lib/unistd.in.h (system_header): Likewise.
25372         * lib/wctype.in.h (system_header): Likewise.
25373
25374         arpa/inet: fix mingw compilation warning
25375         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25376         Reported by Matthew Bolte.
25377
25378 2010-03-25  Bruno Haible  <bruno@clisp.org>
25379
25380         Avoid collision between gnulib wrapper and libintl wrapper.
25381         * lib/printf.c (printf): Don't define if a printf wrapper is already
25382         defined in intl/printf.c.
25383         Reported by Michel Boaventura <michel@michelboaventura.com>.
25384
25385 2010-03-25  Bruno Haible  <bruno@clisp.org>
25386
25387         Use ANSI C.
25388         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25389
25390 2010-03-25  Bruno Haible  <bruno@clisp.org>
25391
25392         Minor formatting changes.
25393         * lib/acosl.c: Insert space before function argument list.
25394         * lib/argz.c: Likewise.
25395         * lib/asinl.c: Likewise.
25396         * lib/expl.c: Likewise.
25397         * lib/gen-uni-tables.c: Likewise.
25398         * lib/gettext.h: Likewise.
25399         * lib/glthread/lock.h: Likewise.
25400         * lib/tanl.c: Likewise.
25401         * lib/uniname/uniname.c: Likewise.
25402         * tests/test-idpriv-drop.c: Likewise.
25403         * tests/test-idpriv-droptemp.c: Likewise.
25404         * tests/test-lock.c: Likewise.
25405         * tests/test-tls.c: Likewise.
25406         * lib/argp-help.c: Insert space before function-like macro argument
25407         list.
25408         * lib/memcmp.c: Likewise.
25409         * tests/test-base64.c: Likewise.
25410         * lib/localename.c: Insert space before sizeof's argument list.
25411         * lib/safe-alloc.h: Likewise.
25412         * lib/file-set.h: Insert space before macro argument list.
25413         * tests/test-argp.c: Likewise.
25414         * lib/argp-namefrob.h: Insert space before function parameter list.
25415         * lib/getaddrinfo.c: Likewise.
25416         * lib/netdb.in.h: Likewise.
25417         * lib/parse-duration.h: Likewise.
25418         * lib/parse-duration.c: Likewise.
25419         * lib/poll.c: Likewise.
25420         * lib/select.c: Likewise.
25421         * lib/trim.h: Likewise.
25422         * tests/test-usleep.c: Likewise.
25423         * lib/ldexpl.c: Insert space before function parameter list and before
25424         function argument list.
25425         * lib/logl.c: Likewise.
25426         * lib/sqrtl.c: Likewise.
25427         * lib/trim.c: Likewise.
25428         * lib/cosl.c: Use GNU style indentation. Insert space before function
25429         argument list.
25430         * lib/sinl.c: Likewise.
25431         * lib/tsearch.c: Insert space after 'for'.
25432         Reported by Jim Meyering.
25433
25434 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25435
25436         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25437         config header before grepping, as it's not present before
25438         autoreconf/configure are run.  Reported by Simon Josefsson.
25439
25440 2010-03-23  Bruno Haible  <bruno@clisp.org>
25441
25442         pt_chown: Make it work with automake < 1.11.
25443         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25444         Reported by Simon Josefsson.
25445
25446 2010-03-23  Bruno Haible  <bruno@clisp.org>
25447
25448         pt_chown: Don't depend on GPLed modules.
25449         * lib/pt_chown.c: Don't include idpriv.h.
25450         (main): Don't drop privileges.
25451         * modules/pt_chown (Depends-on): Remove idpriv-drop.
25452         Reported by Simon Josefsson.
25453
25454 2010-03-24  Simon Josefsson  <simon@josefsson.org>
25455
25456         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
25457         suggestions from karl@freefriends.org (Karl Berry).
25458
25459 2010-03-22  Eric Blake  <eblake@redhat.com>
25460
25461         gethostname: further tweaks
25462         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
25463         are overriding gethostname.
25464         Suggested by Bruno Haible.
25465
25466 2010-03-21  Bruno Haible  <bruno@clisp.org>
25467
25468         Fix comments.
25469         * lib/forkpty.c (rpl_forkpty): Fix comment.
25470         * lib/openpty.c (rpl_openpty): Likewise.
25471         Reported by Eric Blake.
25472
25473 2010-03-22  Eric Blake  <eblake@redhat.com>
25474
25475         gethostname: fix build on mingw
25476         * lib/unistd.in.h (includes): Work around fact that mingw
25477         <winsock2.h> re-includes <unistd.h>, by avoiding any
25478         redeclarations if we are being included by <winsock2.h>.
25479         Reported by Matthias Bolte.
25480
25481 2010-03-21  Bruno Haible  <bruno@clisp.org>
25482
25483         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25484         * lib/forkpty.c (forkpty): New replacement function, from glibc with
25485         modifications.
25486         * lib/pty.in.h (forkpty): Update declaration. Add comments.
25487         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
25488         provide the replacement.
25489         * modules/forkpty (Depends-on): Add openpty, login_tty.
25490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
25491         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
25492         * doc/glibc-functions/forkpty.texi: More supported platforms.
25493         * config/srclist.txt: Add forkpty.c (commented).
25494
25495 2010-03-21  Bruno Haible  <bruno@clisp.org>
25496
25497         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
25498         (Makefile.am): Verify that PTY_LIB is defined.
25499
25500         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
25501
25502 2010-03-21  Bruno Haible  <bruno@clisp.org>
25503
25504         Tests for module 'login_tty'.
25505         * modules/login_tty-tests: New file.
25506         * tests/test-login_tty.c: New file.
25507
25508         New module 'login_tty'.
25509         * lib/login_tty.c: New file.
25510         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
25511         * modules/login_tty: New file.
25512         * doc/glibc-functions/login_tty.texi: Mention the new module.
25513
25514 2010-03-21  Bruno Haible  <bruno@clisp.org>
25515
25516         login_tty: Documentation.
25517         * doc/glibc-functions/login_tty.texi: New file.
25518         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
25519
25520 2010-03-21  Bruno Haible  <bruno@clisp.org>
25521
25522         pty: Consistent macro naming.
25523         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
25524         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
25525         * modules/pty (configure.ac): Update.
25526
25527 2010-03-21  Bruno Haible  <bruno@clisp.org>
25528
25529         Tests for openpty: Make stricter.
25530         * tests/test-openpty.c (main): Add test of canonical processing and
25531         erase.
25532         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
25533
25534         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
25535         * lib/openpty.c (openpty): New replacement function.
25536         * lib/pty.in.h: Include <termios.h>.
25537         (openpty): Update declaration. Add comments.
25538         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
25539         is not declared, arrange to provide the replacement. Check for _getpty
25540         and posix_openpt.
25541         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
25542         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
25543         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
25544         * modules/pty-tests (test_pty_c___LDADD): New variable.
25545         * doc/glibc-functions/openpty.texi: More supported platforms.
25546
25547 2010-03-21  Bruno Haible  <bruno@clisp.org>
25548
25549         setenv: Tweaks.
25550         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
25551         the test program.
25552         * doc/posix-functions/setenv.texi: Update platforms list.
25553
25554 2010-03-21  Bruno Haible  <bruno@clisp.org>
25555
25556         New module 'unlockpt'.
25557         * lib/unlockpt.c: New file, from glibc with modifications.
25558         * m4/unlockpt.m4: New file.
25559         * modules/unlockpt: New file.
25560         * lib/stdlib.in.h (unlockpt): New declaration.
25561         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
25562         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
25563         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
25564         HAVE_UNLOCKPT.
25565         * doc/posix-functions/unlockpt.texi: Mention the new module.
25566         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
25567         * config/srclist.txt: Add unlockpt.c (commented).
25568
25569 2010-03-21  Jim Meyering  <meyering@redhat.com>
25570
25571         maint.mk: prohibit inclusion of "intprops.h" without use
25572         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
25573
25574 2010-03-21  Bruno Haible  <bruno@clisp.org>
25575
25576         New module 'grantpt'.
25577         * lib/grantpt.c: New file, from glibc with modifications.
25578         * m4/grantpt.m4: New file.
25579         * modules/grantpt: New file.
25580         * lib/stdlib.in.h (grantpt): New declaration.
25581         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
25582         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
25583         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
25584         HAVE_GRANTPT.
25585         * doc/posix-functions/grantpt.texi: Mention the new module.
25586         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
25587         * config/srclist.txt: Add grantpt.c (commented).
25588
25589 2010-03-21  Bruno Haible  <bruno@clisp.org>
25590
25591         New module 'pt_chown'.
25592         * lib/pt_chown.c: New file, from glibc with modifications.
25593         * lib/pty-private.h: New file, from glibc with modifications.
25594         * modules/pt_chown: New file.
25595         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
25596
25597 2010-03-21  Bruno Haible  <bruno@clisp.org>
25598
25599         Tests for module 'ptsname'.
25600         * modules/ptsname-tests: New file.
25601         * tests/test-ptsname.c: New file.
25602
25603         New module 'ptsname'.
25604         * lib/ptsname.c: New file, from glibc with modifications.
25605         * m4/ptsname.m4: New file.
25606         * modules/ptsname: New file.
25607         * lib/stdlib.in.h (ptsname): New declaration.
25608         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
25609         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
25610         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
25611         HAVE_PTSNAME.
25612         * doc/posix-functions/ptsname.texi: Mention the new module.
25613         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
25614         * config/srclist.txt: Add ptsname.c (commented).
25615
25616 2010-03-21  Bruno Haible  <bruno@clisp.org>
25617
25618         Tests for module 'ttyname_r'.
25619         * modules/ttyname_r-tests: New file.
25620         * tests/test-ttyname_r.c: New file.
25621
25622         New module 'ttyname_r'.
25623         * lib/ttyname_r.c: New file.
25624         * m4/ttyname_r.m4: New file.
25625         * modules/ttyname_r: New file.
25626         * lib/unistd.in.h (ttyname_r): New declaration.
25627         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
25628         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
25629         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
25630         HAVE_TTYNAME_R.
25631         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
25632         * doc/posix-functions/ttyname_r.texi: Mention the new module.
25633
25634 2010-03-20  Bruno Haible  <bruno@clisp.org>
25635
25636         signal: Undefine macro definitions in C++ mode.
25637         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
25638         sigfillset): Undefine macro definitions from the system header in C++
25639         mode.
25640         Reported by John W. Eaton <jwe@gnu.org>.
25641
25642 2010-03-20  Bruno Haible  <bruno@clisp.org>
25643
25644         Ensure no #include statements inside extern "C" { ... }.
25645         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
25646         contain #include statements.
25647         * lib/time.in.h: Likewise.
25648
25649 2010-03-20  Bruno Haible  <bruno@clisp.org>
25650
25651         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
25652         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
25653         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
25654         Reported by John W. Eaton <jwe@gnu.org>.
25655
25656 2010-03-20  Bruno Haible  <bruno@clisp.org>
25657
25658         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
25659         Reported by Jim Meyering.
25660
25661 2010-03-20  Bruno Haible  <bruno@clisp.org>
25662
25663         pipe: Set errno upon failure.
25664         * lib/pipe.h: Specify that when -1 is returned, errno is set.
25665         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
25666         errno value in error message.
25667
25668 2010-03-20  Bruno Haible  <bruno@clisp.org>
25669             Jim Meyering  <meyering@redhat.com>
25670
25671         lchown: Avoid "unused variable" warning.
25672         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
25673
25674 2010-03-20  Bruno Haible  <bruno@clisp.org>
25675
25676         Work around unlink() bug on MacOS X 10.5.6.
25677         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
25678         attempting to unlink a parent directory.
25679         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
25680         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
25681         activate for the replacement function.
25682         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
25683
25684 2010-03-20  Bruno Haible  <bruno@clisp.org>
25685
25686         Fix link errors on Solaris 8.
25687         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
25688         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
25689
25690 2010-03-19  Jim Meyering  <meyering@redhat.com>
25691
25692         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
25693         The _LIBC implementation of build_range_exp correctly honors the
25694         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
25695         However, the non-_LIBC implementation would ignore that syntax-bit
25696         flag and return REG_ERANGE unconditionally.
25697         This change makes it honor that flag.
25698         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
25699         Make two pointer parameters "const".
25700         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
25701         (parse_bracket_exp): Update caller.
25702
25703         regex.m4: correct the reversed range endpoint ([b-a]) test
25704         * m4/regex.m4: When requiring that [b-a] evoke failure,
25705         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
25706         test pass once again for x86-based systems.
25707
25708 2010-03-19  Bruno Haible  <bruno@clisp.org>
25709
25710         scandir: Fix link error on Solaris 8.
25711         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
25712         macros.
25713
25714 2010-03-19  Bruno Haible  <bruno@clisp.org>
25715
25716         getusershell: Fix documentation.
25717         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
25718         module.
25719         * doc/glibc-functions/setusershell.texi: Likewise.
25720
25721         getusershell: Provide declaration, missing on Solaris 9.
25722         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
25723         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
25724         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
25725         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
25726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25727         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
25728         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
25729         HAVE_GETUSERSHELL.
25730         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
25731
25732 2010-03-19  Bruno Haible  <bruno@clisp.org>
25733
25734         wctype: Provide iswblank function.
25735         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
25736         exists and is fine.
25737         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
25738         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
25739         * tests/test-wctype.c (main): Re-enable the iswblank tests.
25740         * doc/posix-functions/iswblank.texi: Update.
25741
25742 2010-03-19  Bruno Haible  <bruno@clisp.org>
25743
25744         Tests of module 'pty' in C++ mode.
25745         * modules/pty-tests: New file.
25746         * tests/test-pty-c++.cc: New file.
25747         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
25748
25749 2010-03-19  Eric Blake  <eblake@redhat.com>
25750
25751         logb: fix documentation
25752         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
25753         1.5 declaration bug.
25754
25755         forkpty, openpty: prefer glibc's const-safe prototype
25756         * lib/forkpty.c (rpl_forkpty): New file.
25757         * lib/openpty.c (rpl_openpty): Likewise.
25758         * modules/forkpty (Files): Distribute it.
25759         * modules/openpty (Files): Likewise.
25760         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
25761         check...
25762         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
25763         replacement for for non-const BSD signature.
25764         * modules/pty (Makefile.am): Substitute witnesses.
25765         * lib/pty.in.h (forkpty, openpty): Declare replacements.
25766         * tests/test-forkpty.c: Update signature check.
25767         * tests/test-openpty.c: Likewise.
25768         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
25769         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25770
25771         forkpty, openpty: split functions into new modules
25772         * modules/pty (Makefile.am): Substitute new witnesses.
25773         (Libraries): Move library detection...
25774         * modules/forkpty: ...into new module.
25775         * modules/openpty: Another new module.
25776         * modules/pty-tests: Rename and split...
25777         * modules/forkpty-tests: ...to this...
25778         * modules/openpty-tests: ...and this.
25779         * tests/test-pty.c: Rename and split...
25780         * tests/test-forkpty.c: ...to this...
25781         * tests/test-openpty.c: ...and this.
25782         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
25783         (gl_PTY): Split library searching...
25784         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
25785         (gl_FORKPTY, gl_OPENPTY): New macros.
25786         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
25787         * NEWS: Mention the split.
25788         * MODULES.html.sh (Misc): Document the modules.
25789         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
25790         * doc/glibc-functions/openpty.texi (openpty): Likewise.
25791
25792         pty: improve replacement header
25793         * lib/pty.in.h: New file.
25794         * modules/pty (Files): Ship it.
25795         (Makefile.am): Always build replacement.
25796         * m4/pty.m4: Rename...
25797         * m4/pty_h.m4: ...to this.
25798         (gl_PTY): Modernize setting of witness macros; update check of
25799         forkpty to take proper advantage of cache.
25800         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
25801
25802         getopt: avoid compiler warning
25803         * lib/getopt.c (attribute_hidden): Remove unused macro.
25804
25805 2010-03-18  Bruno Haible  <bruno@clisp.org>
25806
25807         Fix link errors on Solaris 8.
25808         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
25809         * modules/search-tests (test_search_c___LDADD): Likewise.
25810         * modules/signal-tests (test_signal_c___LDADD): Likewise.
25811         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
25812         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
25813         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
25814         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
25815         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
25816         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
25817
25818 2010-03-18  Bruno Haible  <bruno@clisp.org>
25819
25820         Fix bug introduced on 2010-03-14.
25821         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
25822         (gl_SPAWN_H): Require it.
25823         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
25824         Reported by Simon Josefsson.
25825
25826 2010-03-18  Bruno Haible  <bruno@clisp.org>
25827
25828         Fix typo introduced on 2009-12-31.
25829         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
25830         posix_spawn_file_actions_adddup2.
25831
25832 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
25833         and Eric Blake  <eblake@redhat.com>
25834
25835         test-vc-list-files-git: make more robust
25836         * tests/test-vc-list-files-git.sh: Unset problematic environment
25837         variables.  Chain commands together.
25838
25839 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
25840
25841         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
25842         `AC_CHECK_DECL' invocation.
25843
25844 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
25845
25846         * lib/inttostr.c (inttostr): Make sure the invocation of verify
25847         appears before executable statements. Suggested by Petr Sumbera
25848         <Petr.Sumbera@Sun.COM>.
25849
25850 2010-03-14  Bruno Haible  <bruno@clisp.org>
25851
25852         * tests/test-flock.c (test_exclusive): Comment out a test that causes
25853         portability problems. Instead use a simpler test.
25854         (main): Check that invalid arguments are rejected only on Linux.
25855
25856 2010-03-14  Bruno Haible  <bruno@clisp.org>
25857
25858         Fix bug introduced on 2009-12-31.
25859         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25860         gl_PREREQ_SYS_H_WINSOCK2 always.
25861         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
25862         SYS_SOCKET_H variable.
25863         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
25864         Update comments.
25865         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
25866         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25867         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25868         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25869         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
25870
25871 2010-03-14  Bruno Haible  <bruno@clisp.org>
25872
25873         Fix values returned by sinl, cosl.
25874         * lib/trigl.h: Add specification comments.
25875         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
25876         that combines the values from the precomputed table with the values of
25877         the Chebyshev polynomials.
25878
25879 2010-03-14  Bruno Haible  <bruno@clisp.org>
25880
25881         Fix compilation error when modules 'posix_spawn[p]' are not used.
25882         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
25883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
25884
25885 2010-03-14  Bruno Haible  <bruno@clisp.org>
25886
25887         Fix compilation error on mingw when module 'time_r' is not used.
25888         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
25889         is 1.
25890         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
25891         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
25892         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
25893         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
25894
25895 2010-03-14  Bruno Haible  <bruno@clisp.org>
25896
25897         Fix compilation error with Sun C.
25898         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
25899         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
25900         instead of GCC specific ULONG_LONG_MAX.
25901         * lib/xstrtoll.c: Likewise.
25902         * lib/xstrtoull.c: Likewise.
25903
25904 2010-03-13  Bruno Haible  <bruno@clisp.org>
25905
25906         Allow the user to disable C++ code and tests.
25907         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
25908         (gl_PROG_ANSI_CXX): Require it.
25909
25910 2010-03-13  Bruno Haible  <bruno@clisp.org>
25911
25912         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
25913         cases.
25914
25915 2010-03-13  Bruno Haible  <bruno@clisp.org>
25916
25917         Test that gnulib does not break the standard C++ headers.
25918         * tests/test-locale-c++2.cc: New file.
25919         * modules/locale-tests (Files): Add it.
25920         (Makefile.am): Compile it for test-locale-c++.
25921         * tests/test-math-c++2.cc: New file.
25922         * modules/math-tests (Files): Add it.
25923         (Makefile.am): Compile it for test-math-c++.
25924         * tests/test-signal-c++2.cc: New file.
25925         * modules/signal-tests (Files): Add it.
25926         (Makefile.am): Compile it for test-signal-c++.
25927         * tests/test-stdio-c++2.cc: New file.
25928         * modules/stdio-tests (Files): Add it.
25929         (Makefile.am): Compile it for test-stdio-c++.
25930         * tests/test-stdlib-c++2.cc: New file.
25931         * modules/stdlib-tests (Files): Add it.
25932         (Makefile.am): Compile it for test-stdlib-c++.
25933         * tests/test-string-c++2.cc: New file.
25934         * modules/string-tests (Files): Add it.
25935         (Makefile.am): Compile it for test-string-c++.
25936         * tests/test-time-c++2.cc: New file.
25937         * modules/time-tests (Files): Add it.
25938         (Makefile.am): Compile it for test-time-c++.
25939         Reported by John W. Eaton <jwe@gnu.org>.
25940
25941 2010-03-13  Bruno Haible  <bruno@clisp.org>
25942
25943         * gnulib-tool (func_usage): Clarify which options are available for
25944         --create-testdir and --create-megatestdir.
25945
25946 2010-03-13  Bruno Haible  <bruno@clisp.org>
25947
25948         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
25949         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
25950         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
25951         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25952         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
25953         when appropriate.
25954         Reported by Jim Meyering.
25955
25956 2010-03-12  Simon Josefsson  <simon@josefsson.org>
25957
25958         * gnulib-tool (func_import): Explain origin of code.
25959
25960 2010-03-12  Bruno Haible  <bruno@clisp.org>
25961
25962         Fix problem with automake's definition of CXXLINK.
25963         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
25964         Reported by Simon Josefsson and Ludovic Courtès.
25965
25966 2010-03-12  Bruno Haible  <bruno@clisp.org>
25967
25968         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
25969         stable releases.
25970
25971 2010-03-11  Bruno Haible  <bruno@clisp.org>
25972
25973         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
25974         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
25975         whether the system provides one variant or multiple variants of the
25976         function.
25977         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
25978         C++ compilers.
25979         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
25980         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
25981         Reported by Jim Meyering.
25982
25983 2010-03-09  Simon Josefsson  <simon@josefsson.org>
25984
25985         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
25986
25987 2010-03-08  Bruno Haible  <bruno@clisp.org>
25988
25989         gnulib-tool: Add support for --libtool in --create-testdir.
25990         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
25991         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
25992
25993 2010-03-08  Eric Blake  <eblake@redhat.com>
25994
25995         gnulib-tool.texi: mention possibility of git submodule
25996         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
25997         submodules.
25998         * doc/.gitignore: Ignore another generated file.
25999
26000 2010-03-08  Karl Berry  <karl@gnu.org>
26001
26002         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26003         of committing gnulib files while skipping others.
26004
26005 2010-03-07  Bruno Haible  <bruno@clisp.org>
26006
26007         Tests of module 'wctype' in C++ mode.
26008         * tests/test-wctype-c++.cc: New file.
26009         * modules/wctype-tests (Files): Add it and tests/signature.h.
26010         (Depends-on): Add ansi-c++-opt.
26011         (Makefile.am): Arrange to compile and run test-wctype-c++.
26012
26013         Tests of module 'wchar' in C++ mode.
26014         * tests/test-wchar-c++.cc: New file.
26015         * modules/wchar-tests (Files): Add it and tests/signature.h.
26016         (Depends-on): Add ansi-c++-opt.
26017         (Makefile.am): Arrange to compile and run test-wchar-c++.
26018         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26019         gl_MODULE_INDICATOR.
26020
26021         Tests of module 'unistd' in C++ mode.
26022         * tests/test-unistd-c++.cc: New file.
26023         * modules/unistd-tests (Files): Add it and tests/signature.h.
26024         (Depends-on): Add ansi-c++-opt.
26025         (Makefile.am): Arrange to compile and run test-unistd-c++.
26026         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26027         gl_MODULE_INDICATOR.
26028
26029         Tests of module 'time' in C++ mode.
26030         * tests/test-time-c++.cc: New file.
26031         * modules/time-tests (Files): Add it and tests/signature.h.
26032         (Depends-on): Add ansi-c++-opt.
26033         (Makefile.am): Arrange to compile and run test-time-c++.
26034         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26035
26036         Tests of module 'sys_time' in C++ mode.
26037         * tests/test-sys_time-c++.cc: New file.
26038         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26039         (Depends-on): Add ansi-c++-opt.
26040         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26041         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26042         gl_MODULE_INDICATOR.
26043
26044         Tests of module 'sys_stat' in C++ mode.
26045         * tests/test-sys_stat-c++.cc: New file.
26046         * modules/sys_stat-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_stat-c++.
26049         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26050         gl_MODULE_INDICATOR.
26051
26052         Tests of module 'sys_socket' in C++ mode.
26053         * tests/test-sys_socket-c++.cc: New file.
26054         * modules/sys_socket-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_socket-c++.
26057         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26058         gl_MODULE_INDICATOR.
26059
26060         Tests of module 'sys_select' in C++ mode.
26061         * tests/test-sys_select-c++.cc: New file.
26062         * modules/sys_select-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_select-c++.
26065         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26066         gl_MODULE_INDICATOR.
26067
26068         Tests of module 'sys_ioctl' in C++ mode.
26069         * tests/test-sys_ioctl-c++.cc: New file.
26070         * modules/sys_ioctl-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_ioctl-c++.
26073         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26074         gl_MODULE_INDICATOR.
26075
26076         Tests of module 'string' in C++ mode.
26077         * tests/test-string-c++.cc: New file.
26078         * modules/string-tests (Files): Add it and tests/signature.h.
26079         (Depends-on): Add ansi-c++-opt.
26080         (Makefile.am): Arrange to compile and run test-string-c++.
26081         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26082         gl_MODULE_INDICATOR.
26083
26084         Tests of module 'stdlib' in C++ mode.
26085         * tests/test-stdlib-c++.cc: New file.
26086         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26087         (Depends-on): Add ansi-c++-opt.
26088         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26089         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26090         gl_MODULE_INDICATOR.
26091
26092         Tests of module 'stdio' in C++ mode.
26093         * tests/test-stdio-c++.cc: New file.
26094         * modules/stdio-tests (Files): Add it and tests/signature.h.
26095         (Depends-on): Add ansi-c++-opt.
26096         (Makefile.am): Arrange to compile and run test-stdio-c++.
26097         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26098         gl_MODULE_INDICATOR.
26099
26100         Tests of module 'spawn' in C++ mode.
26101         * tests/test-spawn-c++.cc: New file.
26102         * modules/spawn-tests (Files): Add it and tests/signature.h.
26103         (Depends-on): Add ansi-c++-opt.
26104         (Makefile.am): Arrange to compile and run test-spawn-c++.
26105         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26106         gl_MODULE_INDICATOR.
26107
26108         Tests of module 'signal' in C++ mode.
26109         * tests/test-signal-c++.cc: New file.
26110         * modules/signal-tests (Files): Add it and tests/signature.h.
26111         (Depends-on): Add ansi-c++-opt.
26112         (Makefile.am): Arrange to compile and run test-signal-c++.
26113         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26114         gl_MODULE_INDICATOR.
26115
26116         Tests of module 'search' in C++ mode.
26117         * tests/test-search-c++.cc: New file.
26118         * modules/search-tests (Files): Add it and tests/signature.h.
26119         (Depends-on): Add ansi-c++-opt.
26120         (Makefile.am): Arrange to compile and run test-search-c++.
26121         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26122         gl_MODULE_INDICATOR.
26123
26124         Tests of module 'math' in C++ mode.
26125         * tests/test-math-c++.cc: New file.
26126         * modules/math-tests (Files): Add it and tests/signature.h.
26127         (Depends-on): Add ansi-c++-opt.
26128         (Makefile.am): Arrange to compile and run test-math-c++.
26129         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26130
26131         Tests of module 'locale' in C++ mode.
26132         * tests/test-locale-c++.cc: New file.
26133         * modules/locale-tests (Files): Add it and tests/signature.h.
26134         (Depends-on): Add ansi-c++-opt.
26135         (Makefile.am): Arrange to compile and run test-locale-c++.
26136         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26137         gl_MODULE_INDICATOR.
26138
26139         Tests of module 'langinfo' in C++ mode.
26140         * tests/test-langinfo-c++.cc: New file.
26141         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26142         (Depends-on): Add ansi-c++-opt.
26143         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26144         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26145         gl_MODULE_INDICATOR.
26146
26147         Tests of module 'iconv-h' in C++ mode.
26148         * tests/test-iconv-h-c++.cc: New file.
26149         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26150         (Depends-on): Add ansi-c++-opt.
26151         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26152
26153         Tests of module 'glob' in C++ mode.
26154         * tests/test-glob-c++.cc: New file.
26155         * modules/glob-tests (Files): Add it.
26156         (Depends-on): Add ansi-c++-opt.
26157         (Makefile.am): Arrange to compile and run test-glob-c++.
26158
26159         Tests of module 'fcntl-h' in C++ mode.
26160         * tests/test-fcntl-h-c++.cc: New file.
26161         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26162         (Depends-on): Add ansi-c++-opt.
26163         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26164         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26165         gl_MODULE_INDICATOR.
26166
26167         Tests of module 'dirent' in C++ mode.
26168         * tests/test-dirent-c++.cc: New file.
26169         * modules/dirent-tests (Files): Add it and tests/signature.h.
26170         (Depends-on): Add ansi-c++-opt.
26171         (Makefile.am): Arrange to compile and run test-dirent-c++.
26172         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26173         gl_MODULE_INDICATOR.
26174
26175         New module 'ansi-c++-opt'.
26176         * modules/ansi-c++-opt: New file.
26177         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26178
26179         Document C++ namespace mode.
26180         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26181
26182         wctype: Avoid #define replacements in C++ mode.
26183         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26184         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26185         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26186         In C++, define a namespaced alias symbol.
26187         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26188         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26189         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26190         rule.
26191
26192         wchar: Avoid #define replacements in C++ mode.
26193         * lib/wchar.in.h: Include c++defs.h.
26194         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26195         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26196         symbol.
26197         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26198         * modules/wchar (Depends-on): Add c++defs.
26199         (Makefile.am): Update wchar.h rule.
26200
26201         unistd: Avoid #define replacements in C++ mode.
26202         * lib/unistd.in.h: Include c++defs.h.
26203         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26204         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26205         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26206         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26207         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26208         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26209         symbol.
26210         (environ): Update.
26211         * modules/unistd (Depends-on): Add c++defs.
26212         (Makefile.am): Update unistd.h rule.
26213
26214         time: Avoid #define replacements in C++ mode.
26215         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26216         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26217         define a namespaced alias symbol.
26218         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26219         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26220         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26221         * modules/time (Depends-on): Add c++defs, warn-on-use.
26222         (Makefile.am): Update time.h rule.
26223         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26224         * modules/nanosleep (configure.ac): Likewise.
26225         * modules/strptime (configure.ac): Likewise.
26226         * modules/timegm (configure.ac): Likewise.
26227
26228         sys_time: Avoid #define replacements in C++ mode.
26229         * lib/sys_time.in.h: Include c++defs.h.
26230         (gettimeofday): In C++, define a namespaced alias symbol.
26231         * modules/sys_time (Depends-on): Add c++defs.
26232         (Makefile.am): Update sys/time.h rule.
26233
26234         sys_stat: Avoid #define replacements in C++ mode.
26235         * lib/sys_stat.in.h: Include c++defs.h.
26236         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26237         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26238         namespaced alias symbol.
26239         In C++, define a namespaced alias symbol.
26240         * modules/sys_stat (Depends-on): Add c++defs.
26241         (Makefile.am): Update sys/stat.h rule.
26242
26243         sys_socket: Avoid #define replacements in C++ mode.
26244         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26245         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26246         definitions also when the system has a <sys/socket.h>.
26247         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26248         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26249         In C++, define a namespaced alias symbol.
26250         * modules/sys_socket (Depends-on): Add c++defs.
26251         (Makefile.am): Update sys/socket.h rule.
26252
26253         sys_select: Avoid #define replacements in C++ mode.
26254         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26255         definitions also when the system has a <sys/select.h>.
26256         (select): In C++, define a namespaced alias symbol.
26257         * modules/sys_select (Depends-on): Add c++defs.
26258         (Makefile.am): Update sys/select.h rule.
26259
26260         sys_ioctl: Avoid #define replacements in C++ mode.
26261         * lib/sys_ioctl.in.h: Include c++defs.h.
26262         (ioctl): In C++, define a namespaced alias symbol.
26263         * modules/sys_ioctl (Depends-on): Add c++defs.
26264         (Makefile.am): Update sys/ioctl.h rule.
26265
26266         string: Avoid #define replacements in C++ mode.
26267         * lib/string.in.h: Include c++defs.h.
26268         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26269         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26270         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26271         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26272         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26273         * modules/string (Depends-on): Add c++defs.
26274         (Makefile.am): Update string.h rule.
26275
26276         stdlib: Avoid #define replacements in C++ mode.
26277         * lib/stdlib.in.h: Include c++defs.h.
26278         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26279         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26280         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26281         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26282         symbol.
26283         * modules/stdlib (Depends-on): Add c++defs.
26284         (Makefile.am): Update stdlib.h rule.
26285
26286         stdio: Avoid #define replacements in C++ mode.
26287         * lib/stdio.in.h: Include c++defs.h.
26288         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26289         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26290         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26291         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26292         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26293         namespaced alias symbol.
26294         * modules/stdio (Depends-on): Add c++defs.
26295         (Makefile.am): Update stdio.h rule.
26296
26297         spawn: Avoid #define replacements in C++ mode.
26298         * lib/spawn.in.h: Include c++defs.h.
26299         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26300         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26301         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26302         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26303         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26304         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26305         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26306         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26307         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26308         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26309         In C++, define a namespaced alias symbol.
26310         * modules/spawn (Depends-on): Add c++defs.
26311         (Makefile.am): Update spawn.h rule.
26312
26313         signal: Avoid #define replacements in C++ mode.
26314         * lib/signal.in.h: Include c++defs.h.
26315         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26316         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26317         namespaced alias symbol.
26318         * modules/signal (Depends-on): Add c++defs.
26319         (Makefile.am): Update signal.h rule.
26320
26321         search: Avoid #define replacements in C++ mode.
26322         * lib/search.in.h: Include c++defs.h.
26323         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26324         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26325         symbol.
26326         * modules/search (Depends-on): Add c++defs.
26327         (Makefile.am): Update search.h rule.
26328
26329         math: Avoid #define replacements in C++ mode.
26330         * lib/math.in.h: Include c++defs.h.
26331         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26332         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26333         trunc, truncl): In C++, define a namespaced alias symbol.
26334         * modules/math (Depends-on): Add c++defs.
26335         (Makefile.am): Update math.h rule.
26336
26337         locale: Avoid #define replacements in C++ mode.
26338         * lib/locale.in.h: Include c++defs.h.
26339         (duplocale): In C++, define a namespaced alias symbol.
26340         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26341         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26342         * modules/locale (Depends-on): Add c++defs.
26343         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26344
26345         langinfo: Avoid #define replacements in C++ mode.
26346         * lib/langinfo.in.h: Include c++defs.h.
26347         (nl_langinfo): In C++, define a namespaced alias symbol.
26348         * modules/langinfo (Depends-on): Add c++defs.
26349         (Makefile.am): Update langinfo.h rule.
26350
26351         iconv-h: Avoid #define replacements in C++ mode.
26352         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26353         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26354         symbol.
26355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26356         whenever iconv is present.
26357         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26358         (Makefile.am): Update iconv.h rule.
26359
26360         glob: Avoid #define replacements in C++ mode.
26361         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26362         (_gl_glob_errfunc_fn): New type.
26363         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26364         symbol.
26365         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26366         (Makefile.am): Update glob.h rule.
26367
26368         fcntl-h: Avoid #define replacements in C++ mode.
26369         * lib/fcntl.in.h: Include c++defs.h.
26370         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26371         * modules/fcntl-h (Depends-on): Add c++defs.
26372         (Makefile.am): Update fcntl.h rule.
26373
26374         dirent: Avoid #define replacements in C++ mode.
26375         * lib/dirent.in.h: Include c++defs.h.
26376         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26377         namespaced alias symbol.
26378         (dirfd): Update declaration.
26379         * modules/dirent (Depends-on): Add c++defs.
26380         (Makefile.am): Update dirent.h rule.
26381
26382         ctype: Make it usable in C++ code.
26383         * lib/ctype.in.h: Include c++defs.h.
26384         (isblank): Declare as extern "C".
26385         * modules/ctype (Depends-on): Add c++defs.
26386         (Makefile.am): Update ctype.h rule.
26387
26388         New module 'c++defs'.
26389         * modules/c++defs: New file.
26390         * build-aux/c++defs.h: New file.
26391         Reported by John W. Eaton <jwe@gnu.org>.
26392
26393 2010-03-07  Bruno Haible  <bruno@clisp.org>
26394
26395         logb: Provide missing declaration for Cygwin.
26396         * lib/math.in.h (logb): New declaration.
26397         * m4/logb.m4: New file.
26398         * modules/logb (Files): Add m4/logb.m4.
26399         (Depends-on): Add math.
26400         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26401         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26403         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26404         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26405
26406 2010-03-07  Bruno Haible  <bruno@clisp.org>
26407
26408         Fix test-cond link error.
26409         * tests/test-cond.c: Include <stdio.h>.
26410
26411 2010-03-07  Bruno Haible  <bruno@clisp.org>
26412
26413         Fix test-dirent-safer link error.
26414         * modules/dirent-safer-tests (Makefile.am): Define
26415         test_dirent_safer_LDADD.
26416
26417 2010-03-07  Bruno Haible  <bruno@clisp.org>
26418
26419         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26420         among default module list.
26421
26422 2010-03-07  Bruno Haible  <bruno@clisp.org>
26423
26424         Fix link error on platforms with GNU libiconv.
26425         * modules/unistr/u8-strcoll-tests (Makefile): Define
26426         test_u8_strcoll_LDADD.
26427         * modules/unistr/u16-strcoll-tests (Makefile): Define
26428         test_u16_strcoll_LDADD.
26429         * modules/unistr/u32-strcoll-tests (Makefile): Define
26430         test_u32_strcoll_LDADD.
26431
26432 2010-03-07  Bruno Haible  <bruno@clisp.org>
26433
26434         Use POSIX declarations for socket functions.
26435         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26436         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26437         rpl_sendto): Change declaration to match POSIX.
26438         * lib/connect.c (rpl_connect): Likewise.
26439         * lib/accept.c (rpl_accept): Likewise.
26440         * lib/bind.c (rpl_bind): Likewise.
26441         * lib/getpeername.c (rpl_getpeername): Likewise.
26442         * lib/getsockname.c (rpl_getsockname): Likewise.
26443         * lib/recv.c (rpl_recv): Likewise.
26444         * lib/send.c (rpl_send): Likewise.
26445         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26446         * lib/sendto.c (rpl_sendto): Likewise.
26447
26448 2010-03-06  Bruno Haible  <bruno@clisp.org>
26449
26450         Clarify access, euidaccess, faccessat.
26451         * doc/posix-functions/faccessat.texi: Mention security problem under
26452         "Other problems", not "Portability problems".
26453         * doc/posix-functions/access.texi: Likewise. Mention a related security
26454         problem.
26455         * doc/glibc-functions/euidaccess.texi: Mention security problems.
26456         * lib/euidaccess.c: Add comments about platforms.
26457         * lib/unistd.in.h (access, euidaccess): Add warnings.
26458
26459 2010-03-07  Bruno Haible  <bruno@clisp.org>
26460
26461         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
26462         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
26463         (POSIX_SPAWN_SETSCHEDULER): Likewise.
26464         (POSIX_SPAWN_USEVFORK): Define in a way that works when
26465         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26466         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
26467         declare when POSIX_SPAWN_SETSCHEDULER is zero.
26468         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
26469         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
26470         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
26471         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
26472         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
26473         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
26474         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
26475         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
26476         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
26477         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
26478         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
26479         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
26480         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
26481         Likewise.
26482         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
26483         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
26484         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
26485         Likewise.
26486         * tests/test-spawn.c (main): Make it work when
26487         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
26488
26489 2010-03-07  Bruno Haible  <bruno@clisp.org>
26490
26491         Fix incorrect Makefile.am generation in German locale.
26492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26493         Execute sed command with character range in C locale.
26494
26495 2010-03-06  Bruno Haible  <bruno@clisp.org>
26496
26497         Tests for module 'iconv-h'.
26498         * modules/iconv-h-tests: New file.
26499         * tests/test-iconv-h.c: New file.
26500
26501         New module 'iconv-h'.
26502         * modules/iconv-h: New file.
26503         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
26504         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
26505         (configure.ac): Remove gl_ICONV_H.
26506         (Makefile.am): Remove rule for iconv.h.
26507
26508 2010-03-06  Bruno Haible  <bruno@clisp.org>
26509
26510         More consistent naming of *.m4 files.
26511         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
26512         * modules/wctype (Files): Update.
26513
26514         More consistent naming of *.m4 files.
26515         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
26516         * modules/wchar (Files): Update.
26517
26518 2010-03-06  Jim Meyering  <meyering@redhat.com>
26519
26520         euidaccess: relax license to LGPLv2+
26521         * modules/euidaccess (License): Relax to LGPLv2+.
26522
26523 2010-03-06  Bruno Haible  <bruno@clisp.org>
26524
26525         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
26526         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
26527         (Makefile.am): Augment lib_SOURCES instead.
26528
26529 2010-03-04  Jim Meyering  <meyering@redhat.com>
26530
26531         utime: remove obsolete module
26532         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
26533         unnecessary for years, and has been marked as obsolete for 10 months.
26534         * modules/utime: Remove file.
26535         * lib/utime.c: Remove file.
26536         * m4/utime.m4: Remove file.
26537         * m4/utimes-null.m4: Remove file.
26538         * doc/posix-functions/utime.texi (utime): Remove reference to
26539         the module.  Move the sole "fixed by gnulib" item into the
26540         "problems not fixed by Gnulib" list.
26541         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
26542
26543 2010-03-05  Simon Josefsson  <simon@josefsson.org>
26544
26545         * modules/exit (License): Relax license to LGPLv2+.
26546         (Status): Mark as obsolete.
26547         * NEWS: Mention deprecated 'exit' module.
26548         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
26549         of now obsolete 'exit'.
26550
26551 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26552
26553         fts-lgpl: remove unused module
26554         * modules/fts-lgpl: Remove.
26555         * MODULES.html.sh (func_all_modules): Adjust.
26556         * check-module (find_included_lib_files): Adjust.
26557         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
26558
26559 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
26560
26561         copy-acl: enhance Solaris ACL error handling
26562         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
26563         * lib/set-mode-acl.c (qset_acl): Likewise.
26564
26565 2010-03-02  Bruno Haible  <bruno@clisp.org>
26566
26567         spawn: Don't override the system defined values on FreeBSD 8.
26568         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
26569         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
26570         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
26571         if HAVE_POSIX_SPAWN is 1.
26572         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
26573
26574 2010-03-01  Bruno Haible  <bruno@clisp.org>
26575
26576         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
26577         regarding Automake.
26578
26579 2010-02-25  Bruno Haible  <bruno@clisp.org>
26580
26581         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
26582         * gnulib-tool: Define 'echo' as a function only before the ksh alias
26583         setting, not afterwards.
26584         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
26585
26586 2010-02-24  Eric Blake  <eblake@redhat.com>
26587
26588         bootstrap, git-version-gen: use timestamp
26589         * build-aux/git-version-gen (scriptversion): Force UTC.
26590         * build-aux/bootstrap (scriptversion): New variable.
26591
26592         bootstrap: allow older git
26593         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
26594         older than 1.6.4.  Requested by the libvirt project.
26595
26596 2010-02-23  Eric Blake  <eblake@redhat.com>
26597
26598         warn-on-use: work with old autoconf
26599         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
26600         AS_VAR semantics of autoconf 2.60.
26601         Reported by Bruno Haible.
26602
26603         bootstrap: improve some comments
26604         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
26605         clarification comments.
26606
26607         gettimeofday: provide correct function
26608         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
26609         when replacement is declared, otherwise provide gettimeofday.
26610         Reported by Michael Goffioul.
26611
26612 2010-02-23  Jim Meyering  <meyering@redhat.com>
26613
26614         lib-ignore: relax license to "unlimited", not LGPLv2+
26615         * modules/lib-ignore (License): Relax to "unlimited".
26616
26617 2010-02-23  Jim Meyering  <meyering@redhat.com>
26618
26619         lib-ignore: relax license to LGPLv2+
26620         * modules/lib-ignore (License): Relax to LGPLv2+.
26621
26622 2010-02-22  Eric Blake  <eblake@redhat.com>
26623
26624         lseek: avoid bash 3.2 broken pipe bug
26625         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
26626         warning from bash 3.2.
26627         Reported by Ben Pfaff, with analysis from Bruno Haible.
26628
26629         bootstrap: support non-FSF copyright holder
26630         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
26631         bootstrap.conf override of COPYRIGHT_HOLDER.
26632         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
26633
26634         bootstrap: interoperate with gettext 0.14.1
26635         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
26636
26637         bootstrap: allow for alternate submodule location
26638         * build-aux/bootstrap (gnulib_path): New variable; use instead of
26639         hardcoding submodule location.
26640         (gnulib_mk): Allow direct use of Makefile.am.
26641
26642         bootstrap: use GNULIB_SRCDIR to reduce disk usage
26643         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
26644         rather than reconfiguring where the submodule points.
26645
26646         gettimeofday: restore support for platforms that lack function
26647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
26648         replacement if function is missing.
26649         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
26650         * modules/sys_time (Makefile.am): Substitute it.
26651         * lib/sys_time.in.h (gettimeofday): Check it.
26652         Reported by Michael Goffioul.
26653
26654 2010-02-21  Bruno Haible  <bruno@clisp.org>
26655
26656         * lib/stdio.in.h (obstack_printf): Fix typo.
26657
26658 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
26659
26660         vc-list-files: use bzr ls's -R option
26661         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
26662         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
26663
26664 2010-02-21  Jim Meyering  <meyering@redhat.com>
26665
26666         init.sh: fix EXEEXT shims to work also for names like test-prog
26667         * tests/init.sh: Re-exec a better shell, when needed.
26668         If the current shell lacks support for posix $(...), an init.sh-using
26669         test will now try to find a shell that supports that.  If EXEEXT is
26670         nonempty, we also require support for hyphen-in-alias-name and shell
26671         substitutions like ${var#glob}.  Failure to find such a shell results
26672         in a skipped test.
26673
26674 2010-02-21  Bruno Haible  <bruno@clisp.org>
26675
26676         Really work around around "broken pipe" error message from bash 3.2.
26677         * gnulib-tool (func_reset_sigpipe): Remove function.
26678         (echo): In bash 3.2, define to a function that uses printf.
26679         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
26680
26681 2010-02-20  Bruno Haible  <bruno@clisp.org>
26682
26683         Restore support for automake 1.9.6 with autoconf 2.61.
26684         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
26685         Reported by James Youngman <jay@gnu.org>.
26686
26687 2010-02-20  Bruno Haible  <bruno@clisp.org>
26688
26689         Improve *printf warning condition.
26690         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
26691         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
26692         and the function is overridden due to SIGPIPE emulation.
26693
26694 2010-02-20  Bruno Haible  <bruno@clisp.org>
26695
26696         * lib/stdio.in.h: Tweak comments.
26697
26698 2010-02-19  Bruno Haible  <bruno@clisp.org>
26699
26700         Make it easier to find modules. New gnulib-tool option '--find'.
26701         * gnulib-tool: New option --find.
26702         (func_usage): Document it.
26703         (func_sanitize_modulelist): New function, extracted from
26704         func_all_modules.
26705         (func_all_modules): Invoke it.
26706         * doc/gnulib-tool.texi (Which modules?): New node.
26707
26708 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
26709
26710         * lib/sys_select.in.h: Provide select replacement even if
26711         sys/select.h exists on a system, for Interix.
26712
26713 2010-02-18  Jim Meyering  <meyering@redhat.com>
26714
26715         init.sh: don't use $(...) just yet
26716         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
26717         to accommodate e.g., Solaris' /bin/sh.
26718
26719 2010-02-17  Bruno Haible  <bruno@clisp.org>
26720
26721         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
26722         Reported by Ludovic Courtès <ludo@gnu.org>.
26723
26724 2010-02-16  Simon Josefsson  <simon@josefsson.org>
26725
26726         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
26727         linking with -lintl.
26728
26729 2010-02-17  Simon Josefsson  <simon@josefsson.org>
26730
26731         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
26732         if not provided by the system's netdb.h.  Reported by
26733         ludo@gnu.org (Ludovic Courtès).
26734
26735 2010-02-15  Jim Meyering  <meyering@redhat.com>
26736
26737         init.sh: improve portability and efficiency
26738         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
26739         "dummy" in a for loop.
26740         Use '!', not '^' to select the complement of a character set used
26741         in a "case" statement.
26742         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
26743         Suggestions from Eric Blake.
26744
26745         init.sh: automatically accommodate programs with the .exe suffix
26746         Automatically arrange for an invocation of "prog" to execute the
26747         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
26748         may use the simpler "prog", yet still work when built on a system
26749         that requires specifying the added suffix.
26750         Do this by constructing a function named "prog" that invokes
26751         "prog.exe" for each .exe file in selected directories.
26752         * tests/init.sh (find_exe_basenames_): New function.
26753         (create_exe_shim_functions_): New function.
26754         (path_prepend_): Use it.
26755
26756         maint.mk: mark syntax-check sc_*.m rules as .PHONY
26757         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
26758         "make -t syntax-check" doesn't create a ton of sc_*.m files.
26759
26760 2010-02-14  Jim Meyering  <meyering@redhat.com>
26761
26762         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
26763         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
26764         (sc_prohibit_hash_pjw_without_use): New rule.
26765
26766         maint.mk: allow the default upload destination dir to be overridden
26767         * top/maint.mk (upload_dest_dir_): Define with a default that
26768         preserves the status quo.
26769         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
26770         Reported by Peter Simons.
26771
26772         maint.mk: prohibit inclusion of "hash.h" without_use
26773         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
26774
26775 2010-02-10  Jim Meyering  <meyering@redhat.com>
26776
26777         maint.mk: prohibit inclusion of "ignore-value.h" without_use
26778         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
26779
26780 2010-02-09  Eric Blake  <ebb9@byu.net>
26781         and Bruno Haible  <bruno@clisp.org>
26782
26783         obstack-printf-posix: ensure declaration
26784         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
26785         extracted from gl_FUNC_OBSTACK_PRINTF.
26786         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
26787         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26788         Likewise.
26789         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
26790         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
26791         0.
26792
26793 2010-02-08  Bruno Haible  <bruno@clisp.org>
26794
26795         gnulib-tool: Fix typo in 2010-02-07 commit.
26796         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
26797         Reported by Eric Blake.
26798
26799 2010-02-07  Bruno Haible  <bruno@clisp.org>
26800
26801         gnulib-tool: Fix up caching patches.
26802         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
26803         option --no-cache. Use associative arrays when supported by the shell.
26804         (sed_comments): New variable.
26805         (modcache): Renamed from do_cache.
26806         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
26807         abbreviate unnecessarily.
26808         (have_associative): New variable.
26809         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
26810         way also for ksh and zsh.
26811         (func_init_sed_convert_to_cache_statements): New function, extracted
26812         from func_cache_lookup_module. Add support for associative arrays.
26813         Don't set the c_MODULE_cached variable here. Ignore all lines before
26814         the first field header. Remove only the final newline, not all trailing
26815         newlines. Support empty fields correctly. Limit the use of 'eval' to
26816         assignments.
26817         (func_get_description, func_get_status, func_get_notice,
26818         func_get_applicability, func_get_filelist, func_get_dependencies,
26819         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
26820         func_get_automake_snippet, func_get_include_directive,
26821         func_get_link_directive, func_get_license, func_get_maintainer):
26822         Update documentation. List the unoptimized code first. Add support for
26823         associative arrays. Limit the use of 'eval' to assignments.
26824         (func_get_applicability): Undo stylistic pessimisations.
26825         (func_get_automake_snippet, func_get_include_directive): Reduce code
26826         duplication.
26827         (func_modules_transitive_closure, func_modules_add_dummy,
26828         func_modules_notice, func_modules_to_filelist, func_add_file,
26829         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
26830         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
26831         func_create_testdir, func_create_megatestdir): Update documentation.
26832
26833 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26834
26835         * gnulib-tool (func_cache_lookup_module): Store the module name
26836         belonging to the cache variable; error out if two different
26837         module names map to the same cache variable name.
26838
26839 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26840
26841         gnulib-tool: Make caching optional.
26842         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
26843         Update matching short versions of --no-changelog.
26844         (func_usage): Update.
26845         (sed_extract_cache_prog): Renamed from ...
26846         (sed_extract_prog): ... this; revert to old extraction script.
26847         (func_get_description, func_get_status)
26848         (func_get_notice, func_get_applicability, func_get_filelist)
26849         (func_get_dependencies, func_get_autoconf_early_snippet)
26850         (func_get_autoconf_snippet, func_get_automake_snippet)
26851         (func_get_include_directive, func_get_link_directive)
26852         (func_get_license, func_get_maintainer): If $do_cache is false,
26853         use old, non-caching extraction scripts.
26854         Suggestion by Bruno Haible.
26855
26856 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26857
26858         gnulib-tool: cache module metainformation.
26859         * gnulib-tool (sed_extract_prog): Match newline before each
26860         header, and rewrite header to a shell variable suffix.
26861         (func_cache_var, func_cache_lookup_module): New functions,
26862         to turn a module name into a cache variable prefix, and to
26863         look up and cache module metainformation.
26864         (func_get_description, func_get_status)
26865         (func_get_notice, func_get_applicability, func_get_filelist)
26866         (func_get_dependencies, func_get_autoconf_early_snippet)
26867         (func_get_autoconf_snippet, func_get_automake_snippet)
26868         (func_get_include_directive, func_get_link_directive)
26869         (func_get_license, func_get_maintainer): Use
26870         func_cache_lookup_module.
26871
26872 2010-02-07  Bruno Haible  <bruno@clisp.org>
26873
26874         fnctl: Fix missing dependency.
26875         * modules/fcntl (Depends-on): Add getdtablesize.
26876         Reported by John W. Eaton <jwe@gnu.org>.
26877
26878 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26879
26880         Argp: fix recognition of short alias options.
26881
26882         * lib/argp-parse.c (convert_options): Fix improper use of
26883         `|' between character values.
26884         * tests/test-argp.c (group1_option): New alias option
26885         --read (-r).
26886         (group1_parser): Special handling for 'r'.
26887         (test15): New test case.
26888         (test_fun): Add test15.
26889         * tests/test-argp-2.sh: Update expected --help and --usage
26890         outputs.
26891
26892 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
26893
26894         * tests/test-argp.c: Fix indentation.
26895
26896 2010-02-04  Eric Blake  <ebb9@byu.net>
26897
26898         gettimeofday: expose type of second argument
26899         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
26900         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
26901         * tests/test-gettimeofday.c: Use it to silence warning.
26902         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
26903         the issue.
26904
26905 2010-02-03  Jim Meyering  <meyering@redhat.com>
26906
26907         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
26908         * lib/regcomp.c (TYPE_SIGNED): Define.
26909         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
26910
26911         regcomp.c: avoid a new -Wshadow warning
26912         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
26913
26914 2010-02-01  Jim Meyering  <meyering@redhat.com>
26915
26916         removing useless parentheses in cpp #define directives
26917         For motivation, see commit c0221df4, "define STREQ(a,b)
26918         consistently, removing useless parentheses"
26919         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
26920         * lib/mountlist.c (MNT_IGNORE): Likewise.
26921         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
26922
26923 2010-02-01  Eric Blake  <ebb9@byu.net>
26924
26925         sys_time: use link-warning
26926         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
26927         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
26928         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
26929         * modules/sys_time (Depends-on): Add warn-on-use.
26930         (Makefile.am): Always build replacement.
26931         (configure.ac): Update substitutions.
26932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
26933         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
26934         bother with SYS_TIME_H.
26935         * modules/gettimeofday (configure.ac): Declare indicator.
26936         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
26937         in use.
26938
26939         closein-tests: silence compiler warning
26940         * tests/test-closein.c (main): Ignore fread result.
26941         * modules/closein-tests (Depends-on): Add ignore-value.
26942
26943         tests: silence warning about system return
26944         * tests/test-areadlink-with-size.c (main): Ignore system result.
26945         * tests/test-areadlink.c (main): Likewise.
26946         * tests/test-areadlinkat-with-size.c (main): Likewise.
26947         * tests/test-areadlinkat.c (main): Likewise.
26948         * tests/test-canonicalize-lgpl.c (main): Likewise.
26949         * tests/test-canonicalize.c (main): Likewise.
26950         * tests/test-chown.c (main): Likewise.
26951         * tests/test-fchownat.c (main): Likewise.
26952         * tests/test-fdutimensat.c (main): Likewise.
26953         * tests/test-fstatat.c (main): Likewise.
26954         * tests/test-futimens.c (main): Likewise.
26955         * tests/test-lchown.c (main): Likewise.
26956         * tests/test-link.c (main): Likewise.
26957         * tests/test-linkat.c (main): Likewise.
26958         * tests/test-lstat.c (main): Likewise.
26959         * tests/test-mkdir.c (main): Likewise.
26960         * tests/test-mkdirat.c (main): Likewise.
26961         * tests/test-mkfifo.c (main): Likewise.
26962         * tests/test-mkfifoat.c (main): Likewise.
26963         * tests/test-mknod.c (main): Likewise.
26964         * tests/test-readlink.c (main): Likewise.
26965         * tests/test-remove.c (main): Likewise.
26966         * tests/test-rename.c (main): Likewise.
26967         * tests/test-renameat.c (main): Likewise.
26968         * tests/test-rmdir.c (main): Likewise.
26969         * tests/test-symlink.c (main): Likewise.
26970         * tests/test-symlinkat.c (main): Likewise.
26971         * tests/test-unlink.c (main): Likewise.
26972         * tests/test-unlinkat.c (main): Likewise.
26973         * tests/test-utimens.c (main): Likewise.
26974         * tests/test-utimensat.c (main): Likewise.
26975         * modules/areadlink-tests (Depends-on): Add ignore-value.
26976         * modules/areadlink-with-size-tests (Depends-on): Likewise.
26977         * modules/areadlinkat-tests (Depends-on): Likewise.
26978         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
26979         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26980         * modules/canonicalize-tests (Depends-on): Likewise.
26981         * modules/chown-tests (Depends-on): Likewise.
26982         * modules/fdutimensat-tests (Depends-on): Likewise.
26983         * modules/futimens-tests (Depends-on): Likewise.
26984         * modules/lchown-tests (Depends-on): Likewise.
26985         * modules/link-tests (Depends-on): Likewise.
26986         * modules/linkat-tests (Depends-on): Likewise.
26987         * modules/lstat-tests (Depends-on): Likewise.
26988         * modules/mkdir-tests (Depends-on): Likewise.
26989         * modules/mkfifo-tests (Depends-on): Likewise.
26990         * modules/mkfifoat-tests (Depends-on): Likewise.
26991         * modules/mknod-tests (Depends-on): Likewise.
26992         * modules/openat-tests (Depends-on): Likewise.
26993         * modules/readlink-tests (Depends-on): Likewise.
26994         * modules/remove-tests (Depends-on): Likewise.
26995         * modules/rename-tests (Depends-on): Likewise.
26996         * modules/renameat-tests (Depends-on): Likewise.
26997         * modules/rmdir-tests (Depends-on): Likewise.
26998         * modules/symlink-tests (Depends-on): Likewise.
26999         * modules/symlinkat-tests (Depends-on): Likewise.
27000         * modules/unlink-tests (Depends-on): Likewise.
27001         * modules/utimens-tests (Depends-on): Likewise.
27002         * modules/utimensat-tests (Depends-on): Likewise.
27003
27004 2010-01-31  Bruno Haible  <bruno@clisp.org>
27005
27006         Perform the same test for many <math.h> functions.
27007         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27008         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27009         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27010         of gl_MATHFUNC.
27011         * modules/acos (configure.ac): Likewise.
27012         * modules/asin (configure.ac): Likewise.
27013         * modules/atan (configure.ac): Likewise.
27014         * modules/atan2 (configure.ac): Likewise.
27015         * modules/cbrt (configure.ac): Likewise.
27016         * modules/copysign (configure.ac): Likewise.
27017         * modules/cos (configure.ac): Likewise.
27018         * modules/cosh (configure.ac): Likewise.
27019         * modules/erf (configure.ac): Likewise.
27020         * modules/erfc (configure.ac): Likewise.
27021         * modules/exp (configure.ac): Likewise.
27022         * modules/fmod (configure.ac): Likewise.
27023         * modules/hypot (configure.ac): Likewise.
27024         * modules/j0 (configure.ac): Likewise.
27025         * modules/j1 (configure.ac): Likewise.
27026         * modules/jn (configure.ac): Likewise.
27027         * modules/lgamma (configure.ac): Likewise.
27028         * modules/log (configure.ac): Likewise.
27029         * modules/log10 (configure.ac): Likewise.
27030         * modules/log1p (configure.ac): Likewise.
27031         * modules/pow (configure.ac): Likewise.
27032         * modules/remainder (configure.ac): Likewise.
27033         * modules/sin (configure.ac): Likewise.
27034         * modules/sinh (configure.ac): Likewise.
27035         * modules/tan (configure.ac): Likewise.
27036         * modules/tanh (configure.ac): Likewise.
27037         * modules/y0 (configure.ac): Likewise.
27038         * modules/y1 (configure.ac): Likewise.
27039         * modules/yn (configure.ac): Likewise.
27040         Suggested by Paolo Bonzini.
27041
27042 2010-01-31  Bruno Haible  <bruno@clisp.org>
27043
27044         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27045
27046 2010-01-31  Bruno Haible  <bruno@clisp.org>
27047
27048         Work around getdelim() bug on FreeBSD 8.0.
27049         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27050         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27051         not work.
27052         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27053         is 1.
27054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27055         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27056         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27057         a non-zero size.
27058         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27059
27060 2010-01-31  Bruno Haible  <bruno@clisp.org>
27061
27062         Work around getline() bug on FreeBSD 8.0.
27063         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27064         and a non-zero size.
27065         * tests/test-getline.c (main): Likewise.
27066         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27067         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27068
27069 2010-01-28  Eric Blake  <ebb9@byu.net>
27070
27071         regex: fix build failure
27072         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27073         platforms.
27074
27075 2010-01-28  Jim Meyering  <meyering@redhat.com>
27076
27077         regex: do not ignore memory allocation failure
27078         * lib/regex_internal.c (create_cd_newstate): Detect
27079         re_node_set_init_copy failure.   Extracted from glibc commit
27080         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27081
27082         regex: sync more white-space changes from libc
27083         * lib/regex_internal.c: White-space only changes.
27084         * lib/regexec.c: Likewise.
27085
27086         regex: add many uses of __attribute_warn_unused_result__
27087         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27088         * lib/regexec.c: Likewise.
27089         Extracted from a messy glibc commit.
27090
27091         regcomp.c: spelling and merge-artifact from glibc
27092         * lib/regcomp.c: Merge remainder of glibc's
27093         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27094
27095         regcomp.c: sync white-space changes from glibc
27096         * lib/regcomp.c: Merge to accommodate white space
27097         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27098
27099         regcomp.c: do not ignore internal return values
27100         * lib/regcomp.c: Do not ignore internal return values.
27101         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27102         but without its white-space changes and spelling fixes.
27103
27104         regex_internal.h: define __attribute_warn_unused_result__
27105         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27106
27107         maint: add a syntax-check rule to check for vulnerable Makefile.in
27108         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27109
27110 2010-01-27  Jim Meyering  <meyering@redhat.com>
27111
27112         ncftpput-ftp: clean up spaces
27113         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27114         Remove trailing blanks.
27115
27116 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27117
27118         * build-aux/git-version-gen: Fix copyright statement.
27119         * build-aux/gnupload: Likewise.
27120         * tests/test-arcfour.c: Likewise.
27121         * tests/test-arctwo.c: Likewise.
27122         * tests/test-count-one-bits.c: Likewise.
27123         * tests/test-crc.c: Likewise.
27124         * tests/test-des.c: Likewise.
27125         * tests/test-gc-arcfour.c: Likewise.
27126         * tests/test-gc-arctwo.c: Likewise.
27127         * tests/test-gc-des.c: Likewise.
27128         * tests/test-gc-hmac-md5.c: Likewise.
27129         * tests/test-gc-hmac-sha1.c: Likewise.
27130         * tests/test-gc-md2.c: Likewise.
27131         * tests/test-gc-md4.c: Likewise.
27132         * tests/test-gc-md5.c: Likewise.
27133         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27134         * tests/test-gc-rijndael.c: Likewise.
27135         * tests/test-gc-sha1.c: Likewise.
27136         * tests/test-gc.c: Likewise.
27137         * tests/test-gethostname.c: Likewise.
27138         * tests/test-gettimeofday.c: Likewise.
27139         * tests/test-hash.c: Likewise.
27140         * tests/test-hmac-md5.c: Likewise.
27141         * tests/test-hmac-sha1.c: Likewise.
27142         * tests/test-md2.c: Likewise.
27143         * tests/test-md4.c: Likewise.
27144         * tests/test-md5.c: Likewise.
27145         * tests/test-memchr.c: Likewise.
27146         * tests/test-memchr2.c: Likewise.
27147         * tests/test-memcmp.c: Likewise.
27148         * tests/test-memmem.c: Likewise.
27149         * tests/test-memrchr.c: Likewise.
27150         * tests/test-rawmemchr.c: Likewise.
27151         * tests/test-read-file.c: Likewise.
27152         * tests/test-rijndael.c: Likewise.
27153         * tests/test-sockets.c: Likewise.
27154         * tests/test-strchrnul.c: Likewise.
27155         * tests/test-strstr.c: Likewise.
27156         * tests/test-strtod.c: Likewise.
27157         * build-aux/ncftpput-ftp: Likewise.
27158
27159 2010-01-26  Eric Blake  <ebb9@byu.net>
27160
27161         ignore-value: update recommended header name
27162         * modules/ignore-value (Include): Only use <> for headers that
27163         exist in glibc.
27164
27165 2010-01-26  Jim Meyering  <meyering@redhat.com>
27166
27167         test-userspec.c: avoid compiler warnings
27168         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27169         and "initialization discards qualifiers..." warnings.
27170         Put the first "uid" in its own scope, and make char* members "const".
27171
27172 2010-01-25  Bruno Haible  <bruno@clisp.org>
27173
27174         gnulib-tool: Make warning diagnostics consistent.
27175         * gnulib-tool (func_warning): New function.
27176         Use it everywhere where gnulib-tool produces output to stderr and it is
27177         not a fatal error.
27178
27179 2010-01-25  Bruno Haible  <bruno@clisp.org>
27180
27181         Fix test dependencies.
27182         * modules/xstrtol-tests (Depends-on): Add inttypes.
27183         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27184
27185 2010-01-25 Pádraig Brady <P@draigBrady.com>
27186
27187         syntax-check: detect incorrect boolean macro values in config.h
27188         * modules/maintainer-makefile (configure.ac): Parameterize the location
27189         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27190         The logic is from Eric Blake and the location indicated by Jim Meyering.
27191         Note the more natural CONFIG_HEADER name is prohibited by automake
27192         for backwards compatibility reasons.
27193         * top/maint.mk (sc_Wundef_boolean): New rule.
27194
27195 2010-01-25  Jim Meyering  <meyering@redhat.com>
27196
27197         bootstrap: detect MacOS 10.6's shasum, too
27198         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27199         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27200
27201 2010-01-23  Jim Meyering  <meyering@redhat.com>
27202
27203         xstrtoll: new module
27204         * modules/xstrtoll: New file.
27205         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27206         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27207         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27208         ./configure fails if you use this module and lack "long long".
27209         * modules/xstrtoll-tests: New module.
27210         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27211         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27212         new init.sh-based test framework.
27213
27214 2010-01-24  Bruno Haible  <bruno@clisp.org>
27215
27216         Tests for module 'yn'.
27217         * modules/yn-tests: New file.
27218         * tests/test-yn.c: New file.
27219
27220         Tests for module 'y1'.
27221         * modules/y1-tests: New file.
27222         * tests/test-y1.c: New file.
27223
27224         Tests for module 'y0'.
27225         * modules/y0-tests: New file.
27226         * tests/test-y0.c: New file.
27227
27228         Tests for module 'tanh'.
27229         * modules/tanh-tests: New file.
27230         * tests/test-tanh.c: New file.
27231
27232         Tests for module 'tan'.
27233         * modules/tan-tests: New file.
27234         * tests/test-tan.c: New file.
27235
27236         Tests for module 'sqrt'.
27237         * modules/sqrt-tests: New file.
27238         * tests/test-sqrt.c: New file.
27239
27240         Tests for module 'sinh'.
27241         * modules/sinh-tests: New file.
27242         * tests/test-sinh.c: New file.
27243
27244         Tests for module 'sin'.
27245         * modules/sin-tests: New file.
27246         * tests/test-sin.c: New file.
27247
27248         Tests for module 'rint'.
27249         * modules/rint-tests: New file.
27250         * tests/test-rint.c: New file.
27251
27252         Tests for module 'remainder'.
27253         * modules/remainder-tests: New file.
27254         * tests/test-remainder.c: New file.
27255
27256         Tests for module 'pow'.
27257         * modules/pow-tests: New file.
27258         * tests/test-pow.c: New file.
27259
27260         Tests for module 'nextafter'.
27261         * modules/nextafter-tests: New file.
27262         * tests/test-nextafter.c: New file.
27263
27264         Tests for module 'modf'.
27265         * modules/modf-tests: New file.
27266         * tests/test-modf.c: New file.
27267
27268         Tests for module 'logb'.
27269         * modules/logb-tests: New file.
27270         * tests/test-logb.c: New file.
27271
27272         Tests for module 'log1p'.
27273         * modules/log1p-tests: New file.
27274         * tests/test-log1p.c: New file.
27275
27276         Tests for module 'log10'.
27277         * modules/log10-tests: New file.
27278         * tests/test-log10.c: New file.
27279
27280         Tests for module 'log'.
27281         * modules/log-tests: New file.
27282         * tests/test-log.c: New file.
27283
27284         Tests for module 'lgamma'.
27285         * modules/lgamma-tests: New file.
27286         * tests/test-lgamma.c: New file.
27287
27288         Tests for module 'ldexp'.
27289         * modules/ldexp-tests: New file.
27290         * tests/test-ldexp.c: New file.
27291
27292         Tests for module 'jn'.
27293         * modules/jn-tests: New file.
27294         * tests/test-jn.c: New file.
27295
27296         Tests for module 'j1'.
27297         * modules/j1-tests: New file.
27298         * tests/test-j1.c: New file.
27299
27300         Tests for module 'j0'.
27301         * modules/j0-tests: New file.
27302         * tests/test-j0.c: New file.
27303
27304         Tests for module 'hypot'.
27305         * modules/hypot-tests: New file.
27306         * tests/test-hypot.c: New file.
27307
27308         Tests for module 'fmod'.
27309         * modules/fmod-tests: New file.
27310         * tests/test-fmod.c: New file.
27311
27312         Tests for module 'fabs'.
27313         * modules/fabs-tests: New file.
27314         * tests/test-fabs.c: New file.
27315
27316         Tests for module 'exp'.
27317         * modules/exp-tests: New file.
27318         * tests/test-exp.c: New file.
27319
27320         Tests for module 'erfc'.
27321         * modules/erfc-tests: New file.
27322         * tests/test-erfc.c: New file.
27323
27324         Tests for module 'erf'.
27325         * modules/erf-tests: New file.
27326         * tests/test-erf.c: New file.
27327
27328         Tests for module 'cosh'.
27329         * modules/cosh-tests: New file.
27330         * tests/test-cosh.c: New file.
27331
27332         Tests for module 'cos'.
27333         * modules/cos-tests: New file.
27334         * tests/test-cos.c: New file.
27335
27336         Tests for module 'copysign'.
27337         * modules/copysign-tests: New file.
27338         * tests/test-copysign.c: New file.
27339
27340         Tests for module 'cbrt'.
27341         * modules/cbrt-tests: New file.
27342         * tests/test-cbrt.c: New file.
27343
27344         Tests for module 'atan2'.
27345         * modules/atan2-tests: New file.
27346         * tests/test-atan2.c: New file.
27347
27348         Tests for module 'atan'.
27349         * modules/atan-tests: New file.
27350         * tests/test-atan.c: New file.
27351
27352         Tests for module 'asin'.
27353         * modules/asin-tests: New file.
27354         * tests/test-asin.c: New file.
27355
27356         Tests for module 'acos'.
27357         * modules/acos-tests: New file.
27358         * tests/test-acos.c: New file.
27359
27360 2010-01-24  Bruno Haible  <bruno@clisp.org>
27361
27362         Fix tests for common <math.h> functions.
27363         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27364         code snippet that references the function pointer, rather than merely
27365         calling the function. Substitute the FUNC_LIBM variable.
27366         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27367         * modules/acos (configure.ac): Likewise.
27368         * modules/asin (configure.ac): Likewise.
27369         * modules/atan (configure.ac): Likewise.
27370         * modules/atan2 (configure.ac): Likewise.
27371         * modules/cbrt (configure.ac): Likewise.
27372         * modules/copysign (configure.ac): Likewise.
27373         * modules/cos (configure.ac): Likewise.
27374         * modules/cosh (configure.ac): Likewise.
27375         * modules/erf (configure.ac): Likewise.
27376         * modules/erfc (configure.ac): Likewise.
27377         * modules/exp (configure.ac): Likewise.
27378         * modules/fabs (configure.ac): Likewise.
27379         * modules/fmod (configure.ac): Likewise.
27380         * modules/hypot (configure.ac): Likewise.
27381         * modules/j0 (configure.ac): Likewise.
27382         * modules/j1 (configure.ac): Likewise.
27383         * modules/jn (configure.ac): Likewise.
27384         * modules/ldexp (configure.ac): Likewise.
27385         * modules/lgamma (configure.ac): Likewise.
27386         * modules/log (configure.ac): Likewise.
27387         * modules/log10 (configure.ac): Likewise.
27388         * modules/log1p (configure.ac): Likewise.
27389         * modules/logb (configure.ac): Likewise.
27390         * modules/modf (configure.ac): Likewise.
27391         * modules/nextafter (configure.ac): Likewise.
27392         * modules/pow (configure.ac): Likewise.
27393         * modules/remainder (configure.ac): Likewise.
27394         * modules/rint (configure.ac): Likewise.
27395         * modules/sin (configure.ac): Likewise.
27396         * modules/sinh (configure.ac): Likewise.
27397         * modules/tan (configure.ac): Likewise.
27398         * modules/tanh (configure.ac): Likewise.
27399         * modules/y0 (configure.ac): Likewise.
27400         * modules/y1 (configure.ac): Likewise.
27401         * modules/yn (configure.ac): Likewise.
27402
27403 2010-01-24  Bruno Haible  <bruno@clisp.org>
27404
27405         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27406         * tests/test-acosl.c (x): New variable.
27407         (main): Store argument in x and fetch it from x.
27408         * tests/test-asinl.c (x): New variable.
27409         (main): Store argument in x and fetch it from x.
27410         * tests/test-atanl.c (x): New variable.
27411         (main): Store argument in x and fetch it from x.
27412         * tests/test-cosl.c (x): New variable.
27413         (main): Store argument in x and fetch it from x.
27414         * tests/test-expl.c (x): New variable.
27415         (main): Store argument in x and fetch it from x.
27416         * tests/test-logl.c (x): New variable.
27417         (main): Store argument in x and fetch it from x.
27418         * tests/test-sinl.c (x): New variable.
27419         (main): Store argument in x and fetch it from x.
27420         * tests/test-sqrtl.c (x): New variable.
27421         (main): Store argument in x and fetch it from x.
27422         * tests/test-tanl.c (x): New variable.
27423         (main): Store argument in x and fetch it from x.
27424
27425 2010-01-24  Bruno Haible  <bruno@clisp.org>
27426
27427         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27428         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27429         assignments to the initial TESTS_ENVIRONMENT.
27430         * doc/gnulib.texi (Unit test modules): Document it.
27431         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27432         TESTS_ENVIRONMENT.
27433         * modules/btowc-tests (Makefile.am): Likewise.
27434         * modules/c-stack-tests (Makefile.am): Likewise.
27435         * modules/c-strcase-tests (Makefile.am): Likewise.
27436         * modules/copy-file-tests (Makefile.am): Likewise.
27437         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27438         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27439         * modules/mbrtowc-tests (Makefile.am): Likewise.
27440         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27441         * modules/mbscasestr-tests (Makefile.am): Likewise.
27442         * modules/mbschr-tests (Makefile.am): Likewise.
27443         * modules/mbscspn-tests (Makefile.am): Likewise.
27444         * modules/mbsinit-tests (Makefile.am): Likewise.
27445         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27446         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
27447         * modules/mbspbrk-tests (Makefile.am): Likewise.
27448         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27449         * modules/mbsrchr-tests (Makefile.am): Likewise.
27450         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
27451         * modules/mbsspn-tests (Makefile.am): Likewise.
27452         * modules/mbsstr-tests (Makefile.am): Likewise.
27453         * modules/nl_langinfo-tests (Makefile.am): Likewise.
27454         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
27455         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27456         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27457         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27458         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27459         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
27460         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27461         * modules/wcrtomb-tests (Makefile.am): Likewise.
27462         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
27463         * modules/wcsrtombs-tests (Makefile.am): Likewise.
27464         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
27465         assignments from TESTS_ENVIRONMENT.
27466         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
27467         augmentation.
27468         * modules/argp-version-etc-tests (Makefile.am): Likewise.
27469         * modules/atexit-tests (Makefile.am): Likewise.
27470         * modules/binary-io-tests (Makefile.am): Likewise.
27471         * modules/closein-tests (Makefile.am): Likewise.
27472         * modules/dprintf-posix-tests (Makefile.am): Likewise.
27473         * modules/exclude-tests (Makefile.am): Likewise.
27474         * modules/fflush-tests (Makefile.am): Likewise.
27475         * modules/fpending-tests (Makefile.am): Likewise.
27476         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27477         * modules/freadahead-tests (Makefile.am): Likewise.
27478         * modules/freadptr-tests (Makefile.am): Likewise.
27479         * modules/freadseek-tests (Makefile.am): Likewise.
27480         * modules/fseek-tests (Makefile.am): Likewise.
27481         * modules/fseeko-tests (Makefile.am): Likewise.
27482         * modules/ftell-tests (Makefile.am): Likewise.
27483         * modules/ftello-tests (Makefile.am): Likewise.
27484         * modules/idpriv-drop-tests (Makefile.am): Likewise.
27485         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
27486         * modules/lseek-tests (Makefile.am): Likewise.
27487         * modules/parse-duration-tests (Makefile.am): Likewise.
27488         * modules/perror-tests (Makefile.am): Likewise.
27489         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
27490         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
27491         * modules/pipe-tests (Makefile.am): Likewise.
27492         * modules/pread-tests (Makefile.am): Likewise.
27493         * modules/printf-posix-tests (Makefile.am): Likewise.
27494         * modules/select-tests (Makefile.am): Likewise.
27495         * modules/sigpipe-tests (Makefile.am): Likewise.
27496         * modules/tsearch-tests (Makefile.am): Likewise.
27497         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
27498         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
27499         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27500         * modules/uniwidth/width-tests (Makefile.am): Likewise.
27501         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
27502         * modules/version-etc-tests (Makefile.am): Likewise.
27503         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27504         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27505         * modules/xalloc-die-tests (Makefile.am): Likewise.
27506         * modules/xprintf-posix-tests (Makefile.am): Likewise.
27507         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27508         * modules/xstrtol-tests (Makefile.am): Likewise.
27509         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27510         * modules/yesno-tests (Makefile.am): Likewise.
27511         Suggested by Jim Meyering.
27512
27513 2010-01-24  Bruno Haible  <bruno@clisp.org>
27514
27515         More documentation.
27516         * doc/gnulib.texi (Writing modules): New chapter.
27517         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
27518         the new chapter.
27519
27520 2010-01-24  Jim Meyering  <meyering@redhat.com>
27521
27522         maint.mk: do not prepend "./" after filtering
27523         * top/maint.mk (_prepend_srcdir_prefix): New variable
27524         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
27525         "./" when $(srcdir) is ".".
27526
27527         define STREQ(a,b) consistently, removing useless parentheses
27528         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
27529         since the only risk is that "a" or "b" contains an unparenthesized
27530         comma, but if either did that, STREQ would have 3 or more arguments.
27531         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
27532         * lib/fts.c (STREQ): Remove unnecessary parentheses.
27533         * lib/hash-triple.c (STREQ): Likewise.
27534         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
27535         * lib/getugroups.c (STREQ): Likewise.
27536
27537 2010-01-23  Jim Meyering  <meyering@redhat.com>
27538
27539         maint.mk: fix syntax-check in a non-srcdir build directory
27540         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
27541         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
27542
27543 2010-01-22  Jim Meyering  <meyering@redhat.com>
27544
27545         userspec: add unit tests
27546         * tests/test-userspec.c: New file.
27547         * modules/userspec-tests: Likewise.
27548
27549 2010-01-21  Jim Meyering  <meyering@redhat.com>
27550
27551         maint.mk: handle source file names containing "." robustly
27552         * top/maint.mk (_dot_escaped_srcdir): Define.
27553         (VC_LIST): Use it in LHS of sed substitution.
27554
27555 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
27556
27557         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
27558         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
27559         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
27560         from a non-srcdir build.
27561
27562 2010-01-20  Eric Blake  <ebb9@byu.net>
27563
27564         warn-on-use: use instead of link-warning
27565         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
27566         * modules/unistd (Depends-on, Makefile.am): Likewise.
27567         * modules/arpa_inet (Depends-on): Replace link-warning with
27568         warn-on-use.
27569         (Makefile.am): Update rules accordingly.
27570         * modules/ctype (Depends-on, Makefile.am): Likewise.
27571         * modules/dirent (Depends-on, Makefile.am): Likewise.
27572         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
27573         * modules/inttypes (Depends-on, Makefile.am): Likewise.
27574         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27575         * modules/locale (Depends-on, Makefile.am): Likewise.
27576         * modules/math (Depends-on, Makefile.am): Likewise.
27577         * modules/search (Depends-on, Makefile.am): Likewise.
27578         * modules/signal (Depends-on, Makefile.am): Likewise.
27579         * modules/spawn (Depends-on, Makefile.am): Likewise.
27580         * modules/stdlib (Depends-on, Makefile.am): Likewise.
27581         * modules/string (Depends-on, Makefile.am): Likewise.
27582         * modules/strings (Depends-on, Makefile.am): Likewise.
27583         * modules/sys_file (Depends-on, Makefile.am): Likewise.
27584         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
27585         * modules/sys_select (Depends-on, Makefile.am): Likewise.
27586         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
27587         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
27588         * modules/sys_times (Depends-on, Makefile.am): Likewise.
27589         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27590         * modules/wchar (Depends-on, Makefile.am): Likewise.
27591         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
27592         should be poisoned.
27593         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
27594         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
27595         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
27596         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27597         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27598         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27599         * m4/math_h.m4 (gl_MATH_H): Likewise.
27600         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27601         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27602         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
27603         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27604         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27605         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27606         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
27607         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
27608         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27609         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27610         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27611         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27612         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27613         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27614         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27615         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27616         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
27617         GL_LINK_WARNING.
27618         * lib/ctype.in.h: Likewise.
27619         * lib/dirent.in.h: Likewise.
27620         * lib/fcntl.in.h: Likewise.
27621         * lib/inttypes.in.h: Likewise.
27622         * lib/langinfo.in.h: Likewise.
27623         * lib/locale.in.h: Likewise.
27624         * lib/math.in.h: Likewise.
27625         * lib/search.in.h: Likewise.
27626         * lib/signal.in.h: Likewise.
27627         * lib/spawn.in.h: Likewise.
27628         * lib/stdio.in.h: Likewise.
27629         * lib/stdlib.in.h: Likewise.
27630         * lib/string.in.h: Likewise.
27631         * lib/strings.in.h: Likewise.
27632         * lib/sys_file.in.h: Likewise.
27633         * lib/sys_ioctl.in.h: Likewise.
27634         * lib/sys_select.in.h: Likewise.
27635         * lib/sys_socket.in.h: Likewise.
27636         * lib/sys_stat.in.h: Likewise.
27637         * lib/sys_times.in.h: Likewise.
27638         * lib/sys_utsname.in.h: Likewise.
27639         * lib/unistd.in.h: Likewise.
27640         * lib/wchar.in.h: Likewise.
27641
27642 2010-01-20  Bruno Haible  <bruno@clisp.org>
27643
27644         Avoid duplicate -lm.
27645         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
27646         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
27647         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
27648         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
27649         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
27650         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
27651         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
27652         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
27653         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
27654         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
27655         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
27656         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27657         Reported by Paolo Bonzini.
27658
27659 2010-01-19  Bruno Haible  <bruno@clisp.org>
27660
27661         langinfo, nl_langinfo: Relicense under LGPLv2+.
27662         * modules/langinfo (License): Change to LGPLv2+.
27663         * modules/nl_langinfo (License): Likewise.
27664         Patch by David Lutterkort <lutter@redhat.com>.
27665
27666 2010-01-19  Bruno Haible  <bruno@clisp.org>
27667
27668         Avoid compilation error with cc on OSF/1 5.1.
27669         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
27670         statement, not before.
27671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27672
27673 2010-01-18  Bruno Haible  <bruno@clisp.org>
27674
27675         Avoid a link error due to the __printf__ symbol.
27676         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
27677         and 2.6.x.
27678         (__format__, __printf__): Remove definitions.
27679         * lib/argp-fmtstream.h: Likewise.
27680         * lib/argp.h: Likewise.
27681         * lib/error.h: Likewise.
27682         * lib/vasnprintf.h: Likewise.
27683         * lib/xprintf.h: Likewise.
27684         * lib/xvasprintf.h: Likewise.
27685         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27686
27687 2010-01-18  Bruno Haible  <bruno@clisp.org>
27688
27689         Tests for module 'tanl'.
27690         * modules/tanl-tests: New file.
27691         * tests/test-tanl.c: New file.
27692
27693         Tests for module 'sqrtl'.
27694         * modules/sqrtl-tests: New file.
27695         * tests/test-sqrtl.c: New file.
27696
27697         Tests for module 'sinl'.
27698         * modules/sinl-tests: New file.
27699         * tests/test-sinl.c: New file.
27700
27701         Tests for module 'logl'.
27702         * modules/logl-tests: New file.
27703         * tests/test-logl.c: New file.
27704
27705         Tests for module 'expl'.
27706         * modules/expl-tests: New file.
27707         * tests/test-expl.c: New file.
27708
27709         Tests for module 'cosl'.
27710         * modules/cosl-tests: New file.
27711         * tests/test-cosl.c: New file.
27712
27713         Tests for module 'atanl'.
27714         * modules/atanl-tests: New file.
27715         * tests/test-atanl.c: New file.
27716
27717         Tests for module 'asinl'.
27718         * modules/asinl-tests: New file.
27719         * tests/test-asinl.c: New file.
27720
27721         Tests for module 'acosl'.
27722         * modules/acosl-tests: New file.
27723         * tests/test-acosl.c: New file.
27724
27725         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27726         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
27727         tanl): Use the standard gnulib idiom.
27728         * lib/cosl.c: Don't include trigl.c and sincosl.c.
27729         * lib/sinl.c: Likewise.
27730         * lib/tanl.c: Don't include trigl.c.
27731         (kernel_tanl): Make static.
27732         * lib/sincosl.c: Include trigl.h first.
27733         * lib/trigl.c: Likewise.
27734         * m4/acosl.m4: New file.
27735         * m4/asinl.m4: New file.
27736         * m4/atanl.m4: New file.
27737         * m4/cosl.m4: New file.
27738         * m4/expl.m4: New file.
27739         * m4/logl.m4: New file.
27740         * m4/sinl.m4: New file.
27741         * m4/sqrtl.m4: New file.
27742         * m4/tanl.m4: New file.
27743         * m4/mathl.m4: Remove file.
27744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
27745         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
27746         Don't initialize GNULIB_MATHL.
27747         * modules/acosl: New file.
27748         * modules/asinl: New file.
27749         * modules/atanl: New file.
27750         * modules/cosl: New file.
27751         * modules/expl: New file.
27752         * modules/logl: New file.
27753         * modules/sinl: New file.
27754         * modules/sqrtl: New file.
27755         * modules/tanl: New file.
27756         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
27757         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
27758         substitute GNULIB_MATHL.
27759         * modules/mathl: Rewritten.
27760         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
27761         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
27762         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
27763         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
27764         * doc/posix-functions/expl.texi: Mention the 'expl' module.
27765         * doc/posix-functions/logl.texi: Mention the 'logl' module.
27766         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
27767         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
27768         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
27769
27770 2010-01-18  Bruno Haible  <bruno@clisp.org>
27771
27772         sqrt: Make gl_FUNC_SQRT requirable.
27773         * m4/sqrt.m4: New file.
27774         * modules/sqrt (Files): Add it.
27775         (configure.ac): Invoke gl_FUNC_SQRT.
27776
27777 2010-01-18  Bruno Haible  <bruno@clisp.org>
27778
27779         New modules for common <math.h> functions.
27780         * m4/mathfunc.m4: New file.
27781         * modules/acos: New file.
27782         * modules/asin: New file.
27783         * modules/atan: New file.
27784         * modules/atan2: New file.
27785         * modules/cbrt: New file.
27786         * modules/copysign: New file.
27787         * modules/cos: New file.
27788         * modules/cosh: New file.
27789         * modules/erf: New file.
27790         * modules/erfc: New file.
27791         * modules/exp: New file.
27792         * modules/fabs: New file.
27793         * modules/fmod: New file.
27794         * modules/hypot: New file.
27795         * modules/j0: New file.
27796         * modules/j1: New file.
27797         * modules/jn: New file.
27798         * modules/ldexp: New file.
27799         * modules/lgamma: New file.
27800         * modules/log: New file.
27801         * modules/log10: New file.
27802         * modules/log1p: New file.
27803         * modules/logb: New file.
27804         * modules/modf: New file.
27805         * modules/nextafter: New file.
27806         * modules/pow: New file.
27807         * modules/remainder: New file.
27808         * modules/rint: New file.
27809         * modules/sin: New file.
27810         * modules/sinh: New file.
27811         * modules/sqrt: New file.
27812         * modules/tan: New file.
27813         * modules/tanh: New file.
27814         * modules/y0: New file.
27815         * modules/y1: New file.
27816         * modules/yn: New file.
27817         * doc/posix-functions/acos.texi: Mention the 'acos' module.
27818         * doc/posix-functions/asin.texi: Mention the 'asin' module.
27819         * doc/posix-functions/atan.texi: Mention the 'atan' module.
27820         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
27821         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
27822         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
27823         * doc/posix-functions/cos.texi: Mention the 'cos' module.
27824         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
27825         * doc/posix-functions/erf.texi: Mention the 'erf' module.
27826         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
27827         * doc/posix-functions/exp.texi: Mention the 'exp' module.
27828         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
27829         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
27830         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
27831         * doc/posix-functions/j0.texi: Mention the 'j0' module.
27832         * doc/posix-functions/j1.texi: Mention the 'j1' module.
27833         * doc/posix-functions/jn.texi: Mention the 'jn' module.
27834         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
27835         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
27836         * doc/posix-functions/log.texi: Mention the 'log' module.
27837         * doc/posix-functions/log10.texi: Mention the 'log10' module.
27838         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
27839         * doc/posix-functions/logb.texi: Mention the 'logb' module.
27840         * doc/posix-functions/modf.texi: Mention the 'modf' module.
27841         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
27842         * doc/posix-functions/pow.texi: Mention the 'pow' module.
27843         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
27844         * doc/posix-functions/rint.texi: Mention the 'rint' module.
27845         * doc/posix-functions/sin.texi: Mention the 'sin' module.
27846         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
27847         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
27848         * doc/posix-functions/tan.texi: Mention the 'tan' module.
27849         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
27850         * doc/posix-functions/y0.texi: Mention the 'y0' module.
27851         * doc/posix-functions/y1.texi: Mention the 'y1' module.
27852         * doc/posix-functions/yn.texi: Mention the 'yn' module.
27853
27854 2010-01-18  Jim Meyering  <meyering@redhat.com>
27855
27856         ignore-value: relax license to LGPLv2+
27857         * modules/ignore-value (License): Relax to LGPLv2+.
27858
27859         getdate: don't leak when TZ contains two or more '"'s
27860         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
27861         double quote in TZ after the first one.
27862
27863         readtokens: do not leak internal token_lengths buffer
27864         * lib/readtokens.c (readtokens): Free the local, lengths,
27865         when the supplied "token_lengths" parameter is NULL.
27866
27867 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27868
27869         Fix a couple of missing LIBTHREAD link failures on AIX.
27870         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
27871         $(LIBTHREAD).
27872         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
27873
27874         Link test-poll against INET_PTON_LIB.
27875         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
27876         for inet_pton on Solaris 10.
27877
27878 2010-01-17  Bruno Haible  <bruno@clisp.org>
27879
27880         unistdio/*-sprintf: Fix typo in module description.
27881         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
27882         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
27883         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
27884         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
27885         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
27886         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
27887         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
27888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27889
27890 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27891
27892         gnulib-tool: fix filelist for AIX, HP-UX ksh.
27893         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
27894         variables in shell case patterns, for AIX and HP-UX ksh.
27895
27896         Split large sed scripts, for HP-UX sed.
27897         * modules/stdio: Split sed scripts around 50 sed commands,
27898         to avoid HP-UX limit of 99 commands, in the near future.
27899         * modules/string: Likewise.
27900         * modules/unistd: Likewise.
27901
27902         gnulib-tool: avoid writing in the current directory.
27903         * gnulib-tool (func_emit_lib_Makefile_am)
27904         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
27905         not in the current directory, so concurrent gnulib-tool
27906         instances do not interfere.
27907
27908 2010-01-16  Jim Meyering  <meyering@redhat.com>
27909
27910         doc: update users.txt
27911         * users.txt: Add grep.
27912         (diffutils, gzip): Update URLs.
27913
27914 2010-01-12  Bruno Haible  <bruno@clisp.org>
27915
27916         posix_spawn: Avoid test failure on Cygwin.
27917         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
27918         characters.
27919         Reported by Simon Josefsson.
27920
27921 2010-01-12  Bruno Haible  <bruno@clisp.org>
27922
27923         * tests/test-cond.c (main): When skipping the test, show the reason.
27924
27925 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27926
27927         * lib/striconv.c (str_cd_iconv): Avoid if before free.
27928
27929 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27930
27931         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
27932         VC_LIST_ALWAYS_EXCLUDE_REGEX.
27933
27934 2010-01-12  Eric Blake  <ebb9@byu.net>
27935
27936         build: guarantee AS_VAR_IF
27937         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
27938         (gl_AS_VAR_IF): Move...
27939         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
27940         Reported by Simon Josefsson.
27941
27942 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27943
27944         * lib/stdio.in.h: Fix typo.
27945
27946 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27947
27948         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
27949         libgpg-error.
27950
27951 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27952
27953         * tests/test-xalloc-die.sh: Use $EXEEXT.
27954
27955 2010-01-12  Simon Josefsson  <simon@josefsson.org>
27956             Bruno Haible  <bruno@clisp.org>
27957
27958         getlogin, getlogin_r: Avoid test failure.
27959         * tests/test-getlogin.c: Include <stdio.h>.
27960         (main): Skip the test when the function fails because stdin is not a
27961         tty.
27962         * tests/test-getlogin_r.c: Include <stdio.h>.
27963         (main): Skip the test when the function fails because stdin is not a
27964         tty.
27965
27966 2010-01-11  Eric Blake  <ebb9@byu.net>
27967
27968         tests: avoid more large file warnings
27969         * tests/test-fflush.c: Avoid warning about ftell use.
27970         * tests/test-fseek.c: Avoid warning about fseek use.
27971
27972 2010-01-10  Bruno Haible  <bruno@clisp.org>
27973
27974         nproc: Work better on Linux when /proc and /sys are not mounted.
27975         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
27976         as lower bound when, on glibc/Linux systems,
27977         sysconf (_SC_NPROCESSORS_CONF) returns 1.
27978         Suggested by Pádraig Brady <P@draigbrady.com>.
27979         Reported by Dmitry V. Levin <ldv@altlinux.org>.
27980
27981         nproc: Refactor.
27982         * lib/nproc.c (num_processors_via_affinity_mask): New function,
27983         extracted from num_processors.
27984         (num_processors): Call it.
27985
27986 2010-01-11  Jim Meyering  <meyering@redhat.com>
27987
27988         utimecmp: avoid new warning from upcoming gcc-4.5.0
27989         * lib/utimecmp.c (BILLION): Define using #define rather than an
27990         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
27991
27992 2010-01-11  Eric Blake  <ebb9@byu.net>
27993
27994         math: add portability warnings for classification macros
27995         * modules/math (Depends-on): Add warn-on-use.
27996         (Makefile.am): Provide new substitutions.
27997         * m4/math_h.m4 (gl_MATH_H): Require inline.
27998         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
27999         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28000         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28001         implement warnings.
28002
28003         unistd: warn on use of environ without module
28004         * modules/unistd (Depends-on): Add warn-on-use.
28005         (Makefile.am): Provide new substitutions.
28006         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28007         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28008
28009         stdio: warn on suspicious uses
28010         * modules/stdio (Depends-on): Add warn-on-use.
28011         (Makefile.am): Provide new substitutions.
28012         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28013         fseeko.
28014         * lib/stdio.in.h (gets): Always warn on use.
28015         (fseek, ftell): Adjust when warnings are issued, and honor
28016         _GL_NO_LARGE_FILES as a way to silence the warning.
28017         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28018         any warning about large file offsets.
28019         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28020         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28021         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28022         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28023         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28024         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28025         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28026         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28027
28028         warn-on-use: new module
28029         * modules/warn-on-use: New file.
28030         * build-aux/warn-on-use.h: Likewise.
28031         * m4/warn-on-use.m4: Likewise.
28032         * MODULES.html.sh (Support for building): Mention it.
28033
28034 2010-01-10  Bruno Haible  <bruno@clisp.org>
28035
28036         Tests for module 'unistr/u32-strdup'.
28037         * modules/unistr/u32-strdup-tests: New file.
28038         * tests/unistr/test-u32-strdup.c: New file.
28039
28040         Tests for module 'unistr/u16-strdup'.
28041         * modules/unistr/u16-strdup-tests: New file.
28042         * tests/unistr/test-u16-strdup.c: New file.
28043
28044         Tests for module 'unistr/u8-strdup'.
28045         * modules/unistr/u8-strdup-tests: New file.
28046         * tests/unistr/test-u8-strdup.c: New file.
28047         * tests/unistr/test-strdup.h: New file.
28048
28049         Tests for module 'unistr/u32-strncmp'.
28050         * modules/unistr/u32-strncmp-tests: New file.
28051         * tests/unistr/test-u32-strncmp.c: New file.
28052
28053         Tests for module 'unistr/u16-strncmp'.
28054         * modules/unistr/u16-strncmp-tests: New file.
28055         * tests/unistr/test-u16-strncmp.c: New file.
28056
28057         Tests for module 'unistr/u8-strncmp'.
28058         * modules/unistr/u8-strncmp-tests: New file.
28059         * tests/unistr/test-u8-strncmp.c: New file.
28060         * tests/unistr/test-strncmp.h: New file.
28061
28062         Tests for module 'unistr/u32-strcoll'.
28063         * modules/unistr/u32-strcoll-tests: New file.
28064         * tests/unistr/test-u32-strcoll.c: New file.
28065
28066         Tests for module 'unistr/u16-strcoll'.
28067         * modules/unistr/u16-strcoll-tests: New file.
28068         * tests/unistr/test-u16-strcoll.c: New file.
28069
28070         Tests for module 'unistr/u8-strcoll'.
28071         * modules/unistr/u8-strcoll-tests: New file.
28072         * tests/unistr/test-u8-strcoll.c: New file.
28073
28074         Tests for module 'unistr/u32-strcmp'.
28075         * modules/unistr/u32-strcmp-tests: New file.
28076         * tests/unistr/test-u32-strcmp.c: New file.
28077         * tests/unistr/test-u32-strcmp.h: New file.
28078
28079         Tests for module 'unistr/u16-strcmp'.
28080         * modules/unistr/u16-strcmp-tests: New file.
28081         * tests/unistr/test-u16-strcmp.c: New file.
28082         * tests/unistr/test-u16-strcmp.h: New file.
28083
28084         Tests for module 'unistr/u8-strcmp'.
28085         * modules/unistr/u8-strcmp-tests: New file.
28086         * tests/unistr/test-u8-strcmp.c: New file.
28087         * tests/unistr/test-u8-strcmp.h: New file.
28088         * tests/unistr/test-strcmp.h: New file.
28089
28090         Tests for module 'unistr/u32-strncat'.
28091         * modules/unistr/u32-strncat-tests: New file.
28092         * tests/unistr/test-u32-strncat.c: New file.
28093
28094         Tests for module 'unistr/u16-strncat'.
28095         * modules/unistr/u16-strncat-tests: New file.
28096         * tests/unistr/test-u16-strncat.c: New file.
28097
28098         Tests for module 'unistr/u8-strncat'.
28099         * modules/unistr/u8-strncat-tests: New file.
28100         * tests/unistr/test-u8-strncat.c: New file.
28101         * tests/unistr/test-strncat.h: New file.
28102
28103         Tests for module 'unistr/u32-strcat'.
28104         * modules/unistr/u32-strcat-tests: New file.
28105         * tests/unistr/test-u32-strcat.c: New file.
28106
28107         Tests for module 'unistr/u16-strcat'.
28108         * modules/unistr/u16-strcat-tests: New file.
28109         * tests/unistr/test-u16-strcat.c: New file.
28110
28111         Tests for module 'unistr/u8-strcat'.
28112         * modules/unistr/u8-strcat-tests: New file.
28113         * tests/unistr/test-u8-strcat.c: New file.
28114         * tests/unistr/test-strcat.h: New file.
28115
28116         Tests for module 'unistr/u32-stpncpy'.
28117         * modules/unistr/u32-stpncpy-tests: New file.
28118         * tests/unistr/test-u32-stpncpy.c: New file.
28119
28120         Tests for module 'unistr/u16-stpncpy'.
28121         * modules/unistr/u16-stpncpy-tests: New file.
28122         * tests/unistr/test-u16-stpncpy.c: New file.
28123
28124         Tests for module 'unistr/u8-stpncpy'.
28125         * modules/unistr/u8-stpncpy-tests: New file.
28126         * tests/unistr/test-u8-stpncpy.c: New file.
28127         * tests/unistr/test-stpncpy.h: New file.
28128
28129         Tests for module 'unistr/u32-strncpy'.
28130         * modules/unistr/u32-strncpy-tests: New file.
28131         * tests/unistr/test-u32-strncpy.c: New file.
28132
28133         Tests for module 'unistr/u16-strncpy'.
28134         * modules/unistr/u16-strncpy-tests: New file.
28135         * tests/unistr/test-u16-strncpy.c: New file.
28136
28137         Tests for module 'unistr/u8-strncpy'.
28138         * modules/unistr/u8-strncpy-tests: New file.
28139         * tests/unistr/test-u8-strncpy.c: New file.
28140         * tests/unistr/test-strncpy.h: New file.
28141
28142         Tests for module 'unistr/u32-stpcpy'.
28143         * modules/unistr/u32-stpcpy-tests: New file.
28144         * tests/unistr/test-u32-stpcpy.c: New file.
28145
28146         Tests for module 'unistr/u16-stpcpy'.
28147         * modules/unistr/u16-stpcpy-tests: New file.
28148         * tests/unistr/test-u16-stpcpy.c: New file.
28149
28150         Tests for module 'unistr/u8-stpcpy'.
28151         * modules/unistr/u8-stpcpy-tests: New file.
28152         * tests/unistr/test-u8-stpcpy.c: New file.
28153         * tests/unistr/test-stpcpy.h: New file.
28154
28155         Tests for module 'unistr/u32-strcpy'.
28156         * modules/unistr/u32-strcpy-tests: New file.
28157         * tests/unistr/test-u32-strcpy.c: New file.
28158
28159         Tests for module 'unistr/u16-strcpy'.
28160         * modules/unistr/u16-strcpy-tests: New file.
28161         * tests/unistr/test-u16-strcpy.c: New file.
28162
28163         Tests for module 'unistr/u8-strcpy'.
28164         * modules/unistr/u8-strcpy-tests: New file.
28165         * tests/unistr/test-u8-strcpy.c: New file.
28166         * tests/unistr/test-strcpy.h: New file.
28167
28168         Tests for module 'unistr/u32-strnlen'.
28169         * modules/unistr/u32-strnlen-tests: New file.
28170         * tests/unistr/test-u32-strnlen.c: New file.
28171
28172         Tests for module 'unistr/u16-strnlen'.
28173         * modules/unistr/u16-strnlen-tests: New file.
28174         * tests/unistr/test-u16-strnlen.c: New file.
28175
28176         Tests for module 'unistr/u8-strnlen'.
28177         * modules/unistr/u8-strnlen-tests: New file.
28178         * tests/unistr/test-u8-strnlen.c: New file.
28179         * tests/unistr/test-strnlen.h: New file.
28180
28181         Tests for module 'unistr/u32-strlen'.
28182         * modules/unistr/u32-strlen-tests: New file.
28183         * tests/unistr/test-u32-strlen.c: New file.
28184
28185         Tests for module 'unistr/u16-strlen'.
28186         * modules/unistr/u16-strlen-tests: New file.
28187         * tests/unistr/test-u16-strlen.c: New file.
28188
28189         Tests for module 'unistr/u8-strlen'.
28190         * modules/unistr/u8-strlen-tests: New file.
28191         * tests/unistr/test-u8-strlen.c: New file.
28192
28193         Tests for module 'unistr/u32-prev'.
28194         * modules/unistr/u32-prev-tests: New file.
28195         * tests/unistr/test-u32-prev.c: New file.
28196
28197         Tests for module 'unistr/u16-prev'.
28198         * modules/unistr/u16-prev-tests: New file.
28199         * tests/unistr/test-u16-prev.c: New file.
28200
28201         Tests for module 'unistr/u8-prev'.
28202         * modules/unistr/u8-prev-tests: New file.
28203         * tests/unistr/test-u8-prev.c: New file.
28204
28205         Tests for module 'unistr/u32-next'.
28206         * modules/unistr/u32-next-tests: New file.
28207         * tests/unistr/test-u32-next.c: New file.
28208
28209         Tests for module 'unistr/u16-next'.
28210         * modules/unistr/u16-next-tests: New file.
28211         * tests/unistr/test-u16-next.c: New file.
28212
28213         Tests for module 'unistr/u8-next'.
28214         * modules/unistr/u8-next-tests: New file.
28215         * tests/unistr/test-u8-next.c: New file.
28216
28217         Tests for module 'unistr/u32-strmbtouc'.
28218         * modules/unistr/u32-strmbtouc-tests: New file.
28219         * tests/unistr/test-u32-strmbtouc.c: New file.
28220
28221         Tests for module 'unistr/u16-strmbtouc'.
28222         * modules/unistr/u16-strmbtouc-tests: New file.
28223         * tests/unistr/test-u16-strmbtouc.c: New file.
28224
28225         Tests for module 'unistr/u8-strmbtouc'.
28226         * modules/unistr/u8-strmbtouc-tests: New file.
28227         * tests/unistr/test-u8-strmbtouc.c: New file.
28228
28229         Tests for module 'unistr/u32-strmblen'.
28230         * modules/unistr/u32-strmblen-tests: New file.
28231         * tests/unistr/test-u32-strmblen.c: New file.
28232
28233         Tests for module 'unistr/u16-strmblen'.
28234         * modules/unistr/u16-strmblen-tests: New file.
28235         * tests/unistr/test-u16-strmblen.c: New file.
28236
28237         Tests for module 'unistr/u8-strmblen'.
28238         * modules/unistr/u8-strmblen-tests: New file.
28239         * tests/unistr/test-u8-strmblen.c: New file.
28240
28241         Tests for module 'unistr/u32-cpy-alloc'.
28242         * modules/unistr/u32-cpy-alloc-tests: New file.
28243         * tests/unistr/test-u32-cpy-alloc.c: New file.
28244
28245         Tests for module 'unistr/u16-cpy-alloc'.
28246         * modules/unistr/u16-cpy-alloc-tests: New file.
28247         * tests/unistr/test-u16-cpy-alloc.c: New file.
28248
28249         Tests for module 'unistr/u8-cpy-alloc'.
28250         * modules/unistr/u8-cpy-alloc-tests: New file.
28251         * tests/unistr/test-u8-cpy-alloc.c: New file.
28252         * tests/unistr/test-cpy-alloc.h: New file.
28253
28254         Tests for module 'unistr/u32-mbsnlen'.
28255         * modules/unistr/u32-mbsnlen-tests: New file.
28256         * tests/unistr/test-u32-mbsnlen.c: New file.
28257
28258         Tests for module 'unistr/u16-mbsnlen'.
28259         * modules/unistr/u16-mbsnlen-tests: New file.
28260         * tests/unistr/test-u16-mbsnlen.c: New file.
28261
28262         Tests for module 'unistr/u8-mbsnlen'.
28263         * modules/unistr/u8-mbsnlen-tests: New file.
28264         * tests/unistr/test-u8-mbsnlen.c: New file.
28265
28266         Tests for module 'unistr/u32-chr'.
28267         * modules/unistr/u32-chr-tests: New file.
28268         * tests/unistr/test-u32-chr.c: New file.
28269
28270         Tests for module 'unistr/u16-chr'.
28271         * modules/unistr/u16-chr-tests: New file.
28272         * tests/unistr/test-u16-chr.c: New file.
28273
28274         Tests for module 'unistr/u8-chr'.
28275         * modules/unistr/u8-chr-tests: New file.
28276         * tests/unistr/test-u8-chr.c: New file.
28277         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28278
28279         Tests for module 'unistr/u32-cmp2'.
28280         * modules/unistr/u32-cmp2-tests: New file.
28281         * tests/unistr/test-u32-cmp2.c: New file.
28282
28283         Tests for module 'unistr/u16-cmp2'.
28284         * modules/unistr/u16-cmp2-tests: New file.
28285         * tests/unistr/test-u16-cmp2.c: New file.
28286
28287         Tests for module 'unistr/u8-cmp2'.
28288         * modules/unistr/u8-cmp2-tests: New file.
28289         * tests/unistr/test-u8-cmp2.c: New file.
28290         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28291
28292         Tests for module 'unistr/u32-cmp'.
28293         * modules/unistr/u32-cmp-tests: New file.
28294         * tests/unistr/test-u32-cmp.c: New file.
28295
28296         Tests for module 'unistr/u16-cmp'.
28297         * modules/unistr/u16-cmp-tests: New file.
28298         * tests/unistr/test-u16-cmp.c: New file.
28299
28300         Tests for module 'unistr/u8-cmp'.
28301         * modules/unistr/u8-cmp-tests: New file.
28302         * tests/unistr/test-u8-cmp.c: New file.
28303         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28304
28305         Tests for module 'unistr/u32-set'.
28306         * modules/unistr/u32-set-tests: New file.
28307         * tests/unistr/test-u32-set.c: New file.
28308
28309         Tests for module 'unistr/u16-set'.
28310         * modules/unistr/u16-set-tests: New file.
28311         * tests/unistr/test-u16-set.c: New file.
28312
28313         Tests for module 'unistr/u8-set'.
28314         * modules/unistr/u8-set-tests: New file.
28315         * tests/unistr/test-u8-set.c: New file.
28316         * tests/unistr/test-set.h: New file.
28317
28318         Tests for module 'unistr/u32-move'.
28319         * modules/unistr/u32-move-tests: New file.
28320         * tests/unistr/test-u32-move.c: New file.
28321
28322         Tests for module 'unistr/u16-move'.
28323         * modules/unistr/u16-move-tests: New file.
28324         * tests/unistr/test-u16-move.c: New file.
28325
28326         Tests for module 'unistr/u8-move'.
28327         * modules/unistr/u8-move-tests: New file.
28328         * tests/unistr/test-u8-move.c: New file.
28329         * tests/unistr/test-move.h: New file.
28330
28331         Tests for module 'unistr/u32-cpy'.
28332         * modules/unistr/u32-cpy-tests: New file.
28333         * tests/unistr/test-u32-cpy.c: New file.
28334
28335         Tests for module 'unistr/u16-cpy'.
28336         * modules/unistr/u16-cpy-tests: New file.
28337         * tests/unistr/test-u16-cpy.c: New file.
28338
28339         Tests for module 'unistr/u8-cpy'.
28340         * modules/unistr/u8-cpy-tests: New file.
28341         * tests/unistr/test-u8-cpy.c: New file.
28342         * tests/unistr/test-cpy.h: New file.
28343
28344 2010-01-09  Bruno Haible  <bruno@clisp.org>
28345
28346         Tests for module 'unistr/u32-uctomb'.
28347         * modules/unistr/u32-uctomb-tests: New file.
28348         * tests/unistr/test-u32-uctomb.c: New file.
28349
28350         Tests for module 'unistr/u16-uctomb'.
28351         * modules/unistr/u16-uctomb-tests: New file.
28352         * tests/unistr/test-u16-uctomb.c: New file.
28353
28354         Tests for module 'unistr/u8-uctomb'.
28355         * modules/unistr/u8-uctomb-tests: New file.
28356         * tests/unistr/test-u8-uctomb.c: New file.
28357
28358         Tests for module 'unistr/u32-mbtoucr'.
28359         * modules/unistr/u32-mbtoucr-tests: New file.
28360         * tests/unistr/test-u32-mbtoucr.c: New file.
28361
28362         Tests for module 'unistr/u16-mbtoucr'.
28363         * modules/unistr/u16-mbtoucr-tests: New file.
28364         * tests/unistr/test-u16-mbtoucr.c: New file.
28365
28366         Tests for module 'unistr/u8-mbtoucr'.
28367         * modules/unistr/u8-mbtoucr-tests: New file.
28368         * tests/unistr/test-u8-mbtoucr.c: New file.
28369
28370         Tests for module 'unistr/u32-mbtouc'.
28371         * modules/unistr/u32-mbtouc-tests: New file.
28372         * tests/unistr/test-u32-mbtouc.c: New file.
28373
28374         Tests for module 'unistr/u16-mbtouc'.
28375         * modules/unistr/u16-mbtouc-tests: New file.
28376         * tests/unistr/test-u16-mbtouc.c: New file.
28377
28378         Tests for module 'unistr/u8-mbtouc'.
28379         * modules/unistr/u8-mbtouc-tests: New file.
28380         * tests/unistr/test-u8-mbtouc.c: New file.
28381
28382         Tests for module 'unistr/u32-mbtouc-unsafe'.
28383         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28384         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28385         * tests/unistr/test-u32-mbtouc.h: New file.
28386
28387         Tests for module 'unistr/u16-mbtouc-unsafe'.
28388         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28389         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28390         * tests/unistr/test-u16-mbtouc.h: New file.
28391
28392         Tests for module 'unistr/u8-mbtouc-unsafe'.
28393         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28394         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28395         * tests/unistr/test-u8-mbtouc.h: New file.
28396
28397         Tests for module 'unistr/u32-mblen'.
28398         * modules/unistr/u32-mblen-tests: New file.
28399         * tests/unistr/test-u32-mblen.c: New file.
28400
28401         Tests for module 'unistr/u16-mblen'.
28402         * modules/unistr/u16-mblen-tests: New file.
28403         * tests/unistr/test-u16-mblen.c: New file.
28404
28405         Tests for module 'unistr/u8-mblen'.
28406         * modules/unistr/u8-mblen-tests: New file.
28407         * tests/unistr/test-u8-mblen.c: New file.
28408
28409         Tests for module 'unistr/u32-to-u16'.
28410         * modules/unistr/u32-to-u16-tests: New file.
28411         * tests/unistr/test-u32-to-u16.c: New file.
28412
28413         Tests for module 'unistr/u32-to-u8'.
28414         * modules/unistr/u32-to-u8-tests: New file.
28415         * tests/unistr/test-u32-to-u8.c: New file.
28416
28417         Tests for module 'unistr/u16-to-u32'.
28418         * modules/unistr/u16-to-u32-tests: New file.
28419         * tests/unistr/test-u16-to-u32.c: New file.
28420
28421         Tests for module 'unistr/u16-to-u8'.
28422         * modules/unistr/u16-to-u8-tests: New file.
28423         * tests/unistr/test-u16-to-u8.c: New file.
28424
28425         Tests for module 'unistr/u8-to-u32'.
28426         * modules/unistr/u8-to-u32-tests: New file.
28427         * tests/unistr/test-u8-to-u32.c: New file.
28428
28429         Tests for module 'unistr/u8-to-u16'.
28430         * modules/unistr/u8-to-u16-tests: New file.
28431         * tests/unistr/test-u8-to-u16.c: New file.
28432
28433         Tests for module 'unistr/u32-check'.
28434         * modules/unistr/u32-check-tests: New file.
28435         * tests/unistr/test-u32-check.c: New file.
28436
28437         Tests for module 'unistr/u16-check'.
28438         * modules/unistr/u16-check-tests: New file.
28439         * tests/unistr/test-u16-check.c: New file.
28440
28441         Tests for module 'unistr/u8-check'.
28442         * modules/unistr/u8-check-tests: New file.
28443         * tests/unistr/test-u8-check.c: New file.
28444
28445         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28446         (category_equals): New function.
28447         (main): Add more tests.
28448         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
28449
28450         * tests/unictype/test-bidi_byname.c (main): Add more tests.
28451
28452 2010-01-10  Bruno Haible  <bruno@clisp.org>
28453
28454         unistr/u*-strcoll: Try harder to distinguish different strings.
28455         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
28456         compare s1 and s2 to see if they are different.
28457
28458 2010-01-10  Bruno Haible  <bruno@clisp.org>
28459
28460         unistr/u*-stpncpy: Fix the return value.
28461         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
28462         description of the return value consistent with stpncpy in glibc.
28463         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
28464         written non-NUL unit.
28465
28466 2010-01-10  Bruno Haible  <bruno@clisp.org>
28467
28468         unistr/u*-next: Add missing dependencies.
28469         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
28470         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
28471         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
28472
28473 2010-01-10  Bruno Haible  <bruno@clisp.org>
28474
28475         unistr/u8-mbsnlen: Fix return value for incomplete character.
28476         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
28477         u8_mblen.
28478         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
28479         Remove unistr/u8-mblen.
28480         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
28481         u16_mblen.
28482         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
28483         Remove unistr/u16-mblen.
28484
28485 2010-01-10  Bruno Haible  <bruno@clisp.org>
28486
28487         wchar: Fix compilation error when <wchar.h> is used from coreutils.
28488         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
28489         Reported by Brian Gough <bjg@gnu.org> and
28490         Chris Clayton <chris2553@googlemail.com> via
28491         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
28492
28493 2010-01-09  Bruno Haible  <bruno@clisp.org>
28494
28495         unistr/u16-to-u32: Reject invalid input.
28496         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
28497         u16_mbtouc.
28498         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
28499         Remove unistr/u16-mbtouc.
28500
28501         unistr/u16-to-u8: Reject invalid input.
28502         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
28503         u16_mbtouc.
28504         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
28505         Remove unistr/u16-mbtouc.
28506
28507         unistr/u8-to-u32: Reject invalid input.
28508         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
28509         u8_mbtouc.
28510         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
28511         Remove unistr/u8-mbtouc.
28512
28513         unistr/u8-to-u16: Reject invalid input.
28514         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
28515         u8_mbtouc.
28516         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
28517         Remove unistr/u8-mbtouc.
28518
28519 2010-01-09  Bruno Haible  <bruno@clisp.org>
28520
28521         Tests for module 'getlogin'.
28522         * modules/getlogin-tests: New file.
28523         * tests/test-getlogin.c: New file.
28524
28525         New module 'getlogin'.
28526         * lib/unistd.in.h (getlogin): New declaration.
28527         * lib/getlogin.c: New file.
28528         * m4/getlogin.m4: New file.
28529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
28530         HAVE_GETLOGIN.
28531         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
28532         HAVE_GETLOGIN.
28533         * modules/getlogin: New file.
28534         * doc/posix-functions/getlogin.texi: Mention the new module.
28535         Reported by John W. Eaton <jwe@gnu.org>.
28536
28537 2010-01-09  Bruno Haible  <bruno@clisp.org>
28538
28539         getlogin_r: Support for native Windows.
28540         * lib/getlogin_r.c: Include <windows.h>
28541         (getlogin_r): Implement for native Windows.
28542         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
28543         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
28544         via John W. Eaton <jwe@gnu.org>.
28545
28546 2010-01-09  Bruno Haible  <bruno@clisp.org>
28547
28548         getlogin_r: Small fixes.
28549         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
28550         succeeds.
28551         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
28552         before testing whether getlogin_r is declared. No need to set
28553         HAVE_DECL_GETLOGIN_R to 1.
28554         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
28555
28556 2010-01-09  Bruno Haible  <bruno@clisp.org>
28557
28558         * lib/unistd.in.h (getlogin_r): Add comment.
28559
28560 2010-01-09  Bruno Haible  <bruno@clisp.org>
28561
28562         Tests for module 'getlogin_r'.
28563         * modules/getlogin_r-tests: New file.
28564         * tests/test-getlogin_r.c: New file.
28565
28566 2010-01-09  Jim Meyering  <meyering@redhat.com>
28567
28568         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
28569         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
28570         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
28571
28572 2010-01-08  Simon Josefsson  <simon@josefsson.org>
28573
28574         * lib/dup2.c (rpl_dup2): Improve comment.
28575
28576 2010-01-08  Eric Blake  <ebb9@byu.net>
28577
28578         maint.mk: allow packages to add makefile @@ exceptions
28579         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
28580         (sc_makefile_check): Rename...
28581         (sc_makefile_at_at_check): ...to this, and use hook.
28582
28583         dup2: work around mingw bug
28584         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
28585         Reported by Simon Josefsson.
28586
28587 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
28588
28589         glob: Fix C++ compilation.
28590         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
28591         C++.
28592
28593 2010-01-07  Bruno Haible  <bruno@clisp.org>
28594
28595         Fix indentation of wctype.in.h, broken since 2007-01-06.
28596         * lib/wctype.in.h: Fix indentation of preprocessor directives.
28597
28598 2010-01-07  Bruno Haible  <bruno@clisp.org>
28599
28600         mbslen: Avoid collision with system function.
28601         * lib/string.in.h [MirBSD]: Include <wchar.h>.
28602         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
28603         * m4/mbslen.m4: New file.
28604         * modules/mbslen (Files): Add it.
28605         (configure.ac): Invoke gl_MBSLEN.
28606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
28607         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
28608         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
28609         via Ian Beckwith <ianb@erislabs.net>.
28610
28611 2010-01-07  Bruno Haible  <bruno@clisp.org>
28612
28613         dirent: Document the last fix.
28614         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
28615
28616 2010-01-07  Bruno Haible  <bruno@clisp.org>
28617
28618         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
28619         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
28620         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
28621         va_list are defined.
28622         * doc/posix-headers/stdio.texi: Document the bug of missing types.
28623         Reported by Eric Blake.
28624
28625 2010-01-07  Bruno Haible  <bruno@clisp.org>
28626
28627         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
28628         * modules/xlist (Depends-on): Add 'list',
28629         * modules/xoset (Depends-on): Add 'oset'.
28630         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28631
28632 2010-01-07  Bruno Haible  <bruno@clisp.org>
28633
28634         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
28635         * doc/posix-functions/strncasecmp.texi: Likewise.
28636
28637 2010-01-07  Bruno Haible  <bruno@clisp.org>
28638
28639         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
28640
28641 2010-01-07  John W. Eaton  <jwe@octave.org>
28642
28643         wctype: allow C++ use
28644         * lib/wctype.in.h: Add extern "C" block for C++.
28645
28646 2010-01-06  Eric Blake  <ebb9@byu.net>
28647
28648         maint.mk: detect incorrect GFDL usage
28649         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
28650
28651 2010-01-06  Jim Meyering  <meyering@redhat.com>
28652         and Eric Blake  <ebb9@byu.net>
28653
28654         maint.mk: ignore multi-line copyright in NEWS
28655         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
28656
28657 2010-01-06  Eric Blake  <ebb9@byu.net>
28658
28659         select: add missing dependency
28660         * modules/select-tests (Depends-on): Move sockets dependency...
28661         * modules/select (Depends-on): ...here.
28662         Reported by Ian Beckwith.
28663
28664         doc: regenerate INSTALL
28665         * doc/INSTALL: Reflect recent autoconf update.
28666         * doc/INSTALL.ISO: Likewise.
28667         * doc/INSTALL.UTF-8: Likewise.
28668
28669         pread: fix compilation on glibc
28670         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
28671         Reported by Ralf Wildenhues.
28672
28673         dirent: fix test failure
28674         * lib/dirent.in.h (includes): Guarantee ino_t.
28675         Reported by Ralf Wildenhues.
28676
28677 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
28678
28679         linkat, renameat: avoid bad free
28680         * lib/at-func2.c (at_func2): Fix typo.
28681         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
28682
28683 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28684
28685         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
28686         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
28687         to avoid failure of symlink test later.
28688
28689 2010-01-06  Eric Blake  <ebb9@byu.net>
28690
28691         stdio, unistd: guarantee ssize_t
28692         * lib/unistd.in.h (includes): Ensure that types required by POSIX
28693         2008 are exposed when needed.
28694         * lib/stdio.in.h (includes): Likewise.
28695         Reported by Ralf Wildenhues.
28696
28697 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
28698
28699         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
28700         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
28701         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
28702
28703 2010-01-06  Jim Meyering  <meyering@redhat.com>
28704
28705         readtokens: this module *does* require xalloc.h
28706         It uses only functions that were omitted by the old syntax-check rule.
28707         * lib/readtokens.c: Include "xalloc.h" once again.
28708         * modules/readtokens (Depends-on): Add xalloc.
28709         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
28710
28711 2010-01-05  Eric Blake  <ebb9@byu.net>
28712
28713         maint: support 'make announcement' from a VPATH build
28714         * top/maint.mk (announcement): Look for correct NEWS file.
28715
28716 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
28717
28718         utimens (fdutimens): ignore a negative FD, per contract
28719         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
28720         when we have a valid file descriptor.  Otherwise, using a brand
28721         new glibc (with just-patched futimens that now fails with EBADF)
28722         would cause this function to fail with ENOSYS.
28723         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
28724         See also http://bugzilla.redhat.com/552320.
28725
28726 2010-01-05  Eric Blake  <ebb9@byu.net>
28727
28728         strcase: document what it provides
28729         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
28730         gnulib module.
28731         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
28732         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
28733
28734 2010-01-05  Jim Meyering  <meyering@redhat.com>
28735
28736         maint: remove useless inclusions of "xalloc.h"
28737         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
28738         * lib/readtokens.c: Likewise.
28739         * lib/same.c: Likewise.
28740         * modules/getloadavg (Depends-on): Remove xalloc.
28741         * modules/readtokens: Likewise.
28742         * modules/same: Likewise.
28743
28744         maint.mk: include 4 more function names in alloca.h-checking regexp
28745         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
28746         regexp.  Before, we would give a false-positive (saying alloca.h
28747         is included unnecessarily) when the only uses involved omitted symbols.
28748
28749         xalloc.h: use consistent formatting
28750         * lib/xalloc.h: Move declarations to start in the first column.
28751
28752 2010-01-05  Eric Blake  <ebb9@byu.net>
28753
28754         mkdir: avoid xalloc
28755         * lib/mkdir.c (includes): Drop unused header.
28756         Reported by John W. Eaton.
28757
28758 2010-01-04  Jim Meyering  <meyering@redhat.com>
28759
28760         nl_langinfo: avoid configure-time syntax error
28761         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
28762         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
28763         the empty string.  Don't let that provoke a shell syntax error.
28764
28765         regcomp, regexec, fnmatch: avoid array bounds read error
28766         * lib/regcomp.c (build_equiv_class): From glibc:
28767         Use only the low 24 bits of a findidx return value as an index
28768         into the weights array.  Patch by Ulrich Drepper:
28769         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
28770         * lib/regexec.c (check_node_accept_bytes): Likewise.
28771         * lib/fnmatch_loop.c (FCT): Likewise.
28772
28773         regcomp: skip collseq lookup when there are no rules
28774         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
28775         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
28776
28777         regcomp: recognize ill-formed { } expressions
28778         * lib/regcomp.c (parse_dup_op): From glibc:
28779         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
28780
28781         regcomp: fix typo in comment
28782         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
28783         s/satisfy/satisfies/.
28784
28785         regcomp: sync from glibc: remove dead store
28786         * lib/regcomp.c (duplicate_node_closure): Remove useless
28787         search_duplicated_node call and dead store.
28788
28789         regcomp: sync from glibc; always use nl_langinfo
28790         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
28791         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
28792         * modules/regex (Depends-on): Add nl_langinfo.
28793
28794 2010-01-04  Eric Blake  <ebb9@byu.net>
28795
28796         fdopendir: fix configure test
28797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
28798
28799 2010-01-01  Bruno Haible  <bruno@clisp.org>
28800
28801         wchar: Remove unused configure check.
28802         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
28803
28804 2010-01-01  Eric Blake  <ebb9@byu.net>
28805
28806         headers: make check of system header explicit
28807         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
28808         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
28809         ourselves.
28810         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28811         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28813         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
28814         internals.
28815         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
28816         missing.
28817         Suggested by Bruno Haible.
28818
28819 2010-01-01  Jim Meyering  <meyering@redhat.com>
28820
28821         ChangeLog: tweak to eliminate unnecessary copyright line
28822         * ChangeLog: Remove a copyright line that was mistakenly updated
28823         by today's update-copyright run.  Reported by Eric Blake.
28824
28825         test-update-copyright: don't let envvar setting cause test failure
28826         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28827
28828 2010-01-01  Bruno Haible  <bruno@clisp.org>
28829
28830         localename: Avoid gcc warning.
28831         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
28832         function if it is not used.
28833
28834 2010-01-01  Jim Meyering  <meyering@redhat.com>
28835
28836         update nearly all FSF copyright year lists to include 2010
28837         Use the same procedure as for 2009, outlined in
28838         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
28839
28840         version-etc: set COPYRIGHT_YEAR to 2010
28841         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
28842
28843 2009-12-31  Eric Blake  <ebb9@byu.net>
28844
28845         doc: correct availability of cygwin 1.5.x getopt
28846         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
28847         variables.
28848         * doc/posix-functions/opterr.texi (opterr): Likewise.
28849         * doc/posix-functions/optind.texi (optind): Likewise.
28850         * doc/posix-functions/optopt.texi (optopt): Likewise.
28851         * doc/posix-functions/tzname.texi (tzname): Likewise.
28852
28853         openat: update maintainer
28854         * modules/openat (Maintainer): Add myself.
28855
28856         utimens: avoid shadowing warning
28857         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
28858         buffers into one, to avoid shadowing, as well as avoiding a
28859         redundant stat.
28860         Reported by Jim Meyering.
28861
28862         test-dup2: avoid compiler warning
28863         * tests/test-dup2.c (is_inheritable): Only define if used.
28864
28865 2010-01-01  Bruno Haible  <bruno@clisp.org>
28866
28867         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
28868         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
28869         defined, use wctomb instead of wcrtomb.
28870
28871 2010-01-01  Bruno Haible  <bruno@clisp.org>
28872
28873         iconv: Reject native Solaris iconv.
28874         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
28875         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
28876
28877 2009-12-31  Bruno Haible  <bruno@clisp.org>
28878
28879         * tests/test-signal.c (main): Remove test of 'SIG'.
28880
28881 2009-12-31  Bruno Haible  <bruno@clisp.org>
28882
28883         spawn: Fix incomplete fix.
28884         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28885         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28886         warnings for GNULIB_POSIXCHECK again.
28887         Reported by Eric Blake.
28888
28889 2009-12-31  Bruno Haible  <bruno@clisp.org>
28890
28891         Avoid namespace pollution on glibc systems.
28892         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
28893         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
28894         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
28895         glibc systems.
28896
28897 2009-12-31  Bruno Haible  <bruno@clisp.org>
28898
28899         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
28900         (gl_REPLACE_WCHAR_H): Turn into a no-op.
28901         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
28902         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
28903         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
28904         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
28905         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
28906
28907 2009-12-31  Bruno Haible  <bruno@clisp.org>
28908
28909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28910         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
28911         afterwards.
28912
28913 2009-12-31  Bruno Haible  <bruno@clisp.org>
28914
28915         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
28916         SYS_UTSNAME_H.
28917
28918 2009-12-31  Bruno Haible  <bruno@clisp.org>
28919
28920         spawn: Fix misapplied patch.
28921         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
28922         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
28923         warnings for GNULIB_POSIXCHECK.
28924
28925 2009-12-31  Bruno Haible  <bruno@clisp.org>
28926
28927         times: Update after sys_times changed.
28928         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
28929         * modules/times (Files): Add it.
28930         (configure.ac): Invoke gl_FUNC_TIMES.
28931
28932 2009-12-31  Bruno Haible  <bruno@clisp.org>
28933
28934         Use AC_C_INLINE where necessary.
28935         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
28936         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28937         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
28938         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28939         * m4/mbfile.m4 (gl_MBFILE): Likewise.
28940         * m4/mbiter.m4 (gl_MBITER): Likewise.
28941         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28942         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28943         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
28944         * modules/u64 (configure.ac): Likewise.
28945
28946 2009-12-31  Bruno Haible  <bruno@clisp.org>
28947
28948         Use AC_C_INLINE instead of module 'inline' where possible.
28949         * modules/inline (Description): Clarify purpose.
28950         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
28951         * modules/count-one-bits (Depends-on): Remove inline.
28952         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
28953         * modules/openat (Depends-on): Remove inline.
28954         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
28955         instead of depending on module 'inline'.
28956         * modules/filevercmp (Depends-on, configure.ac): Likewise.
28957         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
28958         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
28959         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
28960         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
28961         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
28962         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
28963         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
28964         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
28965         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
28966         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
28967         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
28968         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
28969         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
28970         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
28971         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
28972         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
28973         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
28974         Likewise.
28975         * modules/unictype/property-ascii-hex-digit (Depends-on,
28976         configure.ac): Likewise.
28977         * modules/unictype/property-bidi-arabic-digit (Depends-on,
28978         configure.ac): Likewise.
28979         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
28980         configure.ac): Likewise.
28981         * modules/unictype/property-bidi-block-separator (Depends-on,
28982         configure.ac): Likewise.
28983         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
28984         configure.ac): Likewise.
28985         * modules/unictype/property-bidi-common-separator (Depends-on,
28986         configure.ac): Likewise.
28987         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
28988         Likewise.
28989         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
28990         configure.ac): Likewise.
28991         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
28992         configure.ac): Likewise.
28993         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
28994         configure.ac): Likewise.
28995         * modules/unictype/property-bidi-european-digit (Depends-on,
28996         configure.ac): Likewise.
28997         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
28998         configure.ac): Likewise.
28999         * modules/unictype/property-bidi-left-to-right (Depends-on,
29000         configure.ac): Likewise.
29001         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29002         configure.ac): Likewise.
29003         * modules/unictype/property-bidi-other-neutral (Depends-on,
29004         configure.ac): Likewise.
29005         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29006         Likewise.
29007         * modules/unictype/property-bidi-segment-separator (Depends-on,
29008         configure.ac): Likewise.
29009         * modules/unictype/property-bidi-whitespace (Depends-on,
29010         configure.ac): Likewise.
29011         * modules/unictype/property-combining (Depends-on, configure.ac):
29012         Likewise.
29013         * modules/unictype/property-composite (Depends-on, configure.ac):
29014         Likewise.
29015         * modules/unictype/property-currency-symbol (Depends-on,
29016         configure.ac): Likewise.
29017         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29018         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29019         Likewise.
29020         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29021         configure.ac): Likewise.
29022         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29023         Likewise.
29024         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29025         Likewise.
29026         * modules/unictype/property-extender (Depends-on, configure.ac):
29027         Likewise.
29028         * modules/unictype/property-format-control (Depends-on, configure.ac):
29029         Likewise.
29030         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29031         Likewise.
29032         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29033         Likewise.
29034         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29035         Likewise.
29036         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29037         Likewise.
29038         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29039         Likewise.
29040         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29041         Likewise.
29042         * modules/unictype/property-id-start (Depends-on, configure.ac):
29043         Likewise.
29044         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29045         Likewise.
29046         * modules/unictype/property-ids-binary-operator (Depends-on,
29047         configure.ac): Likewise.
29048         * modules/unictype/property-ids-trinary-operator (Depends-on,
29049         configure.ac): Likewise.
29050         * modules/unictype/property-ignorable-control (Depends-on,
29051         configure.ac): Likewise.
29052         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29053         Likewise.
29054         * modules/unictype/property-join-control (Depends-on, configure.ac):
29055         Likewise.
29056         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29057         Likewise.
29058         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29059         Likewise.
29060         * modules/unictype/property-logical-order-exception (Depends-on,
29061         configure.ac): Likewise.
29062         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29063         Likewise.
29064         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29065         * modules/unictype/property-non-break (Depends-on, configure.ac):
29066         Likewise.
29067         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29068         Likewise.
29069         * modules/unictype/property-numeric (Depends-on, configure.ac):
29070         Likewise.
29071         * modules/unictype/property-other-alphabetic (Depends-on,
29072         configure.ac): Likewise.
29073         * modules/unictype/property-other-default-ignorable-code-point
29074         (Depends-on, configure.ac): Likewise.
29075         * modules/unictype/property-other-grapheme-extend (Depends-on,
29076         configure.ac): Likewise.
29077         * modules/unictype/property-other-id-continue (Depends-on,
29078         configure.ac): Likewise.
29079         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29080         Likewise.
29081         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29082         Likewise.
29083         * modules/unictype/property-other-math (Depends-on, configure.ac):
29084         Likewise.
29085         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29086         Likewise.
29087         * modules/unictype/property-paired-punctuation (Depends-on,
29088         configure.ac): Likewise.
29089         * modules/unictype/property-paragraph-separator (Depends-on,
29090         configure.ac): Likewise.
29091         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29092         Likewise.
29093         * modules/unictype/property-pattern-white-space (Depends-on,
29094         configure.ac): Likewise.
29095         * modules/unictype/property-private-use (Depends-on, configure.ac):
29096         Likewise.
29097         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29098         Likewise.
29099         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29100         Likewise.
29101         * modules/unictype/property-radical (Depends-on, configure.ac):
29102         Likewise.
29103         * modules/unictype/property-sentence-terminal (Depends-on,
29104         configure.ac): Likewise.
29105         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29106         Likewise.
29107         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29108         * modules/unictype/property-terminal-punctuation (Depends-on,
29109         configure.ac): Likewise.
29110         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29111         Likewise.
29112         * modules/unictype/property-unassigned-code-value (Depends-on,
29113         configure.ac): Likewise.
29114         * modules/unictype/property-unified-ideograph (Depends-on,
29115         configure.ac): Likewise.
29116         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29117         Likewise.
29118         * modules/unictype/property-variation-selector (Depends-on,
29119         configure.ac): Likewise.
29120         * modules/unictype/property-white-space (Depends-on, configure.ac):
29121         Likewise.
29122         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29123         Likewise.
29124         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29125         Likewise.
29126         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29127         Likewise.
29128         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29129         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29130         Likewise.
29131
29132 2009-12-31  Bruno Haible  <bruno@clisp.org>
29133
29134         Remove unnecessary AC_C_INLINE invocation.
29135         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29136         since 2009-08-21.
29137
29138 2009-12-31  Jim Meyering  <meyering@redhat.com>
29139
29140         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29141         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29142         With this change, we can all remove the gpg_key_ID = ... definition
29143         from our respective cfg.mk files.
29144
29145         maint.mk: create announcement template in ~/, not in /tmp
29146         * top/maint.mk (emit_upload_commands): Adjust.
29147         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29148         Remove temporary file, .ci-msg.
29149
29150 2009-12-31  Eric Blake  <ebb9@byu.net>
29151
29152         link-warning: always build headers with link warnings
29153         * modules/arpa_inet (Makefile.am): Always build replacement
29154         header.
29155         * modules/ctype (Makefile.am): Likewise.
29156         * modules/dirent (Makefile.am): Likewise.
29157         * modules/inttypes (Makefile.am): Likewise.
29158         * modules/langinfo (Makefile.am): Likewise.
29159         * modules/locale (Makefile.am): Likewise.
29160         * modules/spawn (Makefile.am): Likewise.
29161         * modules/sys_file (Makefile.am): Likewise.
29162         * modules/sys_ioctl (Makefile.am): Likewise.
29163         * modules/sys_select (Makefile.am): Likewise.
29164         * modules/sys_socket (Makefile.am): Likewise.
29165         * modules/sys_times (Makefile.am): Likewise.
29166         * modules/sys_utsname (Makefile.am): Likewise.
29167         * modules/sys_wait (Makefile.am): Likewise.
29168         * modules/wchar (Makefile.am): Likewise.
29169         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29170         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29171         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29172         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29173         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29174         Likewise.
29175         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29176         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29177         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29178         Likewise.
29179         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29180         Likewise.
29181         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29183         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29185         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29186         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29187         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29188         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29189         (gl_WCHAR_H_DEFAULTS): Likewise.
29190
29191 2009-12-31  Eric Blake  <ebb9@byu.net>
29192
29193         signal, spawn: use link warnings
29194         * lib/signal.in.h (sigset_t): Make unconditional.
29195         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29196         (sigpending, sigprocmask, sigaction): Add link warnings.
29197         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29198         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29199         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29200         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29201         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29202         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29203         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29204         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29205         (posix_spawn_file_actions_destroy)
29206         (posix_spawn_file_actions_addopen)
29207         (posix_spawn_file_actions_addclose)
29208         (posix_spawn_file_actions_adddup2): Likewise.
29209         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29210         * tests/test-signal.c (main): Enhance test.
29211
29212         spawn: improve wrapper support
29213         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29214         (gl_SPAWN_H_DEFAULTS): New defaults.
29215         * modules/spawn (Makefile.am): Substitute them.
29216         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29217         Only declare if missing or broken.
29218
29219         sys_times, sys_utsname: use include_next
29220         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29221         header.
29222         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29224         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29225         * modules/sys_times (Depends-on): Add include_next.
29226         (Makefile.am): Substitute additional values.
29227         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29228         * lib/sys_times.in.h (includes): Include native header, if
29229         available.
29230         * lib/sys_utsname.in.h (includes): Likewise.
29231         * tests/test-sys_times.c (main): Enhance test.
29232
29233         fdutimensat: revert prior patch
29234         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29235         utimens.h.
29236         Reported by Bruno Haible.
29237
29238 2009-12-30  Eric Blake  <ebb9@byu.net>
29239
29240         sys_wait: drop link-warning dependency
29241         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29242         link-warning efforts.
29243         * lib/sys_wait.in.h: Likewise.
29244
29245         fdutimensat: remove bogus dependency
29246         * modules/fdutimensat (Depends-on): Drop inline.
29247
29248         unistd: fix typo
29249         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29250
29251 2009-12-30  Bruno Haible  <bruno@clisp.org>
29252
29253         Fix compilation error with Solaris cc.
29254         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29255         * lib/unicase/u16-is-invariant.c: Likewise.
29256         * lib/unicase/u32-is-invariant.c: Likewise.
29257         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29258
29259 2009-12-30  Bruno Haible  <bruno@clisp.org>
29260
29261         Fix test crash.
29262         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29263         locales.
29264         Reported by Simon Josefsson <simon@josefsson.org>.
29265
29266 2009-12-30  Bruno Haible  <bruno@clisp.org>
29267
29268         Fix compilation error on most platforms.
29269         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29270         Reported by Simon Josefsson <simon@josefsson.org>
29271         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29272
29273 2009-12-30  Eric Blake  <ebb9@byu.net>
29274
29275         futimens, utimensat: work around ntfs-3g bug
29276         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29277         a ctime bug is present, and expand workaround to cover ntfs-3g.
29278         * lib/utimens.c (fdutimens, lutimens): Likewise.
29279         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29280         (validate_timespec): Adjust return value.
29281         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29282         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29283         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29284
29285 2009-12-29  Eric Blake  <ebb9@byu.net>
29286
29287         link-warning: make usage consistent
29288         * modules/ctype (Depends-on): Add link-warning.
29289         (Makefile.am): Update rules accordingly.
29290         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29291         * modules/locale (Depends-on, Makefile.am): Likewise.
29292         * modules/sys_file (Makefile.am): Likewise.
29293         * modules/getopt-posix (Makefile.am): Delete unused link warning
29294         efforts.
29295         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29296         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29297         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29298         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29299
29300         stdio: remove unused variables
29301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29303         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29304
29305         tests: test more substitute headers
29306         * modules/ctype-tests: New file.
29307         * modules/dirent-tests: Likewise.
29308         * modules/spawn-tests: Likewise.
29309         * modules/sys_file-tests: Likewise.
29310         * modules/sys_ioctl-tests: Likewise.
29311         * modules/sys_wait-tests: Likewise.
29312         * tests/test-ctype.c: Likewise.
29313         * tests/test-dirent.c: Likewise.
29314         * tests/test-spawn.c: Likewise.
29315         * tests/test-sys_file.c: Likewise.
29316         * tests/test-sys_ioctl.c: Likewise.
29317         * tests/test-sys_wait.c: Likewise.
29318         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29319         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29320         whether or not flock is in use.
29321
29322         tests: remove License section from module
29323         * modules/arpa_inet-tests: Remove unneeded section.
29324         * modules/byteswap-tests: Likewise.
29325         * modules/ceilf-tests: Likewise.
29326         * modules/ceill-tests: Likewise.
29327         * modules/crypto/des-tests: Likewise.
29328         * modules/crypto/gc-arcfour-tests: Likewise.
29329         * modules/crypto/gc-arctwo-tests: Likewise.
29330         * modules/crypto/gc-des-tests: Likewise.
29331         * modules/crypto/gc-hmac-md5-tests: Likewise.
29332         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29333         * modules/crypto/gc-md2-tests: Likewise.
29334         * modules/crypto/gc-md4-tests: Likewise.
29335         * modules/crypto/gc-md5-tests: Likewise.
29336         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29337         * modules/crypto/gc-rijndael-tests: Likewise.
29338         * modules/crypto/gc-sha1-tests: Likewise.
29339         * modules/crypto/gc-tests: Likewise.
29340         * modules/crypto/md2-tests: Likewise.
29341         * modules/crypto/md4-tests: Likewise.
29342         * modules/fcntl-h-tests: Likewise.
29343         * modules/floorf-tests: Likewise.
29344         * modules/floorl-tests: Likewise.
29345         * modules/frexp-nolibm-tests: Likewise.
29346         * modules/frexp-tests: Likewise.
29347         * modules/frexpl-nolibm-tests: Likewise.
29348         * modules/frexpl-tests: Likewise.
29349         * modules/getaddrinfo-tests: Likewise.
29350         * modules/inttypes-tests: Likewise.
29351         * modules/isfinite-tests: Likewise.
29352         * modules/isinf-tests: Likewise.
29353         * modules/ldexpl-tests: Likewise.
29354         * modules/locale-tests: Likewise.
29355         * modules/math-tests: Likewise.
29356         * modules/netdb-tests: Likewise.
29357         * modules/netinet_in-tests: Likewise.
29358         * modules/printf-frexp-tests: Likewise.
29359         * modules/printf-frexpl-tests: Likewise.
29360         * modules/priv-set-tests: Likewise.
29361         * modules/random_r-tests: Likewise.
29362         * modules/round-tests: Likewise.
29363         * modules/roundf-tests: Likewise.
29364         * modules/roundl-tests: Likewise.
29365         * modules/search-tests: Likewise.
29366         * modules/select-tests: Likewise.
29367         * modules/signal-tests: Likewise.
29368         * modules/stdbool-tests: Likewise.
29369         * modules/stddef-tests: Likewise.
29370         * modules/stdint-tests: Likewise.
29371         * modules/stdio-tests: Likewise.
29372         * modules/stdlib-tests: Likewise.
29373         * modules/string-tests: Likewise.
29374         * modules/strings-tests: Likewise.
29375         * modules/sys_select-tests: Likewise.
29376         * modules/sys_socket-tests: Likewise.
29377         * modules/sys_stat-tests: Likewise.
29378         * modules/sys_time-tests: Likewise.
29379         * modules/sys_utsname-tests: Likewise.
29380         * modules/sysexits-tests: Likewise.
29381         * modules/time-tests: Likewise.
29382         * modules/trunc-tests: Likewise.
29383         * modules/truncf-tests: Likewise.
29384         * modules/truncl-tests: Likewise.
29385         * modules/tsearch-tests: Likewise.
29386         * modules/unistd-tests: Likewise.
29387         * modules/wchar-tests: Likewise.
29388         * modules/wctype-tests: Likewise.
29389
29390         tests: fix license on several tests
29391         * tests/test-des.c: Update to GPLv3+.
29392         * tests/test-flock.c: Likewise.
29393         * tests/test-fsync.c: Likewise.
29394         * tests/test-futimens.h: Likewise.
29395         * tests/test-gc-arcfour.c: Likewise.
29396         * tests/test-gc-arctwo.c: Likewise.
29397         * tests/test-gc-des.c: Likewise.
29398         * tests/test-gc-hmac-md5.c: Likewise.
29399         * tests/test-gc-hmac-sha1.c: Likewise.
29400         * tests/test-gc-md2.c: Likewise.
29401         * tests/test-gc-md4.c: Likewise.
29402         * tests/test-gc-md5.c: Likewise.
29403         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29404         * tests/test-gc-rijndael.c: Likewise.
29405         * tests/test-gc-sha1.c: Likewise.
29406         * tests/test-gc.c: Likewise.
29407         * tests/test-getcwd.c: Likewise.
29408         * tests/test-link.c: Likewise.
29409         * tests/test-link.h: Likewise.
29410         * tests/test-lutimens.h: Likewise.
29411         * tests/test-md2.c: Likewise.
29412         * tests/test-md4.c: Likewise.
29413         * tests/test-mkdir.h: Likewise.
29414         * tests/test-rename.c: Likewise.
29415         * tests/test-rename.h: Likewise.
29416         * tests/test-safe-alloc.c: Likewise.
29417         * tests/test-utimens-common.h: Likewise.
29418         * tests/test-utimens.h: Likewise.
29419
29420         maint: sync license texts
29421         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29422         * doc/gpl-3.0.texi: Revert copyright year update.
29423         * doc/lgpl-3.0.texi: Likewise.
29424
29425 2009-12-29  Jim Meyering  <meyering@redhat.com>
29426
29427         update nearly all FSF copyright year lists to include 2009
29428         The files named by the following are exempted:
29429             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29430               test -f "$dst" && { echo "$dst"; continue; }
29431               test -d "$dst" || continue
29432               echo "$dst"/$(basename "$src")
29433             done > exempt
29434             git ls-files tests/unictype >> exempt
29435         In the remaining files, convert to all-interval notation if
29436         - there is already at least one year interval like 2000-2003
29437         - the file is maintained by me
29438         - the file is in lib/uni*/, where that style already prevails
29439         Otherwise, use update-copyright's default.
29440
29441 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29442         and Eric Blake  <ebb9@byu.net>
29443
29444         tests: don't require debug system() to pass
29445         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29446         * tests/test-rmdir.h (test_rmdir_func): Likewise.
29447         * tests/test-unlink.h (test_unlink_func): Likewise.
29448         * tests/test-fstatat.c (main): ...into callers.
29449         * tests/test-lstat.c (main): Likewise.
29450         * tests/test-rmdir.c (main): Likewise.
29451         * tests/test-unlink.c (main): Likewise.
29452         * tests/test-unlinkat.c (main): Likewise.
29453         * tests/test-areadlink-with-size.c (main): Don't require a
29454         debug-only system call to pass, aiding cross-testing to mingw.
29455         * tests/test-areadlink.c (main): Likewise.
29456         * tests/test-areadlinkat-with-size.c (main): Likewise.
29457         * tests/test-areadlinkat.c (main): Likewise.
29458         * tests/test-canonicalize-lgpl.c (main): Likewise.
29459         * tests/test-canonicalize.c (main): Likewise.
29460         * tests/test-chown.c (main): Likewise.
29461         * tests/test-fchownat.c (main): Likewise.
29462         * tests/test-lchown.c (main): Likewise.
29463         * tests/test-fdutimensat.c (main): Likewise.
29464         * tests/test-futimens.c (main): Likewise.
29465         * tests/test-link.c (main): Likewise.
29466         * tests/test-linkat.c (main): Likewise.
29467         * tests/test-mkdir.c (main): Likewise.
29468         * tests/test-mkdirat.c (main): Likewise.
29469         * tests/test-mkfifo.c (main): Likewise.
29470         * tests/test-mkfifoat.c (main): Likewise.
29471         * tests/test-mknod.c (main): Likewise.
29472         * tests/test-readlink.c (main): Likewise.
29473         * tests/test-remove.c (main): Likewise.
29474         * tests/test-rename.c (main): Likewise.
29475         * tests/test-renameat.c (main): Likewise.
29476         * tests/test-symlink.c (main): Likewise.
29477         * tests/test-symlinkat.c (main): Likewise.
29478         * tests/test-utimens.c (main): Likewise.
29479         * tests/test-utimensat.c (main): Likewise.
29480
29481 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29482
29483         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
29484         on $(UNUSED_PARAMETER_H) to avoid build failure.
29485
29486 2009-12-28  Jim Meyering  <meyering@redhat.com>
29487
29488         update-copyright: you may specify a max. line length other than 72
29489         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29490
29491         maint: use consistent FSF copyright line syntax
29492         * lib/posixtm.c: Add missing comma in FSF copyright line.
29493         * lib/posixtm.h: Likewise.
29494         * lib/getugroups.c: Add missing ", Inc.".
29495
29496         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
29497         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
29498         FSF copyright line.  Remove trailing blanks.
29499
29500 2009-12-28  Eric Blake  <ebb9@byu.net>
29501
29502         test-dup2: reduce dependencies
29503         * modules/cloexec (Configure.ac): Set witness.
29504         * modules/dup2-tests (Depends-on): Drop cloexec.
29505         * tests/test-dup2.c (main): Skip portion of test if cloexec module
29506         not present.
29507         Suggested by Bruno Haible.
29508
29509 2009-12-26  Bruno Haible  <bruno@clisp.org>
29510
29511         Remove an unneeded dependency.
29512         * modules/fseterr (Depends-on): Remove dup2.
29513
29514 2009-12-26  Eric Blake  <ebb9@byu.net>
29515
29516         tests: use macros.h in more places
29517         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
29518         (ASSERT_STREAM): Provide default of stderr.
29519         * tests/test-dirent-safer.c: Include macros.h, using alternate
29520         stream for assertions.
29521         * tests/test-dup-safer.c: Likewise.
29522         * tests/test-freopen-safer.c: Likewise.
29523         * tests/test-getopt.c: Likewise.
29524         * tests/test-openat-safer.c: Likewise.
29525         * tests/test-pipe.c: Likewise.
29526         * tests/test-popen-safer.c: Likewise.
29527         * modules/dirent-safer-tests (Files): Include macros.h.
29528         * modules/unistd-safer-tests (Files): Likewise.
29529         * modules/freopen-safer-tests (Files): Likewise.
29530         * modules/getopt-posix-tests (Files): Likewise.
29531         * modules/openat-safer-tests (Files): Likewise.
29532         * modules/pipe-tests (Files): Likewise.
29533
29534 2009-12-26  Bruno Haible  <bruno@clisp.org>
29535
29536         javacomp: Portability fix.
29537         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
29538         that it also works on Solaris.
29539
29540 2009-12-26  Bruno Haible  <bruno@clisp.org>
29541
29542         localename: Fix storage allocation of gl_locale_name_thread's result.
29543         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
29544         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
29545         all platforms that have 'uselocale'.
29546         (gl_locale_name_thread_unsafe): New function, extracted from
29547         gl_locale_name_thread.
29548         (gl_locale_name_thread): Call struniq on all platforms that have
29549         'uselocale'.
29550         * tests/test-localename.c (test_locale_name_thread): Check that the
29551         resulting strings are permanently allocated.
29552         * modules/localename-tests (Depends-on): Add strdup.
29553
29554 2009-12-26  Bruno Haible  <bruno@clisp.org>
29555
29556         * tests/test-localename.c (categories): Fill in the strings.
29557
29558 2009-12-26  Jim Meyering  <meyering@redhat.com>
29559
29560         isdir: complete the removal of m4/isdir.m4
29561         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
29562
29563         isdir: clean up, since at least grep still uses it
29564         * lib/isdir.c: Include "isdir.h".
29565         (S_ISDIR): Remove now-unneeded definition.
29566         * modules/isdir (Files): Add lib/isdir.h.
29567         * lib/isdir.h: New file, with declaration.
29568         * m4/isdir.m4: Remove file -- unneeded.
29569
29570 2009-12-25  Bruno Haible  <bruno@clisp.org>
29571
29572         selinux-h: Make generated .h files standalone.
29573         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
29574         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
29575         * lib/se-selinux.in.h: Likewise.
29576         * modules/selinux-h (Depends-on): Add unused-parameter.
29577         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
29578         selinux/selinux.h and selinux/context.h.
29579         Suggested by Eric Blake.
29580
29581 2009-12-25  Bruno Haible  <bruno@clisp.org>
29582
29583         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
29584         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
29585         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
29586         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
29587         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
29588
29589 2009-12-24  Bruno Haible  <bruno@clisp.org>
29590
29591         openat: Fix warning.
29592         * lib/openat-proc.c: Include <unistd.h>.
29593
29594 2009-12-24  Bruno Haible  <bruno@clisp.org>
29595
29596         New module 'unused-parameter'.
29597         * build-aux/unused-parameter.h: New file, extracted from earlier
29598         gnulib-common.m4.
29599         * modules/unused-parameter: New file.
29600         * lib/unistr.h: Include unused-parameter.h.
29601         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
29602         _GL_UNUSED.
29603         * modules/unistr/base (Depends-on): Add unused-parameter.
29604
29605 2009-12-24  Bruno Haible  <bruno@clisp.org>
29606
29607         Add missing dependencies to 'extensions' module.
29608         * m4/extensions.m4: Add comment.
29609         * modules/accept4 (Depends-on): Add extensions.
29610         * modules/dup3 (Depends-on): Likewise.
29611         * modules/fcntl (Depends-on): Likewise.
29612         * modules/futimens (Depends-on): Likewise.
29613         * modules/mknod (Depends-on): Likewise.
29614         * modules/pipe2 (Depends-on): Likewise.
29615         * modules/stat-time (Depends-on): Likewise.
29616         * modules/strcasestr-simple (Depends-on): Likewise.
29617         * modules/strsignal (Depends-on): Likewise.
29618         * modules/utimensat (Depends-on): Likewise.
29619         * modules/localcharset (Depends-on): Likewise. Needed because of
29620         gl_FCNTL_O_FLAGS.
29621         * modules/wcrtomb (Depends-on): Likewise. Needed because of
29622         AC_TYPE_MBSTATE_T.
29623         * modules/wcsnrtombs (Depends-on): Likewise.
29624         * modules/wcsrtombs (Depends-on): Likewise.
29625
29626 2009-12-24  Bruno Haible  <bruno@clisp.org>
29627
29628         binary-io: Avoid gcc warning due to SET_BINARY.
29629         * lib/binary-io.h (SET_BINARY): Cast the result to void.
29630         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
29631
29632 2009-12-24  Bruno Haible  <bruno@clisp.org>
29633
29634         Avoid future namespace pollution on glibc systems.
29635         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
29636         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
29637         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
29638         glibc systems.
29639
29640 2009-12-24  Bruno Haible  <bruno@clisp.org>
29641
29642         Refactor common macros used in tests.
29643         * tests/macros.h: New file.
29644         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
29645         and/or <stdlib.h>, if appropriate.
29646         (ASSERT, SIZEOF): Remove macros.
29647         * tests/test-areadlink-with-size.c: Likewise.
29648         * tests/test-areadlinkat.c: Likewise.
29649         * tests/test-areadlinkat-with-size.c: Likewise.
29650         * tests/test-argmatch.c: Likewise.
29651         * tests/test-argv-iter.c: Likewise.
29652         * tests/test-array-mergesort.c: Likewise.
29653         * tests/test-array_list.c: Likewise.
29654         * tests/test-array_oset.c: Likewise.
29655         * tests/test-avltree_list.c: Likewise.
29656         * tests/test-avltree_oset.c: Likewise.
29657         * tests/test-avltreehash_list.c: Likewise.
29658         * tests/test-base64.c: Likewise.
29659         * tests/test-binary-io.c: Likewise.
29660         * tests/test-bitrotate.c: Likewise.
29661         * tests/test-btowc.c: Likewise.
29662         * tests/test-byteswap.c: Likewise.
29663         * tests/test-c-ctype.c: Likewise.
29664         * tests/test-c-stack.c: Likewise.
29665         * tests/test-c-strcasecmp.c: Likewise.
29666         * tests/test-c-strcasestr.c: Likewise.
29667         * tests/test-c-strncasecmp.c: Likewise.
29668         * tests/test-c-strstr.c: Likewise.
29669         * tests/test-canonicalize-lgpl.c: Likewise.
29670         * tests/test-canonicalize.c: Likewise.
29671         * tests/test-carray_list.c: Likewise.
29672         * tests/test-ceilf1.c: Likewise.
29673         * tests/test-ceilf2.c: Likewise.
29674         * tests/test-ceill.c: Likewise.
29675         * tests/test-chown.c: Likewise.
29676         * tests/test-cloexec.c: Likewise.
29677         * tests/test-copy-acl.c: Likewise.
29678         * tests/test-copy-file.c: Likewise.
29679         * tests/test-count-one-bits.c: Likewise.
29680         * tests/test-dprintf-posix.c: Likewise.
29681         * tests/test-dup2.c: Likewise.
29682         * tests/test-dup3.c: Likewise.
29683         * tests/test-duplocale.c: Likewise.
29684         * tests/test-fbufmode.c: Likewise.
29685         * tests/test-fchdir.c: Likewise.
29686         * tests/test-fchownat.c: Likewise.
29687         * tests/test-fcntl-safer.c: Likewise.
29688         * tests/test-fcntl.c: Likewise.
29689         * tests/test-fdopendir.c: Likewise.
29690         * tests/test-fdutimensat.c: Likewise.
29691         * tests/test-fflush2.c: Likewise.
29692         * tests/test-file-has-acl.c: Likewise.
29693         * tests/test-filevercmp.c: Likewise.
29694         * tests/test-flock.c: Likewise.
29695         * tests/test-floorf1.c: Likewise.
29696         * tests/test-floorf2.c: Likewise.
29697         * tests/test-floorl.c: Likewise.
29698         * tests/test-fnmatch.c: Likewise.
29699         * tests/test-fopen.h: Likewise.
29700         * tests/test-fpending.c: Likewise.
29701         * tests/test-fprintf-posix.c: Likewise.
29702         * tests/test-fpurge.c: Likewise.
29703         * tests/test-freadable.c: Likewise.
29704         * tests/test-freadahead.c: Likewise.
29705         * tests/test-freading.c: Likewise.
29706         * tests/test-freadptr.c: Likewise.
29707         * tests/test-freadptr2.c: Likewise.
29708         * tests/test-freadseek.c: Likewise.
29709         * tests/test-freopen.c: Likewise.
29710         * tests/test-frexp.c: Likewise.
29711         * tests/test-frexpl.c: Likewise.
29712         * tests/test-fseek.c: Likewise.
29713         * tests/test-fseeko.c: Likewise.
29714         * tests/test-fstatat.c: Likewise.
29715         * tests/test-fstrcmp.c: Likewise.
29716         * tests/test-fsync.c: Likewise.
29717         * tests/test-ftell.c: Likewise.
29718         * tests/test-ftello.c: Likewise.
29719         * tests/test-func.c: Likewise.
29720         * tests/test-futimens.c: Likewise.
29721         * tests/test-fwritable.c: Likewise.
29722         * tests/test-fwriting.c: Likewise.
29723         * tests/test-getcwd.c: Likewise.
29724         * tests/test-getdate.c: Likewise.
29725         * tests/test-getdelim.c: Likewise.
29726         * tests/test-getdtablesize.c: Likewise.
29727         * tests/test-getgroups.c: Likewise.
29728         * tests/test-getline.c: Likewise.
29729         * tests/test-getndelim2.c: Likewise.
29730         * tests/test-glob.c: Likewise.
29731         * tests/test-hash.c: Likewise.
29732         * tests/test-i-ring.c: Likewise.
29733         * tests/test-iconv-utf.c: Likewise.
29734         * tests/test-iconv.c: Likewise.
29735         * tests/test-idpriv-drop.c: Likewise.
29736         * tests/test-idpriv-droptemp.c: Likewise.
29737         * tests/test-inet_ntop.c: Likewise.
29738         * tests/test-inet_pton.c: Likewise.
29739         * tests/test-isblank.c: Likewise.
29740         * tests/test-isfinite.c: Likewise.
29741         * tests/test-isinf.c: Likewise.
29742         * tests/test-isnan.c: Likewise.
29743         * tests/test-isnand.h: Likewise.
29744         * tests/test-isnanf.h: Likewise.
29745         * tests/test-isnanl.h: Likewise.
29746         * tests/test-lchown.c: Likewise.
29747         * tests/test-ldexpl.c: Likewise.
29748         * tests/test-link.c: Likewise.
29749         * tests/test-linkat.c: Likewise.
29750         * tests/test-linked_list.c: Likewise.
29751         * tests/test-linkedhash_list.c: Likewise.
29752         * tests/test-localename.c: Likewise.
29753         * tests/test-lseek.c: Likewise.
29754         * tests/test-lstat.c: Likewise.
29755         * tests/test-mbmemcasecmp.c: Likewise.
29756         * tests/test-mbmemcasecoll.c: Likewise.
29757         * tests/test-mbrtowc.c: Likewise.
29758         * tests/test-mbscasecmp.c: Likewise.
29759         * tests/test-mbscasestr1.c: Likewise.
29760         * tests/test-mbscasestr2.c: Likewise.
29761         * tests/test-mbscasestr3.c: Likewise.
29762         * tests/test-mbscasestr4.c: Likewise.
29763         * tests/test-mbschr.c: Likewise.
29764         * tests/test-mbscspn.c: Likewise.
29765         * tests/test-mbsinit.c: Likewise.
29766         * tests/test-mbsncasecmp.c: Likewise.
29767         * tests/test-mbsnrtowcs.c: Likewise.
29768         * tests/test-mbspbrk.c: Likewise.
29769         * tests/test-mbspcasecmp.c: Likewise.
29770         * tests/test-mbsrchr.c: Likewise.
29771         * tests/test-mbsrtowcs.c: Likewise.
29772         * tests/test-mbsspn.c: Likewise.
29773         * tests/test-mbsstr1.c: Likewise.
29774         * tests/test-mbsstr2.c: Likewise.
29775         * tests/test-mbsstr3.c: Likewise.
29776         * tests/test-memchr.c: Likewise.
29777         * tests/test-memchr2.c: Likewise.
29778         * tests/test-memcmp.c: Likewise.
29779         * tests/test-memmem.c: Likewise.
29780         * tests/test-memrchr.c: Likewise.
29781         * tests/test-mkdir.c: Likewise.
29782         * tests/test-mkdirat.c: Likewise.
29783         * tests/test-mkfifo.c: Likewise.
29784         * tests/test-mkfifoat.c: Likewise.
29785         * tests/test-mknod.c: Likewise.
29786         * tests/test-nanosleep.c: Likewise.
29787         * tests/test-nl_langinfo.c: Likewise.
29788         * tests/test-obstack-printf.c: Likewise.
29789         * tests/test-open.c: Likewise.
29790         * tests/test-openat.c: Likewise.
29791         * tests/test-pipe-filter-gi1.c: Likewise.
29792         * tests/test-pipe-filter-gi2-main.c: Likewise.
29793         * tests/test-pipe-filter-ii1.c: Likewise.
29794         * tests/test-pipe-filter-ii2-main.c: Likewise.
29795         * tests/test-pipe2.c: Likewise.
29796         * tests/test-popen.h: Likewise.
29797         * tests/test-posixtm.c: Likewise.
29798         * tests/test-pread.c: Likewise.
29799         * tests/test-printf-frexp.c: Likewise.
29800         * tests/test-printf-frexpl.c: Likewise.
29801         * tests/test-printf-posix.c: Likewise.
29802         * tests/test-priv-set.c: Likewise.
29803         * tests/test-quotearg.c: Likewise.
29804         * tests/test-random_r.c: Likewise.
29805         * tests/test-rawmemchr.c: Likewise.
29806         * tests/test-rbtree_list.c: Likewise.
29807         * tests/test-rbtree_oset.c: Likewise.
29808         * tests/test-rbtreehash_list.c: Likewise.
29809         * tests/test-readlink.c: Likewise.
29810         * tests/test-remove.c: Likewise.
29811         * tests/test-rename.c: Likewise.
29812         * tests/test-renameat.c: Likewise.
29813         * tests/test-rmdir.c: Likewise.
29814         * tests/test-round1.c: Likewise.
29815         * tests/test-roundf1.c: Likewise.
29816         * tests/test-roundl.c: Likewise.
29817         * tests/test-safe-alloc.c: Likewise.
29818         * tests/test-sameacls.c: Likewise.
29819         * tests/test-set-mode-acl.c: Likewise.
29820         * tests/test-setenv.c: Likewise.
29821         * tests/test-sigaction.c: Likewise.
29822         * tests/test-signbit.c: Likewise.
29823         * tests/test-sleep.c: Likewise.
29824         * tests/test-snprintf-posix.c: Likewise.
29825         * tests/test-snprintf.c: Likewise.
29826         * tests/test-sprintf-posix.c: Likewise.
29827         * tests/test-stat-time.c: Likewise.
29828         * tests/test-stat.c: Likewise.
29829         * tests/test-strcasestr.c: Likewise.
29830         * tests/test-strchrnul.c: Likewise.
29831         * tests/test-strerror.c: Likewise.
29832         * tests/test-striconv.c: Likewise.
29833         * tests/test-striconveh.c: Likewise.
29834         * tests/test-striconveha.c: Likewise.
29835         * tests/test-strsignal.c: Likewise.
29836         * tests/test-strstr.c: Likewise.
29837         * tests/test-strtod.c: Likewise.
29838         * tests/test-strverscmp.c: Likewise.
29839         * tests/test-symlink.c: Likewise.
29840         * tests/test-symlinkat.c: Likewise.
29841         * tests/test-trunc1.c: Likewise.
29842         * tests/test-trunc2.c: Likewise.
29843         * tests/test-truncf1.c: Likewise.
29844         * tests/test-truncf2.c: Likewise.
29845         * tests/test-truncl.c: Likewise.
29846         * tests/test-uname.c: Likewise.
29847         * tests/test-unlink.c: Likewise.
29848         * tests/test-unlinkat.c: Likewise.
29849         * tests/test-unsetenv.c: Likewise.
29850         * tests/test-usleep.c: Likewise.
29851         * tests/test-utimens.c: Likewise.
29852         * tests/test-utimensat.c: Likewise.
29853         * tests/test-vasnprintf-posix.c: Likewise.
29854         * tests/test-vasnprintf-posix2.c: Likewise.
29855         * tests/test-vasnprintf.c: Likewise.
29856         * tests/test-vasprintf-posix.c: Likewise.
29857         * tests/test-vasprintf.c: Likewise.
29858         * tests/test-vdprintf-posix.c: Likewise.
29859         * tests/test-vfprintf-posix.c: Likewise.
29860         * tests/test-vprintf-posix.c: Likewise.
29861         * tests/test-vsnprintf-posix.c: Likewise.
29862         * tests/test-vsnprintf.c: Likewise.
29863         * tests/test-vsprintf-posix.c: Likewise.
29864         * tests/test-wcrtomb.c: Likewise.
29865         * tests/test-wcsnrtombs.c: Likewise.
29866         * tests/test-wcsrtombs.c: Likewise.
29867         * tests/test-wctype.c: Likewise.
29868         * tests/test-wcwidth.c: Likewise.
29869         * tests/test-xfprintf-posix.c: Likewise.
29870         * tests/test-xmemdup0.c: Likewise.
29871         * tests/test-xprintf-posix.c: Likewise.
29872         * tests/test-xvasprintf.c: Likewise.
29873         * tests/unicase/test-locale-language.c: Likewise.
29874         * tests/unicase/test-mapping-part1.h: Likewise.
29875         * tests/unicase/test-predicate-part1.h: Likewise.
29876         * tests/unicase/test-u8-casecmp.c: Likewise.
29877         * tests/unicase/test-u8-casecoll.c: Likewise.
29878         * tests/unicase/test-u8-casefold.c: Likewise.
29879         * tests/unicase/test-u8-is-cased.c: Likewise.
29880         * tests/unicase/test-u8-is-casefolded.c: Likewise.
29881         * tests/unicase/test-u8-is-lowercase.c: Likewise.
29882         * tests/unicase/test-u8-is-titlecase.c: Likewise.
29883         * tests/unicase/test-u8-is-uppercase.c: Likewise.
29884         * tests/unicase/test-u8-tolower.c: Likewise.
29885         * tests/unicase/test-u8-totitle.c: Likewise.
29886         * tests/unicase/test-u8-toupper.c: Likewise.
29887         * tests/unicase/test-u16-casecmp.c: Likewise.
29888         * tests/unicase/test-u16-casecoll.c: Likewise.
29889         * tests/unicase/test-u16-casefold.c: Likewise.
29890         * tests/unicase/test-u16-is-cased.c: Likewise.
29891         * tests/unicase/test-u16-is-casefolded.c: Likewise.
29892         * tests/unicase/test-u16-is-lowercase.c: Likewise.
29893         * tests/unicase/test-u16-is-titlecase.c: Likewise.
29894         * tests/unicase/test-u16-is-uppercase.c: Likewise.
29895         * tests/unicase/test-u16-tolower.c: Likewise.
29896         * tests/unicase/test-u16-totitle.c: Likewise.
29897         * tests/unicase/test-u16-toupper.c: Likewise.
29898         * tests/unicase/test-u32-casecmp.c: Likewise.
29899         * tests/unicase/test-u32-casecoll.c: Likewise.
29900         * tests/unicase/test-u32-casefold.c: Likewise.
29901         * tests/unicase/test-u32-is-cased.c: Likewise.
29902         * tests/unicase/test-u32-is-casefolded.c: Likewise.
29903         * tests/unicase/test-u32-is-lowercase.c: Likewise.
29904         * tests/unicase/test-u32-is-titlecase.c: Likewise.
29905         * tests/unicase/test-u32-is-uppercase.c: Likewise.
29906         * tests/unicase/test-u32-tolower.c: Likewise.
29907         * tests/unicase/test-u32-totitle.c: Likewise.
29908         * tests/unicase/test-u32-toupper.c: Likewise.
29909         * tests/unicase/test-ulc-casecmp.c: Likewise.
29910         * tests/unicase/test-ulc-casecoll.c: Likewise.
29911         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29912         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29913         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29914         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29915         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29916         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29917         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29918         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29919         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29920         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29921         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29922         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29923         * tests/unictype/test-bidi_byname.c: Likewise.
29924         * tests/unictype/test-bidi_name.c: Likewise.
29925         * tests/unictype/test-bidi_of.c: Likewise.
29926         * tests/unictype/test-bidi_test.c: Likewise.
29927         * tests/unictype/test-block_list.c: Likewise.
29928         * tests/unictype/test-block_of.c: Likewise.
29929         * tests/unictype/test-block_test.c: Likewise.
29930         * tests/unictype/test-categ_and.c: Likewise.
29931         * tests/unictype/test-categ_and_not.c: Likewise.
29932         * tests/unictype/test-categ_byname.c: Likewise.
29933         * tests/unictype/test-categ_name.c: Likewise.
29934         * tests/unictype/test-categ_none.c: Likewise.
29935         * tests/unictype/test-categ_of.c: Likewise.
29936         * tests/unictype/test-categ_or.c: Likewise.
29937         * tests/unictype/test-categ_test_withtable.c: Likewise.
29938         * tests/unictype/test-combining.c: Likewise.
29939         * tests/unictype/test-decdigit.c: Likewise.
29940         * tests/unictype/test-digit.c: Likewise.
29941         * tests/unictype/test-mirror.c: Likewise.
29942         * tests/unictype/test-numeric.c: Likewise.
29943         * tests/unictype/test-pr_byname.c: Likewise.
29944         * tests/unictype/test-pr_test.c: Likewise.
29945         * tests/unictype/test-predicate-part1.h: Likewise.
29946         * tests/unictype/test-scripts.c: Likewise.
29947         * tests/unictype/test-sy_c_ident.c: Likewise.
29948         * tests/unictype/test-sy_java_ident.c: Likewise.
29949         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
29950         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
29951         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
29952         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
29953         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
29954         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
29955         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
29956         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
29957         * tests/uninorm/test-canonical-decomposition.c: Likewise.
29958         * tests/uninorm/test-compat-decomposition.c: Likewise.
29959         * tests/uninorm/test-composition.c: Likewise.
29960         * tests/uninorm/test-decomposing-form.c: Likewise.
29961         * tests/uninorm/test-decomposition.c: Likewise.
29962         * tests/uninorm/test-u8-nfc.c: Likewise.
29963         * tests/uninorm/test-u8-nfd.c: Likewise.
29964         * tests/uninorm/test-u8-nfkc.c: Likewise.
29965         * tests/uninorm/test-u8-nfkd.c: Likewise.
29966         * tests/uninorm/test-u8-normcmp.c: Likewise.
29967         * tests/uninorm/test-u8-normcoll.c: Likewise.
29968         * tests/uninorm/test-u16-nfc.c: Likewise.
29969         * tests/uninorm/test-u16-nfd.c: Likewise.
29970         * tests/uninorm/test-u16-nfkc.c: Likewise.
29971         * tests/uninorm/test-u16-nfkd.c: Likewise.
29972         * tests/uninorm/test-u16-normcmp.c: Likewise.
29973         * tests/uninorm/test-u16-normcoll.c: Likewise.
29974         * tests/uninorm/test-u32-nfc.c: Likewise.
29975         * tests/uninorm/test-u32-nfd.c: Likewise.
29976         * tests/uninorm/test-u32-nfkc.c: Likewise.
29977         * tests/uninorm/test-u32-nfkd.c: Likewise.
29978         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29979         * tests/uninorm/test-u32-normcmp.c: Likewise.
29980         * tests/uninorm/test-u32-normcoll.c: Likewise.
29981         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
29982         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29983         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29984         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29985         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29986         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29987         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29988         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29989         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29990         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29991         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29992         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29993         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29994         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29995         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29996         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29997         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29998         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29999         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30000         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30001         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30002         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30003         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30004         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30005         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30006         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30007         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30008         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30009         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30010         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30011         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30012         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30013         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30014         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30015         * tests/uniwidth/test-u8-width.c: Likewise.
30016         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30017         * tests/uniwidth/test-u16-width.c: Likewise.
30018         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30019         * tests/uniwidth/test-u32-width.c: Likewise.
30020         * tests/uniwidth/test-uc_width.c: Likewise.
30021         * tests/uniwidth/test-uc_width2.c: Likewise.
30022         * modules/acl-tests (Files): Add tests/macros.h.
30023         * modules/areadlink-tests (Files): Likewise.
30024         * modules/areadlink-with-size-tests (Files): Likewise.
30025         * modules/areadlinkat-tests (Files): Likewise.
30026         * modules/areadlinkat-with-size-tests (Files): Likewise.
30027         * modules/argmatch-tests (Files): Likewise.
30028         * modules/argv-iter-tests (Files): Likewise.
30029         * modules/array-list-tests (Files): Likewise.
30030         * modules/array-mergesort-tests (Files): Likewise.
30031         * modules/array-oset-tests (Files): Likewise.
30032         * modules/avltree-list-tests (Files): Likewise.
30033         * modules/avltree-oset-tests (Files): Likewise.
30034         * modules/avltreehash-list-tests (Files): Likewise.
30035         * modules/base64-tests (Files): Likewise.
30036         * modules/binary-io-tests (Files): Likewise.
30037         * modules/bitrotate-tests (Files): Likewise.
30038         * modules/btowc-tests (Files): Likewise.
30039         * modules/byteswap-tests (Files): Likewise.
30040         * modules/c-ctype-tests (Files): Likewise.
30041         * modules/c-stack-tests (Files): Likewise.
30042         * modules/c-strcase-tests (Files): Likewise.
30043         * modules/c-strcasestr-tests (Files): Likewise.
30044         * modules/c-strstr-tests (Files): Likewise.
30045         * modules/canonicalize-lgpl-tests (Files): Likewise.
30046         * modules/canonicalize-tests (Files): Likewise.
30047         * modules/carray-list-tests (Files): Likewise.
30048         * modules/ceilf-tests (Files): Likewise.
30049         * modules/ceill-tests (Files): Likewise.
30050         * modules/chown-tests (Files): Likewise.
30051         * modules/cloexec-tests (Files): Likewise.
30052         * modules/copy-file-tests (Files): Likewise.
30053         * modules/count-one-bits-tests (Files): Likewise.
30054         * modules/dprintf-posix-tests (Files): Likewise.
30055         * modules/dup2-tests (Files): Likewise.
30056         * modules/dup3-tests (Files): Likewise.
30057         * modules/duplocale-tests (Files): Likewise.
30058         * modules/fbufmode-tests (Files): Likewise.
30059         * modules/fchdir-tests (Files): Likewise.
30060         * modules/fcntl-safer-tests (Files): Likewise.
30061         * modules/fcntl-tests (Files): Likewise.
30062         * modules/fdopendir-tests (Files): Likewise.
30063         * modules/fdutimensat-tests (Files): Likewise.
30064         * modules/fflush-tests (Files): Likewise.
30065         * modules/filevercmp-tests (Files): Likewise.
30066         * modules/flock-tests (Files): Likewise.
30067         * modules/floorf-tests (Files): Likewise.
30068         * modules/floorl-tests (Files): Likewise.
30069         * modules/fnmatch-tests (Files): Likewise.
30070         * modules/fopen-safer-tests (Files): Likewise.
30071         * modules/fopen-tests (Files): Likewise.
30072         * modules/fpending-tests (Files): Likewise.
30073         * modules/fprintf-posix-tests (Files): Likewise.
30074         * modules/fpurge-tests (Files): Likewise.
30075         * modules/freadable-tests (Files): Likewise.
30076         * modules/freadahead-tests (Files): Likewise.
30077         * modules/freading-tests (Files): Likewise.
30078         * modules/freadptr-tests (Files): Likewise.
30079         * modules/freadseek-tests (Files): Likewise.
30080         * modules/freopen-tests (Files): Likewise.
30081         * modules/frexp-nolibm-tests (Files): Likewise.
30082         * modules/frexp-tests (Files): Likewise.
30083         * modules/frexpl-nolibm-tests (Files): Likewise.
30084         * modules/frexpl-tests (Files): Likewise.
30085         * modules/fseek-tests (Files): Likewise.
30086         * modules/fseeko-tests (Files): Likewise.
30087         * modules/fstrcmp-tests (Files): Likewise.
30088         * modules/fsync-tests (Files): Likewise.
30089         * modules/ftell-tests (Files): Likewise.
30090         * modules/ftello-tests (Files): Likewise.
30091         * modules/func-tests (Files): Likewise.
30092         * modules/futimens-tests (Files): Likewise.
30093         * modules/fwritable-tests (Files): Likewise.
30094         * modules/fwriting-tests (Files): Likewise.
30095         * modules/getcwd-tests (Files): Likewise.
30096         * modules/getdate-tests (Files): Likewise.
30097         * modules/getdelim-tests (Files): Likewise.
30098         * modules/getdtablesize-tests (Files): Likewise.
30099         * modules/getgroups-tests (Files): Likewise.
30100         * modules/getline-tests (Files): Likewise.
30101         * modules/getndelim2-tests (Files): Likewise.
30102         * modules/glob-tests (Files): Likewise.
30103         * modules/hash-tests (Files): Likewise.
30104         * modules/i-ring-tests (Files): Likewise.
30105         * modules/iconv-tests (Files): Likewise.
30106         * modules/iconv_open-utf-tests (Files): Likewise.
30107         * modules/idpriv-drop-tests (Files): Likewise.
30108         * modules/idpriv-droptemp-tests (Files): Likewise.
30109         * modules/inet_ntop-tests (Files): Likewise.
30110         * modules/inet_pton-tests (Files): Likewise.
30111         * modules/isblank-tests (Files): Likewise.
30112         * modules/isfinite-tests (Files): Likewise.
30113         * modules/isinf-tests (Files): Likewise.
30114         * modules/isnan-tests (Files): Likewise.
30115         * modules/isnand-nolibm-tests (Files): Likewise.
30116         * modules/isnand-tests (Files): Likewise.
30117         * modules/isnanf-nolibm-tests (Files): Likewise.
30118         * modules/isnanf-tests (Files): Likewise.
30119         * modules/isnanl-nolibm-tests (Files): Likewise.
30120         * modules/isnanl-tests (Files): Likewise.
30121         * modules/lchown-tests (Files): Likewise.
30122         * modules/ldexpl-tests (Files): Likewise.
30123         * modules/link-tests (Files): Likewise.
30124         * modules/linkat-tests (Files): Likewise.
30125         * modules/linked-list-tests (Files): Likewise.
30126         * modules/linkedhash-list-tests (Files): Likewise.
30127         * modules/localename-tests (Files): Likewise.
30128         * modules/lseek-tests (Files): Likewise.
30129         * modules/lstat-tests (Files): Likewise.
30130         * modules/mbmemcasecmp-tests (Files): Likewise.
30131         * modules/mbmemcasecoll-tests (Files): Likewise.
30132         * modules/mbrtowc-tests (Files): Likewise.
30133         * modules/mbscasecmp-tests (Files): Likewise.
30134         * modules/mbscasestr-tests (Files): Likewise.
30135         * modules/mbschr-tests (Files): Likewise.
30136         * modules/mbscspn-tests (Files): Likewise.
30137         * modules/mbsinit-tests (Files): Likewise.
30138         * modules/mbsncasecmp-tests (Files): Likewise.
30139         * modules/mbsnrtowcs-tests (Files): Likewise.
30140         * modules/mbspbrk-tests (Files): Likewise.
30141         * modules/mbspcasecmp-tests (Files): Likewise.
30142         * modules/mbsrchr-tests (Files): Likewise.
30143         * modules/mbsrtowcs-tests (Files): Likewise.
30144         * modules/mbsspn-tests (Files): Likewise.
30145         * modules/mbsstr-tests (Files): Likewise.
30146         * modules/memchr-tests (Files): Likewise.
30147         * modules/memchr2-tests (Files): Likewise.
30148         * modules/memcmp-tests (Files): Likewise.
30149         * modules/memmem-tests (Files): Likewise.
30150         * modules/memrchr-tests (Files): Likewise.
30151         * modules/mkdir-tests (Files): Likewise.
30152         * modules/mkfifo-tests (Files): Likewise.
30153         * modules/mkfifoat-tests (Files): Likewise.
30154         * modules/mknod-tests (Files): Likewise.
30155         * modules/nanosleep-tests (Files): Likewise.
30156         * modules/nl_langinfo-tests (Files): Likewise.
30157         * modules/obstack-printf-tests (Files): Likewise.
30158         * modules/open-tests (Files): Likewise.
30159         * modules/openat-tests (Files): Likewise.
30160         * modules/pipe-filter-gi-tests (Files): Likewise.
30161         * modules/pipe-filter-ii-tests (Files): Likewise.
30162         * modules/pipe2-tests (Files): Likewise.
30163         * modules/popen-safer-tests (Files): Likewise.
30164         * modules/popen-tests (Files): Likewise.
30165         * modules/posixtm-tests (Files): Likewise.
30166         * modules/pread-tests (Files): Likewise.
30167         * modules/printf-frexp-tests (Files): Likewise.
30168         * modules/printf-frexpl-tests (Files): Likewise.
30169         * modules/printf-posix-tests (Files): Likewise.
30170         * modules/priv-set-tests (Files): Likewise.
30171         * modules/quotearg-tests (Files): Likewise.
30172         * modules/random_r-tests (Files): Likewise.
30173         * modules/rawmemchr-tests (Files): Likewise.
30174         * modules/rbtree-list-tests (Files): Likewise.
30175         * modules/rbtree-oset-tests (Files): Likewise.
30176         * modules/rbtreehash-list-tests (Files): Likewise.
30177         * modules/readlink-tests (Files): Likewise.
30178         * modules/remove-tests (Files): Likewise.
30179         * modules/rename-tests (Files): Likewise.
30180         * modules/renameat-tests (Files): Likewise.
30181         * modules/rmdir-tests (Files): Likewise.
30182         * modules/round-tests (Files): Likewise.
30183         * modules/roundf-tests (Files): Likewise.
30184         * modules/roundl-tests (Files): Likewise.
30185         * modules/safe-alloc-tests (Files): Likewise.
30186         * modules/setenv-tests (Files): Likewise.
30187         * modules/sigaction-tests (Files): Likewise.
30188         * modules/signbit-tests (Files): Likewise.
30189         * modules/sleep-tests (Files): Likewise.
30190         * modules/snprintf-posix-tests (Files): Likewise.
30191         * modules/snprintf-tests (Files): Likewise.
30192         * modules/sprintf-posix-tests (Files): Likewise.
30193         * modules/stat-tests (Files): Likewise.
30194         * modules/stat-time-tests (Files): Likewise.
30195         * modules/strcasestr-tests (Files): Likewise.
30196         * modules/strchrnul-tests (Files): Likewise.
30197         * modules/strerror-tests (Files): Likewise.
30198         * modules/striconv-tests (Files): Likewise.
30199         * modules/striconveh-tests (Files): Likewise.
30200         * modules/striconveha-tests (Files): Likewise.
30201         * modules/strsignal-tests (Files): Likewise.
30202         * modules/strstr-tests (Files): Likewise.
30203         * modules/strtod-tests (Files): Likewise.
30204         * modules/strverscmp-tests (Files): Likewise.
30205         * modules/symlink-tests (Files): Likewise.
30206         * modules/symlinkat-tests (Files): Likewise.
30207         * modules/trunc-tests (Files): Likewise.
30208         * modules/truncf-tests (Files): Likewise.
30209         * modules/truncl-tests (Files): Likewise.
30210         * modules/uname-tests (Files): Likewise.
30211         * modules/unicase/cased-tests (Files): Likewise.
30212         * modules/unicase/ignorable-tests (Files): Likewise.
30213         * modules/unicase/locale-language-tests (Files): Likewise.
30214         * modules/unicase/tolower-tests (Files): Likewise.
30215         * modules/unicase/totitle-tests (Files): Likewise.
30216         * modules/unicase/toupper-tests (Files): Likewise.
30217         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30218         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30219         * modules/unicase/u8-casefold-tests (Files): Likewise.
30220         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30221         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30222         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30223         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30224         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30225         * modules/unicase/u8-tolower-tests (Files): Likewise.
30226         * modules/unicase/u8-totitle-tests (Files): Likewise.
30227         * modules/unicase/u8-toupper-tests (Files): Likewise.
30228         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30229         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30230         * modules/unicase/u16-casefold-tests (Files): Likewise.
30231         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30232         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30233         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30234         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30235         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30236         * modules/unicase/u16-tolower-tests (Files): Likewise.
30237         * modules/unicase/u16-totitle-tests (Files): Likewise.
30238         * modules/unicase/u16-toupper-tests (Files): Likewise.
30239         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30240         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30241         * modules/unicase/u32-casefold-tests (Files): Likewise.
30242         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30243         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30244         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30245         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30246         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30247         * modules/unicase/u32-tolower-tests (Files): Likewise.
30248         * modules/unicase/u32-totitle-tests (Files): Likewise.
30249         * modules/unicase/u32-toupper-tests (Files): Likewise.
30250         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30251         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30252         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30253         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30254         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30255         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30256         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30257         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30258         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30259         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30260         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30261         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30262         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30263         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30264         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30265         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30266         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30267         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30268         * modules/unictype/block-list-tests (Files): Likewise.
30269         * modules/unictype/block-of-tests (Files): Likewise.
30270         * modules/unictype/block-test-tests (Files): Likewise.
30271         * modules/unictype/category-C-tests (Files): Likewise.
30272         * modules/unictype/category-Cc-tests (Files): Likewise.
30273         * modules/unictype/category-Cf-tests (Files): Likewise.
30274         * modules/unictype/category-Cn-tests (Files): Likewise.
30275         * modules/unictype/category-Co-tests (Files): Likewise.
30276         * modules/unictype/category-Cs-tests (Files): Likewise.
30277         * modules/unictype/category-L-tests (Files): Likewise.
30278         * modules/unictype/category-Ll-tests (Files): Likewise.
30279         * modules/unictype/category-Lm-tests (Files): Likewise.
30280         * modules/unictype/category-Lo-tests (Files): Likewise.
30281         * modules/unictype/category-Lt-tests (Files): Likewise.
30282         * modules/unictype/category-Lu-tests (Files): Likewise.
30283         * modules/unictype/category-M-tests (Files): Likewise.
30284         * modules/unictype/category-Mc-tests (Files): Likewise.
30285         * modules/unictype/category-Me-tests (Files): Likewise.
30286         * modules/unictype/category-Mn-tests (Files): Likewise.
30287         * modules/unictype/category-N-tests (Files): Likewise.
30288         * modules/unictype/category-Nd-tests (Files): Likewise.
30289         * modules/unictype/category-Nl-tests (Files): Likewise.
30290         * modules/unictype/category-No-tests (Files): Likewise.
30291         * modules/unictype/category-P-tests (Files): Likewise.
30292         * modules/unictype/category-Pc-tests (Files): Likewise.
30293         * modules/unictype/category-Pd-tests (Files): Likewise.
30294         * modules/unictype/category-Pe-tests (Files): Likewise.
30295         * modules/unictype/category-Pf-tests (Files): Likewise.
30296         * modules/unictype/category-Pi-tests (Files): Likewise.
30297         * modules/unictype/category-Po-tests (Files): Likewise.
30298         * modules/unictype/category-Ps-tests (Files): Likewise.
30299         * modules/unictype/category-S-tests (Files): Likewise.
30300         * modules/unictype/category-Sc-tests (Files): Likewise.
30301         * modules/unictype/category-Sk-tests (Files): Likewise.
30302         * modules/unictype/category-Sm-tests (Files): Likewise.
30303         * modules/unictype/category-So-tests (Files): Likewise.
30304         * modules/unictype/category-Z-tests (Files): Likewise.
30305         * modules/unictype/category-Zl-tests (Files): Likewise.
30306         * modules/unictype/category-Zp-tests (Files): Likewise.
30307         * modules/unictype/category-Zs-tests (Files): Likewise.
30308         * modules/unictype/category-and-not-tests (Files): Likewise.
30309         * modules/unictype/category-and-tests (Files): Likewise.
30310         * modules/unictype/category-byname-tests (Files): Likewise.
30311         * modules/unictype/category-name-tests (Files): Likewise.
30312         * modules/unictype/category-none-tests (Files): Likewise.
30313         * modules/unictype/category-of-tests (Files): Likewise.
30314         * modules/unictype/category-or-tests (Files): Likewise.
30315         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30316         * modules/unictype/combining-class-tests (Files): Likewise.
30317         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30318         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30319         * modules/unictype/ctype-blank-tests (Files): Likewise.
30320         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30321         * modules/unictype/ctype-digit-tests (Files): Likewise.
30322         * modules/unictype/ctype-graph-tests (Files): Likewise.
30323         * modules/unictype/ctype-lower-tests (Files): Likewise.
30324         * modules/unictype/ctype-print-tests (Files): Likewise.
30325         * modules/unictype/ctype-punct-tests (Files): Likewise.
30326         * modules/unictype/ctype-space-tests (Files): Likewise.
30327         * modules/unictype/ctype-upper-tests (Files): Likewise.
30328         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30329         * modules/unictype/decimal-digit-tests (Files): Likewise.
30330         * modules/unictype/digit-tests (Files): Likewise.
30331         * modules/unictype/mirror-tests (Files): Likewise.
30332         * modules/unictype/numeric-tests (Files): Likewise.
30333         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30334         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30335         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30336         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30337         Likewise.
30338         * modules/unictype/property-bidi-block-separator-tests (Files):
30339         Likewise.
30340         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30341         Likewise.
30342         * modules/unictype/property-bidi-common-separator-tests (Files):
30343         Likewise.
30344         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30345         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30346         Likewise.
30347         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30348         Likewise.
30349         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30350         Likewise.
30351         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30352         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30353         Likewise.
30354         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30355         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30356         Likewise.
30357         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30358         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30359         * modules/unictype/property-bidi-segment-separator-tests (Files):
30360         Likewise.
30361         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30362         * modules/unictype/property-byname-tests (Files): Likewise.
30363         * modules/unictype/property-combining-tests (Files): Likewise.
30364         * modules/unictype/property-composite-tests (Files): Likewise.
30365         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30366         * modules/unictype/property-dash-tests (Files): Likewise.
30367         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30368         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30369         Likewise.
30370         * modules/unictype/property-deprecated-tests (Files): Likewise.
30371         * modules/unictype/property-diacritic-tests (Files): Likewise.
30372         * modules/unictype/property-extender-tests (Files): Likewise.
30373         * modules/unictype/property-format-control-tests (Files): Likewise.
30374         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30375         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30376         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30377         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30378         * modules/unictype/property-hyphen-tests (Files): Likewise.
30379         * modules/unictype/property-id-continue-tests (Files): Likewise.
30380         * modules/unictype/property-id-start-tests (Files): Likewise.
30381         * modules/unictype/property-ideographic-tests (Files): Likewise.
30382         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30383         * modules/unictype/property-ids-trinary-operator-tests (Files):
30384         Likewise.
30385         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30386         * modules/unictype/property-iso-control-tests (Files): Likewise.
30387         * modules/unictype/property-join-control-tests (Files): Likewise.
30388         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30389         * modules/unictype/property-line-separator-tests (Files): Likewise.
30390         * modules/unictype/property-logical-order-exception-tests (Files):
30391         Likewise.
30392         * modules/unictype/property-lowercase-tests (Files): Likewise.
30393         * modules/unictype/property-math-tests (Files): Likewise.
30394         * modules/unictype/property-non-break-tests (Files): Likewise.
30395         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30396         * modules/unictype/property-numeric-tests (Files): Likewise.
30397         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30398         * modules/unictype/property-other-default-ignorable-code-point-tests
30399         (Files): Likewise.
30400         * modules/unictype/property-other-grapheme-extend-tests (Files):
30401         Likewise.
30402         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30403         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30404         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30405         * modules/unictype/property-other-math-tests (Files): Likewise.
30406         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30407         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30408         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30409         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30410         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30411         * modules/unictype/property-private-use-tests (Files): Likewise.
30412         * modules/unictype/property-punctuation-tests (Files): Likewise.
30413         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30414         * modules/unictype/property-radical-tests (Files): Likewise.
30415         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30416         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30417         * modules/unictype/property-space-tests (Files): Likewise.
30418         * modules/unictype/property-terminal-punctuation-tests (Files):
30419         Likewise.
30420         * modules/unictype/property-test-tests (Files): Likewise.
30421         * modules/unictype/property-titlecase-tests (Files): Likewise.
30422         * modules/unictype/property-unassigned-code-value-tests (Files):
30423         Likewise.
30424         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30425         * modules/unictype/property-uppercase-tests (Files): Likewise.
30426         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30427         * modules/unictype/property-white-space-tests (Files): Likewise.
30428         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30429         * modules/unictype/property-xid-start-tests (Files): Likewise.
30430         * modules/unictype/property-zero-width-tests (Files): Likewise.
30431         * modules/unictype/scripts-tests (Files): Likewise.
30432         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30433         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30434         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30435         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30436         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30437         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30438         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30439         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30440         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30441         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30442         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30443         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30444         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30445         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30446         * modules/uninorm/composition-tests (Files): Likewise.
30447         * modules/uninorm/decomposing-form-tests (Files): Likewise.
30448         * modules/uninorm/decomposition-tests (Files): Likewise.
30449         * modules/uninorm/filter-tests (Files): Likewise.
30450         * modules/uninorm/nfc-tests (Files): Likewise.
30451         * modules/uninorm/nfd-tests (Files): Likewise.
30452         * modules/uninorm/nfkc-tests (Files): Likewise.
30453         * modules/uninorm/nfkd-tests (Files): Likewise.
30454         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
30455         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
30456         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
30457         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
30458         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
30459         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
30460         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
30461         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
30462         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
30463         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
30464         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
30465         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
30466         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
30467         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
30468         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
30469         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
30470         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
30471         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
30472         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
30473         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
30474         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
30475         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
30476         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
30477         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
30478         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
30479         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
30480         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
30481         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
30482         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
30483         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
30484         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
30485         * modules/uniwidth/u8-width-tests (Files): Likewise.
30486         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
30487         * modules/uniwidth/u16-width-tests (Files): Likewise.
30488         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
30489         * modules/uniwidth/u32-width-tests (Files): Likewise.
30490         * modules/uniwidth/width-tests (Files): Likewise.
30491         * modules/unlink-tests (Files): Likewise.
30492         * modules/unsetenv-tests (Files): Likewise.
30493         * modules/usleep-tests (Files): Likewise.
30494         * modules/utimens-tests (Files): Likewise.
30495         * modules/utimensat-tests (Files): Likewise.
30496         * modules/vasnprintf-posix-tests (Files): Likewise.
30497         * modules/vasnprintf-tests (Files): Likewise.
30498         * modules/vasprintf-posix-tests (Files): Likewise.
30499         * modules/vasprintf-tests (Files): Likewise.
30500         * modules/vdprintf-posix-tests (Files): Likewise.
30501         * modules/vfprintf-posix-tests (Files): Likewise.
30502         * modules/vprintf-posix-tests (Files): Likewise.
30503         * modules/vsnprintf-posix-tests (Files): Likewise.
30504         * modules/vsnprintf-tests (Files): Likewise.
30505         * modules/vsprintf-posix-tests (Files): Likewise.
30506         * modules/wcrtomb-tests (Files): Likewise.
30507         * modules/wcsnrtombs-tests (Files): Likewise.
30508         * modules/wcsrtombs-tests (Files): Likewise.
30509         * modules/wctype-tests (Files): Likewise.
30510         * modules/wcwidth-tests (Files): Likewise.
30511         * modules/xmemdup0-tests (Files): Likewise.
30512         * modules/xprintf-posix-tests (Files): Likewise.
30513         * modules/xvasprintf-tests (Files): Likewise.
30514
30515 2009-12-24  Eric Blake  <ebb9@byu.net>
30516
30517         test-nanosleep: fix typo
30518         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
30519         patch.
30520         Reported by Bruno Haible.
30521
30522 2009-12-24  Bruno Haible  <bruno@clisp.org>
30523
30524         Reduce namespace pollution on glibc systems.
30525         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
30526         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
30527         systems.
30528         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
30529         <getopt.h> on glibc systems.
30530         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
30531         systems.
30532         * lib/fcntl.c: Include <unistd.h> here instead.
30533
30534 2009-12-24  Bruno Haible  <bruno@clisp.org>
30535
30536         * lib/stdlib.in.h (includes): Fix typo in today's commit.
30537
30538 2009-12-24  Eric Blake  <ebb9@byu.net>
30539
30540         tests: add signature checks
30541         * tests/signature.h (SIGNATURE_CHECK): New file.
30542         * modules/atexit-tests (Files): Use it.
30543         * modules/btowc-tests (Files): Likewise.
30544         * modules/canonicalize-lgpl-tests (Files): Likewise.
30545         * modules/ceilf-tests (Files): Likewise.
30546         * modules/ceill-tests (Files): Likewise.
30547         * modules/chown-tests (Files): Likewise.
30548         * modules/dprintf-posix-tests (Files): Likewise.
30549         * modules/dup2-tests (Files): Likewise.
30550         * modules/dup3-tests (Files): Likewise.
30551         * modules/duplocale-tests (Files): Likewise.
30552         * modules/fchdir-tests (Files): Likewise.
30553         * modules/fcntl-tests (Files): Likewise.
30554         * modules/fdopendir-tests (Files): Likewise.
30555         * modules/fflush-tests (Files): Likewise.
30556         * modules/flock-tests (Files): Likewise.
30557         * modules/floorf-tests (Files): Likewise.
30558         * modules/floorl-tests (Files): Likewise.
30559         * modules/fnmatch-tests (Files): Likewise.
30560         * modules/fopen-tests (Files): Likewise.
30561         * modules/fprintf-posix-tests (Files): Likewise.
30562         * modules/freopen-tests (Files): Likewise.
30563         * modules/frexp-nolibm-tests (Files): Likewise.
30564         * modules/frexp-tests (Files): Likewise.
30565         * modules/frexpl-nolibm-tests (Files): Likewise.
30566         * modules/frexpl-tests (Files): Likewise.
30567         * modules/fseek-tests (Files): Likewise.
30568         * modules/fseeko-tests (Files): Likewise.
30569         * modules/fsync-tests (Files): Likewise.
30570         * modules/ftell-tests (Files): Likewise.
30571         * modules/ftello-tests (Files): Likewise.
30572         * modules/futimens-tests (Files): Likewise.
30573         * modules/getaddrinfo-tests (Files): Likewise.
30574         * modules/getcwd-tests (Files): Likewise.
30575         * modules/getdelim-tests (Files): Likewise.
30576         * modules/getdtablesize-tests (Files): Likewise.
30577         * modules/getgroups-tests (Files): Likewise.
30578         * modules/gethostname-tests (Files): Likewise.
30579         * modules/getline-tests (Files): Likewise.
30580         * modules/getopt-posix-tests (Files): Likewise.
30581         * modules/gettimeofday-tests (Files): Likewise.
30582         * modules/glob-tests (Files): Likewise.
30583         * modules/iconv-tests (Files): Likewise.
30584         * modules/inet_ntop-tests (Files): Likewise.
30585         * modules/inet_pton-tests (Files): Likewise.
30586         * modules/isblank-tests (Files): Likewise.
30587         * modules/lchown-tests (Files): Likewise.
30588         * modules/ldexpl-tests (Files): Likewise.
30589         * modules/link-tests (Files): Likewise.
30590         * modules/linkat-tests (Files): Likewise.
30591         * modules/lseek-tests (Files): Likewise.
30592         * modules/lstat-tests (Files): Likewise.
30593         * modules/mbrtowc-tests (Files): Likewise.
30594         * modules/mbsinit-tests (Files): Likewise.
30595         * modules/mbsnrtowcs-tests (Files): Likewise.
30596         * modules/mbsrtowcs-tests (Files): Likewise.
30597         * modules/memchr-tests (Files): Likewise.
30598         * modules/memcmp-tests (Files): Likewise.
30599         * modules/memmem-tests (Files): Likewise.
30600         * modules/memrchr-tests (Files): Likewise.
30601         * modules/mkdir-tests (Files): Likewise.
30602         * modules/mkfifo-tests (Files): Likewise.
30603         * modules/mkfifoat-tests (Files): Likewise.
30604         * modules/mknod-tests (Files): Likewise.
30605         * modules/nanosleep-tests (Files): Likewise.
30606         * modules/nl_langinfo-tests (Files): Likewise.
30607         * modules/obstack-printf-tests (Files): Likewise.
30608         * modules/open-tests (Files): Likewise.
30609         * modules/openat-tests (Files): Likewise.
30610         * modules/perror-tests (Files): Likewise.
30611         * modules/pipe2-tests (Files): Likewise.
30612         * modules/poll-tests (Files): Likewise.
30613         * modules/popen-tests (Files): Likewise.
30614         * modules/posix_spawn-tests (Files): Likewise.
30615         * modules/posix_spawnp-tests (Files): Likewise.
30616         * modules/pread-tests (Files): Likewise.
30617         * modules/printf-posix-tests (Files): Likewise.
30618         * modules/pty-tests (Files): Likewise.
30619         * modules/random_r-tests (Files): Likewise.
30620         * modules/rawmemchr-tests (Files): Likewise.
30621         * modules/readlink-tests (Files): Likewise.
30622         * modules/remove-tests (Files): Likewise.
30623         * modules/rename-tests (Files): Likewise.
30624         * modules/renameat-tests (Files): Likewise.
30625         * modules/rmdir-tests (Files): Likewise.
30626         * modules/round-tests (Files): Likewise.
30627         * modules/roundf-tests (Files): Likewise.
30628         * modules/roundl-tests (Files): Likewise.
30629         * modules/select-tests (Files): Likewise.
30630         * modules/setenv-tests (Files): Likewise.
30631         * modules/sigaction-tests (Files): Likewise.
30632         * modules/sleep-tests (Files): Likewise.
30633         * modules/snprintf-posix-tests (Files): Likewise.
30634         * modules/snprintf-tests (Files): Likewise.
30635         * modules/sprintf-posix-tests (Files): Likewise.
30636         * modules/stat-tests (Files): Likewise.
30637         * modules/strcasestr-tests (Files): Likewise.
30638         * modules/strchrnul-tests (Files): Likewise.
30639         * modules/strerror-tests (Files): Likewise.
30640         * modules/strsignal-tests (Files): Likewise.
30641         * modules/strstr-tests (Files): Likewise.
30642         * modules/strtod-tests (Files): Likewise.
30643         * modules/strverscmp-tests (Files): Likewise.
30644         * modules/symlink-tests (Files): Likewise.
30645         * modules/symlinkat-tests (Files): Likewise.
30646         * modules/times-tests (Files): Likewise.
30647         * modules/trunc-tests (Files): Likewise.
30648         * modules/truncf-tests (Files): Likewise.
30649         * modules/truncl-tests (Files): Likewise.
30650         * modules/tsearch-tests (Files): Likewise.
30651         * modules/uname-tests (Files): Likewise.
30652         * modules/unlink-tests (Files): Likewise.
30653         * modules/unsetenv-tests (Files): Likewise.
30654         * modules/usleep-tests (Files): Likewise.
30655         * modules/utimensat-tests (Files): Likewise.
30656         * modules/vasprintf-tests (Files): Likewise.
30657         * modules/vdprintf-posix-tests (Files): Likewise.
30658         * modules/vfprintf-posix-tests (Files): Likewise.
30659         * modules/vprintf-posix-tests (Files): Likewise.
30660         * modules/vsnprintf-posix-tests (Files): Likewise.
30661         * modules/vsnprintf-tests (Files): Likewise.
30662         * modules/vsprintf-posix-tests (Files): Likewise.
30663         * modules/wcrtomb-tests (Files): Likewise.
30664         * modules/wcsnrtombs-tests (Files): Likewise.
30665         * modules/wcsrtombs-tests (Files): Likewise.
30666         * modules/wcwidth-tests (Files): Likewise.
30667         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
30668         * tests/test-isinf.c (isinf): Likewise.
30669         * tests/test-isnan.c (isnan): Likewise.
30670         * tests/test-signbit.c (signbit): Likewise.
30671         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
30672         declaration, either as macro or with correct signature.
30673         (select): Ensure function under test is declared with correct
30674         signature in correct header.
30675         * tests/test-atexit.c (atexit): Likewise.
30676         * tests/test-btowc.c (btowc): Likewise.
30677         * tests/test-canonicalize-lgpl.c (realpath)
30678         (canonicalize_file_name): Likewise.
30679         * tests/test-ceilf1.c (ceilf): Likewise.
30680         * tests/test-ceill.c (ceill): Likewise.
30681         * tests/test-chown.c (chown): Likewise.
30682         * tests/test-dprintf-posix.c (dprintf): Likewise.
30683         * tests/test-dup2.c (dup2): Likewise.
30684         * tests/test-dup3.c (dup3): Likewise.
30685         * tests/test-duplocale.c (duplocale): Likewise.
30686         * tests/test-fchdir.c (fchdir): Likewise.
30687         * tests/test-fchownat.c (fchownat): Likewise.
30688         * tests/test-fcntl.c (fcntl): Likewise.
30689         * tests/test-fdopendir.c (fdopendir): Likewise.
30690         * tests/test-fflush.c (fflush): Likewise.
30691         * tests/test-flock.c (flock): Likewise.
30692         * tests/test-floorf1.c (floorf): Likewise.
30693         * tests/test-floorl.c (floorl): Likewise.
30694         * tests/test-fnmatch.c (fnmatch): Likewise.
30695         * tests/test-fopen.c (fopen): Likewise.
30696         * tests/test-fprintf-posix.c (fprintf): Likewise.
30697         * tests/test-freopen.c (freopen): Likewise.
30698         * tests/test-frexp.c (frexp): Likewise.
30699         * tests/test-frexpl.c (frexpl): Likewise.
30700         * tests/test-fseek.c (fseek): Likewise.
30701         * tests/test-fseeko.c (fseeko): Likewise.
30702         * tests/test-fstatat.c (fstatat): Likewise.
30703         * tests/test-fsync.c (fsync): Likewise.
30704         * tests/test-ftell.c (ftell): Likewise.
30705         * tests/test-ftello.c (ftello): Likewise.
30706         * tests/test-futimens.c (futimens): Likewise.
30707         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
30708         (gai_strerror): Likewise.
30709         * tests/test-getcwd.c (getcwd): Likewise.
30710         * tests/test-getdelim.c (getdelim): Likewise.
30711         * tests/test-getdtablesize.c (getdtablesize): Likewise.
30712         * tests/test-getgroups.c (getgroups): Likewise.
30713         * tests/test-gethostname.c (gethostname): Likewise.
30714         * tests/test-getline.c (getline): Likewise.
30715         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
30716         Likewise.
30717         * tests/test-gettimeofday.c (gettimeofday): Likewise.
30718         * tests/test-glob.c (glob, globfree): Likewise.
30719         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
30720         * tests/test-inet_ntop.c (inet_ntop): Likewise.
30721         * tests/test-inet_pton.c (inet_pton): Likewise.
30722         * tests/test-isblank.c (isblank): Likewise.
30723         * tests/test-lchown.c (lchown): Likewise.
30724         * tests/test-ldexpl.c (ldexpl): Likewise.
30725         * tests/test-link.c (link): Likewise.
30726         * tests/test-linkat.c (linkat): Likewise.
30727         * tests/test-lseek.c (lseek): Likewise.
30728         * tests/test-lstat.c (lstat): Likewise.
30729         * tests/test-mbrtowc.c (mbrtowc): Likewise.
30730         * tests/test-mbsinit.c (mbsinit): Likewise.
30731         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
30732         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
30733         * tests/test-memchr.c (memchr): Likewise.
30734         * tests/test-memcmp.c (memcmp): Likewise.
30735         * tests/test-memmem.c (memmem): Likewise.
30736         * tests/test-memrchr.c (memrchr): Likewise.
30737         * tests/test-mkdir.c (mkdir): Likewise.
30738         * tests/test-mkdirat.c (mkdirat): Likewise.
30739         * tests/test-mkfifo.c (mkfifo): Likewise.
30740         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
30741         * tests/test-mknod.c (mknod): Likewise.
30742         * tests/test-nanosleep.c (nanosleep): Likewise.
30743         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
30744         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
30745         Likewise.
30746         * tests/test-open.c (open): Likewise.
30747         * tests/test-openat.c (openat): Likewise.
30748         * tests/test-perror.c (perror): Likewise.
30749         * tests/test-pipe2.c (pipe2): Likewise.
30750         * tests/test-poll.c (poll): Likewise.
30751         * tests/test-popen.c (popen, pclose): Likewise.
30752         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
30753         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
30754         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
30755         (posix_spawn_file_actions_destroy)
30756         (posix_spawn_file_actions_addclose)
30757         (posix_spawn_file_actions_addopen)
30758         (posix_spawn_file_actions_adddup2): Likewise.
30759         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
30760         * tests/test-pread.c (pread): Likewise.
30761         * tests/test-printf-posix.c (printf): Likewise.
30762         * tests/test-pty.c (openpty, forkpty): Likewise.
30763         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
30764         (random_r): Likewise.
30765         * tests/test-rawmemchr.c (rawmemchr): Likewise.
30766         * tests/test-readlink.c (readlink): Likewise.
30767         * tests/test-remove.c (remove): Likewise.
30768         * tests/test-rename.c (rename): Likewise.
30769         * tests/test-renameat.c (renameat): Likewise.
30770         * tests/test-rmdir.c (rmdir): Likewise.
30771         * tests/test-round1.c (round): Likewise.
30772         * tests/test-roundf1.c (roundf): Likewise.
30773         * tests/test-roundl.c (roundl): Likewise.
30774         * tests/test-setenv.c (setenv): Likewise.
30775         * tests/test-sigaction.c (sigaction): Likewise.
30776         * tests/test-sleep.c (sleep): Likewise.
30777         * tests/test-snprintf.c (snprintf): Likewise.
30778         * tests/test-sprintf-posix.c (sprintf): Likewise.
30779         * tests/test-stat.c (stat): Likewise.
30780         * tests/test-stpncpy.c (stpncpy): Likewise.
30781         * tests/test-strcasestr.c (strcasestr): Likewise.
30782         * tests/test-strchrnul.c (strchrnul): Likewise.
30783         * tests/test-strerror.c (strerror): Likewise.
30784         * tests/test-strsignal.c (strsignal): Likewise.
30785         * tests/test-strstr.c (strstr): Likewise.
30786         * tests/test-strtod.c (strtod): Likewise.
30787         * tests/test-strverscmp.c (strverscmp): Likewise.
30788         * tests/test-symlink.c (symlink): Likewise.
30789         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
30790         * tests/test-times.c (times): Likewise.
30791         * tests/test-trunc1.c (trunc): Likewise.
30792         * tests/test-truncf1.c (truncf): Likewise.
30793         * tests/test-truncl.c (truncl): Likewise.
30794         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
30795         Likewise.
30796         * tests/test-uname.c (uname): Likewise.
30797         * tests/test-unlink.c (unlink): Likewise.
30798         * tests/test-unlinkat.c (unlinkat): Likewise.
30799         * tests/test-unsetenv.c (unsetenv): Likewise.
30800         * tests/test-usleep.c (usleep): Likewise.
30801         * tests/test-utimensat.c (utimensat): Likewise.
30802         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
30803         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
30804         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
30805         * tests/test-vprintf-posix.c (vprintf): Likewise.
30806         * tests/test-vsnprintf.c (vsnprintf): Likewise.
30807         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
30808         * tests/test-wcrtomb.c (wcrtomb): Likewise.
30809         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
30810         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
30811         * tests/test-wcwidth.c (wcwidth): Likewise.
30812
30813         build: pull in conditional headers during GNULIB_POSIXCHECK
30814         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
30815         definitions from any conditionally-included headers.
30816         * lib/stdlib.in.h (includes): Likewise.
30817         * lib/unistd.in.h (includes): Likewise.
30818
30819 2009-12-24  Bruno Haible  <bruno@clisp.org>
30820
30821         * tests/test-argv-iter.c: Include header file being tested immediately
30822         after config.h.
30823         * tests/test-base64.c: Likewise.
30824         * tests/test-flock.c: Likewise.
30825         * tests/test-fsync.c: Likewise.
30826         * tests/test-getdate.c: Likewise.
30827         * tests/test-getndelim2.c: Likewise.
30828         * tests/test-isfinite.c: Likewise.
30829         * tests/test-isinf.c: Likewise.
30830         * tests/test-strerror.c: Likewise.
30831         * tests/test-strsignal.c: Likewise.
30832
30833 2009-12-23  Eric Blake  <ebb9@byu.net>
30834
30835         unistd: work around cygwin bug
30836         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
30837         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
30838         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30839
30840 2009-12-23  Bruno Haible  <bruno@clisp.org>
30841
30842         localename: More tests.
30843         * tests/test-localename.c (SIZEOF): New macro.
30844         (categories): New variable.
30845         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
30846         test_locale_name_default): Add test w.r.t. thread locale.
30847         (test_locale_name_thread): New function.
30848         (main): Invoke it.
30849
30850         localename: Make aware of thread locale.
30851         * lib/localename.h (gl_locale_name_thread): New declaration.
30852         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
30853         behaviour with respect to thread locale.
30854         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
30855         <langinfo.h>, glthread/lock.h.
30856         (SIZE_BITS): New macro.
30857         (string_hash): New function.
30858         (struct hash_node): New type.
30859         (HASH_TABLE_SIZE): New macro.
30860         (struniq_hash_table, struniq_lock): New variables.
30861         (struniq): New function.
30862         (gl_locale_name_thread): New function.
30863         (gl_locale_name): Invoke it.
30864         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
30865         * modules/localename (Depends-on): Add lock.
30866         Reported by Mike Gran <spk121@yahoo.com>.
30867
30868 2009-12-23  Eric Blake  <ebb9@byu.net>
30869
30870         va-args: new module
30871         * modules/va-args: New file.
30872         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
30873         * MODULES.html.sh (Core language properties): Mention it.
30874
30875         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
30876         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
30877         named alias for __attribute__((__unused__)).
30878         * lib/chown.c: Update client.
30879         * lib/fchmodat.c: Likewise.
30880         * lib/fts.c: Likewise.
30881         * lib/getdate.y: Likewise.
30882         * lib/getgroups.c: Likewise.
30883         * lib/getopt.c: Likewise.
30884         * lib/getugroups.c: Likewise.
30885         * lib/mkdir.c: Likewise.
30886         * lib/mkfifo.c: Likewise.
30887         * lib/mkfifoat.c: Likewise.
30888         * lib/mknod.c: Likewise.
30889         * lib/mknodat.c: Likewise.
30890         * lib/readlink.c: Likewise.
30891         * lib/se-context.in.h: Likewise.
30892         * lib/se-selinux.in.h: Likewise.
30893         * lib/sockets.c: Likewise.
30894         * lib/symlink.c: Likewise.
30895         * lib/symlinkat.c: Likewise.
30896         * lib/unicodeio.c: Likewise.
30897         * lib/unistr.h: Likewise.
30898         * tests/test-areadlink.c: Likewise.
30899         * tests/test-areadlinkat.c: Likewise.
30900         * tests/test-filenamecat.c: Likewise.
30901         * tests/test-fseeko.c: Likewise.
30902         * tests/test-ftello.c: Likewise.
30903         * tests/test-getdate.c: Likewise.
30904         * tests/test-getgroups.c: Likewise.
30905         * tests/test-gethostname.c: Likewise.
30906         * tests/test-quotearg.c: Likewise.
30907         * tests/test-version-etc.c: Likewise.
30908         * tests/test-xalloc-die.c: Likewise.
30909         * tests/test-xfprintf-posix.c: Likewise.
30910         * tests/test-xprintf-posix.c: Likewise.
30911         * tests/test-xvasprintf.c: Likewise.
30912
30913         tests: avoid compiler warnings
30914         * tests/test-fcntl.c (main): Delete unused parameters.
30915         * tests/test-freopen-safer.c (main): Likewise.
30916         * tests/test-xalloc-die.c (main): Mark unused parameters.
30917         * tests/test-fseeko.c (main): Likewise.
30918         * tests/test-ftello.c (main): Likewise.
30919         * tests/test-nanosleep.c (main): Avoid declaration warning.
30920         * tests/test-sleep.c (main): Likewise.
30921         * tests/test-unsetenv.c (main): Silence warning about string
30922         literal.
30923         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30924
30925 2009-12-23  Bruno Haible  <bruno@clisp.org>
30926
30927         * tests/test-localename.c (test_locale_name): New function, extracted
30928         from main. Also test mixed situations.
30929         (test_locale_name_posix, test_locale_name_environ,
30930         test_locale_name_default): New functions.
30931         (main): Invoke them all.
30932         * modules/localename-tests (configure.ac): Test for newlocale.
30933
30934 2009-12-23  Bruno Haible  <bruno@clisp.org>
30935
30936         unistd: Ensure getcwd gets declared before being overridden.
30937         * lib/unistd.in.h: Conditionally include <io.h>.
30938
30939 2009-12-22  Bruno Haible  <bruno@clisp.org>
30940
30941         wchar: Diagnose broken combination of glibc and gcc versions and flags.
30942         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
30943         (gl_WCHAR_H): Invoke it.
30944         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
30945         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
30946         Reported by Karl Berry <karl@freefriends.org>.
30947
30948 2009-12-22  Eric Blake  <ebb9@byu.net>
30949
30950         math, unistd: avoid redundant includes
30951         * lib/math.in.h (isnan): No need to re-include <math.h>.
30952         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
30953
30954         getsubopt: work around cygwin bug
30955         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
30956         avoid conflicting with system getsubopt.
30957         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
30958         bug.
30959
30960         getopt: synchronize from glibc
30961         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
30962         parameter order.  Adjust all callers.
30963         (_getopt_internal_r, main): Adjust quoting in error messages.
30964         Drop considerations for outdated POSIX 1003.2 error message.
30965         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
30966         callers.
30967         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
30968
30969         test-getopt: test stderr behavior
30970         * modules/getopt-posix-tests (Depends-on): Add dup2.
30971         * tests/test-getopt.c (ASSERT): Avoid stderr.
30972         (main): Move stderr to a temporary file.
30973         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
30974         Instead, add parameter to inform caller if output occurred.
30975         (test_getopt): Adjust all existing tests to expect silence, and
30976         add new tests of leading ":".
30977         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30978         glibc shortcomings with leading "-:" or "+:" in optstring.
30979         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30980         Likewise.
30981         * doc/posix-functions/getopt.texi (getopt): Likewise.
30982
30983         test-getopt: enhance test
30984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
30985         supports optind=0.
30986         * tests/test-getopt.c (OPTIND_MIN): Move...
30987         * tests/test-getopt.h (OPTIND_MIN): ...here.
30988         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
30989         Require that optind=0 works, since modern BSD supports it in
30990         addition to optreset, and since coreutils expects it.
30991         (test_getopt_long_only): New test.
30992         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
30993         glibc shortcomings with 'W;', and enforcement of optind=0.
30994         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30995         Likewise.
30996
30997 2009-12-21  Bruno Haible  <bruno@clisp.org>
30998
30999         localename: Improvements for MacOS X and Cygwin.
31000         * lib/localename.h (gl_locale_name_environ): New declaration.
31001         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31002         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31003         (gl_locale_name_posix): Invoke it.
31004         (gl_locale_name_default): Add comments. Use Windows native API also on
31005         Cygwin.
31006
31007 2009-12-21  Bruno Haible  <bruno@clisp.org>
31008
31009         Update list of Win32 locale ids.
31010         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31011         (LANG_SAMI): Renamed from LANG_SAAMI.
31012         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31013         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31014         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31015         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31016         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31017         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31018         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31019         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31020         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31021         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31022         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31023         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31024         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31025         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31026         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31027         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31028         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31029         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31030         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31031         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31032         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31033         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31034         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31035         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31036         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31037         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31038         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31039         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31040         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31041         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31042         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31043         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31044         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31045         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31046         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31047         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31048         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31049         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31050         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31051         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31052         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31053         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31054         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31055         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31056         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31057         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31058         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31059         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31060         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31061         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31062         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31063         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31064         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31065         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31066         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31067         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31068         Add more languages and countries for Sami, Sorbian. Add more countries
31069         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31070         for Pashto. Change country for Syriac, Tswana.
31071
31072 2009-12-21  Eric Blake  <ebb9@byu.net>
31073
31074         test-utimens: avoid spurious failure
31075         * tests/test-chown.h (nap): Factor...
31076         * tests/nap.h: ...into new file.
31077         * tests/test-lchown.h (nap): Avoid duplication.
31078         * tests/test-utimens-common.h (nap): Use shared implementation,
31079         necessary on file systems with 1-second resolution.
31080         * modules/chown-tests (Files): Include new file.
31081         * modules/fdutimensat-tests (Files): Likewise.
31082         * modules/futimens-tests (Files): Likewise.
31083         * modules/lchown-tests (Files): Likewise.
31084         * modules/openat-tests (Files): Likewise.
31085         * modules/utimens-tests (Files): Likewise.
31086         * modules/utimensat-tests (Files): Likewise.
31087
31088 2009-12-19  Eric Blake  <ebb9@byu.net>
31089
31090         futimens, utimensat: work around Linux bug
31091         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31092         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31093         * lib/utimensat.c (rpl_utimensat): Work around it.
31094         * lib/futimens.c (rpl_futimens): Adjust comment.
31095
31096         utimens: work around Linux ctime bug
31097         * lib/utimens.c (detect_ctime_bug): New helper function.
31098         (update_timespec): Differentiate between workaround needed for
31099         this bug vs. what is needed for systems that lack utimensat.
31100         (fdutimens, lutimens): Work around bug.
31101
31102         utimens: check for ctime update
31103         * tests/test-utimens-common.h (check_ctime): Define.
31104         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31105         * tests/test-futimens.h (test_futimens): Likewise.
31106         * tests/test-lutimens.h (test_lutimens): Likewise.
31107         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31108         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31109
31110 2009-12-19  Bruno Haible  <bruno@clisp.org>
31111
31112         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31113         * tests/test-dprintf-posix2.sh: New file.
31114         * tests/test-dprintf-posix2.c: New file.
31115         * modules/dprintf-posix-tests (Files): Add them.
31116         (configure.ac): Check for getrlimit and setrlimit.
31117         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31118
31119 2009-12-19  Bruno Haible  <bruno@clisp.org>
31120
31121         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31122         * tests/test-fprintf-posix3.sh: New file.
31123         * tests/test-fprintf-posix3.c: New file.
31124         * modules/fprintf-posix-tests (Files): Add them.
31125         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31126
31127 2009-12-19  Eric Blake  <ebb9@byu.net>
31128
31129         dirfd: fix prototype
31130         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31131         * lib/dirfd.c (dirfd): Likewise.
31132
31133         canonicalize: reduce memory usage
31134         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31135         allocation to size.
31136         Reported by Solar Designer <solar@openwall.com>.
31137
31138 2009-12-19  Bruno Haible  <bruno@clisp.org>
31139
31140         New module attribute 'Applicability'.
31141         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31142         * gnulib-tool: New option --extract-applicability.
31143         (func_usage): Document it.
31144         (sed_extract_prog): Recognize it.
31145         (func_get_applicability): New function.
31146         (func_import): Generalize handling of 'link-warning' module.
31147         * modules/link-warning (Applicability): New section.
31148         * modules/arg-nonnull (Applicability): New section.
31149         Repoted by Simon Josefsson <simon@josefsson.org>.
31150
31151 2009-12-19  Bruno Haible  <bruno@clisp.org>
31152
31153         fflush: tweak
31154         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31155         * lib/fseeko.c (rpl_fseeko): Likewise.
31156
31157 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31158
31159         * lib/gl_list.h: Fix typo in comment.
31160
31161 2009-12-16  Eric Blake  <ebb9@byu.net>
31162
31163         fcntl: use to simplify other modules
31164         * modules/cloexec (Depends-on): Add fcntl.
31165         * modules/fchdir (Depends-on): Likewise.
31166         * modules/fd-safer-flag (Depends-on): Likewise.
31167         * modules/unistd-safer (Depends-on): Likewise.
31168         * modules/dup3 (configure.ac): Set module indicator.
31169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31170         missing.
31171         * lib/fchdir.c (_gl_register_dup): Fix comment.
31172         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31173         * lib/dup-safer.c (dup_safer): Likewise.
31174         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31175         * lib/dup3.c (dup3): Likewise.
31176         * tests/test-fchdir.c (main): Enhance test.
31177         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31178
31179         fcntl: port portions of fcntl to mingw
31180         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31181         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31182         replacement for mingw.
31183         * modules/fcntl (Description): Update.
31184         (Depends-on): Add dup2.
31185         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31186         * modules/fcntl-h (Makefile.am): Substitute it.
31187         * lib/fcntl.in.h (fcntl): Update declaration.
31188         (F_DUPFD, F_GETFD): New macros, when needed.
31189         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31190         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31191         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31192         we now guarantee.
31193
31194         fcntl: work around cygwin bug in F_DUPFD
31195         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31196         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31197         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31198         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31199         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31200
31201         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31202         * modules/fcntl (Files): List new files.
31203         (configure.ac): Run a test.
31204         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31205         * lib/fcntl.c (rpl_fcntl): Likewise.
31206         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31207         (gl_FCNTL_H): Always replace fcntl.h.
31208         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31209         * lib/fcntl.in.h (fcntl): Declare replacement.
31210         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31211         needed, plus a witness.
31212         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31213         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31214         * tests/test-fcntl.c: New file.
31215         * modules/fcntl-tests: Likewise.
31216
31217         binary-io: avoid potential compilation warning
31218         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31219         directives.
31220
31221         fflush: avoid compilation error on NetBSD
31222         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31223         between off_t and fpos_t, since the latter is sometimes a struct.
31224         * lib/fseeko.c (rpl_fseeko): Likewise.
31225         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31226
31227 2009-12-15  Eric Blake  <ebb9@byu.net>
31228
31229         fcntl-h, stdio, sys_ioctl: fix declarations
31230         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31231         function must not take arguments.
31232         * lib/sys_ioctl.in.h (ioctl): Likewise.
31233         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31234         (open): Add a link warning.
31235
31236 2009-12-15  Jim Meyering  <meyering@redhat.com>
31237
31238         areadlink, areadlink-with-size: relax license to LGPLv2+
31239         * modules/areadlink (License): Relax to LGPLv2+.
31240         * modules/areadlink-with-size (License): Likewise.
31241
31242 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31243             Bruno Haible  <bruno@clisp.org>
31244
31245         *printf: Fix memory leak.
31246         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31247         * lib/vfprintf.c (vfprintf): Likewise.
31248         * lib/dprintf.c (dprintf): Likewise.
31249         * lib/vdprintf.c (vdprintf): Likewise.
31250
31251 2009-12-14  Eric Blake  <ebb9@byu.net>
31252
31253         accept4: adjust module dependencies
31254         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31255
31256         utimens: one more try at avoiding compiler warning
31257         * lib/utimens.c (lutimens): Lower scope of result.
31258
31259 2009-12-13  Bruno Haible  <bruno@clisp.org>
31260
31261         Move the malloc checking from module 'list' to new module 'xlist'.
31262         * modules/xlist: New file.
31263         * lib/gl_xlist.h: New file.
31264         * lib/gl_xlist.c: New file.
31265         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31266         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31267         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31268         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31269         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31270         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31271         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31272         gl_sortedlist_nx_add): New declarations.
31273         (struct gl_list_implementation): Rename and change methods accordingly.
31274         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31275         (gl_list_nx_create): Renamed from gl_list_create.
31276         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31277         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31278         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31279         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31280         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31281         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31282         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31283         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31284         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31285         gl_list_create_empty.
31286         (gl_list_nx_create): Renamed from gl_list_create.
31287         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31288         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31289         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31290         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31291         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31292         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31293         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31294         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31295         * lib/gl_array_list.c: Don't include xalloc.h.
31296         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31297         NULL upon out-of-memory.
31298         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31299         out-of-memory.
31300         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31301         Change return type to 'int'.
31302         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31303         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31304         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31305         upon out-of-memory.
31306         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31307         upon out-of-memory.
31308         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31309         upon out-of-memory.
31310         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31311         upon out-of-memory.
31312         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31313         out-of-memory.
31314         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31315         Update.
31316         (gl_array_list_implementation): Update.
31317         * lib/gl_carray_list.c: Don't include xalloc.h.
31318         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31319         Return NULL upon out-of-memory.
31320         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31321         out-of-memory.
31322         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31323         Change return type to 'int'.
31324         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31325         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31326         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31327         upon out-of-memory.
31328         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31329         upon out-of-memory.
31330         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31331         out-of-memory.
31332         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31333         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31334         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31335         Update.
31336         (gl_carray_list_implementation): Update.
31337         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31338         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31339         gl_linked_create_empty. Return NULL upon out-of-memory.
31340         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31341         out-of-memory.
31342         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31343         Change return type to 'int'. Return -1 upon out-of-memory.
31344         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31345         out-of-memory.
31346         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31347         upon out-of-memory.
31348         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31349         upon out-of-memory.
31350         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31351         NULL upon out-of-memory.
31352         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31353         upon out-of-memory.
31354         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31355         out-of-memory.
31356         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31357         Update.
31358         * lib/gl_linked_list.c: Don't include xalloc.h.
31359         (gl_linked_list_implementation): Update.
31360         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31361         (add_to_bucket): Change return type to 'int'.
31362         (gl_linkedhash_list_implementation): Update.
31363         * lib/gl_anytree_list1.h (free_subtree): New function.
31364         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31365         gl_tree_create_empty. Return NULL upon out-of-memory.
31366         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31367         Change return type to 'int'. Return -1 upon out-of-memory.
31368         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31369         out-of-memory.
31370         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31371         (gl_tree_remove_node): New function, moved here from
31372         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31373         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31374         Update.
31375         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31376         malloc, not xmalloc. Return NULL upon out-of-memory.
31377         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31378         out-of-memory.
31379         (gl_tree_remove_node_from_tree): New function, extracted from
31380         gl_tree_remove_node.
31381         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31382         upon out-of-memory.
31383         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31384         out-of-memory.
31385         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31386         upon out-of-memory.
31387         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31388         upon out-of-memory.
31389         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31390         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31391         not xmalloc. Return NULL upon out-of-memory.
31392         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31393         out-of-memory.
31394         (gl_tree_remove_node_from_tree): New function, extracted from
31395         gl_tree_remove_node.
31396         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31397         upon out-of-memory.
31398         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31399         out-of-memory.
31400         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31401         upon out-of-memory.
31402         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31403         upon out-of-memory.
31404         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31405         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31406         gl_anytree_list1.h before gl_anyavltree_list2.h.
31407         (gl_avltree_list_implementation): Update.
31408         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31409         gl_anytree_list1.h before gl_anyavltree_list2.h.
31410         (gl_rbtree_list_implementation): Update.
31411         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31412         Change return type to 'int'. Return -1 upon out-of-memory. Use
31413         __builtin_expect.
31414         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31415         (gl_avltreehash_list_implementation): Update.
31416         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31417         (gl_rbtreehash_list_implementation): Update.
31418         * modules/array-list (Depends-on): Remove xalloc.
31419         * modules/carray-list (Depends-on): Likewise.
31420         * modules/linked-list (Depends-on): Likewise.
31421         * modules/linkedhash-list (Depends-on): Likewise.
31422         * modules/avltree-list (Depends-on): Likewise.
31423         * modules/rbtree-list (Depends-on): Likewise.
31424         * modules/avltreehash-list (Depends-on): Likewise.
31425         * modules/rbtreehash-list (Depends-on): Likewise.
31426
31427         * modules/xsublist: New file.
31428         * lib/gl_xsublist.h: New file.
31429         * lib/gl_xsublist.c: New file.
31430         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31431         (gl_sublist_nx_create): New declaration.
31432         * lib/gl_sublist.c: Don't include xalloc.h.
31433         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31434         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31435         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31436         Change return type to 'int'. Return -1 upon out-of-memory.
31437         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31438         upon out-of-memory.
31439         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31440         NULL upon out-of-memory.
31441         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31442         upon out-of-memory.
31443         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31444         NULL upon out-of-memory.
31445         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31446         NULL upon out-of-memory.
31447         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
31448         upon out-of-memory.
31449         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
31450         (gl_sublist_list_implementation): Update.
31451         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
31452         upon out-of-memory.
31453         * modules/sublist (Depends-on): Remove xalloc.
31454
31455         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
31456         * tests/test-carray_list.c: Likewise.
31457         * tests/test-linked_list.c: Likewise.
31458         * tests/test-linkedhash_list.c: Likewise.
31459         * tests/test-avltree_list.c: Likewise.
31460         * tests/test-rbtree_list.c: Likewise.
31461         * tests/test-avltreehash_list.c: Likewise.
31462         * tests/test-rbtreehash_list.c: Likewise.
31463         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
31464         * modules/carray-list-tests (Makefile.am): Likewise.
31465         * modules/linked-list-tests (Makefile.am): Likewise.
31466         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31467         * modules/avltree-list-tests (Makefile.am): Likewise.
31468         * modules/rbtree-list-tests (Makefile.am): Likewise.
31469         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31470         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31471
31472         * NEWS: Mention the changes.
31473
31474         * lib/clean-temp.c: Include gl_xlist.h.
31475         * modules/clean-temp (Depends-on): Add xlist.
31476
31477         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
31478         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
31479
31480         * tests/test-array_oset.c: Include gl_xlist.h.
31481         * modules/array-oset-tests (Depends-on): Add xlist.
31482
31483         Reported by José E. Marchesi <jemarch@gnu.org>.
31484
31485 2009-12-13  Bruno Haible  <bruno@clisp.org>
31486
31487         Move the malloc checking from module 'oset' to new module 'xoset'.
31488         * modules/xoset: New file.
31489         * lib/gl_xoset.h: New file.
31490         * lib/gl_xoset.c: New file.
31491         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
31492         declarations.
31493         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
31494         (struct gl_oset_implementation): Rename and change methods accordingly.
31495         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
31496         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31497         'int'. Mark as __warn_unused_result__.
31498         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
31499         gl_oset_create_empty.
31500         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
31501         'int'.
31502         * lib/gl_array_oset.c: Don't include xalloc.h.
31503         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
31504         malloc, not xmalloc.
31505         (grow): Change return type to 'int'. Don't call xalloc_die.
31506         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
31507         to 'int'.
31508         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
31509         'int'.
31510         (gl_array_oset_implementation): Update.
31511         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
31512         gl_tree_create_empty.
31513         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
31514         'int'.
31515         * lib/gl_avltree_oset.c: Don't include xalloc.h.
31516         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
31517         xmalloc.
31518         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
31519         not xmalloc.
31520         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
31521         xmalloc.
31522         (gl_avltree_oset_implementation): Update.
31523         * lib/gl_rbtree_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_rbtree_oset_implementation): Update.
31531         * modules/array-oset (Depends-on): Remove xalloc.
31532         * modules/avltree-oset (Depends-on): Likewise.
31533         * modules/rbtree-oset (Depends-on): Likewise.
31534         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
31535         * tests/test-avltree_oset.c: Likewise.
31536         * tests/test-rbtree_oset.c: Likewise.
31537         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31538         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
31539         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31540         * NEWS: Mention the change.
31541
31542 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
31543
31544         maint.mk: allow a project to override release-prep commands
31545         * top/maint.mk (alpha, beta, stable): Move release-preparatory
31546         commands into a new rule.
31547         (release-prep): New rule.
31548         (release-prep-hook): New overridable variable.
31549
31550 2009-12-13  Bruno Haible  <bruno@clisp.org>
31551
31552         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
31553
31554 2009-12-13  Jim Meyering  <meyering@redhat.com>
31555
31556         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
31557         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
31558
31559 2009-12-12  Bruno Haible  <bruno@clisp.org>
31560
31561         duplocale: Tweak.
31562         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
31563
31564 2009-12-12  Karl Berry  <karl@gnu.org>
31565
31566         * config/srclist.txt (strtoll.c): tab changes, no more sync.
31567
31568 2009-12-12  Bruno Haible  <bruno@clisp.org>
31569
31570         * m4/po.m4: Undo incorrect untabification.
31571
31572 2009-12-12  Bruno Haible  <bruno@clisp.org>
31573
31574         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
31575         * modules/c-strtod (Depends-on): Add locale.
31576         * modules/c-strtold (Depends-on): Likewise.
31577
31578 2009-12-12  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
31581
31582 2009-12-11  Eric Blake  <ebb9@byu.net>
31583
31584         setenv: relax requirement in light of POSIX ruling
31585         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
31586         not NULL.
31587         * tests/test-setenv.c (main): Relax test.
31588         * tests/test-unsetenv.c (main): Likewise.
31589         * doc/posix-functions/setenv.texi (setenv): Document this.
31590         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31591
31592 2009-12-11  Bruno Haible  <bruno@clisp.org>
31593
31594         New module 'fd-safer-flag'.
31595         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
31596         * lib/dup-safer.c (dup_safer_flag): Remove function.
31597         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
31598         * lib/fd-safer.c (fd_safer_flag): Remove function.
31599         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
31600         * modules/cloexec (configure.ac): Drop indicator macro.
31601         * modules/fd-safer-flag: New file.
31602         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
31603         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
31604         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
31605
31606 2009-12-11  Bruno Haible  <bruno@clisp.org>
31607
31608         Tests for module 'nl_langinfo'.
31609         * modules/nl_langinfo-tests: New file.
31610         * tests/test-nl_langinfo.sh: New file.
31611         * tests/test-nl_langinfo.c: New file.
31612
31613         New module 'nl_langinfo'.
31614         * lib/nl_langinfo.c: New file.
31615         * m4/nl_langinfo.m4: New file.
31616         * modules/nl_langinfo: New file.
31617         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
31618
31619 2009-12-11  Bruno Haible  <bruno@clisp.org>
31620
31621         Tests for module 'langinfo'.
31622         * modules/langinfo-tests: New file.
31623         * tests/test-langinfo.c: New file.
31624
31625         New module 'langinfo'.
31626         * lib/langinfo.in.h: New file.
31627         * m4/langinfo_h.m4: New file.
31628         * modules/langinfo: New file.
31629         * doc/posix-headers/langinfo.texi: Mention the new module.
31630
31631 2009-12-11  Bruno Haible  <bruno@clisp.org>
31632
31633         * lib/config.charset: Untabify.
31634
31635 2009-12-11  Bruno Haible  <bruno@clisp.org>
31636
31637         * modules/unistd-safer (configure.ac): Drop indicator macro.
31638
31639 2009-12-11  Bruno Haible  <bruno@clisp.org>
31640
31641         Move pipe2-safer code to its own file.
31642         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
31643         * lib/pipe-safer.c (pipe2_safer): Remove function.
31644         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
31645         (Makefile.am): Add it to lib_SOURCES.
31646
31647 2009-12-10  Bruno Haible  <bruno@clisp.org>
31648
31649         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
31650
31651 2009-12-10  Bruno Haible  <bruno@clisp.org>
31652
31653         Declare which arguments expect non-NULL values, for GCC and clang.
31654         * build-aux/arg-nonnull.h: New file.
31655         * modules/arg-nonnull: New file.
31656         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
31657         (inet_ntop, inet_pton): Use it.
31658         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
31659         (closedir, dirfd, opendir, scandir, alphasort): Use it.
31660         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
31661         (open, openat): Use it.
31662         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
31663         (fnmatch): Use it.
31664         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
31665         (getopt, getopt_long, getopt_long_only): Use it.
31666         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
31667         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
31668         Use it.
31669         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
31670         (iconv_open): Use it.
31671         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
31672         (strtoimax, strtoumax): Use it.
31673         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
31674         (duplocale): Use it.
31675         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
31676         (frexp, frexpl): Use it.
31677         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
31678         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
31679         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
31680         (tsearch, tfind, tdelete, twalk): Use it.
31681         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
31682         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31683         sigpending): Use it.
31684         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
31685         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31686         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31687         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31688         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31689         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31690         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31691         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31692         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31693         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31694         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31695         Use it.
31696         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
31697         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
31698         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
31699         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
31700         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
31701         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
31702         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
31703         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
31704         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
31705         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
31706         strtoull, unsetenv): Use it.
31707         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
31708         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31709         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31710         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
31711         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
31712         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
31713         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
31714         (strcasecmp, strncasecmp): Use it.
31715         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
31716         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
31717         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
31718         rpl_setsockopt): Use it.
31719         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
31720         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
31721         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
31722         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
31723         (gettimeofday): Use it.
31724         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
31725         (times): Use it.
31726         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
31727         (uname): Use it.
31728         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
31729         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
31730         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
31731         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
31732         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
31733         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
31734         unlinkat, write): Use it.
31735         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
31736         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
31737         * lib/argv-iter.h: Include arg-nonnull.h.
31738         (_ATTRIBUTE_NONNULL_): Remove macro.
31739         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
31740         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
31741         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
31742         optimization.
31743         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
31744         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
31745         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
31746         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
31747         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
31748         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
31749         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
31750         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
31751         * modules/arpa_inet (Depends-on): Add arg-nonnull.
31752         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
31753         * modules/dirent (Depends-on): Add arg-nonnull.
31754         (Makefile.am): Insert arg-nonnull.h into dirent.h.
31755         * modules/fcntl-h (Depends-on): Add arg-nonnull.
31756         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
31757         * modules/fnmatch (Depends-on): Add arg-nonnull.
31758         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
31759         * modules/getopt-posix (Depends-on): Add arg-nonnull.
31760         (Makefile.am): Insert arg-nonnull.h into getopt.h.
31761         * modules/glob (Depends-on): Add arg-nonnull.
31762         (Makefile.am): Insert arg-nonnull.h into glob.h.
31763         * modules/iconv_open (Depends-on): Add arg-nonnull.
31764         (Makefile.am): Insert arg-nonnull.h into iconv.h.
31765         * modules/inttypes (Depends-on): Add arg-nonnull.
31766         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
31767         * modules/locale (Depends-on): Add arg-nonnull.
31768         (Makefile.am): Insert arg-nonnull.h into locale.h.
31769         * modules/math (Depends-on): Add arg-nonnull.
31770         (Makefile.am): Insert arg-nonnull.h into math.h.
31771         * modules/netdb (Depends-on): Add arg-nonnull.
31772         (Makefile.am): Insert arg-nonnull.h into netdb.h.
31773         * modules/search (Depends-on): Add arg-nonnull.
31774         (Makefile.am): Insert arg-nonnull.h into search.h.
31775         * modules/signal (Depends-on): Add arg-nonnull.
31776         (Makefile.am): Insert arg-nonnull.h into signal.h.
31777         * modules/spawn (Depends-on): Add arg-nonnull.
31778         (Makefile.am): Insert arg-nonnull.h into spawn.h.
31779         * modules/stdio (Depends-on): Add arg-nonnull.
31780         (Makefile.am): Insert arg-nonnull.h into stdio.h.
31781         * modules/stdlib (Depends-on): Add arg-nonnull.
31782         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
31783         * modules/string (Depends-on): Add arg-nonnull.
31784         (Makefile.am): Insert arg-nonnull.h into string.h.
31785         * modules/strings (Depends-on): Add arg-nonnull.
31786         (Makefile.am): Insert arg-nonnull.h into strings.h.
31787         * modules/sys_socket (Depends-on): Add arg-nonnull.
31788         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
31789         * modules/sys_stat (Depends-on): Add arg-nonnull.
31790         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
31791         * modules/sys_time (Depends-on): Add arg-nonnull.
31792         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
31793         * modules/sys_times (Depends-on): Add arg-nonnull.
31794         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
31795         * modules/sys_utsname (Depends-on): Add arg-nonnull.
31796         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
31797         * modules/time (Depends-on): Add arg-nonnull.
31798         (Makefile.am): Insert arg-nonnull.h into time.h.
31799         * modules/unistd (Depends-on): Add arg-nonnull.
31800         (Makefile.am): Insert arg-nonnull.h into unistd.h.
31801         * modules/wchar (Depends-on): Add arg-nonnull.
31802         (Makefile.am): Insert arg-nonnull.h into wchar.h.
31803         * modules/argv-iter (Depends-on): Add arg-nonnull.
31804         * tests/test-canonicalize.c (null_ptr): New function.
31805         (main): Use it.
31806         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
31807         (main): Use it.
31808         * tests/test-memmem.c (null_ptr): New function.
31809         (main): Use it.
31810         Reported by Jim Meyering.
31811
31812 2009-12-10  Bruno Haible  <bruno@clisp.org>
31813
31814         Use spaces for indentation, not tabs.
31815         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31816         * m4/*.m4: Untabify.
31817         * build-aux/*.h: Untabify.
31818         * tests/**/*.[hc]: Untabify.
31819         * README: New section "Indent with spaces, not TABs", based on
31820         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
31821         * NEWS: Mention the change.
31822
31823 2009-12-10  Bruno Haible  <bruno@clisp.org>
31824
31825         pty test: Fix link error.
31826         * modules/pty-tests (Makefile.am): Add the default LDADD value to
31827         test_pty_LDADD.
31828
31829 2009-12-07  Simon Josefsson  <simon@josefsson.org>
31830
31831         * modules/pty: New file.
31832         * modules/pty-tests: New file.
31833         * m4/pty.m4: New file.
31834         * tests/test-pty.c: New file.
31835         * doc/glibc-headers/pty.texi: Modified.
31836         * doc/glibc-functions/forkpty.texi: Modified.
31837         * doc/glibc-functions/openpty.texi: Modified.
31838
31839 2009-12-10  Bruno Haible  <bruno@clisp.org>
31840
31841         Avoid syntax error in C++ mode.
31842         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
31843
31844 2009-12-10  Bruno Haible  <bruno@clisp.org>
31845
31846         Use sed with option -e.
31847         * gnulib-tool (func_version, func_emit_copyright_notice,
31848         func_emit_initmacro_end, func_import, func_create_testdir): Pass
31849         option -e to sed.
31850         * modules/link-warning (Makefile.am): Likewise.
31851
31852 2009-12-10  Jim Meyering  <meyering@redhat.com>
31853
31854         mgetgroups: do not write bytes beyond end of malloc'd buffer
31855         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
31856         username, we call getgroups with a one-element-shorter buffer,
31857         but still told it the length was original, max_n_groups.
31858
31859 2009-12-09  Eric Blake  <ebb9@byu.net>
31860
31861         cloexec: relax license
31862         * modules/cloexec (Maintainer): Add myself.
31863         (License): Use LGPL, not GPL.
31864
31865         link-warning: optimize generation
31866         * modules/link-warning (Makefile.am): Reduce process usage.
31867
31868 2009-12-09  Bruno Haible  <bruno@clisp.org>
31869
31870         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
31871         workaround was added on 2009-11-17.
31872
31873 2009-12-09  Jim Meyering  <meyering@redhat.com>
31874             Bruno Haible  <bruno@clisp.org>
31875
31876         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
31877         * modules/link-warning (Makefile.am): Make the comment-removing sed
31878         command more robust in the face of bootstrap-prepended comment lines.
31879
31880 2009-12-09  Bruno Haible  <bruno@clisp.org>
31881
31882         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
31883         most one group.
31884
31885 2009-12-09  Simon Josefsson <simon@josefsson.org>
31886             Bruno Haible  <bruno@clisp.org>
31887
31888         * build-aux/link-warning.h: Add copyright notice.
31889         * modules/link-warning (Makefile.am): Generate link-warning.h from
31890         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
31891         * NEWS: Mention change in link-warning module.
31892         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
31893         * modules/dirent (Makefile.am): Add dependency to dirent.h.
31894         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
31895         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
31896         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
31897         * modules/math (Makefile.am): Add dependency to math.h.
31898         * modules/search (Makefile.am): Add dependency to search.h.
31899         * modules/signal (Makefile.am): Add dependency to signal.h.
31900         * modules/spawn (Makefile.am): Add dependency to spawn.h.
31901         * modules/stdio (Makefile.am): Add dependency to stdio.h.
31902         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
31903         * modules/string (Makefile.am): Add dependency to string.h.
31904         * modules/strings (Makefile.am): Add dependency to strings.h.
31905         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
31906         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
31907         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
31908         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
31909         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
31910         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
31911         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
31912         * modules/unistd (Makefile.am): Add dependency to unistd.h.
31913         * modules/wchar (Makefile.am): Add dependency to wchar.h.
31914
31915 2009-12-09  Bruno Haible  <bruno@clisp.org>
31916
31917         fchdir: Optimize away rpl_fstat when possible.
31918         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
31919         REPLACE_OPEN_DIRECTORY.
31920         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
31921
31922 2009-12-09  Bruno Haible  <bruno@clisp.org>
31923
31924         * lib/fchdir.c: Update comment.
31925
31926 2009-12-09  Bruno Haible  <bruno@clisp.org>
31927
31928         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
31929
31930 2009-12-08  Eric Blake  <ebb9@byu.net>
31931
31932         fchdir: avoid memory leak on re-registration.
31933         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
31934
31935 2009-12-08  Jim Meyering  <meyering@redhat.com>
31936
31937         init.sh: avoid Solaris 10 /bin/sh portability problem
31938         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
31939         sourced script:
31940           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
31941           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
31942           bar
31943         tests/init.sh relied on that, accepting a --set-path=DIR argument,
31944         and two tests used that idiom.
31945         * tests/init.sh: Update suggested usage comments.
31946         (path_prepend_): New function, to be used in place
31947         of the --src-path=DIR option.
31948         (setup_): Move PATH-prepending code into path_prepend_.
31949         * tests/test-pread.sh: Adapt to new usage.
31950         * tests/test-xalloc-die.sh: Likewise.
31951
31952 2009-12-08  Simon Josefsson  <simon@josefsson.org>
31953
31954         * doc/gnulib.texi (Glibc pty.h): Add.
31955         * doc/glibc-functions/forkpty.texi: Add.
31956         * doc/glibc-functions/openpty.texi: Add.
31957         Suggested by Bruno Haible.
31958
31959 2009-12-08  Eric Blake  <ebb9@byu.net>
31960
31961         fchdir: fix logic bugs
31962         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
31963         * tests/test-fchdir.c (main): Enhance test.
31964         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
31965         is in use.
31966
31967         dup2: fix logic bugs
31968         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
31969         REPLACE_DUP2 to decide when rpl_dup2 is needed.
31970         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
31971         exists.
31972         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
31973
31974 2009-12-07  Eric Blake  <ebb9@byu.net>
31975
31976         unlink: fix m4 detection
31977         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
31978
31979         unistd-safer: add unit test
31980         * modules/unistd-safer-tests: New file.
31981         * tests/test-dup-safer.c: Likewise.
31982         * tests/test-cloexec.c (setmode): Avoid compiler warning.
31983         * tests/test-dup2.c (setmode): Likewise.
31984         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
31985
31986         cloexec: preserve text vs. binary across dup_cloexec
31987         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
31988         mode.
31989         * modules/dup2-tests (Depends-on): Add binary-io.
31990         * modules/cloexec-tests (Depends-on): Likewise.
31991         * tests/test-dup2.c (setmode, is_mode): New helpers.
31992         (main): Add tests that translation mode is preserved.
31993         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
31994         Reported by Bruno Haible.
31995
31996         mgetgroups: reduce duplicate listings
31997         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
31998         resulting array.
31999         * tests/test-chown.h (test_chown): Simplify client.
32000         * tests/test-lchown.h (test_lchown): Likewise.
32001
32002 2009-12-06  Bruno Haible  <bruno@clisp.org>
32003
32004         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32005         value.
32006
32007 2009-12-06  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/progname.c: Include stdio.h, stdlib.h.
32010         (set_program_name): Reject a NULL argument.
32011
32012 2009-12-05  Eric Blake  <ebb9@byu.net>
32013
32014         pipe2-safer: new module
32015         * modules/pipe2-safer: New file.
32016         * lib/unistd-safer.h (pipe2_safer): New prototype.
32017         * lib/unistd--.h (pipe2): New wrapper.
32018         * lib/pipe-safer.c (pipe2_safer): New function.
32019         * modules/pipe (Depends-on): Add pipe2-safer.
32020         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32021
32022         stdlib-safer: preserve cloexec flag for mkostemp[s]
32023         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32024         fd_safer_flag.
32025
32026         unistd-safer: allow preservation of cloexec status via flag
32027         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32028         prototypes.
32029         * lib/dup-safer.c (dup_safer_flag): New function.
32030         * lib/fd-safer.c (fd_safer_flag): Likewise.
32031         * modules/cloexec (configure.ac): Set witness.
32032
32033         test-dup2: enhance test
32034         * modules/dup2-tests (Depends-on): Add cloexec.
32035         * tests/test-dup2.c (main): Enhance test.
32036
32037         cloexec: add dup_cloexec
32038         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32039         header and comments.
32040         * lib/cloexec.c (set_cloexec_flag): Add comments.
32041         (dup_cloexec): New function, with mingw implementation borrowed
32042         from...
32043         * lib/w32spawn.h (dup_noinherit): ...here.
32044         * modules/execute (Depends-on): Add cloexec.
32045         * modules/pipe (Depends-on): Likewise.
32046         * modules/cloexec (Depends-on): Add dup2.
32047         * modules/cloexec-tests (Files): New file.
32048         * tests/test-cloexec.c: Likewise.
32049
32050         test-xalloc-die: fix test for mingw
32051         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32052         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32053         directory and .exe suffix off argv[0] output.
32054
32055         test-fseeko: fix test for mingw
32056         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32057         than undefining fseek, so test will pass on mingw.
32058
32059 2009-12-05  Bruno Haible  <bruno@clisp.org>
32060
32061         * lib/progname.h (set_program_name): Clarify specification.
32062         * lib/progname.c (set_program_name): Likewise.
32063         Reported by Jim Meyering.
32064
32065 2009-12-05  Jim Meyering  <meyering@redhat.com>
32066
32067         maint.mk: backslash-escape parens in default regexp
32068         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32069         backslash-escape the literal parentheses.
32070
32071         maint.mk: news-date-check: use grep -E
32072         * top/maint.mk (today): Define a Make variable, not a...
32073         (news-date-check): ...shell variable.
32074         (news-date-regexp): Use the Make variable.
32075         Use grep's -E option.  Change the failing diagnostic to mention
32076         the variable, $(news-date-regexp).
32077
32078 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32079
32080         maintainer-makefile: allow customization of NEWS entry format
32081         * top/maint.mk (news-date-regexp): New overridable variable.
32082         (news-date-check): Use it.
32083
32084 2009-12-04  Eric Blake  <ebb9@byu.net>
32085
32086         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32087         * lib/mgetgroups.h (xgetgroups): New prototype.
32088         * lib/mgetgroups.c (xgetgroups): New wrapper.
32089         (mgetgroups): Handle ENOSYS.
32090         * modules/mgetgroups (Depends-on): Add realloc.
32091         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32092
32093         mgetgroups: avoid argument promotion issues with -1
32094         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32095         for invalid gid_t.
32096         * tests/test-chown.h (getegid, test_chown): Likewise.
32097         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32098
32099 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32100
32101         exclude: Fix header file problems.
32102         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32103
32104 2009-12-01  Jim Meyering  <meyering@redhat.com>
32105
32106         fts: fts_open: do not let an empty string cause immediate failure
32107         This is required in support of GNU rm, for which the command
32108         "rm A '' B" must process and remove both A and B, in spite of
32109         the empty string argument.
32110         * lib/fts.c (fts_open): Do not let the presence of an empty string
32111         cause fts_open to fail immediately.  Most fts-using tools must be
32112         able to process all arguments, in order, and can be expected to
32113         diagnose such arguments themselves.
32114
32115 2009-11-30  Eric Blake  <ebb9@byu.net>
32116
32117         utimens: fix compilation error
32118         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32119         Declare variable at right scope.
32120
32121 2009-11-29  Jim Meyering  <meyering@redhat.com>
32122
32123         bootstrap: handle perl-5.11's changed --version output
32124         * build-aux/bootstrap (get_version): Handle perl separately,
32125         since perl-5.11's --version output is different.
32126
32127 2009-11-28  Jim Meyering  <meyering@redhat.com>
32128
32129         userspec: depend on the inttostr module, too
32130         * modules/userspec (Depends-on): Add inttostr.
32131
32132         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32133         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32134         number of MAXUID when it evaluates to (uid_t) -1.
32135         Likewise for group ID.  Reported by Matt McCutchen in
32136         <http://savannah.gnu.org/bugs/?28113>
32137
32138         userspec: reformat to use spaces, not TABs
32139         * lib/userspec.c: Expand TABs to spaces.
32140         Add Emacs' "indent-tabs-mode: nil" hint.
32141
32142 2009-11-27  Eric Blake  <ebb9@byu.net>
32143
32144         getopt-gnu: flush out another BSD bug
32145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32146         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32147         flush out BSD bug.
32148         * tests/test-getopt.h (test_getopt): End lists with NULL.
32149         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32150         (test_getopt_long_posix): Enhance test.
32151         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32152         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32153         getopt-gnu.
32154         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32155         Likewise.
32156
32157 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32158
32159         * modules/idpriv-droptemp-tests (Notice): Fix text.
32160
32161 2009-11-27  Jim Meyering  <meyering@redhat.com>
32162
32163         test-xalloc-die: avoid spurious failure due to libtool argv difference
32164         In a libtool-enabled project, this test would fail due to a difference
32165         in the emitted program name, e.g.,
32166         -test-xalloc-die: memory exhausted
32167         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32168         Use program to avoid that.
32169         * modules/xalloc-die-tests (Depends-on): Add progname.
32170         * tests/test-xalloc-die.c: Include progname.h".
32171         (program_name): Remove decl.
32172         (main): Call set_program_name.
32173         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32174
32175 2009-11-26  Richard Jones  <rjones@redhat.com>
32176
32177         w32sock: leave win32 error in place.
32178         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32179
32180 2009-11-26  Eric Blake  <ebb9@byu.net>
32181
32182         init.sh: suggest to use skip_ and fail_ functions in comments
32183         * tests/init.sh: Add a sentence.
32184
32185 2009-11-25  Bruno Haible  <bruno@clisp.org>
32186
32187         init.sh: add documentation in comments
32188         * tests/init.sh: Add some developer and user documentation.
32189
32190 2009-11-26  Jim Meyering  <meyering@redhat.com>
32191
32192         init.sh: accommodate even those who specify bogus srcdir manually
32193         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32194         configure-time tests to be sanitized, so that there is no need to
32195         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32196         (with no double quotes) suffices.  However, since tests may be
32197         invoked manually, and since you may explicitly set srcdir to the
32198         name of a directory containing spaces, do quote its uses here.
32199         * tests/test-pread.sh: Likewise.
32200         Suggested by Bruno Haible.
32201
32202         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32203         * tests/test-pread.sh: Write no data into the pipe, because
32204         test-pread actually reads none.  This avoids a diagnostic,
32205         "bash: echo: write error: Broken pipe", that arises in the unusual
32206         event something is ignoring SIGPIPE, and might be interpreted
32207         as some sort of failure.  Reported by Bruno Haible.
32208
32209 2009-11-25  Jim Meyering  <meyering@redhat.com>
32210
32211         test-pread: cover failure with ESPIPE and EINVAL
32212         * tests/test-pread.c (main): Test for failure, too.
32213         * tests/test-pread.sh: Invoke with stdin on a pipe.
32214         Suggested by Eric Blake.
32215
32216         pread: improvement and fix
32217         * modules/pread (Depends-on): Depend on lseek, for portability to
32218         e.g., mingw.  Suggested by Eric Blake.
32219         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32220
32221         unistd.in.h: correct declaration of pread
32222         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32223         Reported by Richard W.M. Jones.
32224
32225         test-pread.sh: distribute the test script
32226         * modules/pread-tests (Files): Include test-pread.sh.
32227
32228         test-pread.sh: clean up
32229         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32230         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32231         That is unnecessary, since it's always ".".
32232         Suggestion from Eric Blake.
32233
32234         test-pread.sh: make executable
32235         * tests/test-pread.sh: Set executable bit.
32236         Reported by Eric Blake.
32237
32238         correct typo in test-pread.sh
32239         * tests/test-pread.sh: Add #! line.
32240
32241         test pread
32242         * tests/test-pread.c: New file.
32243         * tests/test-pread.sh: Likewise.
32244         * modules/pread-tests: Likewise.
32245
32246         pread: new module
32247         * modules/pread: New file.
32248         * lib/unistd.in.h (pread): Define/declare.
32249         * lib/pread.c (pread): New file.
32250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32251         * modules/unistd (Makefile.am): Substitute witnesses.
32252         * doc/posix-functions/pread.texi (pread): Update.
32253         * MODULES.html.sh: Add pread.
32254
32255 2009-11-25  Jim Meyering  <meyering@redhat.com>
32256
32257         tests/init.sh: new file to be used via most *.sh tests
32258         * tests/init.sh: New file.
32259
32260 2009-11-25  Eric Blake  <ebb9@byu.net>
32261
32262         utimens: work around older Linux failure with symlinks
32263         * lib/utimens.c (lutimensat_works_really): New variable.
32264         (fdutimens, lutimens): Use it to manage kernels that support
32265         nanosecond times on files, but not on symlinks.
32266         Reported by Ondřej Vašík.
32267
32268         utimes: fix configure grammar
32269         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32270
32271 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32272
32273         regex: Fix fastmap for multibyte character ranges.
32274         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32275         characters when a multibyte character range is included.
32276
32277 2009-11-22  Andy Wingo  <wingo@pobox.com>
32278
32279         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32280         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32281
32282 2009-11-24  Bruno Haible  <bruno@clisp.org>
32283
32284         doc: Most *_l functions exist in MacOS X 10.5.
32285         * doc/posix-functions/duplocale.texi: Update platforms list.
32286         * doc/posix-functions/freelocale.texi: Likewise.
32287         * doc/posix-functions/newlocale.texi: Likewise.
32288         * doc/posix-functions/uselocale.texi: Likewise.
32289         * doc/posix-functions/isalnum_l.texi: Likewise.
32290         * doc/posix-functions/isalpha_l.texi: Likewise.
32291         * doc/posix-functions/isblank_l.texi: Likewise.
32292         * doc/posix-functions/iscntrl_l.texi: Likewise.
32293         * doc/posix-functions/isdigit_l.texi: Likewise.
32294         * doc/posix-functions/isgraph_l.texi: Likewise.
32295         * doc/posix-functions/islower_l.texi: Likewise.
32296         * doc/posix-functions/isprint_l.texi: Likewise.
32297         * doc/posix-functions/ispunct_l.texi: Likewise.
32298         * doc/posix-functions/isspace_l.texi: Likewise.
32299         * doc/posix-functions/isupper_l.texi: Likewise.
32300         * doc/posix-functions/iswalnum_l.texi: Likewise.
32301         * doc/posix-functions/iswalpha_l.texi: Likewise.
32302         * doc/posix-functions/iswblank_l.texi: Likewise.
32303         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32304         * doc/posix-functions/iswctype_l.texi: Likewise.
32305         * doc/posix-functions/iswdigit_l.texi: Likewise.
32306         * doc/posix-functions/iswgraph_l.texi: Likewise.
32307         * doc/posix-functions/iswlower_l.texi: Likewise.
32308         * doc/posix-functions/iswprint_l.texi: Likewise.
32309         * doc/posix-functions/iswpunct_l.texi: Likewise.
32310         * doc/posix-functions/iswspace_l.texi: Likewise.
32311         * doc/posix-functions/iswupper_l.texi: Likewise.
32312         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32313         * doc/posix-functions/isxdigit_l.texi: Likewise.
32314         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32315         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32316         * doc/posix-functions/strcoll_l.texi: Likewise.
32317         * doc/posix-functions/strfmon_l.texi: Likewise.
32318         * doc/posix-functions/strftime_l.texi: Likewise.
32319         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32320         * doc/posix-functions/strxfrm_l.texi: Likewise.
32321         * doc/posix-functions/tolower_l.texi: Likewise.
32322         * doc/posix-functions/toupper_l.texi: Likewise.
32323         * doc/posix-functions/towctrans_l.texi: Likewise.
32324         * doc/posix-functions/towlower_l.texi: Likewise.
32325         * doc/posix-functions/towupper_l.texi: Likewise.
32326         * doc/posix-functions/wcscoll_l.texi: Likewise.
32327         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32328         * doc/posix-functions/wctrans_l.texi: Likewise.
32329         * doc/posix-functions/wctype_l.texi: Likewise.
32330         * doc/glibc-functions/strptime_l.texi: Likewise.
32331         * doc/glibc-functions/strtod_l.texi: Likewise.
32332         * doc/glibc-functions/strtof_l.texi: Likewise.
32333         * doc/glibc-functions/strtol_l.texi: Likewise.
32334         * doc/glibc-functions/strtold_l.texi: Likewise.
32335         * doc/glibc-functions/strtoll_l.texi: Likewise.
32336         * doc/glibc-functions/strtoul_l.texi: Likewise.
32337         * doc/glibc-functions/strtoull_l.texi: Likewise.
32338         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32339         * doc/glibc-functions/wcstod_l.texi: Likewise.
32340         * doc/glibc-functions/wcstof_l.texi: Likewise.
32341         * doc/glibc-functions/wcstol_l.texi: Likewise.
32342         * doc/glibc-functions/wcstold_l.texi: Likewise.
32343         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32344         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32345         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32346
32347 2009-11-24  Bruno Haible  <bruno@clisp.org>
32348
32349         duplocale: Fix logic bug.
32350         * lib/duplocale.c: Don't include <langinfo.h>.
32351         (_NL_LOCALE_NAME): Remove macro.
32352         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32353         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32354
32355 2009-11-23  Jim Meyering  <meyering@redhat.com>
32356
32357         test-update-copyright: don't hard-code /usr/bin/perl
32358         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32359         perl to print the current year.  Gilles Espinasse reported that
32360         the replaced use of perl was hard-coded as /usr/bin/perl.
32361
32362 2009-11-23  Bruno Haible  <bruno@clisp.org>
32363
32364         duplocale: Add support for glibc 2.3.x.
32365         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32366
32367 2009-11-22  Bruno Haible  <bruno@clisp.org>
32368
32369         vasnprintf: Tiny optimization.
32370         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32371         MacOS X.
32372
32373 2009-11-22  Bruno Haible  <bruno@clisp.org>
32374
32375         Tests for module 'duplocale'.
32376         * modules/duplocale-tests: New file.
32377         * tests/test-duplocale.c: New file.
32378
32379         New module 'duplocale'.
32380         * m4/duplocale.m4: New file.
32381         * lib/locale.in.h (duplocale): New declaration.
32382         * lib/duplocale.c: New file.
32383         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32384         gl_LOCALE_H_DEFAULTS): New macros.
32385         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32386         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32387         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32388         REPLACE_DUPLOCALE.
32389         * modules/duplocale: New file.
32390         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32391
32392 2009-11-22  Bruno Haible  <bruno@clisp.org>
32393
32394         * modules/locale-tests (configure.ac): Test for newlocale function.
32395         * tests/test-locale.c: When the system has extended locale functions,
32396         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32397
32398         locale: Make locale_t available when possible.
32399         * lib/locale.in.h: Include <xlocale.h> when it exists.
32400         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32401         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32402         * modules/locale (Depends-on): Add extensions.
32403         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32404         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32405
32406 2009-11-22  Bruno Haible  <bruno@clisp.org>
32407
32408         Add comments.
32409         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32410         invocation.
32411         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32412         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32413         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32414
32415 2009-11-22  Bruno Haible  <bruno@clisp.org>
32416
32417         error: account for the possibility of freopen (stdout).
32418         * lib/error.c: Include <unistd.h>.
32419         (flush_stdout): New function, extracted from error and error_at_line.
32420         Determine stdout's fd dynamically.
32421         (error, error_at_line): Invoke flush_stdout.
32422         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32423         * modules/error (Depends-on): Add unistd.
32424
32425 2009-11-22  Bruno Haible  <bruno@clisp.org>
32426
32427         diffseq: Add comment.
32428         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32429
32430 2009-11-22  Jim Meyering  <meyering@redhat.com>
32431
32432         c-stack: avoid defining an unused static function
32433         * lib/c-stack.c (find_stack_direction): Do not define this function
32434         when it will not be used.
32435
32436         diffseq: avoid spurious gcc warnings
32437         * lib/diffseq.h (IF_LINT2): Define.
32438         (compareseq): Use it to initialize two members of "part".
32439         This avoids two used-uninitialized warnings.
32440
32441 2009-11-21  Jim Meyering  <meyering@redhat.com>
32442
32443         c-stack: avoid "ignoring return value of `write'" warning
32444         * lib/c-stack.c: Include "ignore-value.h".
32445         (die): Explicitly ignore each write return value.
32446         * modules/c-stack (Depends-on): Add ignore-value.
32447
32448 2009-11-21  Bruno Haible  <bruno@clisp.org>
32449
32450         diffseq: reduce scope of variable 'best'.
32451         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
32452         variable, earlier used for two different purposes.
32453
32454 2009-11-21  Jim Meyering  <meyering@redhat.com>
32455
32456         diffseq: remove useless assignment to "best"
32457         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
32458         assignment.  At that point "best" is already guaranteed to be zero.
32459
32460 2009-11-20  Eric Blake  <ebb9@byu.net>
32461
32462         build: mention ftp redirector in release announcements
32463         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
32464         values that used to come from cfg.mk; mention FTP redirect URL.
32465         * build-aux/announce-gen: Mention the mirror list.
32466         Suggested by Karl Berry.
32467
32468         nanosleep: improve port to mingw
32469         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
32470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
32471         LIB_NANOSLEEP, but only when needed.
32472         * modules/select (Link): Document LIBSOCKET.
32473         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
32474         enough.
32475
32476         nanosleep: work around cygwin bug
32477         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
32478         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
32479         bug.
32480         (getnow): Delete, not needed.
32481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
32482         LIB_CLOCK_GETTIME.
32483         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
32484         clock-time, gettime.
32485         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
32486         bug.
32487         * modules/nanosleep-tests: New test.
32488         * tests/test-nanosleep.c: New file.
32489
32490         sleep: work around cygwin bug
32491         * lib/sleep.c (rpl_sleep): Work around the bug.
32492         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
32493         (gl_PREREQ_SLEEP): Delete unused macro.
32494         * modules/sleep (Depends-on): Add verify.
32495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32496         * modules/unistd (Makefile.am): Substitute witness.
32497         * lib/unistd.in.h (sleep): Update prototype.
32498         * doc/posix-functions/sleep.texi (sleep): Document the bug.
32499         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
32500         * modules/sleep-tests (Depends-on): Check for alarm.
32501
32502 2009-11-20  Jim Meyering  <meyering@redhat.com>
32503
32504         maint.mk: improve sc_prohibit_magic_number_exit
32505         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
32506         so it does not match uses like System.exit(1).
32507         Add comments showing how to correct all offenders.
32508
32509 2009-11-19  Eric Blake  <ebb9@byu.net>
32510
32511         xalloc-die-tests: add missing library
32512         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
32513
32514         test-xvasprintf: silence compiler warnings
32515         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
32516         empty string from gcc.
32517
32518 2009-11-19  Jim Meyering  <meyering@redhat.com>
32519
32520         xfreopen: new module, from coreutils
32521         * modules/xfreopen: New module.
32522         * lib/xfreopen.c: New file.
32523         * lib/xfreopen.h: New file.
32524         * MODULES.html.sh (File stream based Input/Output"): Add it.
32525
32526 2009-11-19  Eric Blake  <ebb9@byu.net>
32527
32528         manywarnings: depend on warnings
32529         * modules/manywarnings (Depends-on): Add warnings.
32530
32531         build: avoid compiler warnings
32532         * lib/select.c (rpl_select): Delete unused variable.
32533         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
32534
32535 2009-11-18  Eric Blake  <ebb9@byu.net>
32536
32537         tests: avoid false negative with --with-packager
32538         * tests/test-version-etc.sh: Discard packager information.
32539         * tests/test-argp-version-etc-1.sh: Likewise.
32540         Reported by Mike Frysinger.
32541
32542         utimens: fix regression on Solaris
32543         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
32544         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
32545         can only change fd timestamps via futimesat.  Instead, use an
32546         additional witness macro to avoid BSD bug.
32547         Reported by Jim Meyering.
32548
32549 2009-11-17  Eric Blake  <ebb9@byu.net>
32550
32551         usleep: use it to simplify tests
32552         * modules/stat-time-tests (Depends-on): Add usleep.
32553         (configure.ac): Drop usleep check.
32554         * modules/chown-tests (Depends-on, configure.ac): Likewise.
32555         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
32556         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
32557         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
32558         * modules/openat-tests (Depends-on, configure.ac): Likewise.
32559         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
32560         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
32561         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
32562         Likewise.
32563         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
32564         * tests/test-lchown.h (nap): Likewise.
32565         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
32566         * tests/test-stat-time.c (nap): Likewise.
32567         * tests/test-utimens-common.h (nap): Update comments.
32568
32569         usleep: new module
32570         * modules/usleep: New file.
32571         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
32572         * lib/usleep.c (usleep): Likewise.
32573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32574         * modules/unistd (Makefile.am): Substitute witnesses.
32575         * lib/unistd.in.h (usleep): Add declaration.
32576         * doc/pastposix-functions/usleep.texi (usleep): Document this.
32577         * MODULES.html.sh (Date and time): Likewise.
32578         * modules/usleep-tests (Depends-on): New test.
32579         * tests/test-usleep.c: New file.
32580
32581         chown: work around OpenBSD bug
32582         * lib/chown.c (rpl_chown): Work around the bug.
32583         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
32584         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
32585         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
32586         * modules/chown (Depends-on): Add stdbool.
32587         * modules/lchown (Depends-on): Likewise.
32588         * doc/posix-functions/chown.texi (chown): Document the bug.
32589         * doc/posix-functions/lchown.texi (lchown): Likewise.
32590         * tests/test-lchown.h (test_chown): Relax test.
32591
32592         mkstemp: avoid conflict with C++ keyword template
32593         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
32594         * lib/mkostemp.c (mkostemp): Likewise.
32595         * lib/mkostemps.c (mkostemps): Likewise.
32596         * lib/mkstemp.c (mkstemp): Likewise.
32597         * lib/mkstemps.c (mkstemps): Likewise.
32598
32599         xalloc-die-tests: optimize
32600         * tests/test-xalloc-die.sh: Reduce number of processes.
32601
32602 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32603
32604         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
32605         patch from ludo@gnu.org (Ludovic Courtès).
32606
32607 2009-11-17  Jim Meyering  <meyering@redhat.com>
32608
32609         version-etc: use proper license string
32610         * modules/version-etc (License): Use LGPL, not LGPLv3+.
32611         * modules/version-etc-fsf: Likewise.
32612
32613 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32614
32615         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
32616         printed to stdout.  Deal with EOL differences.
32617
32618 2009-11-17  Eric Blake  <ebb9@byu.net>
32619
32620         unsetenv: work around Solaris bug
32621         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
32622         * lib/unsetenv.c (rpl_unsetenv): Work around it.
32623         Reported by Jim Meyering.
32624
32625         vasnprintf: avoid compiler warnings
32626         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
32627         variables.
32628         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
32629
32630 2009-11-17  Simon Josefsson  <simon@josefsson.org>
32631
32632         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
32633         settings since xalloc-die is no longer the self test,
32634         xalloc-die.sh is.
32635
32636 2009-11-17  Jim Meyering  <meyering@redhat.com>
32637
32638         test-xalloc-die.sh: make the code agree with the commit log
32639         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
32640         at the end, just in case you happen to have a test-xalloc-die
32641         program in some other PATH directory.
32642
32643         test-xalloc-die.sh: fix a portability bug
32644         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
32645         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
32646         Otherwise, argv[0] (as often seen in diagnostics) would be too
32647         system-dependent, sometimes with, and sometimes without the leading "./".
32648
32649         version-etc-fsf: relax license to LGPLv3+
32650         * modules/version-etc-fsf (License): Relax license.
32651
32652 2009-11-16  Eric Blake  <ebb9@byu.net>
32653
32654         xalloc-die-tests: avoid printing null pointer
32655         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
32656         shell script.
32657         * tests/test-xalloc-die.c (program_name): Declare.
32658         * tests/test-xalloc-die.sh (tmpfiles): New file.
32659
32660         setenv, unsetenv: work around various bugs
32661         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
32662         (setenv) [HAVE_SETENV]: Work around bugs.
32663         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
32664         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
32665         for bugs.
32666         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
32667         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
32668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
32669         * modules/stdlib (Makefile.am): Update substitutions.
32670         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
32671         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
32672         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32673         * modules/setenv-tests: New test.
32674         * modules/unsetenv-tests: Likewise.
32675         * tests/test-setenv.c: New file.
32676         * tests/test-unsetenv.c: Likewise.
32677
32678 2009-11-16  Jim Meyering  <meyering@redhat.com>
32679
32680         version-etc: relax license to LGPLv3+
32681         * modules/version-etc (License): Relax license.
32682
32683         better AC_REQUIRE expanded-before-required-warning avoidance
32684         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
32685         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
32686         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
32687         which is no longer needed.
32688
32689 2009-11-16  Eric Blake  <ebb9@byu.net>
32690
32691         test-freading: clean up temporary file
32692         * tests/test-freading.c (main): Remove file on success, and use
32693         ASSERT more liberally.
32694         Reported by Jim Meyering.
32695
32696 2009-11-16  Jim Meyering  <meyering@redhat.com>
32697
32698         avoid new AC_REQUIRE expanded-before-required warnings
32699         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
32700         merely using it.
32701         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
32702         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
32703
32704 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32705
32706         * tests/test-xalloc-die.c: New file.
32707         * modules/xalloc-die-tests: New file.
32708         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
32709         XFAIL_TESTS so it can be appended by modules.
32710
32711 2009-11-15  Simon Josefsson  <simon@josefsson.org>
32712
32713         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
32714         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
32715
32716 2009-11-14  Eric Blake  <ebb9@byu.net>
32717
32718         fnmatch: avoid compiler warning
32719         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
32720         to silence compiler warning about mismatch signedness in ?:.
32721         Reported by Robert Millan.
32722
32723         intprops: add double-inclusion guard
32724         * lib/intprops.h: Allow idempotent includes.
32725         Suggested by Bruce Korb.
32726
32727         openat: detect Solaris fchownat bug
32728         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
32729         penalizing glibc chownat when only lchownat is broken.
32730         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
32731         trailing slash bugs.
32732         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
32733         * modules/openat-tests (Files): Include more files.
32734         (Depends-on): Add mgetgroups, sleep, stat-time.
32735         (configure.ac): Add additional checks.
32736         (Makefile.am): Build new test.
32737         * tests/test-fchownat.c: New file.
32738
32739         lchown: detect Solaris and FreeBSD bug
32740         * lib/lchown.c (rpl_lchown): Work around bug.
32741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
32742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32743         * modules/unistd (Makefile.am): Populate it.
32744         * lib/unistd.in.h (lchown): Update declaration.
32745         * doc/posix-functions/lchown.texi (lchown): Document the bug.
32746         * modules/lchown-tests: New file.
32747         * tests/test-lchown.h (test_lchown): Likewise.
32748         * tests/test-lchown.c (main): Likewise.
32749
32750         chown: detect Solaris and FreeBSD bug
32751         * lib/chown.c (rpl_chown): Work around bug.
32752         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
32753         (gl_PREREQ_CHOWN): Delete.
32754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32755         * modules/unistd (Makefile.am): Populate it.
32756         * lib/unistd.in.h (chown): Update declaration.
32757         * lib/lchown.c (chown): Update client.
32758         * modules/lchown (Depends-on): Add lstat.
32759         * doc/posix-functions/chown.texi (chown): Document the bug.
32760         * doc/posix-functions/getgroups.texi (getgroups): Document
32761         getgroups pitfall.
32762         * modules/chown-tests: New file.
32763         * tests/test-chown.h (test_chown): Likewise.
32764         * tests/test-chown.c (main): Likewise.
32765
32766 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
32767
32768         gnulib-tool: correctly detect absence of m4 directories
32769         * gnulib-tool: Avoid extra newline on data passed to wc -l.
32770
32771 2009-11-14  Jim Meyering  <meyering@redhat.com>
32772
32773         maint.mk: Prohibit inclusion of "xalloc.h" without use.
32774         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
32775
32776 2009-11-14  John W. Eaton  <jwe@gnu.org>
32777
32778         strftime.h: wrap funtion declaration in extern "C" block
32779         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
32780
32781 2009-11-13  Eric Blake  <ebb9@byu.net>
32782
32783         getgroups: avoid compiler warning
32784         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
32785
32786         getgroups: work around FreeBSD bug
32787         * lib/getgroups.c (rpl_getgroups): Work around the bug.
32788         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
32789         * doc/posix-functions/getgroups.texi (getgroups): Document it.
32790         * tests/test-getgroups.c (main): Fix buffer overrun.
32791
32792         getgroups: avoid compilation failure
32793         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
32794         * modules/getgroups (Depends-on): Add stdint.
32795
32796 2009-11-13  Jim Meyering  <meyering@redhat.com>
32797
32798         test-getgroups: avoid compilation failure
32799         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
32800
32801 2009-11-13  Eric Blake  <ebb9@byu.net>
32802
32803         mgetgroups: new module, taken from coreutils
32804         * modules/mgetgroups: New file.
32805         * lib/mgetgroups.h: Likewise.
32806         * lib/mgetgroups.c (mgetgroups): Likewise.
32807         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
32808         * MODULES.html.sh (Users and groups): Mention it.
32809
32810         getgroups: don't expose GETGROUPS_T to user
32811         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
32812         an element at a time if GETGROUPS_T is wrong size.
32813         * lib/getugroups.h (getugroups): Change signature.
32814         * lib/unistd.in.h (getgroups): Likewise.
32815         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
32816         signature needs fixing.
32817         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
32818         AC_TYPE_GETGROUPS.
32819         * modules/group-member (Depends-on): Add getgroups.
32820         * lib/group-member.c (group_info, get_group_info): Use gid_t.
32821         (group_member): Rely on getgroups replacement.
32822         * lib/getugroups.c (getugroups): Use gid_t.
32823         * tests/test-getgroups.c (main): Likewise.
32824         * NEWS: Mention the signature change.
32825         * doc/posix-functions/getgroups.texi (getgroups): Mention the
32826         problem with signature.
32827         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
32828         GETGROUPS_T is still useful for setgroups.
32829
32830         getgroups, getugroups: provide stubs for mingw
32831         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
32832         * lib/getugroups.c (getugroups): Likewise.
32833         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
32834         function.  Modernize replacement scheme.
32835         (gl_PREREQ_GETGROUPS): Delete.
32836         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
32837         * modules/getgroups (configure.ac): Declare witness.
32838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
32839         * modules/unistd (Depends-on): Substitute witness.
32840         * lib/unistd.in.h (getgroups): Declare replacement.
32841
32842         getgroups: avoid calling exit
32843         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
32844         drop xalloc.
32845         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
32846         dependencies.
32847         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
32848         exiting, in the rare case of malloc failure.
32849
32850         getgroups: fix logic error
32851         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
32852         has more than 20 groups.
32853         * modules/getgroups-tests: New test.
32854         * tests/test-getgroups.c: New file.
32855
32856 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32857
32858         * tests/test-base64.c: Improve.
32859
32860 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32861
32862         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
32863         Blake <ebb9@byu.net>.
32864
32865 2009-11-13  Simon Josefsson  <simon@josefsson.org>
32866
32867         * tests/test-xvasprintf.c: Add %s%s related checks.
32868
32869 2009-11-12  Eric Blake  <ebb9@byu.net>
32870
32871         version-etc: match standards.texi style
32872         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
32873         and use <> only for URLs.
32874
32875 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
32876
32877         fts: do not fail on a submount during traversal
32878         * lib/fts.c (fts_build): Read the stat info again after opening
32879         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
32880         Original report at http://bugzilla.redhat.com/501848.
32881
32882 2009-11-12  Jim Meyering  <meyering@redhat.com>
32883
32884         bootstrap: sync from coreutils
32885         * build-aux/bootstrap (bootstrap_epilogue): New function.
32886         Use git_modules_config in one more place.  This make bootstrap's
32887         --gnulib-srcdir option more useful for testing.
32888
32889         bootstrap: generalize autoheader check
32890         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
32891         AC_CONFIG_HEADERS.
32892
32893 2009-11-11  Eric Blake  <ebb9@byu.net>
32894
32895         mkfifoat: use new modules for Solaris and BSD bugs
32896         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
32897         * lib/mkfifoat.c (mknodat): Split...
32898         * lib/mknodat.c (mknodat): ...into new file.
32899         * modules/mkfifoat (Files): Ship new file.
32900         (Depends-on): Add mkfifo, mknod.
32901         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
32902         (Depends-on): Add symlink.
32903         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
32904         redundant with test_mkfifo.h.
32905         (do_mkfifoat, do_mknodat): New helpers.
32906
32907         mknod: new module
32908         * modules/mknod: New file.
32909         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
32910         * lib/mknod.c (mknod): Likewise.
32911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32912         defaults.
32913         * modules/sys_stat (Makefile.am): Substitute them.
32914         * lib/sys_stat.in.h (mknod): Declare replacement.
32915         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32916         Document it.
32917         * doc/posix-functions/mknod.texi (mknod): Likewise.
32918         * modules/mknod-tests: New test.
32919         * tests/test-mknod.c: Likewise.
32920
32921         mkfifo: new module
32922         * modules/mkfifo: New file.
32923         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
32924         * lib/mkfifo.c (mkfifo): Likewise.
32925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
32926         defaults.
32927         * modules/sys_stat (Makefile.am): Substitute them.
32928         * lib/sys_stat.in.h (mkfifo): Declare replacement.
32929         * MODULES.html.sh (Support for systems lacking POSIX:2008):
32930         Document it.
32931         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
32932         * modules/mkfifo-tests: New test.
32933         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
32934         from test-mkfifoat.c.
32935         * tests/test-mkfifo.c: New file.
32936
32937         readlink: detect FreeBSD bug
32938         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
32939         slash on symlink.
32940         * doc/posix-functions/readlink.texi (readlink): Document the bug.
32941         * tests/test-readlink.h (test_readlink): Enhance test.
32942
32943         symlink: detect FreeBSD bug
32944         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
32945         slash on symlink.
32946         * doc/posix-functions/symlink.texi (symlink): Document the bug.
32947         * tests/test-symlink.h (test_symlink): Enhance test.
32948
32949 2009-11-10  Eric Blake  <ebb9@byu.net>
32950
32951         link: detect FreeBSD bug
32952         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
32953         symlink.
32954         * doc/posix-functions/link.texi (link): Document the bug.
32955         * tests/test-link.h (test_link): Enhance test.
32956         * tests/test-linkat.c (main): Update caller.
32957
32958         unlink, remove: detect FreeBSD bug
32959         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
32960         slash on symlink.
32961         * doc/posix-functions/unlink.texi (unlink): Document the bug.
32962         * doc/posix-functions/remove.texi (remove): Likewise.
32963         * tests/test-unlink.h (test_unlink): Enhance test.
32964         * tests/test-remove.c (main): Likewise.
32965
32966 2009-11-09  Eric Blake  <ebb9@byu.net>
32967
32968         rename: detect FreeBSD bug
32969         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
32970         slash on symlink.
32971         * modules/renameat-tests (Depends-on): Add filenamecat.
32972         * tests/test-rename.h (test_rename): Allow one more errno.
32973         * tests/test-renameat.c (main): Likewise.
32974         * doc/posix-functions/rename.texi (rename): Document the bug.
32975
32976         open: detect FreeBSD bug
32977         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
32978         symlink.
32979         * doc/posix-functions/open.texi (open): Document the bug.
32980         * doc/posix-functions/utimes.texi (utimes): Likewise.
32981         * tests/test-open.h (test_open): Add parameters, and test symlink
32982         handling.
32983         * tests/test-open.c (main): Adjust caller.
32984         * tests/test-fcntl-safer.c (main): Likewise.
32985         * modules/open-tests (Depends-on): Add stdbool, symlink.
32986         * modules/fcntl-safer-tests (Depends-on): Likewise.
32987         * tests/test-openat.c (main): Add test-open tests.
32988
32989         stat: detect FreeBSD bug
32990         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
32991         symlink.
32992         * doc/posix-functions/stat.texi (stat): Document the bug.
32993         * tests/test-stat.h (test_stat_func): Add argument.
32994         * tests/test-stat.c (main): Adjust caller.
32995         * tests/test-fstatat.c (main): Likewise.
32996         * modules/stat-tests (Depends-on): Add stdbool, symlink.
32997         Reported by Jim Meyering.
32998
32999 2009-11-09  James Youngman  <jay@gnu.org>
33000
33001         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33002         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33003
33004 2009-11-08  Jim Meyering  <meyering@redhat.com>
33005
33006         utimens: remove invalid futimesat call
33007         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33008         It used the file descriptor of the target file as the DIR_FD
33009         parameter and NULL as the file name.  That caused failure with
33010         errno == EFAULT on FreeBSD-8.0-rc2
33011
33012 2009-11-07  Eric Blake  <ebb9@byu.net>
33013
33014         fflush, freadseek: use fseeko, not fseek
33015         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33016         (clear_ungetc_buffer): Avoid potential problems on large files.
33017         * lib/freadseek.c (freadseek): Likewise.
33018         * modules/freadseek (Depends-on): Add fseeko.
33019         * modules/fseek (configure.ac): Set a witness.
33020         * tests/test-fflush.c (main): Use fseeko.
33021         * tests/test-fpurge.c (fseek): Disable link warning.
33022         * tests/test-freadable.c (fseek): Likewise.
33023         * tests/test-freading.c (fseek): Likewise.
33024         * tests/test-fseeko.c (fseek): Likewise.
33025         * tests/test-ftell.c (fseek): Likewise.
33026         * tests/test-ftello.c (fseek): Likewise.
33027         * tests/test-fwritable.c (fseek): Likewise.
33028         * tests/test-fwriting.c (fseek): Likewise.
33029
33030 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33031
33032         * modules/memchr (Depends-on): Drop getpagesize dependency.
33033
33034 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33035
33036         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33037         Reported by Ludovic Courtès.
33038         * build-aux/pmccabe2html: Improve example usage.
33039         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33040
33041 2009-11-06  Jim Meyering  <meyering@redhat.com>
33042
33043         do-release-commit-and-tag: New module.
33044         Automate the release-commit and tag process.
33045         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33046         * modules/do-release-commit-and-tag: New file.
33047         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33048
33049 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33050
33051         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33052         because test-select.c uses inet_pton.
33053
33054 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33055
33056         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33057         GETADDRINFO_LIB.  Bump serial number.
33058         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33059         Suggested by Eric Blake <ebb9@byu.net>.
33060
33061 2009-11-05  Eric Blake  <ebb9@byu.net>
33062
33063         strtod: detect darwin bug
33064         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33065         Reported by Leo Davis.
33066
33067         freopen-safer: new module
33068         * modules/freopen-safer: New module.
33069         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33070         * lib/freopen-safer.c (freopen_safer): New file.
33071         * lib/stdio-safer.h (freopen_safer): New declaration.
33072         * lib/stdio--.h (freopen): New override.
33073         * MODULES.html.sh (File stream based Input/Output): Mention it.
33074         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33075         freopen-safer module.
33076         * doc/posix-functions/stderr.texi (stderr): Likewise.
33077         * doc/posix-functions/stdin.texi (stdin): Likewise.
33078         * doc/posix-functions/stdout.texi (stdout): Likewise.
33079         * modules/freopen-safer-tests: New test.
33080         * tests/test-reopen-safer.c: New file.
33081
33082 2009-11-05  Jim Meyering  <meyering@redhat.com>
33083
33084         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33085         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33086
33087 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33088
33089         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33090
33091 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33092
33093         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33094
33095 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33096
33097         Fix link error.
33098         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33100
33101 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33102
33103         * tests/test-func.c: Also test value of __func__.
33104
33105 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33106
33107         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33108         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33109
33110 2009-11-05  Bruno Haible  <bruno@clisp.org>
33111
33112         Fix link error.
33113         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33114         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33115         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33116
33117 2009-11-05  Bruno Haible  <bruno@clisp.org>
33118
33119         Tests for module 'inet_pton'.
33120         * modules/inet_pton-tests: New file.
33121         * tests/test-inet_pton.c: New file.
33122
33123 2009-11-05  Bruno Haible  <bruno@clisp.org>
33124
33125         Tests for module 'inet_ntop'.
33126         * modules/inet_ntop-tests: New file.
33127         * tests/test-inet_ntop.c: New file.
33128
33129 2009-11-04  Eric Blake  <ebb9@byu.net>
33130
33131         stdlib-safer: wrap all mkstemp variants
33132         * modules/mkostemp (configure.ac): Set witness.
33133         * modules/mkostemps (configure.ac): Likewise.
33134         * modules/mkstemps (configure.ac): Likewise.
33135         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33136         (mkstemps_safer): Wrap more functions.
33137         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33138         wrapping.
33139         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33140         (mkstemps_safer): Implement the wrappers.
33141
33142         mkstemps, mkostemps: new modules
33143         * modules/mkostemps: New module.
33144         * modules/mkstemps: Likewise.
33145         * lib/mkostemps.c (mkostemps): New file.
33146         * lib/mkstemps.c (mkstemps): Likewise.
33147         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33148         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33150         * modules/stdlib (Makefile.am): Substitute them.
33151         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33152         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33153         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33154         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33155         * MODULES.html.sh (File system functions): Mention them.
33156
33157         tempname: resync from glibc
33158         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33159         same values for __GT_FILE as glibc.  Abort even when assertions
33160         are disabled.
33161         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33162         match its value otherwise.  Allow idempotent inclusion.
33163         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33164         * lib/mkostemp.c (mkostemp): Likewise.
33165         * lib/mkstemp.c (mkstemp): Likewise.
33166         * lib/tmpfile.c (tmpfile): Likewise.
33167         * NEWS: Document this.
33168
33169         utimens: fix use of futimens on older Linux
33170         * lib/utimens.c (fdutimens): Use updated, rather than original,
33171         timespec to avoid bug in older Linux kernel.
33172         Reported by Simon Josefsson.
33173
33174 2009-11-04  Bruno Haible  <bruno@clisp.org>
33175
33176         Make num_processors more flexible and consistent.
33177         * lib/nproc.h (enum nproc_query): New type.
33178         (num_processors): Add a 'query' argument.
33179         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33180         (num_processors): Add a 'query' argument. Test the value of the
33181         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33182         mingw, count the number of CPUs available for the current process.
33183         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33184         Check for sched_getaffinity and sched_getaffinity_np.
33185         * modules/nproc (Depends-on): Add c-ctype, extensions.
33186         * NEWS: Mention the change.
33187
33188 2009-11-03  Bruno Haible  <bruno@clisp.org>
33189
33190         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33191
33192 2009-11-03  Jim Meyering  <meyering@redhat.com>
33193
33194         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33195         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33196         if it is defined.
33197
33198 2009-11-02  Eric Blake  <ebb9@byu.net>
33199
33200         mktime, timegm: share common declaration
33201         * lib/mktime-internal.h: New file.
33202         * lib/mktime.c: Use it rather than open-coding a declaration.
33203         * lib/timegm.c: Likewise.
33204         * modules/mktime (Files): Ship it.
33205         * modules/timegm (Files): Likewise.
33206         Suggested by Bruno Haible.
33207
33208         test-update-copyright: update test to match script changes
33209         * tests/test-update-copyright.sh: Avoid hard-coding perl
33210         location.  Don't update *.bak created by earlier runs.
33211
33212 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33213             Simon Josefsson  <simon@josefsson.org>
33214             Bruno Haible  <bruno@clisp.org>
33215
33216         Fix link error on Solaris 8.
33217         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33218         also in libnsl. Define also INET_PTON_LIB.
33219         * modules/inet_pton (Link): New section.
33220
33221 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33222             Bruno Haible  <bruno@clisp.org>
33223
33224         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33225         * modules/inet_ntop (Link): New section.
33226         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33227
33228 2009-11-02  Eric Blake  <ebb9@byu.net>
33229
33230         maint: avoid compiler warnings in m4 macros
33231         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33232         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33233
33234 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33235
33236         * m4/pmccabe2html.m4: Remove file.
33237         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33238         function.  Change maintainer.
33239         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33240         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33241         Courtès).
33242
33243 2009-10-31  Eric Blake  <ebb9@byu.net>
33244
33245         fseeko: fix m4 regression
33246         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33247         regression from 2009-10-27.
33248         Reported by Ralf Wildenhues.
33249
33250 2009-10-31  Jim Meyering  <meyering@redhat.com>
33251
33252         inttostr: aesthetics and improved (compile-time) safety
33253         Define inttype_is_signed rather than inttype_is_unsigned,
33254         since the sole use is via "#if inttype_is_signed".
33255         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33256         inttype_is_unsigned.
33257         * lib/offtostr.c (inttype_is_signed): Likewise.
33258         * lib/uinttostr.c (inttype_is_signed): Likewise.
33259         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33260         * lib/inttostr.c (inttostr): Use verify to cross-check the
33261         inttype_is_signed value and the signedness of the actual type.
33262         * modules/inttostr (Depends-on): Add verify.
33263
33264 2009-10-30  Eric Blake  <ebb9@byu.net>
33265
33266         build: avoid compiler warnings
33267         * lib/fchmodat.c (lchmod): Mark unused variables.
33268         * lib/getopt.c (_getopt_initialize): Likewise.
33269         * lib/mktime.c (__mktime_internal): Provide prototype.
33270         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33271         older gcc that do not understand #pragma GCC diagnostic.
33272         * lib/uinttostr.c (inttype_is_unsigned): Define.
33273         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33274
33275 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33276
33277         stat: fix compilation on AIX
33278         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33279         only see struct stat64.
33280
33281 2009-10-30  Eric Blake  <ebb9@byu.net>
33282
33283         exclude: make more robust
33284         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33285         rather than masking a coding bug.
33286         Suggested by Bruno Haible.
33287
33288 2009-10-30  Jim Meyering  <meyering@redhat.com>
33289
33290         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33291         Rather than putting #!/usr/bin/perl on the first line,
33292         start with a variant of what's recommended by "man perlrun" that
33293         invokes the first "perl" program from your shell's search path.
33294         * build-aux/gitlog-to-changelog: Replace #!... as above.
33295         Add a "Local Variables" perl mode setting.
33296         Prompted by a patch from Ludovic Courtès.
33297         Improved by Eric Blake.
33298         * build-aux/useless-if-before-free: Likewise.
33299         * build-aux/announce-gen: Likewise.
33300         * build-aux/update-copyright: Likewise.
33301
33302 2009-10-29  Eric Blake  <ebb9@byu.net>
33303
33304         filenamecat-lgpl: adjust clients
33305         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33306         filenamecat.
33307         * modules/renameat (Depends-on): Likewise.
33308
33309         filenamecat: split into filenamecat-lgpl
33310         * modules/filenamecat-lgpl: New module.
33311         * modules/filenamecat (Files): Move library-safe files into
33312         filenamecat-lgpl.
33313         (Depends-on): Add filenamecat-lgpl.
33314         (configure.ac): Declare witness.
33315         * lib/filenamecat.h (file_name_concat): Only declare when using
33316         GPL module.
33317         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33318         Move...
33319         * lib/filenamecat-lgpl.c: ...into new file.
33320         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33321         (gl_FILE_NAME_CONCAT): Use it.
33322         * MODULES.html.sh (File system functions): Mention new module.
33323
33324         argp: avoid memory leak
33325         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33326         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33327         base_name, since the latter malloc()s and can call exit().
33328         Leak introduced 2006-07-03.
33329
33330         dirname-lgpl: adjust clients that don't need full dirname
33331         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33332         * modules/filenamecat (Depends-on): Likewise.
33333         * modules/linkat (Depends-on): Likewise.
33334         * modules/mkancesdirs (Depends-on): Likewise.
33335         * modules/mkdir (Depends-on): Likewise.
33336         * modules/openat (Depends-on): Likewise.
33337         * modules/savewd (Depends-on): Likewise.
33338         * modules/rename (Depends-on): Likewise.
33339         (License): Relax license.
33340         * modules/mkdir-tests (Depends-on): Drop progname.
33341         (Makefile.am): Delete unneeded LDADD.
33342         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33343
33344         dirname: split into dirname-lgpl
33345         * modules/dirname-lgpl: New module.
33346         * modules/dirname (Files): Move library-safe files into
33347         dirname-lgpl.
33348         (Depends-on): Add dirname-lgpl.
33349         (configure.ac): Declare witness.
33350         * modules/double-slash-root (License): Relax license.
33351         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33352         module.
33353         * lib/dirname.c (dir_len, mdir_name): Move...
33354         * lib/dirname-lgpl.c: ...into new file.
33355         * lib/basename.c (last_component, base_len): Move...
33356         * lib/basename-lgpl.c: ...into new file.
33357         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33358         (gl_DIRNAME): Use it.
33359         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33360         Mention new module.
33361         * modules/dirname-tests (Depends-on): Add progname.
33362         * tests/test-dirname.c (program_name): Delete.
33363
33364         mkdir: make safe for libraries
33365         * modules/mkdir (Depends-on): Drop xalloc.
33366         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33367         exit.
33368
33369         tests: avoid some compiler warnings
33370         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33371         literals.
33372         * tests/test-memchr.c (main): Avoid type mismatch.
33373         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33374         * tests/test-base64.c (main): Likewise.
33375         * tests/test-getdelim.c (main): Likewise.
33376         * tests/test-gethostname.c (main): Likewise.
33377         * tests/test-getline.c (main): Likewise.
33378         * tests/test-netinet_in.c (main): Likewise.
33379         * tests/test-select.c (open_server_socket, main): Likewise.
33380         * tests/test-select-stdin.c (main): Likewise.
33381         * tests/test-sockets.c (main): Likewise.
33382         * tests/test-strsignal.c (main): Likewise.
33383         * tests/test-sys_select.c (main): Likewise.
33384         * tests/test-sys_socket.c (main): Likewise.
33385         * tests/test-u64.c (main): Likewise.
33386         * tests/test-xfprintf-posix.c (main): Likewise.
33387         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33388
33389         sockets: avoid compiler warning
33390         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33391
33392         maint: detect usage(1) and other suspicious exits
33393         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33394
33395 2009-10-29  Jim Meyering  <meyering@redhat.com>
33396
33397         timespec: long-to-int truncation could make timespec_cmp malfunction
33398         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33399         a multiple of 2^32 nanoseconds as no difference.
33400
33401 2009-10-28  Jim Meyering  <meyering@redhat.com>
33402
33403         fprintftime: wrap macro code argument in "do {...} while(0)"
33404         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33405         cpy macro must be a statement that can be followed by a semicolon.
33406         Now that the else clause contains a comment and is hence longer
33407         than one line, I require curly braces.  That in turn requires
33408         that we wrap this code block in the standard do...while(0).
33409
33410         fprintftime: remove stray semicolon from previous change
33411         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33412
33413         fprintftime: avoid a warning about ignored fwrite return value
33414         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33415         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33416         that is unsafe.
33417         * modules/fprintftime (Depends-on): Add ignore-value.
33418
33419         exclude: avoid an unwarranted warning
33420         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33421
33422 2009-10-27  Eric Blake  <ebb9@byu.net>
33423
33424         fseek: avoid compilation failure when fflush is replaced
33425         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33426         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33427         module is in use.
33428         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33429         module is not in use; since REPLACE_FSEEK worked otherwise.
33430         (GNULIB_FTELLO): Likewise for ftell.
33431         Reported by Ian Beckwith and others.
33432
33433 2009-10-27  Bruno Haible  <bruno@clisp.org>
33434
33435         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33436         Reported by Jim Meyering.
33437
33438 2009-10-27  Jim Meyering  <jim@meyering.net>
33439             Bruno Haible  <bruno@clisp.org>
33440
33441         Avoid warning despite dropping the return value of fwrite.
33442         * lib/unicodeio.c: Include ignore-value.h.
33443         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33444         * modules/unicodeio (Depends-on): Add ignore-value.
33445
33446 2009-10-26  Eric Blake  <ebb9@byu.net>
33447
33448         areadlinkat: fix fallback path
33449         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
33450         pointer and zero.
33451
33452 2009-10-22  Pádraig Brady  <P@draigBrady.com>
33453
33454         Use a better IO block size for modern systems
33455         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
33456         * lib/md2.c: Likewise.
33457         * lib/md4.c: Likewise.
33458         * lib/md5.c: Likewise.
33459         * lib/sha1.c: Likewise.
33460         * lib/sha256.c: Likewise.
33461         * lib/sha512.c: Likewise.
33462
33463 2009-10-22  Eric Blake  <ebb9@byu.net>
33464
33465         tests: avoid several compiler warnings
33466         * tests/test-getcwd.c (main): Avoid buffer underflow.
33467         * tests/test-getdate.c (main): String literals are not safe with
33468         putenv, so use setenv.  Declare unused argument.
33469         * modules/getdate-tests (Depends-on): Add setenv.
33470         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
33471         problems with string literals in char *.
33472         * tests/test-hash.c (main): Avoid shadowing declaration.
33473         (insert_new): Treat string literals as char const *.
33474         * tests/test-getopt.h (test_getopt): Likewise.
33475         (getopt_loop): Alter types to minimize casting elsewhere.
33476         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
33477         (test_getopt_long_posix): Likewise.
33478         (do_getopt_long): Add wrapper to minimize casting.
33479         * tests/test-atexit.c (clear_temp_file): Use void.
33480         * tests/test-areadlink-with-size.c (main): Declare unused
33481         arguments.
33482         * tests/test-areadlink.c (main): Likewise.
33483         * tests/test-areadlinkat-with-size.c (main): Likewise.
33484         * tests/test-areadlinkat.c (main): Likewise.
33485         * tests/test-canonicalize-lgpl.c (main): Likewise.
33486         * tests/test-canonicalize.c (main): Likewise.
33487         * tests/test-dirent-safer.c (main): Likewise.
33488         * tests/test-dirname.c (main): Likewise.
33489         * tests/test-dup2.c (main): Likewise.
33490         * tests/test-fchdir.c (main): Likewise.
33491         * tests/test-fcntl-h.c (main): Likewise.
33492         * tests/test-fcntl-safer.c (main): Likewise.
33493         * tests/test-fdopendir.c (main): Likewise.
33494         * tests/test-fdutimensat.c (main): Likewise.
33495         * tests/test-fflush.c (main): Likewise.
33496         * tests/test-filenamecat.c (main): Likewise.
33497         * tests/test-filevercmp.c (main): Likewise.
33498         * tests/test-fopen-safer.c (main): Likewise.
33499         * tests/test-fopen.c (main): Likewise.
33500         * tests/test-fpending.c (main): Likewise.
33501         * tests/test-fpurge.c (main): Likewise.
33502         * tests/test-freading.c (main): Likewise.
33503         * tests/test-fstatat.c (main): Likewise.
33504         * tests/test-fsync.c (main): Likewise.
33505         * tests/test-futimens.c (main): Likewise.
33506         * tests/test-getndelim2.c (main): Likewise.
33507         * tests/test-gettimeofday.c (main): Likewise.
33508         * tests/test-getopt.c (main): Likewise.
33509         * tests/test-i-ring.c (main): Likewise.
33510         * tests/test-inttypes.c (main): Likewise.
33511         * tests/test-link.c (main): Likewise.
33512         * tests/test-lstat.c (main): Likewise.
33513         * tests/test-math.c (main): Likewise.
33514         * tests/test-md5.c (main): Likewise.
33515         * tests/test-memchr2.c (main): Likewise.
33516         * tests/test-memrchr.c (main): Likewise.
33517         * tests/test-mkdir.c (main): Likewise.
33518         * tests/test-mkdirat.c (main): Likewise.
33519         * tests/test-mkfifoat.c (main): Likewise.
33520         * tests/test-open.c (main): Likewise.
33521         * tests/test-openat-safer.c (main): Likewise.
33522         * tests/test-openat.c (main): Likewise.
33523         * tests/test-quotearg.c (main): Likewise.
33524         * tests/test-rawmemchr.c (main): Likewise.
33525         * tests/test-readlink.c (main): Likewise.
33526         * tests/test-remove.c (main): Likewise.
33527         * tests/test-rename.c (main): Likewise.
33528         * tests/test-renameat.c (main): Likewise.
33529         * tests/test-rmdir.c (main): Likewise.
33530         * tests/test-sha1.c (main): Likewise.
33531         * tests/test-signal.c (main): Likewise.
33532         * tests/test-sigaction.c (main): Likewise.
33533         * tests/test-stat.c (main): Likewise.
33534         * tests/test-stat-time.c (main): Likewise.
33535         * tests/test-stddef.c (main): Likewise.
33536         * tests/test-stdint.c (main): Likewise.
33537         * tests/test-stdio.c (main): Likewise.
33538         * tests/test-stdlib.c (main): Likewise.
33539         * tests/test-strchrnul.c (main): Likewise.
33540         * tests/test-strerror.c (main): Likewise.
33541         * tests/test-string.c (main): Likewise.
33542         * tests/test-strtod.c (main): Likewise.
33543         * tests/test-strverscmp.c (main): Likewise.
33544         * tests/test-symlink.c (main): Likewise.
33545         * tests/test-symlinkat.c (main): Likewise.
33546         * tests/test-sys_stat.c (main): Likewise.
33547         * tests/test-sys_time.c (main): Likewise.
33548         * tests/test-time.c (main): Likewise.
33549         * tests/test-unistd.c (main): Likewise.
33550         * tests/test-unlink.c (main): Likewise.
33551         * tests/test-unlinkat.c (main): Likewise.
33552         * tests/test-utimens.c (main): Likewise.
33553         * tests/test-utimensat.c (main): Likewise.
33554         * tests/test-version-etc.c (main): Likewise.
33555         * tests/test-wchar.c (main): Likewise.
33556         * tests/test-wctype.c (main): Likewise.
33557         * tests/test-xprintf-posix.c (main): Likewise.
33558         * tests/test-posixtm.c (main): Likewise.
33559         (STREQ): Delete unused macro.
33560         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
33561         shadowed variables.
33562         * tests/test-memchr.c (main): Likewise.
33563
33564 2009-10-21  Eric Blake  <ebb9@byu.net>
33565
33566         areadlinkat: avoid failure on older glibc
33567         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
33568         rather than mis-comparing 0 against FUNC_RESULT of char*.
33569
33570 2009-10-21  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/stpncpy (License): Relicense under LGPLv2+.
33573         Reported by David Lutterkort <lutter@redhat.com>.
33574
33575 2009-10-20  Eric Blake  <ebb9@byu.net>
33576
33577         utimensat: work around Solaris 9 bug
33578         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
33579         has trailing slash bugs.
33580         * tests/test-lutimens.h (test_lutimens): Enhance test.
33581         * tests/test-utimens.h (test_utimens): Likewise.
33582         * doc/posix-functions/utime.texi (utime): Enhance documentation.
33583         * doc/posix-functions/utimes.texi (utimes): Likewise.
33584         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33585         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
33586         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
33587         * doc/posix-functions/futimens.texi (futimens): Likewise.
33588
33589         fdutimensat: new module
33590         * modules/fdutimensat: New file.
33591         * lib/fdutimensat.c (fdutimensat): Likewise.
33592         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
33593         * MODULES.html.sh (File system functions): Mention module.
33594         * modules/fdutimensat-tests: New test.
33595         * tests/test-fdutimensat.c: Likewise.
33596
33597         doc: regenerate INSTALL
33598         * doc/INSTALL: Reflect recent autoconf update.
33599         * doc/INSTALL.ISO: Likewise.
33600         * doc/INSTALL.UTF-8: Likewise.
33601
33602 2009-10-20  Pádraig Brady  <P@draigBrady.com>
33603
33604         acl: warn if ACL support is not detected
33605         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
33606
33607 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
33608
33609         * lib/nproc.h: Add extern "C" block for C++.
33610
33611 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
33612             Bruno Haible  <bruno@clisp.org>
33613
33614         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
33615         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
33616         * doc/posix-functions/isalpha.texi: Likewise.
33617         * doc/posix-functions/isblank.texi: Likewise.
33618         * doc/posix-functions/iscntrl.texi: Likewise.
33619         * doc/posix-functions/isdigit.texi: Likewise.
33620         * doc/posix-functions/isgraph.texi: Likewise.
33621         * doc/posix-functions/islower.texi: Likewise.
33622         * doc/posix-functions/isprint.texi: Likewise.
33623         * doc/posix-functions/ispunct.texi: Likewise.
33624         * doc/posix-functions/isspace.texi: Likewise.
33625         * doc/posix-functions/isupper.texi: Likewise.
33626         * doc/posix-functions/isxdigit.texi: Likewise.
33627
33628 2009-10-18  Bruno Haible  <bruno@clisp.org>
33629
33630         Tests for module 'isblank'.
33631         * modules/isblank-tests: New file.
33632         * tests/test-isblank.c: New file.
33633
33634         New module 'isblank'.
33635         * lib/isblank.c: New file.
33636         * m4/isblank.m4: New file.
33637         * modules/isblank: New file.
33638         * doc/posix-functions/isblank.texi: Mention the new module.
33639
33640 2009-10-18  Bruno Haible  <bruno@clisp.org>
33641
33642         New module 'ctype'.
33643         * lib/ctype.in.h: New file.
33644         * m4/ctype.m4: New file.
33645         * modules/ctype: New file.
33646         * doc/posix-headers/ctype.texi: Mention the new module.
33647
33648 2009-10-18  Jim Meyering  <meyering@redhat.com>
33649
33650         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
33651         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
33652         right after its initialization, rather than farther down.
33653         Keeping these in close proximity makes it easier to ensure
33654         that each such variable is initialized.  E.g.,
33655
33656             LIB_CLOCK_GETTIME=
33657             AC_SUBST([LIB_CLOCK_GETTIME])
33658
33659         This change also increments these serial numbers.
33660         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
33661         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33663
33664 2009-10-18  Bruno Haible  <bruno@clisp.org>
33665
33666         Don't let environment variables perturb build.
33667         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
33668         (gl_PREREQ_GETHRXTIME): ... not here.
33669
33670 2009-10-18  Bruno Haible  <bruno@clisp.org>
33671
33672         Avoid symlink attack in localcharset module.
33673         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
33674         (O_NOFOLLOW): Define fallback.
33675         (get_charset_aliases): Don't open the file if it is a symbolic link.
33676         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
33677         gl_FCNTL_H.
33678         (gl_FCNTL_H): Require it.
33679         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
33680         * modules/localcharset (Files): Add m4/fcntl_h.m4.
33681         Reported by Fergal Glynn <fglynn@veracode.com>.
33682
33683 2009-10-18  Bruno Haible  <bruno@clisp.org>
33684
33685         Implement nproc for mingw.
33686         * lib/nproc.c: Include <windows.h>
33687         (num_processors): On native Windows platforms, try GetSystemInfo.
33688
33689 2009-10-18  Bruno Haible  <bruno@clisp.org>
33690
33691         Implement nproc for IRIX.
33692         * lib/nproc.c: Include <sys/sysmp.h>.
33693         (num_processors): On IRIX systems, try sysmp.
33694         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
33695
33696 2009-10-18  Bruno Haible  <bruno@clisp.org>
33697
33698         Implement nproc for HP-UX.
33699         * lib/nproc.c: Include <sys/pstat.h>
33700         (num_processors): On HP-UX systems, try pstat_getdynamic.
33701         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
33702         pstat_getdynamic.
33703
33704 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
33705             Bruno Haible  <bruno@clisp.org>
33706
33707         Implement nproc for NetBSD, OpenBSD.
33708         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
33709         (ARRAY_SIZE): New macro.
33710         (num_processors): On BSD systems, try sysctl of HW_NCPU.
33711         * m4/nproc.m4: New file.
33712         * modules/nproc (Files): Add m4/nproc.m4.
33713         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
33714         (Makefile.am): Instead, augment lib_SOURCES.
33715
33716 2009-10-18  Bruno Haible  <bruno@clisp.org>
33717
33718         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
33719         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
33720         sys/param.h.
33721
33722 2009-10-16  Eric Blake  <ebb9@byu.net>
33723
33724         utimensat: new module
33725         * modules/utimensat: New file.
33726         * lib/utimensat.c (utimensat): Likewise.
33727         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33728         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
33729         so we can work around Linux bugs.
33730         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33731         * modules/sys_stat (Makefile.am): Substitute them.
33732         * lib/sys_stat.in.h (utimensat): Declare it.
33733         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33734         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33735         * modules/utimensat-tests: New test.
33736         * tests/test-utimensat.c: Likewise.
33737
33738         utimens: let lutimens work on non-symlinks
33739         * lib/utimens.c (lutimens): Fall back to utimens rather than
33740         failing with ENOSYS, when file is not a symlink.
33741         (utimens): Reduce redirection.
33742         * tests/test-lutimens.h (test_lutimens): Update test to cover
33743         non-symlinks.
33744         * tests/test-utimens.h (test_utimens): Update test to cover
33745         symlinks.
33746         * tests/test-utimens.c (main): Update caller.
33747
33748         utimens: cache whether utimensat syscall works
33749         * lib/utimens.c (utimensat_works_really): New cache variable.
33750         (fdutimens, lutimens): Use it to avoid failing syscall.
33751
33752         test-stat-time, test-utimens: improve portability
33753         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
33754         ext4 on alpha, and for cygwin.
33755         * tests/test-utimens-common.h: New file.
33756         (nap): Factor delays into single function.
33757         * tests/test-lutimens.h (test_lutimens): Use new header.
33758         * tests/test-futimens.h (test_futimens): Likewise.
33759         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
33760         timestamps to occur from same machine, as was done previously for
33761         test_utimens.
33762         * modules/utimens-tests (Files): Ship new file.
33763         * modules/futimens-tests (Files): Likewise.
33764         Reported in part by Jim Meyering.
33765
33766         sys_stat: sort replacement declarations
33767         * lib/sys_stat.in.h: Sort declarations.
33768         * lib/futimens.c (futimens): Fix typo.
33769
33770 2009-10-15  Jim Meyering  <meyering@redhat.com>
33771
33772         don't let environment settings perturb build
33773         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
33774         could cause a configure-time and/or build-time malfunction.
33775         Typically, a configure-time function-in-library test is performed
33776         via code like this:
33777
33778           LIB_VAR=
33779           AC_SUBST([LIB_VAR])
33780           prefix_saved_LIBS=$LIBS
33781             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
33782                        [test "$ac_cv_search_FUNC" = "none required" ||
33783                         LIB_VAR=$ac_cv_search_FUNC])
33784           LIBS=$prefix_saved_LIBS
33785
33786         However, in each of the files affected by this change, the LIB_VAR=
33787         initialization was omitted.  Thus, when set in the environment, its
33788         value would propagate into generated Makefiles when FUNC is not found
33789         in LIB_NAME.
33790         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
33791         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
33792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33793
33794 2009-10-14  Eric Blake  <ebb9@byu.net>
33795
33796         fchdir: avoid infinite recursion in mingw
33797         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
33798         recursing.
33799
33800         test-stat-time: port to mingw
33801         * tests/test-stat-time.c (force_unlink): Return a value.
33802         (test_ctime) [W32]: Fix compilation error.
33803         (nap): Don't call usleep with too large an argument.  Use
33804         force_unlink.
33805         * doc/pastposix-functions/usleep.texi (usleep): Document the
33806         portability issue.
33807
33808 2009-10-13  Jim Meyering  <meyering@redhat.com>
33809
33810         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
33811         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
33812         * modules/pipe-filter-ii: Likewise.
33813         * modules/sys_socket-tests: Likewise.
33814         * modules/tsearch-tests: Likewise.
33815         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
33816         (check): Depend on it.
33817
33818 2009-10-12  Eric Blake  <ebb9@byu.net>
33819
33820         utimens-tests: port to NFS file systems
33821         * tests/test-utimens.h (test_utimens): Refactor utimecmp
33822         comparisons to avoid spurious failures from timestamp drift
33823         between NFS machines.
33824
33825 2009-10-12  Eric Blake  <ebb9@byu.net>
33826
33827         stat-time-tests: minor cleanups
33828         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
33829         * tests/test-stat-time.c (nap): Separate assignment from call.
33830         Suggested by Paolo Bonzini and Bruno Haible.
33831
33832         sys_stat: guarantee struct timespec
33833         * lib/sys_stat.in.h (includes): Always include <time.h>
33834         * modules/sys_stat (Depends-on): Add time.
33835         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
33836         mode_t permission values.
33837         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
33838         get at subsecond timestamps.
33839
33840 2009-10-10  Eric Blake  <ebb9@byu.net>
33841
33842         futimens: new module
33843         * modules/futimens: New file.
33844         * lib/futimens.c (futimens): Likewise.
33845         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
33846         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
33847         we can work around Linux bugs.
33848         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33849         * modules/sys_stat (Makefile.am): Substitute them.
33850         * lib/sys_stat.in.h (futimens): Declare it.
33851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33852         * doc/posix-functions/futimens.texi (futimens): Likewise.
33853         * modules/futimens-tests: New test.
33854         * tests/test-futimens.c: Likewise.
33855
33856         utimens: introduce fdutimens
33857         * lib/utimens.h (fdutimens): New prototype.
33858         * lib/utimens.c (gl_futimens): Move guts...
33859         (fdutimens): ...to new interface.
33860         * tests/test-utimens.c (do_fdutimens): Use it.
33861
33862         utimens: add UTIME_NOW and UTIME_OMIT support
33863         * lib/utimens.c (validate_timespec, update_timespec): New helper
33864         functions.
33865         (gl_futimens, lutimens): Use them.
33866         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
33867         stdbool, sys_stat.
33868         (Link): Mention resulting library dependency.
33869         * modules/utimecmp (Link): Likewise.
33870         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
33871         (Makefile.am): Pick up library dependency.
33872         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
33873         definition.
33874         * tests/test-sys_stat.c: Test the definitions.
33875         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
33876         * NEWS: Document library dependency.
33877
33878         utimecmp: support symlink timestamps
33879         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
33880         hashing when possible.  Use pathconf when available.
33881         (SYSCALL_RESOLUTION): Recognize tighter resolution.
33882         * modules/utimecmp (Depends-on): Add lstat.
33883
33884         utimens: add lutimens interface
33885         * lib/utimens.c (lutimens): New function.
33886         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
33887         * lib/utimens.h (lutimens): Declare new interface.
33888         * tests/test-utimens.c (main): Enhance test.
33889         * tests/test-lutimens.h (test_lutimens): New file.
33890         * modules/utimens-tests (Files): Distribute it.
33891         (Depends-on): Add symlink.
33892         (configure.ac): Check for usleep.
33893
33894         utimens: validate futimens usage
33895         * lib/utimens.c (gl_futimens): Require valid fd up front, using
33896         fewer syscalls on failure later on.  Avoid compiler warning on
33897         mingw.
33898         * modules/utimens (Depends-on): Add dup2.
33899
33900         utimens: add test
33901         * modules/utimens-tests: New test.
33902         * tests/test-utimens.h: New file.
33903         * tests/test-futimens.h: Likewise.
33904         * tests/test-utimens.c: Likewise.
33905
33906         doc: mention timestamp portability issues
33907         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
33908         instead.
33909         * doc/posix-functions/utime.texi (utime): Likewise.
33910         * doc/posix-functions/utimes.texi (utimes): Likewise.
33911         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
33912         instead.
33913         * doc/posix-functions/futimens.texi (futimens): Mention utimens
33914         module.
33915         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33916         Mention weakness with symlink timestamps.
33917         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
33918         to utimensat/futimens instead.
33919         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
33920
33921         test-dup2: enhance test
33922         * tests/test-dup2.c (main): Also check AT_FDCWD.
33923
33924         test-stat-time: avoid more spurious failures
33925         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
33926         xfs; and avoid race if the two timestamps cross quantization edge.
33927
33928         relocatable: prefer 'file system' over 'filesystem'
33929         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
33930         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
33931         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
33932         * doc/relocatable.texi (Enabling Relocatability): Likewise.
33933         * lib/relocatable.c (compute_curr_prefix): Likewise.
33934
33935 2009-10-10  Jim Meyering  <meyering@redhat.com>
33936
33937         stat-time-tests: check for the usleep function
33938         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
33939
33940 2009-10-10  Bruno Haible  <bruno@clisp.org>
33941
33942         * modules/xnanosleep: Put the Link section after the Include section.
33943
33944 2009-10-09  Eric Blake  <ebb9@byu.net>
33945
33946         dup2: work around FreeBSD 6.1 bug
33947         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
33948         * doc/posix-functions/dup2.texi (dup2): Document it.
33949         Reported by Nelson H. F. Beebe and Jim Meyering.
33950
33951         test-stat-time: port to buggy NFS clients
33952         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
33953         (test_ctime): Also skip test if mtime and ctime are skewed.
33954
33955         maint: prefer 'file system' over 'filesystem'
33956         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33957         * doc/posix-functions/lstat.texi (lstat): Likewise.
33958         * lib/file-has-acl.c (file_has_acl): Likewise.
33959         * lib/fwriteerror.c [TEST]: Likewise.
33960         * tests/test-areadlink.h (test_areadlink): Likewise.
33961         * tests/test-areadlinkat-with-size.c (main): Likewise.
33962         * tests/test-areadlinkat.c (main): Likewise.
33963         * tests/test-canonicalize-lgpl.c (main): Likewise.
33964         * tests/test-canonicalize.c (main): Likewise.
33965         * tests/test-fstatat.c (main): Likewise.
33966         * tests/test-linkat.c (main): Likewise.
33967         * tests/test-lstat.h (test_lstat_func): Likewise.
33968         * tests/test-mkdir.h (test_mkdir): Likewise.
33969         * tests/test-readlink.h (test_readlink): Likewise.
33970         * tests/test-remove.c (main): Likewise.
33971         * tests/test-rename.h (test_rename): Likewise.
33972         * tests/test-renameat.c (main): Likewise.
33973         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33974         * tests/test-symlink.h (test_symlink): Likewise.
33975         * tests/test-symlinkat.c (main): Likewise.
33976         * tests/test-unlink.h (test_unlink_func): Likewise.
33977         * tests/test-unlinkat.c (main): Likewise.
33978
33979         maint: make realtime library usage explicit
33980         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
33981         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
33982         * modules/settime (Link): Likewise.
33983         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
33984
33985         test-stat-time: speed up execution
33986         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
33987         warning on mingw.
33988         (nap): New helper function.
33989         (prepare_test): Use it to reduce sleep time.
33990         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
33991         execution.
33992         * modules/stat-time-tests (configure.ac): Check for usleep.
33993
33994 2009-10-09  Jim Meyering  <meyering@redhat.com>
33995
33996         selinux-h: always use getfilecon wrappers
33997         * lib/getfilecon.c: New file.
33998         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
33999         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34000         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34001         (fgetfilecon): Provide a stub.
34002         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34003         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34004         file unconditionally.
34005         When <selinux/selinux.h> is found, arrange to use wrappers.
34006         * modules/selinux-h (Files): Add getfilecon.c.
34007         (Makefile.am): Substitute include-next-related bits
34008         into the now-always-generated selinux/selinux.h file.
34009         * doc/glibc-functions/lgetfilecon.texi: New file.
34010         * doc/glibc-functions/fgetfilecon.texi: New file.
34011         * doc/glibc-functions/getfilecon.texi: New file.
34012         * doc/glibc-functions/getfilecon-desc.texi: New file.
34013         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34014         which to pull in the new files.
34015         * MODULES.html.sh (Misc): Add selinux-h.
34016
34017 2009-10-08  Jim Meyering  <meyering@redhat.com>
34018
34019         unistd: fix comment typo
34020         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34021
34022 2009-10-08  Eric Blake  <ebb9@byu.net>
34023
34024         areadlink: use SIZE_MAX consistently
34025         * modules/areadlink (Depends-on): Add stdint.
34026         * modules/areadlink-with-size (Depends-on): Likewise.
34027         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34028         gives NULL; drop sys/types, since unistd gives size_t; and add
34029         stdint for SIZE_MAX.
34030         (SIZE_MAX): Rely on headers.
34031         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34032         and add stdint.
34033         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34034         (SIZE_MAX): Likewise.
34035         (INITIAL_BUF_SIZE): Turn into enum.
34036         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34037
34038 2009-10-08  Jim Meyering  <meyering@redhat.com>
34039
34040         areadlinkat: avoid compilation failure
34041         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34042         Fix typo in comment.
34043
34044 2009-10-07  Eric Blake  <ebb9@byu.net>
34045
34046         areadlinkat-with-size: new module
34047         * modules/areadlinkat-with-size: New module.
34048         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34049         * lib/areadlink.h (areadlinkat): Declare it.
34050         * MODULES.html.sh (File system functions): Mention it.
34051         * modules/areadlinkat-with-size-tests: New test.
34052         * tests/test-areadlinkat-with-size.c: New file.
34053
34054         xreadlinkat: new module
34055         * modules/xreadlinkat: New module.
34056         * lib/xreadlinkat.c (xreadlinkat): New file.
34057         * lib/xreadlink.h (xreadlinkat): Declare it.
34058         * MODULES.html.sh (File system functions): Mention it.
34059
34060         areadlinkat: new module
34061         * lib/at-func.c (FUNC_FAIL): New define.
34062         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34063         * modules/areadlinkat: New module.
34064         * lib/linkat.c (areadlinkat): Move...
34065         * lib/areadlinkat.c (areadlinkat): ...to new file.
34066         * lib/areadlink.h (areadlinkat): Declare it.
34067         * modules/linkat (Depends-on): Add areadlinkat.
34068         * MODULES.html.sh (File system functions): Mention it.
34069         * modules/areadlinkat-tests: New test.
34070         * tests/test-areadlinkat.c: New file.
34071
34072         areadlink, areadlink-with-size: add tests
34073         * modules/areadlink-tests: New test.
34074         * modules/areadlink-with-size-tests: Likewise.
34075         * tests/test-areadlink.h: New file.
34076         * tests/test-areadlink.c: Likewise.
34077         * tests/test-areadlink-with-size.c: Likewise.
34078
34079         maint: minor cleanups
34080         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34081         _UNUSED_PARAMETER_ instead.
34082         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34083         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34084         * modules/linkat-tests (Files): Distribute test-link.h.
34085
34086         openat, utimens: whitespace cleanup
34087         * lib/openat.c: Prefer space throughout, rather than mix of 8
34088         spaces vs. tabs.
34089         * lib/at-func.c: Likewise.
34090         * lib/utimens.c: Likewise.
34091
34092         openat: avoid using wrong fd
34093         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34094         working directory chooses same fd.
34095         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34096
34097         mkdir, mkdirat: fix cygwin 1.5.x bug
34098         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34099         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34100         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34101         bug.
34102         (gl_PREREQ_MKDIR): Delete unused macro.
34103         * modules/mkdir (Files): Track file rename.
34104         (configure.ac): Update macro name.
34105         * modules/openat (Depends-on): Add mkdir.
34106         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34107
34108         mkdir, mkdirat: add tests
34109         * modules/mkdir-tests: New test.
34110         * tests/test-mkdir.h: New file.
34111         * tests/test-mkdir.c: Likewise.
34112         * tests/test-mkdirat.c: Likewise.
34113         * modules/openat-tests (Files): Add new files.
34114         (Makefile.am): Run new test.
34115
34116 2009-10-06  Eric Blake  <ebb9@byu.net>
34117
34118         doc: tweak *at function documentation
34119         * doc/posix-functions/faccessat.texi (faccessat): Mention
34120         known issue with replacement.
34121         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34122         * doc/posix-functions/linkat.texi (linkat): Likewise.
34123         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34124         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34125         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34126         * doc/posix-functions/renameat.texi (renameat): Likewise.
34127         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34128
34129         openat: fix GNU/Hurd bug in unlinkat
34130         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34131         broken.
34132         * doc/posix-functions/unlink.texi (unlink): Document this.
34133         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34134
34135         fdopendir: fix GNU/Hurd bug
34136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34137         allowing non-directory fds.
34138         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34139         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34140         * modules/dirent (Makefile.am): Substitute it.
34141         * lib/dirent.in.h (fdopendir): Declare replacement.
34142         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34143         * tests/test-fdopendir.c (main): Test something other than
34144         /dev/null, since on Hurd that behaves like a directory.
34145
34146         test-symlink: port to GNU/Hurd
34147         * tests/test-symlink.h (test_symlink): Relax expected errno.
34148
34149         doc: tweak more cygwin information
34150         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34151         now compatible with glibc.
34152         * doc/posix-functions/getopt.texi (getopt): Likewise.
34153
34154         getopt-gnu: add another test
34155         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34156         guarantee behavior relied on by m4.
34157         * tests/test-getopt.c (main): Use it.
34158         * modules/getopt-posix-tests (Depends-on): Add setenv.
34159         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34160
34161         getopt: fix compilation on darwin
34162         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34163         include.
34164         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34165         Reported by Ludovic Courtès.
34166
34167 2009-10-06  Bruno Haible  <bruno@clisp.org>
34168
34169         * modules/size_max (Description): Discourage its use.
34170         Reported by Simon Josefsson.
34171
34172 2009-10-06  Jim Meyering  <meyering@redhat.com>
34173
34174         linkat: avoid compilation failure
34175         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34176
34177 2009-10-05  Eric Blake  <ebb9@byu.net>
34178
34179         linkat: support Linux 2.6.17
34180         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34181         linkat on Linux, but allow cache variable override.
34182         * lib/linkat.c (rpl_linkat): Define override.
34183         * modules/linkat (Depends-on): Add symlinkat.
34184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34185         * modules/unistd (Makefile.am): Substitute it.
34186         * lib/unistd.in.h (linkat): Declare replacement.
34187         Reported by Pádraig Brady.
34188
34189         quotearg: port test to systems with C.UTF-8 locale
34190         * tests/test-quotearg.c (struct result_strings): Add another
34191         member, differentiating between C.ASCII and C.UTF-8 handling.
34192         (compare_strings): Add parameter.
34193         (main): Adjust all callers.
34194
34195         getopt: avoid clash with FreeBSD _getopt_internal
34196         * lib/getopt.in.h (_getopt_internal): Override the name.
34197         * lib/getopt_int.h (includes): Pick up any overrides.
34198         Reported by Reuben Thomas.
34199
34200         hash: allow C89 compilation
34201         * lib/hash.c (check_tuning): Move declaration before statement.
34202         Reported by Reuben Thomas.
34203
34204 2009-10-05  Karl Berry  <karl@gnu.org>
34205
34206         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34207
34208 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34209             Bruno Haible  <bruno@clisp.org>
34210
34211         * lib/uname.c (uname): Use a table-driven algorithm to compute
34212         Windows NT versions.
34213
34214 2009-10-04  Bruno Haible  <bruno@clisp.org>
34215
34216         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34217         program_invocation_short_name.
34218         * modules/progname (configure.ac): Test for presence of
34219         program_invocation_short_name.
34220         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34221
34222 2009-10-04  Bruno Haible  <bruno@clisp.org>
34223
34224         * lib/progname.c (set_program_name): Fix comment.
34225         Reported by Jim Meyering.
34226
34227 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34228             Bruno Haible  <bruno@clisp.org>
34229
34230         * lib/uname.c: Include <string.h>.
34231         (uname): Do only one call to GetVersionEx in the common case.
34232
34233 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34234             Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34237         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34238         (uname): Add support for Windows CE and various non-x86 CPU types.
34239
34240 2009-10-03  Bruno Haible  <bruno@clisp.org>
34241
34242         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34243         invocation to tests/configure.ac.
34244         Reported by Ian Beckwith <ianb@erislabs.net>.
34245
34246 2009-10-02  Eric Blake  <ebb9@byu.net>
34247
34248         fchdir: avoid compiler warning
34249         * lib/fchdir.c (canonicalize_file_name)
34250         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34251
34252         test-open: support mingw errno values
34253         * tests/test-open.h (test_open): Relax test.
34254         * tests/test-fopen.h (test_fopen): Likewise.
34255         * tests/test-openat-safer.c (main): Likewise.
34256
34257         open: fix opening directory on mingw
34258         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34259
34260         test-open: on GNU/Hurd, /dev/null is a directory
34261         * tests/test-fopen.h (main): Rename...
34262         (test_fopen): ...to this.  Use a guaranteed non-directory when
34263         confirming open behavior on trailing slash.
34264         * tests/test-openat-safer.c (main): Likewise.
34265         * tests/test-open.h (main): Likewise....
34266         (test_open): ...to this.
34267         * tests/test-fopen.c (main): Adjust caller.
34268         * tests/test-fopen-safer.c (main): Likewise.
34269         * tests/test-open.c (main): Likewise.
34270         * tests/test-fcntl-safer.c (main): Likewise.
34271         Reported by Samuel Thibault.
34272
34273         rename, fchdir: don't ignore chdir failure
34274         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34275         * lib/rename.c (rpl_rename) [W32]: Likewise.
34276         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34277         an empty destination directory if source cannot be renamed,
34278         although there is still possibility for failure.
34279         * doc/posix-functions/rename.texi (rename): Document the race.
34280         Reported by Jim Meyering.
34281
34282         maint: cleanup whitespace in recent commits
34283         * lib/rename.c (rpl_rename): Remove tabs.
34284         * tests/test-link.h (test_link): Likewise.
34285         * lib/fchdir.c (get_name): Likewise.
34286         Reported by Jim Meyering.
34287
34288 2009-10-02  Ben Pfaff  <blp@gnu.org>
34289
34290         relocatable-prog-wrapper: Add missing dependency on
34291         double-slash-root.
34292         * modules/relocatable-prog-wrapper: Add dependency.
34293         Reported by Ian Beckwith <ianb@erislabs.net>.
34294
34295 2009-10-02  Eric Blake  <ebb9@byu.net>
34296
34297         renameat: fix Solaris bugs
34298         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34299         needed fixing.
34300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34301         * modules/stdio (Makefile.am): Substitute it.
34302         * lib/stdio.in.h (renameat): Declare replacement.
34303         * lib/renameat.c (rpl_renameat): Implement fix.
34304
34305         renameat: new module
34306         * modules/renameat: New file.
34307         * lib/renameat.c (renameat): Likewise.
34308         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34310         * modules/stdio (Makefile.am): Substitute them.
34311         * lib/stdio.in.h (renameat): Declare it.
34312         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34313         * doc/posix-functions/renameat.texi (renameat): Likewise.
34314         * modules/renameat-tests: New test.
34315         * tests/test-renameat.c: Likewise.
34316
34317         rename: fix mingw bugs
34318         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34319         directory overwrite bugs.
34320
34321         rename: fix another cygwin 1.5 bug
34322         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34323         checks.
34324         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34325         unnecessary cygwin workarounds.  Also work around bug with moving
34326         full directory onto an empty one.
34327         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34328
34329         rename-dest-slash: merge into rename module
34330         * modules/rename-dest-slash (Status): Mark obsolete.
34331         (Depends-on): Add rename.
34332         (Files): Let rename do it all.
34333         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34334         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34335         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34336         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34337         * lib/rename.c (rpl_rename): Update comments.
34338
34339         rename: fix cygwin 1.5.x bugs
34340         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34341         * lib/rename.c (rpl_rename): Work around them.
34342         * modules/rename (Depends-on): Add same-inode.
34343
34344         rename: fix Solaris 10 bug
34345         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34346         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34347         was the only bug.
34348
34349         rename: fix Solaris 9 bug
34350         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34351         on non-directory.  Avoid calling exit.
34352         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34353         strdup.
34354         * modules/rename-tests (Depends-on): Drop lstat.
34355         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34356         (gl_PREREQ_RENAME): Delete unused macro.
34357
34358         rename-dest-slash: fix NetBSD bug
34359         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34360         links.
34361         * modules/rename-dest-slash (Depends-on): Add same-inode.
34362
34363         rename-tests: new test, exposes several platform bugs
34364         * modules/rename-tests: New file.
34365         * tests/test-rename.h: Likewise.
34366         * tests/test-rename.c: Likewise.
34367         * doc/posix-functions/rename.texi (rename): Improve documentation,
34368         including bugs that will eventually be fixed in gnulib.
34369
34370 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34371
34372         * lib/uname.c: Include <stdlib.h>
34373         (uname): Assume version info is available.
34374
34375 2009-10-02  Jim Meyering  <meyering@redhat.com>
34376
34377         gnu-web-doc-update: correct --help output
34378         * build-aux/gnu-web-doc-update: Make --help output relevant.
34379
34380         gnu-web-doc-update: add standard options
34381         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34382
34383         gnu-web-doc-update: New module.
34384         Use this script to automatically update the on-line web documentation
34385         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34386         * modules/gnu-web-doc-update: New file, from coreutils.
34387         * build-aux/gnu-web-doc-update: New script.
34388
34389 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34390
34391         link: LoadLibrary is not needed.
34392         * lib/link.c: Use GetModuleHandle.
34393
34394 2009-10-01  Eric Blake  <ebb9@byu.net>
34395
34396         getopt: bump serial number
34397         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34398         change.
34399
34400         tests: tighten link, rmdir, and remove tests
34401         * tests/test-link.h (includes): No need to use <config.h> here.
34402         Clean up if directory hard link was created, otherwise test for
34403         trailing '.'.
34404         * tests/test-linkat.c (main): Simplify.
34405         * tests/test-remove.c (main): Enhance test for trailing '.'.
34406         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34407
34408 2009-10-01  Jim Meyering  <meyering@redhat.com>
34409
34410         maint.mk: requiring "make major" was annoying, for a "minor" release.
34411         What is intended is "stable", to contrast with alpha and beta,
34412         so require "make stable", not "make major".
34413         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34414         (get_tool_versions): Likewise.
34415         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34416
34417 2009-09-30  Ben Pfaff  <blp@gnu.org>
34418
34419         Fix broken build of replacement for Windows tmpfile().
34420         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34421         flags argument added along with the 'mkostemp' module.
34422
34423 2009-09-28  Bruno Haible  <bruno@clisp.org>
34424
34425         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34426         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34427         to 'remove_elt'.
34428         (gl_list_remove): Update.
34429         * lib/gl_list.c (gl_list_remove): Update.
34430         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34431         to 'remove_elt'.
34432         (gl_oset_remove): Update.
34433         * lib/gl_list.c (gl_oset_remove): Update.
34434         Reported by Eric Blake.
34435
34436 2009-09-28  Eric Blake  <ebb9@byu.net>
34437
34438         doc: mention yet more cygwin 1.7 status
34439         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34440         cygwin.
34441         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34442         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34443
34444         argp: fix test failure
34445         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34446         that are not upper-case.  Pass correct range to tolower.
34447
34448 2009-09-27  Jim Meyering  <meyering@redhat.com>
34449
34450         test-yesno: work around sparc-dash here-document infelicity
34451         Without this change, the literal \177 byte in a here document
34452         would make dash 0.5.5.1-3 access uninitialized memory.
34453         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
34454         Instead, use a marker, "@", and filter through tr to create the desired
34455         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
34456
34457 2009-09-27  Bruno Haible  <bruno@clisp.org>
34458
34459         Disable untested support for new flavours of ACLs on AIX.
34460         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
34461         progress.
34462         * lib/set-mode-acl.c (qset_acl): Likewise.
34463
34464 2008-12-07  Bruno Haible  <bruno@clisp.org>
34465
34466         Add support for new flavours of ACLs on AIX. (Untested.)
34467         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
34468         (file_has_acl): Add support for newer AIX.
34469         * lib/set-mode-acl.c (qset_acl): Likewise.
34470         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
34471         Rainer Tammer <tammer@tammer.net>.
34472
34473 2009-09-26  Eric Blake  <ebb9@byu.net>
34474
34475         argp: fix compilation of getopt
34476         * lib/getopt.in.h (includes): Use different guard than glibc.
34477         Reported by Sergey Poznyakoff.
34478
34479         doc: mention more cygwin 1.7 status
34480         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
34481         bug.
34482         * doc/posix-functions/execl.texi (execl): Likewise.
34483         * doc/posix-functions/execle.texi (execle): Likewise.
34484         * doc/posix-functions/execlp.texi (execlp): Likewise.
34485         * doc/posix-functions/execv.texi (execv): Likewise.
34486         * doc/posix-functions/execve.texi (execve): Likewise.
34487         * doc/posix-functions/execvp.texi (execvp): Likewise.
34488         * doc/glibc-functions/canonicalize_file_name.texi
34489         (canonicalize_file_name): Cygwin 1.7 now provides this.
34490         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
34491         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
34492         on AT_SYMLINK_NOFOLLOW.
34493
34494 2009-09-24  Eric Blake  <ebb9@byu.net>
34495
34496         test-linkat: make test more robust
34497         * tests/test-linkat.c (main): Avoid collision with EEXIST.
34498
34499         getopt: fix inclusion guards for cygwin
34500         * modules/getopt-posix (Depends-on): Add include-next.
34501         (Makefile.am): Substitute more items in replacement header.
34502         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
34503         <getopt.h>.
34504         * lib/getopt.in.h (includes): Use split inclusion guard, and
34505         prefer <getopt.h> over include <unistd.h> when one is present.
34506         (option): Also override name of 'struct option'.
34507
34508         same-inode: revert prior change; it is not yet ready
34509         * NEWS: Undo mention of this change.
34510         * lib/same-inode.h (same-inode.h): Undo tri-state change.
34511         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34512         * lib/cycle-check.c (cycle_check): Likewise.
34513         * lib/same.c (same_name): Likewise.
34514         * lib/at-func2.c (at_func2): Likewise.
34515
34516 2009-09-23  Eric Blake  <ebb9@byu.net>
34517
34518         linkat: new module
34519         * modules/linkat: New file.
34520         * lib/at-func2.c (at_func2): Likewise.
34521         * lib/linkat.c (linkat): Likewise.
34522         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
34523         * lib/openat-priv.h (at_func2): Add declaration.
34524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34525         * modules/unistd (Makefile.am): Substitute them.
34526         * lib/unistd.in.h (linkat): Declare it.
34527         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34528         * doc/posix-functions/linkat.texi (linkat): Likewise.
34529         * doc/posix-functions/link.texi (link): Tweak wording.
34530         * tests/test-link.c (main): Move guts...
34531         * tests/test-link.h (test_link): ...into new file.
34532         * modules/linkat-tests: New test.
34533         * tests/test-linkat.c: Likewise.
34534         * modules/link-tests (Files): Ship new file.
34535         (Depends-on): Add stdbool.
34536
34537         dirname: add library-safe mdir_name
34538         * lib/dirname.h (mdir_name): New prototype.
34539         * lib/dirname.c (dir_name): Move guts...
34540         (mdir_name): ...to new function that avoids xalloc_die.
34541
34542         fchdir: another mingw fix
34543         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
34544         * lib/fchdir.c (get_name): New helper method; skips canonicalize
34545         on mingw (where it has not yet been ported), and make it optional
34546         elsewhere.
34547         (_gl_register_fd): Use it.
34548
34549         same-inode: make SAME_INODE tri-state, to port to mingw
34550         * NEWS: Mention this change.
34551         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
34552         st_ino always being 0.
34553         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
34554         * lib/cycle-check.c (cycle_check): Likewise.
34555         * lib/same.c (same_name): Likewise.
34556
34557         lstat: avoid mingw compilation error
34558         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
34559         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
34560         lstat ourselves.
34561         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
34562         was adequate.
34563         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
34564         the checks for lstat.
34565         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
34566
34567         link: fix test failure on Solaris 9
34568         * lib/link.c (rpl_link): Don't assume link will catch bogus
34569         trailing slash on source.
34570
34571         test-symlinkat: enhance test
34572         * tests/test-readlink.c (main): Move guts...
34573         * tests/test-readlink.h (test_readlink): ...into new file.
34574         * tests/test-symlink.c (main): Move guts...
34575         * tests/test-symlink.h (test_symlink): ...into new file.
34576         * tests/test-symlinkat.c (main): Use new files for further
34577         coverage.
34578         (do_symlink, do_readlink): New helper functions.
34579         * modules/symlink-tests (Files): Ship new file.
34580         (Depends-on): Add stdbool.
34581         * modules/readlink-tests (Files): Ship new file.
34582         (Depends-on): Add stdbool.
34583         * modules/symlinkat-tests (Files): Use new files.
34584
34585 2009-09-23  Eric Blake  <ebb9@byu.net>
34586
34587         readlink: document portability issue with symlink length
34588         * doc/posix-functions/lstat.texi (lstat): Mention that some file
34589         systems have bogus st_size on symlinks, and mention the
34590         areadlink-with-size module.
34591         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34592         * doc/posix-functions/readlink.texi (readlink): Mention the
34593         areadlink module, and ERANGE failure.
34594         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34595         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
34596
34597         readlink: fix Solaris 9 bug with trailing slash
34598         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
34599         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
34600         * doc/posix-functions/readlink.texi (readlink): Document this.
34601         * modules/readlink-tests: New test.
34602         * tests/test-readlink.c: Likewise.
34603
34604         readlink: fix cygwin 1.5.x bug with return type
34605         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
34606         * lib/unistd.in.h (readlink): Use ssize_t.
34607         * lib/readlink.c (readlink): Likewise.
34608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34609         * modules/unistd (Makefile.am): Substitute it.
34610         * lib/unistd.in.h (readlink): Declare replacement.
34611         * doc/posix-functions/readlink.texi (readlink): Document this.
34612
34613         symlink: use throughout gnulib
34614         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
34615         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
34616         symlink is not used.
34617         * modules/symlinkat (Depends-on): Add symlink.
34618         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34619         * modules/canonicalize-tests (Depends-on): Likewise.
34620         * modules/lstat-tests (Depends-on): Likewise.
34621         * modules/openat-tests (Depends-on): Likewise.
34622         * modules/remove-tests (Depends-on): Likewise.
34623         * modules/rmdir-tests (Depends-on): Likewise.
34624         * modules/unlink-tests (Depends-on): Likewise.
34625         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
34626         * tests/test-canonicalize.c (symlink): Likewise.
34627         * tests/test-fstatat.c (symlink): Likewise.
34628         * tests/test-lstat.c (symlink): Likewise.
34629         * tests/test-remove.c (symlink): Likewise.
34630         * tests/test-rmdir.c (symlink): Likewise.
34631         * tests/test-unlink.c (symlink): Likewise.
34632         * tests/test-unlinkat.c (symlink): Likewise.
34633
34634         symlink: new module, for Solaris 9 bug
34635         * modules/symlink: New file.
34636         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
34637         * lib/symlink.c: Likewise.
34638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34639         * modules/unistd (Makefile.am): Substitute them.
34640         * lib/unistd.in.h (symlink): Declare replacement.
34641         * MODULES.html.sh (File system functions): Mention it.
34642         * doc/posix-functions/symlink.texi (symlink): Likewise.
34643         * modules/symlink-tests: New test.
34644         * tests/test-symlink.c: Likewise.
34645
34646 2009-09-23  Bruno Haible  <bruno@clisp.org>
34647
34648         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
34649         when needed.
34650         Test case: gnulib-tool --import --with-tests atexit inttypes.
34651         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
34652
34653 2009-09-23  Bruno Haible  <bruno@clisp.org>
34654
34655         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
34656         subcommand, not in a subshell.
34657
34658 2009-09-22  Eric Blake  <ebb9@byu.net>
34659
34660         unistd: sort replacement declarations
34661         * lib/unistd.in.h: Sort declarations.
34662
34663         open, openat: minor optimization
34664         * lib/open.c (open): If open succeeded, len is non-zero.
34665         * lib/openat.c (rpl_openat): Likewise.
34666
34667         link-follow: ensure correct result
34668         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
34669         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
34670         distinguish between possible failures.
34671
34672 2009-09-21  Eric Blake  <ebb9@byu.net>
34673
34674         fts: avoid compiler warning
34675         * lib/fts.c (dirent_inode_sort_may_be_useful)
34676         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
34677
34678 2009-09-19  Bruno Haible  <bruno@clisp.org>
34679
34680         * lib/progreloc.c (canonicalize_file_name): New declaration.
34681
34682 2009-09-19  Eric Blake  <ebb9@byu.net>
34683
34684         link: fix quoting
34685         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
34686
34687         openat: fix openat bugs on Solaris 9
34688         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
34689         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
34690         * modules/openat (Depends-on): Add open.
34691         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
34692         * modules/fcntl-h (Makefile.am): Substitute it.
34693         * lib/fcntl.in.h (openat): Declare replacement.
34694         * doc/posix-functions/openat.texi (openat): Document this.
34695
34696         openat: move fstatat and unlinkat into correct files
34697         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
34698         compiled.
34699         * lib/openat.c (fstatat, unlinkat): Move...
34700         * lib/fstatat.c (fstatat): ...into correct files.
34701         * lib/unlinkat.c (unlinkat): Likewise.
34702
34703         openat: fix unlinkat bugs on Solaris 9
34704         * lib/unlinkat.c (unlinkat): New file.
34705         * modules/openat (Depends-on): Add unlink.
34706         (Files): Distribute it.
34707         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
34708         trailing slash behavior is broken.
34709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34710         * modules/unistd (Makefile.am): Substitute it.
34711         * lib/unistd.in.h (unlinkat): Declare replacement.
34712         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
34713
34714         openat: fix fstatat bugs on Solaris 9
34715         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
34716         stat.
34717         * doc/posix-functions/fstatat.texi (fstatat): Document this.
34718
34719         test-unlinkat: enhance test, to expose Solaris 9 bug
34720         * tests/test-unlink.c (main): Factor guts...
34721         * tests/test-unlink.h (test_rmdir_func): ...into new file.
34722         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
34723         * tests/test-rmdir.c (main): Adjust caller.
34724         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
34725         (unlinker): New helper function.
34726         (rmdirat): Enhance check.
34727         * modules/rmdir-tests (Depends-on): Add stdbool.
34728         * modules/unlink-tests (Depends-on): Likewise.
34729         (Files): Add test-unlink.h.
34730         * modules/openat-tests (Files): Likewise.
34731         (Depends-on): Add unlinkdir.
34732
34733         test-fstatat: new test, to expose Solaris 9 bugs
34734         * tests/test-stat.c (main): Factor guts...
34735         * tests/test-stat.h (test_stat_func): ...into new file.
34736         * tests/test-lstat.c (main): Factor guts...
34737         * tests/test-lstat.h (test_lstat_func): ...into new file.
34738         * tests/test-fstatat.c: New file.
34739         * modules/stat-tests (Files): Add test-stat.h.
34740         * modules/lstat-tests (Files): Add test-lstat.h.
34741         (Depends-on): Add stdbool.
34742         * modules/openat-tests (Depends-on): Add pathmax.
34743         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
34744         (Makefile.am): Run new test.
34745
34746         remove: new module, for mingw and Solaris 9 bugs
34747         * modules/remove: New file.
34748         * lib/remove.c: Likewise.
34749         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
34750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34751         * modules/stdio (Makefile.am): Use them.
34752         * lib/stdio.in.h (remove): Declare replacement.
34753         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34754         * doc/posix-functions/remove.texi (remove): Likewise.
34755         * modules/remove-tests: New test.
34756         * tests/test-remove.c: Likewise.
34757
34758         unlink: new module, for Solaris 9 bug
34759         * modules/unlink: New file.
34760         * lib/unlink.c: Likewise.
34761         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
34762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34763         * modules/unistd (Makefile.am): Use them.
34764         * lib/unistd.in.h (stat): Declare replacement.
34765         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34766         * doc/posix-functions/unlink.texi (unlink): Likewise.
34767         * modules/unlink-tests: New test.
34768         * tests/test-unlink.c: Likewise.
34769
34770         lstat: fix Solaris 9 bug
34771         * lib/lstat.c (lstat): Also check for trailing slash on
34772         non-symlink, non-directories.  Use stat module to simplify logic.
34773         * doc/posix-functions/lstat.texi (lstat): Document it.
34774         * modules/lstat-tests (Depends-on): Add errno, same-inode.
34775         (configure.ac): Check for symlink.
34776         * tests/test-lstat.c (main): Add more tests.
34777
34778         stat: add as dependency to other modules
34779         * modules/chown (Depends-on): Add stat.
34780         * modules/euidaccess (Depends-on): Likewise.
34781         * modules/fchdir (Depends-on): Likewise.
34782         * modules/isdir (Depends-on): Likewise.
34783         * modules/link (Depends-on): Likewise.
34784         * modules/lstat (Depends-on): Likewise.
34785         * modules/mkdir-p (Depends-on): Likewise.
34786         * modules/modechange (Depends-on): Likewise.
34787         * modules/open (Depends-on): Likewise.
34788         * modules/readlink (Depends-on): Likewise.
34789         * modules/same (Depends-on): Likewise.
34790
34791         stat: fix Solaris 9 bug
34792         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
34793         slash.
34794         * lib/stat.c (rpl_stat): Work around it.
34795         * doc/posix-functions/stat.texi (stat): Update documentation.
34796
34797         stat: new module, for mingw bug
34798         * modules/stat: New file.
34799         * lib/stat.c: Likewise.
34800         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34801         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34802         * modules/sys_stat (Makefile.am): Use them.
34803         * lib/sys_stat.in.h (stat): Declare replacement.
34804         * lib/openat.c (fstatat): Deal with lstat and stat being function
34805         macros.
34806         * modules/openat (Depends-on): Add inline.
34807         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34808         * doc/posix-functions/stat.texi (stat): Likewise.
34809         * modules/stat-tests: New test.
34810         * tests/test-stat.c: Likewise.
34811
34812 2009-09-19  Jim Meyering  <meyering@redhat.com>
34813
34814         syntax-check: detect unnecessary inclusion of canonicalize.h
34815         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
34816
34817 2009-09-19  Eric Blake  <ebb9@byu.net>
34818
34819         canonicalize-lgpl: adjust clients to use correct header
34820         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34821         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
34822         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
34823         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
34824         * lib/progreloc.c (includes): Likewise.
34825
34826 2009-09-19  Jim Meyering  <meyering@redhat.com>
34827
34828         test-posixtm.c: correct a comment
34829         * tests/test-posixtm.c: Correct first-line comment.
34830         Spotted by Eric Blake.
34831
34832 2009-09-16  Jim Meyering  <meyering@redhat.com>
34833
34834         posixtm-tests: make T const-correct; add a test case
34835         * tests/test-posixtm.c (T): Declare const.
34836         Add a test for -(2^31+1).
34837         Remove useless can-succeed-only-in-2002 test.
34838
34839         posixtm-tests: adjust the sole failing test
34840         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
34841         expected output matches what mktime now produces.  Cross-checked via
34842         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
34843
34844         posixtm: move #ifdef'd tests into a new module
34845         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
34846         * tests/test-posixtm.c: ... this new file.
34847         * modules/posixtm-tests: New module.
34848
34849 2009-09-19  Eric Blake  <ebb9@byu.net>
34850
34851         openat: simplify use of at-func.c
34852         * lib/at-func.c (includes): Include prerequisites here, to
34853         simplify requirements on client files.
34854         * lib/openat-priv.h: Add double-inclusion guard.
34855         * lib/faccessat.c (includes): Simplify.
34856         * lib/fchmodat.c (includes): Likewise.
34857         * lib/fchownat.c (includes): Likewise.
34858         * lib/mkdirat.c (includes): Likewise.
34859         * lib/mkfifoat.c (includes): Likewise.
34860         * lib/symlinkat.c (includes): Likewise.
34861
34862         openat: allow return of fd 0
34863         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
34864         * modules/save-cwd (Depends-on): Replace fcntl-safer with
34865         unistd-safer.
34866         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
34867         <fcntl.h>; this module does not leak fds.
34868         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
34869         must be allowed to return 0, leaving openat_safer to add the
34870         safety.
34871         (openat_permissive): Avoid writing to just-opened fd 2 if
34872         restoring the current directory fails.
34873         * lib/openat-die.c (openat_restore_fail): Add comment.
34874         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
34875         (save_cwd): Guarantee safe fd, but without use of open_safer.
34876         * tests/test-openat.c: New test.
34877         * modules/openat-tests (Files, Makefile.am): Distribute and build
34878         new file.
34879
34880         relocatable-prog-wrapper: fix build
34881         * modules/relocatable-prog-wrapper (Files): Update name of
34882         canonicalize m4 file, broken on 2009-09-17.
34883         Reported by emad hajjar <aleppos@hotmail.com>.
34884
34885 2009-09-19  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/safe-alloc.h: Use the standard header with GPL copyright.
34888         * lib/safe-alloc.c: Likewise.
34889         Reported by Ian Beckwith <ianb@erislabs.net>.
34890
34891 2009-09-18  Bruno Haible  <bruno@clisp.org>
34892
34893         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
34894         Reported by <erobles@sensacd.com.mx>.
34895
34896 2009-09-17  Eric Blake  <ebb9@byu.net>
34897
34898         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
34899         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
34900         slashes when checking if last component is missing.
34901         * tests/test-canonicalize.c (main): Test this.
34902
34903         canonicalize, canonicalize-lgpl: honor // if distinct from /
34904         * modules/canonicalize (Files): Add double-slash-root.m4.
34905         * modules/canonicalize-lgpl (Files): Likewise.
34906         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
34907         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
34908         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
34909         fallback definition.
34910         (canonicalize_filename_mode): Use it to protect //.
34911         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
34912         (__realpath): Likewise.
34913         * tests/test-canonicalize.c (main): Test this.
34914         * tests/test-canonicalize-lgpl.c (main): Likewise.
34915         * modules/canonicalize-tests (Depends-on): Add same-inode.
34916         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34917
34918         canonicalize-lgpl: fix glibc bug with trailing slash
34919         * m4/canonicalize-lgpl.m4: Move contents...
34920         * m4/canonicalize.m4: ...here.
34921         (gl_CANONICALIZE_LGPL): Factor realpath check...
34922         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
34923         glibc 2.3.5 bug, fixed 2005-04-27.
34924         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
34925         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
34926         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
34927         * modules/canonicalize-lgpl (Files): Manage file rename.
34928         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34929         * modules/stdlib (Makefile.am): Substitute witness.
34930         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
34931         is needed.
34932         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
34933         replacement is required.
34934         * lib/canonicalize.c (canonicalize_file_name): Likewise.
34935         * doc/glibc-functions/canonicalize_file_name.texi
34936         (canonicalize_file_name): Document this.
34937         * doc/posix-functions/realpath.texi (realpath): Likewise.
34938
34939         canonicalize-lgpl: reject non-directory with trailing slash
34940         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
34941         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
34942         catches failures in glibc 2.3.5.
34943         * tests/test-canonicalize.c (main): Likewise.
34944
34945         canonicalize-lgpl: use native realpath if it works
34946         * lib/canonicalize-lgpl.c (realpath): Guard with
34947         FUNC_REALPATH_WORKS.
34948         * lib/stdlib.in.h (realpath): Make declaration optional based on
34949         HAVE_REALPATH.
34950         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
34951         native realpath works.
34952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
34953         * modules/stdlib (Makefile.am): Substitute witness.
34954
34955         canonicalize, canonicalize-lgpl: use <stdlib.h>
34956         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
34957         (Include): Mention <stdlib.h>.
34958         (configure.ac): Mention functions we provide.
34959         * modules/canonicalize (configure.ac): Likewise.
34960         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
34961         realpath if canonicalize_file_name is missing.
34962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
34963         * modules/stdlib (Makefile.am): Substitute witnesses.
34964         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
34965         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
34966         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
34967         * NEWS: Document this.
34968         * doc/glibc-functions/canonicalize_file_name.texi
34969         (canonicalize_file_name): Likewise.
34970         * doc/posix-functions/realpath.texi (realpath): Likewise.
34971         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
34972
34973         test-canonicalize: consolidate into single C program
34974         * tests/test-canonicalize.sh: Delete; move setup into...
34975         * tests/test-canonicalize.c (main): ...the program, making it
34976         easier to run in debugger.  Add some tests.
34977         * modules/canonicalize-tests (Files): Remove unused file.
34978         (Depends-on): Add progname.
34979         (configure.ac, Makefile.am): Simplify.
34980
34981         test-canonicalize-lgpl: consolidate into single C program
34982         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
34983         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
34984         easier to run in debugger.  Add some tests.
34985         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
34986         (configure.ac, Makefile.am): Simplify.
34987
34988         canonicalize: avoid resolvepath
34989         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
34990         unnecessary checks.
34991         * lib/canonicalize.c (includes): Simplify.
34992         (canonicalize_file_name): Drop resolvepath implementation.
34993         * modules/canonicalize (Depends-on): Drop filenamecat.
34994
34995         canonicalize: don't lose errno
34996         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
34997         over calls to free.
34998
34999         canonicalize: simplify errno handling
35000         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35001         assignment.
35002
35003         canonicalize, canonicalize-lgpl: update module dependencies
35004         * modules/canonicalize (Depends-on): Add extensions, lstat,
35005         pathmax, stdlib.
35006         (Files): Drop pathmax.h.
35007         (configure.ac): Adjust macro name.
35008         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35009         lstat, stdlib, sys_stat.
35010         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35011         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35012         extensions.
35013         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35014         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35015         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35016         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35017         declaration, if available.
35018         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35019         we can rely on the readlink module.
35020         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35021         (includes): Use <unistd.h> unconditionally.
35022
35023 2009-09-17  Eric Blake  <ebb9@byu.net>
35024
35025         maint: make Include sections of modules consistent
35026         * modules/alloca: Use only header name; no need to list #include.
35027         * modules/alloca-opt: Likewise.
35028         * modules/arpa_inet: Likewise.
35029         * modules/canon-host: Likewise.
35030         * modules/configmake: Likewise.
35031         * modules/dirent: Likewise.
35032         * modules/eealloc: Likewise.
35033         * modules/environ: Likewise.
35034         * modules/fchdir: Likewise.
35035         * modules/fcntl: Likewise.
35036         * modules/fcntl-h: Likewise.
35037         * modules/gethrxtime: Likewise.
35038         * modules/gettime: Likewise.
35039         * modules/ignore-value: Likewise.
35040         * modules/inet_ntop: Likewise.
35041         * modules/inet_pton: Likewise.
35042         * modules/inttypes: Likewise.
35043         * modules/isnand-nolibm: Likewise.
35044         * modules/isnanf-nolibm: Likewise.
35045         * modules/mbchar: Likewise.
35046         * modules/mbfile: Likewise.
35047         * modules/mbiter: Likewise.
35048         * modules/mbuiter: Likewise.
35049         * modules/netdb: Likewise.
35050         * modules/netinet_in: Likewise.
35051         * modules/nproc: Likewise.
35052         * modules/pagealign_alloc: Likewise.
35053         * modules/poll: Likewise.
35054         * modules/printf-frexp: Likewise.
35055         * modules/pthread: Likewise.
35056         * modules/putenv: Likewise.
35057         * modules/random_r: Likewise.
35058         * modules/relocatable-prog: Likewise.
35059         * modules/search: Likewise.
35060         * modules/select: Likewise.
35061         * modules/selinux-h: Likewise.
35062         * modules/settime: Likewise.
35063         * modules/signal: Likewise.
35064         * modules/size_max: Likewise.
35065         * modules/socklen: Likewise.
35066         * modules/ssize_t: Likewise.
35067         * modules/stdarg: Likewise.
35068         * modules/stdbool: Likewise.
35069         * modules/stddef: Likewise.
35070         * modules/stdint: Likewise.
35071         * modules/stdio: Likewise.
35072         * modules/stdlib: Likewise.
35073         * modules/string: Likewise.
35074         * modules/strings: Likewise.
35075         * modules/sys_file: Likewise.
35076         * modules/sys_ioctl: Likewise.
35077         * modules/sys_select: Likewise.
35078         * modules/sys_socket: Likewise.
35079         * modules/sys_stat: Likewise.
35080         * modules/sys_time: Likewise.
35081         * modules/sys_times: Likewise.
35082         * modules/sys_utsname: Likewise.
35083         * modules/sys_wait: Likewise.
35084         * modules/sysexits: Likewise.
35085         * modules/time: Likewise.
35086         * modules/times: Likewise.
35087         * modules/tmpfile: Likewise.
35088         * modules/trim: Likewise.
35089         * modules/unistd: Likewise.
35090         * modules/wchar: Likewise.
35091         * modules/wctype: Likewise.
35092
35093 2009-09-17  Bruno Haible  <bruno@clisp.org>
35094
35095         Make getdate.y compile on QNX and NetBSD 5 / i386.
35096         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35097         TIME_T_FITS_IN_LONG_INT.
35098         * lib/getdate.y (long_time_t): New type.
35099         (relative_time): Change type of 'seconds' field to long_time_t.
35100         (get_date): Update types of local variables. Check against overflow
35101         during conversion from long_time_t to time_t.
35102         Reported by Matt Kraai <kraai@ftbfs.org>
35103         and Hasso Tepper <hasso@netbsd.org>.
35104
35105 2009-09-17  Bruno Haible  <bruno@clisp.org>
35106
35107         * modules/COPYING: Update copyright years.
35108         * modules/README: Likeiwse.
35109         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35110         Reported by Ian Beckwith <ianb@erislabs.net>.
35111
35112 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35113
35114         * users.txt: Update references for gnuit package.
35115
35116 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35117
35118         * m4/getdelim.m4: Fix typo in copyright line.
35119
35120 2009-09-17  Bruno Haible  <bruno@clisp.org>
35121
35122         * lib/atoll.c: Use the standard header with GPL copyright.
35123         * lib/argz.in.h: Likewise.
35124         * lib/glob.c: Likewise.
35125         * lib/glob-libc.h: Likewise.
35126         * lib/random_r.c: Likewise.
35127         * lib/siglist.h: Likewise.
35128         * lib/strsignal.c: Likewise.
35129         Reported by Ian Beckwith <ianb@erislabs.net>.
35130
35131 2009-09-17  Eric Blake  <ebb9@byu.net>
35132
35133         rmdir: ensure correct dependency order
35134         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35135
35136 2009-09-17  Bruno Haible  <bruno@clisp.org>
35137
35138         Disable assertion that fails on NetBSD 5 / i386.
35139         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35140         Reported by Sam Steingold <sds@gnu.org>
35141         and Hasso Tepper <hasso@netbsd.org>.
35142
35143 2009-09-16  Eric Blake  <ebb9@byu.net>
35144
35145         unlinkdir: port to mingw
35146         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35147         on which no one can unlink a directory.
35148
35149         stdlib: sort witness names
35150         * modules/stdlib (Makefile.am): Sort replacements.
35151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35152         * lib/stdlib.in.h: Likewise.
35153
35154         parse-duration-tests: avoid link failure
35155         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35156         LIBINTL.
35157         Reported by Tom G. Christensen.
35158
35159         openat-tests: ensure unlinkat behaves like rmdir
35160         * tests/test-rmdir.c (main): Factor guts...
35161         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35162         * modules/rmdir-tests (Files): Ship new file.
35163         * modules/openat-tests: New test.
35164         * tests/test-unlinkat.c: Likewise.
35165
35166         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35167         * modules/rmdir-errno (Status, Notice): Now obsolete.
35168
35169         rmdir: work around cygwin 1.5.x and mingw bugs
35170         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35171         * lib/rmdir.c (rmdir): Work around it.
35172         * modules/rmdir (Status, Notice): No longer obsolete.
35173         (Files): Add dos.m4.
35174         (Depends-on): Add unistd.
35175         (configure.ac): Set witnesses.
35176         (License): Relax to LGPLv2+.
35177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35178         * modules/unistd (Makefile.am): Substitute witnesses.
35179         * lib/unistd.in.h (rmdir): Declare replacement.
35180         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35181         * modules/rmdir-tests: New tests.
35182         * tests/test-rmdir.c: Likewise.
35183
35184 2009-09-15  Eric Blake  <ebb9@byu.net>
35185
35186         fchdir: improve use of replacement functions
35187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35188         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35190         REPLACE_CLOSEDIR.
35191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35192         * modules/sys_stat (Makefile.am): Substitute correct witness.
35193         * modules/dirent (Makefile.am): Likewise.
35194         * modules/unistd (Makefile.am): Likewise.
35195         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35196         * lib/unistd.in.h (dup): Likewise.
35197         * lib/sys_stat.in.h (fstat): Likewise.
35198
35199         maint: ignore gnulib-tool temp files
35200         * .gitignore: Ignore files created during gnulib-tool --test.
35201
35202 2009-09-13  Jim Meyering  <meyering@redhat.com>
35203
35204         posixtm: don't reject a time that specify "60" as the number of seconds
35205         * lib/posixtm.c (posixtime): The code to reject invalid dates
35206         would also reject a time specified with the .60 suffix.
35207         But POSIX allows that, in order to accommodate leap seconds.
35208         So don't reject it.
35209         (main): Adjust tests accordingly.
35210         * modules/posixtm (Depends-on): Add stpcpy.
35211
35212 2009-09-11  Jim Meyering  <meyering@redhat.com>
35213
35214         announce-gen: include [$release_type] in emitted Subject:
35215         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35216         e.g., [stable] in the emitted Subject: line.
35217
35218 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35219
35220         Remove obsolete macros from several modules.
35221         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35222         obsolete Autoconf macros with their modern counterparts.
35223         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35224         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35226         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35227         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35228         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35230         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35231         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35232         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35233         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35234         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35235         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35236         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35237         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35238         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35239         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35240         * m4/time_r.m4 (gl_TIME_R): Likewise.
35241         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35242         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35243         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35244
35245         Fix copyright header in build-aux scripts.
35246         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35247         recommendation.
35248         * build-aux/ncftpput-ftp: Likewise.
35249         * build-aux/update-copyright: Likewise.
35250
35251 2009-09-09  Eric Blake  <ebb9@byu.net>
35252
35253         test-link: allow Linux choice of errno
35254         * tests/test-link.c (main): Relax test for alternate error.
35255
35256         strndup: fix improper m4 caching
35257         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35258         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35259         (gl_PREREQ_STRNDUP): Delete.
35260         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35261         * modules/string (Makefile.am): Substitute it.
35262         * lib/string.in.h (strndup): Modernize prototype.
35263
35264         getcwd: port to mingw
35265         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35266         different from the POSIX assumptions made throughout the getcwd
35267         module; fortunately, the mingw getcwd does not need replacement.
35268         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35269         * modules/getcwd-tests: New test.
35270         * tests/test-getcwd.c: Likewise.
35271
35272         link: fix platform bugs
35273         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35274         * lib/link.c (link): Work around them.  Fix related mingw bug.
35275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35276         * modules/unistd (Makefile.am): Substitute it.
35277         * lib/unistd.in.h (link): Declare replacement.
35278         * doc/posix-functions/link.texi (link): Document this.
35279         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35280
35281         test-link: consolidate into single C program, test more cases
35282         * tests/test-link.sh: Delete.
35283         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35284         at least Cygwin and Solaris.
35285         * modules/link-tests (Files): Remove unused file.
35286         (Depends-on): Add errno, sys_stat.
35287         (Makefile.am): Simplify.
35288
35289 2009-09-08  Bruno Haible  <bruno@clisp.org>
35290
35291         Work around towlower, towupper bug on mingw.
35292         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35293         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35294         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35295         * doc/posix-functions/towupper.texi: Likewise.
35296         Reported by Eric Blake.
35297
35298 2009-09-08  Jim Meyering  <meyering@redhat.com>
35299
35300         build: don't try to run autoheader if we don't use it
35301         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35302         is not used in configure.ac.
35303
35304 2009-09-08  Eric Blake  <ebb9@byu.net>
35305
35306         euidaccess: fix compilation error
35307         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35308
35309         rawmemchr: relax license
35310         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35311         okay.
35312         Reported by Jim Meyering.
35313
35314         mkfifoat: new module
35315         * modules/mkfifoat: New file.
35316         * lib/mkfifoat.c: Likewise.
35317         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35319         * modules/sys_stat (Makefile.am): Use them.
35320         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35321         * MODULES.html.sh (File system functions): Mention module.
35322         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35323         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35324         * modules/mkfifoat-tests: New test.
35325         * tests/test-mkfifoat.c: Likewise.
35326
35327         strchrnul: relax license
35328         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35329         okay.
35330         Reported by Jim Meyering.
35331
35332 2009-09-08  Eric Blake  <ebb9@byu.net>
35333
35334         fstatat: fix compilation on Solaris
35335         * lib/fstatat.c (includes): Add fcntl.h.
35336         Reported by Pádraig Brady.
35337
35338 2009-09-07  Eric Blake  <ebb9@byu.net>
35339
35340         rename: modernize replacement
35341         * modules/rename (Depends-on): Add stdio.
35342         (configure.ac): Declare witness.
35343         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35344         stdio take care of replacement.
35345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35346         * modules/stdio (Makefile.am): Substitute them.
35347         * lib/stdio.in.h (rename): Declare replacement.
35348         * lib/rename.c (includes): Allow cross-compilation to non-windows
35349         machines.
35350         * doc/posix-functions/rename.texi (rename): Improve
35351         documentation.
35352
35353         stdio: sort witness names
35354         * modules/stdio (Makefile.am): Sort replacements.
35355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35356         * lib/stdio.in.h: Likewise.
35357
35358         getcwd: minor cleanups
35359         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35360         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35361
35362         openat: provide more convenience names
35363         * modules/faccessat (configure.ac): Add C witness.
35364         * lib/unistd.in.h (readlinkat): Fix typo.
35365         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35366         convenience wrappers.
35367         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35368         wrappers in syntax checks.
35369
35370 2009-09-06  Eric Blake  <ebb9@byu.net>
35371
35372         doc: fix comments in recent patches
35373         * lib/faccessat.c: Mention correct function.
35374         * lib/fchmodat.c: Likewise.
35375         * lib/fchownat.c: Likewise.
35376         * lib/symlinkat.c: Likewise.
35377         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35378         constants.
35379
35380         faccessat, symlinkat: continue cleanup of previous patch
35381         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35382         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35383         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35385         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35386         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35387         set.
35388
35389 2009-09-06  Bruno Haible  <bruno@clisp.org>
35390
35391         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35392         (fstatat): Declare if GNULIB_FSTATAT is set.
35393         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35394         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35395         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35396         * modules/fcntl-h (Files): Remove m4/openat.m4.
35397         * modules/sys_stat (Files): Remove m4/openat.m4.
35398         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35399         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35400         * modules/unistd (Files): Remove m4/openat.m4.
35401         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35402         GNULIB_OPENAT.
35403         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35404         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35405         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35406         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35407         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35408         gl_OPENAT_DEFAULTS.
35409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35410         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35411         Don't require gl_OPENAT_DEFAULTS.
35412         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35413         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35414         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35415         (gl_OPENAT_DEFAULTS): Remove macro.
35416
35417 2009-09-06  Bruno Haible  <bruno@clisp.org>
35418
35419         * modules/openat (configure.ac): Remove unneeded witness.
35420
35421 2009-09-06  Bruno Haible  <bruno@clisp.org>
35422
35423         Set errno to ENOSYS when a function is entirely unsupported.
35424         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35425         EOPNOTSUPP.
35426         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35427         * modules/chown (Depends-on): Remove errno.
35428
35429 2009-09-06  Bruno Haible  <bruno@clisp.org>
35430
35431         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35432
35433 2009-09-06  Bruno Haible  <bruno@clisp.org>
35434
35435         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35436
35437 2009-09-06  Ben Pfaff  <blp@gnu.org>
35438             Bruno Haible  <bruno@clisp.org>
35439
35440         Work around a glibc bug in strtok_r.
35441         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35442         Undefine if UNDEFINE_STRTOK_R is set.
35443         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35445         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35446         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
35447         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
35448         UNDEFINE_STRTOK_R.
35449         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
35450
35451 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
35452
35453         exclude: minor fix
35454         * lib/exclude.c: Include wctype.h
35455
35456 2009-09-06  Akim Demaille  <demaille@gostai.com>
35457
35458         bootstrap: improve error message
35459         * build-aux/bootstrap (find_tool): Upon failure, report the list
35460         of candidates.
35461         Honor the initial value of the envvar.
35462
35463 2009-09-05  Eric Blake  <ebb9@byu.net>
35464
35465         symlinkat: new module
35466         * modules/symlinkat: New file.
35467         * lib/symlinkat.c: Likewise.
35468         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
35469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35470         * modules/unistd (Makefile.am): Use them.
35471         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
35472         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
35473         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
35474         * MODULES.html.sh (File system functions): Mention module.
35475         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35476         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35477         * modules/symlinkat-tests: New test.
35478         * tests/test-symlinkat.c: Likewise.
35479
35480         test-openat-safer: add more checks
35481         * tests/test-openat-safer.c (main): Check more code paths.
35482
35483 2009-09-05  Jim Meyering  <meyering@redhat.com>
35484
35485         syntax-check: detect unnecessary inclusion of openat.h
35486         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
35487
35488 2009-09-05  Bruno Haible  <bruno@clisp.org>
35489
35490         Support towlower, towupper.
35491         * doc/posix-functions/towlower.texi: Mention module wctype.
35492         * doc/posix-functions/towupper.texi: Likewise.
35493         * lib/wctype.in.h (towlower, towupper): New functions.
35494         * tests/test-wctype.c: Include stdio.h, stdlib.h.
35495         (ASSERT): New macro.
35496         (e): New variable.
35497         (main): Test also towlower, towupper. Test WEOF argument.
35498         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
35499
35500 2009-09-05  Bruno Haible  <bruno@clisp.org>
35501
35502         Fix conversion behaviour when the input is invalid.
35503         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
35504         mark occurring in first pass of indirect conversion.
35505         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
35506         input.
35507         Found by clang's static analyzer.
35508
35509 2009-09-05  Bruno Haible  <bruno@clisp.org>
35510
35511         * tests/test-striconveh.c (main): Test indirect conversion on platforms
35512         where direct conversion is possible.
35513
35514 2009-09-04  Eric Blake  <ebb9@byu.net>
35515
35516         openat: fail with ENOENT on empty name
35517         * lib/openat-proc.c (openat_proc_name): Special-case the empty
35518         buffer.
35519
35520         link-follow: fix logic bug in prior patch
35521         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
35522         reversed sense of yes and no in prior patch.  Avoid confusing
35523         compilation failure with desired semantics.
35524
35525         link-follow: accomodate mingw and cross-compilation
35526         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
35527         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
35528         cross-compilation results to -1, to make linkat easier to
35529         implement when cross-compiling.  Trivially support mingw.
35530         * modules/link-follow (configure.ac): Call new name.
35531         * NEWS: Mention this.
35532
35533 2009-09-03  Eric Blake  <ebb9@byu.net>
35534
35535         faccessat: compile replacement
35536         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
35537         needed.
35538
35539         fts: fix compilation error
35540         * lib/fts.c (includes): Re-add "openat.h", for
35541         openat_needs_fchdir.
35542
35543         faccessat: new module
35544         * modules/faccessat: New file.
35545         * lib/faccessat.c: Likewise.
35546         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35548         * modules/unistd (Makefile.am): Use it.
35549         * lib/unistd.in.h (faccessat): Declare it.
35550         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
35551         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
35552         * MODULES.html.sh (File system functions): Mention it.
35553         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
35554         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35555
35556         euidaccess: prefer POSIX over non-standard implementation
35557         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
35558         * lib/euidaccess.c (euidaccess): Use it if available.
35559
35560         openat: make template easier to use
35561         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
35562         AT_FUNC_F2 to be undefined.
35563         (VALIDATE_FLAG): New macro; use it to reject bad flags.
35564         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
35565         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
35566         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
35567         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
35568         Likewise.
35569         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
35570         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
35571         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
35572         Likewise.
35573
35574         openat: declare in POSIX headers
35575         * NEWS: Mention this.
35576         * modules/openat (configure.ac): Declare witnesses.
35577         (Depends-on): Add fcntl-h, sys_stat, unistd.
35578         (Include): Mention correct headers.
35579         * modules/fcntl-h (Depends-on): Add link-warning.
35580         (Files): Add openat.m4.
35581         (Makefile.am): Substitute witnesses.
35582         * modules/sys_stat (Files, Makefile.am): Likewise.
35583         * modules/unistd (Files, Makefile.am): Likewise.
35584         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
35585         (gl_OPENAT_DEFAULTS): New macro.
35586         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
35587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
35588         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
35589         (SYS_STAT_H): Remove unused variable.
35590         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
35591         * lib/fcntl--.h (includes): Remove unneeded header.
35592         * lib/openat-safer.c (includes): Likewise.
35593         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
35594         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
35595         appropriate headers.
35596         (__OPENAT_PREFIX): Delete.
35597         * lib/fcntl.in.h (openat): Provide declaration.
35598         (AT_FDCWD): Fix Solaris bug.
35599         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
35600         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
35601         * lib/fchmodat.c (includes):  Adjust to find declaration.
35602         * lib/fchownat.c (includes): Likewise.
35603         * lib/mkdirat.c (includes): Likewise.
35604         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
35605         still visible.
35606
35607 2009-09-02  Eric Blake  <ebb9@byu.net>
35608
35609         errno: use consistently
35610         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
35611         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
35612         * lib/canonicalize.c (ELOOP): Likewise.
35613         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
35614         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
35615         * lib/lchown.c (EOPNOTSUPP): Likewise.
35616         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
35617         * lib/savewd.c (ESTALE): Likewise.
35618         * lib/settime.c (ENOSYS): Likewise.
35619         * lib/utimens.c (ENOSYS): Likewise.
35620         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
35621         * lib/chdir-safer.c (ELOOP): Likewise.
35622         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
35623         * modules/c-stack (Depends-on): Add errno.
35624         * modules/canonicalize (Depends-on): Likewise.
35625         * modules/chdir-safer (Depends-on): Likewise.
35626         * modules/fdopendir (Depends-on): Likewise.
35627         * modules/inet_ntop (Depends-on): Likewise.
35628         * modules/inet_pton (Depends-on): Likewise.
35629         * modules/lchown (Depends-on): Likewise.
35630         * modules/openat (Depends-on): Likewise.
35631         * modules/savewd (Depends-on): Likewise.
35632         * modules/settime (Depends-on): Likewise.
35633         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
35634
35635         fts: avoid leaking fds
35636         * modules/fts (Depends-on): Add cloexec.
35637         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
35638         flag.
35639
35640         fts: make directory fds more robust
35641         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
35642         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
35643
35644         backupfile, chdir-long, fts, savedir: make safer
35645         * lib/backupfile.c (includes): Use "dirent--.h", since
35646         numbered_backup can write to stderr during readdir.
35647         * lib/savedir.c (includes): Likewise.
35648         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
35649         emulation can write to stderr on failure.
35650         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
35651         * lib/getcwd.c: Document why opendir_safer is unused.
35652         * lib/glob.c: Likewise.
35653         * lib/scandir.c: Likewise.
35654         * lib/openat-proc.c: Likewise, for open_safer.
35655         * modules/backupfile (Depends-on): Add dirent-safer.
35656         * modules/savedir (Depends-on): Likewise.
35657         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
35658         * modules/chdir-long (Depends-on): Add openat-safer.
35659
35660         openat-safer: new module
35661         * modules/openat-safer: New file.
35662         * lib/openat-safer.c: Likewise.
35663         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
35664         * lib/fcntl-safer.h (openat_safer): Declare.
35665         * lib/fcntl--.h (openat): Override.
35666         * MODULES.html.sh (File descriptor based I/O): Mention it.
35667         * lib/openat.h: Add double-inclusion guards.
35668         * lib/openat.c (includes): Only include "fcntl-safer.h", not
35669         "fcntl--.h", so we can implement openat.
35670         * modules/openat-safer-tests: New test.
35671         * tests/test-openat-safer.c: New file.
35672
35673         dirent-safer: new module
35674         * modules/dirent-safer: New file.
35675         * lib/dirent--.h: Likewise.
35676         * lib/dirent-safer.h: Likewise.
35677         * lib/opendir-safer.c: Likewise.
35678         * m4/dirent-safer.m4: Likewise.
35679         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
35680         * modules/dirent-safer-tests: New test.
35681         * tests/test-dirent-safer.c: New file.
35682         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
35683
35684         fdopendir: optimize on mingw
35685         * lib/unistd.in.h (_gl_directory_name): New prototype.
35686         * lib/fchdir.c (_gl_directory_name): Implement it.
35687         (fchdir): Use it to simplify implementation.
35688         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
35689         fchdir, when available, to avoid calling [f]chdir().
35690
35691         fdopendir: split into its own module
35692         * lib/openat.c (fdopendir): Move...
35693         * lib/fdopendir.c: ...into new file.
35694         * modules/fdopendir: New module.
35695         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
35696         * modules/openat (Depends-on): Add fdopendir.
35697         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
35698         fdopendir here.
35699         * modules/savedir (Depends-on): Only need fdopendir, not full
35700         openat.
35701         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
35702         * lib/openat.h (fdopendir): Drop prototype.
35703         * lib/dirent.in.h (fdopendir): Provide prototype.
35704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
35705         * modules/dirent (Makefile.am): Substitute them.
35706         * MODULES.html.sh (File system functions): Mention it.
35707         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
35708         * modules/fdopendir-tests: New file.
35709         * tests/test-fdopendir.c: Likewise.
35710
35711         fchdir: use more consistent macro convention
35712         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
35713         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
35714         REPLACE_FCHDIR, rather than relying on config.h macros.
35715         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
35716         inside a single make-time REPLACE_FCHDIR block, rather than using
35717         the config.h FCHDIR_REPLACEMENT.
35718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
35719         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
35720         Manage fstat replacement.
35721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
35722         REPLACE_FCHDIR.
35723         * modules/sys_stat (Files): Add m4/unistd_h.m4.
35724         (Makefile.am): Substitute REPLACE_FCHDIR.
35725         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
35726         FCHDIR_REPLACEMENT.
35727         * lib/dup-safer.c (dup_safer): Likewise.
35728         * lib/dup2.c (rpl_dup2): Likewise.
35729         * lib/dup3.c (rpl_dup3): Likewise.
35730         * lib/open.c (rpl_open): Likewise.
35731
35732         fchdir: simplify error handling, and support dup3
35733         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
35734         stdbool, malloc-posix, realloc-posix.
35735         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
35736         (ensure_dirs_slot): Return false on allocation failure.
35737         (rpl_dup2): Delete.
35738         (_gl_register_dup): New function.
35739         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
35740         (_gl_register_fd): Close fd on allocation failure.
35741         * lib/fcntl.in.h (_gl_register_fd): Update signature.
35742         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
35743         prototype.
35744         (rpl_dup2_fchdir): Delete prototype.
35745         * lib/open.c (open): Update caller.
35746         * lib/dup2.c (dup2): Track fchdir metadata.
35747         * lib/dup3.c (dup3): Likewise.
35748         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
35749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
35750
35751 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35752
35753         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
35754         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
35755         don't pass arguments to AC_OUTPUT.
35756
35757 2009-09-02  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/mkdtemp (License): Relicense under LGPLv2+.
35760         Reported by Paolo Bonzini.
35761
35762 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35763
35764         Replace uses of obsolete autoconf macros in Jim's modules.
35765         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
35766         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
35767         can evoke a warning from autoconf when run with -Wobsolete
35768         enabled.  They were declared obsolete for good reasons (see
35769         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
35770         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
35771         should not continue using the deprecated macros.
35772         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
35773         obsolete Autoconf macros with modern counterparts.
35774         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
35775         * m4/dos.m4 (gl_AC_DOS): Likewise.
35776         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
35777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
35778         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
35779         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
35780         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
35781         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
35782         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
35783         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
35784         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35785         Likewise.
35786         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
35787         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35788         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
35789         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
35790         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35791         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35792
35793 2009-09-01  Eric Blake  <ebb9@byu.net>
35794
35795         fchdir: fix off-by-one bug in previous patch
35796         * lib/fchdir.c (rpl_fstat): Use correct bounds.
35797         (_gl_unregister_fd): Delete useless if.
35798
35799 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
35800
35801         maint.mk: sort the list of syntax-check rules
35802         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
35803         easier to get a sense of progress when the rules are run sequentially
35804         and take a long time.
35805
35806 2009-09-01  Simon Josefsson  <simon@josefsson.org>
35807
35808         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
35809         * modules/netinet_in: Likewise.
35810         * modules/sys_file: Likewise.
35811         * modules/sys_ioctl: Likewise.
35812         * modules/sys_select: Likewise.
35813         * modules/sys_socket: Likewise.
35814         * modules/sys_stat: Likewise.
35815         * modules/sys_time: Likewise.
35816         * modules/sys_times: Likewise.
35817         * modules/sys_utsname: Likewise.
35818         * modules/sys_wait: Likewise.
35819
35820 2009-09-01  Jim Meyering  <meyering@redhat.com>
35821
35822         fts: help ensure that return values are not ignored
35823         * lib/fts_.h (__GNUC_PREREQ): Define.
35824         (__attribute_warn_unused_result__): Define.
35825         (fts_children, fts_close, fts_open, fts_read): Declare with
35826         __attribute_warn_unused_result__.
35827
35828         fts: fts_close now fails also when closing a dir file descriptor fails
35829         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
35830         and propagate to caller, along with errno.
35831
35832         announce-gen: correct formatting in --help output
35833         * build-aux/announce-gen (usage): Move the one-line description in
35834         --help output "up", to where it belongs, just after Usage:.
35835
35836 2009-08-31  Eric Blake  <ebb9@byu.net>
35837
35838         fchdir: port to mingw
35839         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
35840         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
35841         opened, then use a substitute.
35842         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
35843         replacement.
35844         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
35845         (_gl_register_fd): No need to check stat if open already filters
35846         all directories.
35847         (fchdir): Fix error condition to match POSIX.
35848         * modules/fchdir (Depends-on): Add sys_stat.
35849         * doc/posix-functions/open.texi (open): Document the limitation.
35850         * modules/fchdir-tests: New file.
35851         * tests/test-fchdir.c: Likewise.
35852
35853         canonicalize: allow cross-testing from cygwin to mingw
35854         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
35855         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
35856         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
35857         Likewise.
35858         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
35859         target does not support symlinks.
35860         * tests/test-canonicalize-lgpl.sh: Likewise.
35861
35862         chown: avoid compilation warning on mingw
35863         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
35864         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
35865         mingw.
35866         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35867         * modules/chown (Depends-on): Add errno.
35868
35869 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
35870
35871         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
35872         command.
35873
35874 2009-08-31  Jim Meyering  <meyering@redhat.com>
35875
35876         canonicalize: remove useless initialization
35877         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
35878         initialization of local, "end".
35879
35880 2009-08-30  Bruno Haible  <bruno@clisp.org>
35881
35882         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
35883         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
35884         ENOSYS.
35885
35886 2009-08-30  Bruno Haible  <bruno@clisp.org>
35887
35888         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
35889         /usr/xpg4/bin/tr when it exists.
35890         * tests/test-pipe-filter-gi1.sh: Likewise.
35891
35892 2009-08-30  Bruno Haible  <bruno@clisp.org>
35893
35894         Work around deficient /usr/bin/id program on Solaris.
35895         * tests/test-file-has-acl.sh (ID): New variable.
35896         * tests/test-set-mode-acl.sh (ID): Likewise.
35897         * tests/test-copy-acl.sh (ID): Likewise.
35898         * tests/test-copy-file.sh (ID): Likewise.
35899
35900 2009-08-30  Bruno Haible  <bruno@clisp.org>
35901
35902         New module 'xstriconveh'.
35903         * lib/xstriconveh.h: New file.
35904         * lib/xstriconveh.c: New file.
35905         * modules/xstriconveh: New file.
35906
35907 2009-08-30  Bruno Haible  <bruno@clisp.org>
35908
35909         Make it easier to use mem_cd_iconveh.
35910         * lib/striconveh.h (iconveh_t): New type.
35911         (iconveh_open, iconveh_close): New declarations.
35912         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35913         with a single 'const iconveh_t *' argument.
35914         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
35915         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
35916         with a single 'const iconveh_t *' argument.
35917         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
35918         * tests/test-striconveh.c (main): Update.
35919         * NEWS: Mention the change.
35920
35921 2009-08-30  Bruno Haible  <bruno@clisp.org>
35922
35923         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
35924         problem.
35925
35926 2009-08-30  Bruno Haible  <bruno@clisp.org>
35927
35928         Work around iconv_open problem on Solaris.
35929         * lib/iconv_open-solaris.gperf: New file.
35930         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
35931         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
35932         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
35933         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
35934         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
35935         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
35936
35937 2009-08-29  Jim Meyering  <meyering@redhat.com>
35938
35939         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
35940         * top/maint.mk (cvs-check): Remove target; it was just an alias
35941         to the better-named vc-diff-check.
35942         (maintainer-distcheck): Remove rule.  It was used only from
35943         the (alpha/beta/major) target, and all of its commands but one
35944         were coreutils-specific.
35945         (vc-dist): Remove rule.
35946         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
35947         Run vc-diff-check, not vc-dist.
35948         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
35949
35950 2009-08-27  Bruno Haible  <bruno@clisp.org>
35951
35952         * tests/test-bitrotate.c (main): Remove test that uses a shift count
35953         of 0.
35954
35955 2009-08-27  Bruno Haible  <bruno@clisp.org>
35956
35957         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
35958         compilers.
35959         * doc/func.texi: Document the SunPRO C bug.
35960
35961 2009-08-27  Bruno Haible  <bruno@clisp.org>
35962
35963         Fix link error on Solaris.
35964         * tests/test-parse-duration.c (xstrdup): Remove function.
35965
35966 2009-08-26  Pádraig Brady  <P@draigbrady.com>
35967
35968         ignore-value: handle pointer types, too
35969         * lib/ignore-value.h (__attribute__): Remove definition.
35970         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
35971         of a more concise and more-often effective "(void) i" statement.
35972         (ignore_ptr): New function to suppress warnings from functions that
35973         return pointers, and to make it explicit that one function doesn't
35974         handle all cases.
35975
35976 2009-08-25  Bruno Haible  <bruno@clisp.org>
35977
35978         dup2: work around a Linux bug.
35979         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
35980         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
35981         * doc/posix-functions/dup2.texi: Mention the Linux bug.
35982         Reported by Simon Josefsson.
35983
35984 2009-08-25  Jim Meyering  <meyering@redhat.com>
35985
35986         libguestfs uses gnulib
35987         * users.txt: Add libguestfs.
35988
35989 2009-08-24  Eric Blake  <ebb9@byu.net>
35990
35991         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
35992         * lib/pipe2.c (includes): Add binary-io.h.
35993         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
35994
35995 2009-08-24  Bruno Haible  <bruno@clisp.org>
35996
35997         Tolerate declared but missing accept4 syscall.
35998         * lib/accept4.c (accept4): Invoke original accept4 function first, if
35999         available.
36000         * lib/sys_socket.in.h (accept4): If the function is already present,
36001         override it.
36002         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36003         * modules/accept4 (Makefile.am): Compile accept4.c always.
36004         Reported by Paolo Bonzini and Eric Blake.
36005
36006 2009-08-23  Bruno Haible  <bruno@clisp.org>
36007
36008         New module 'accept4'.
36009         * lib/sys_socket.in.h (accept4): New declaration.
36010         * lib/accept4.c: New file.
36011         * m4/accept4.m4: New file.
36012         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36013         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36014         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36015         HAVE_ACCEPT4.
36016         * modules/accept4: New file.
36017         * doc/glibc-functions/accept4.texi: Mention the new module.
36018
36019 2009-08-24  Jim Meyering  <meyering@redhat.com>
36020
36021         progname: also set global program_invocation_name, when possible
36022         Before this change, a libtool-enabled program that calls glibc's
36023         error function would report the program name as
36024         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36025         * modules/progname (configure.ac): Check for a declaration of
36026         program_invocation_name.
36027         * lib/progname.c:  Include <errno.h>.
36028         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36029         Set program_invocation_name.
36030
36031 2009-08-23  Bruno Haible  <bruno@clisp.org>
36032
36033         * lib/dup3.c: Include <string.h>.
36034
36035 2009-08-23  Bruno Haible  <bruno@clisp.org>
36036
36037         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36038         * lib/pipe2.c (pipe2): Likewise.
36039         Suggested by Eric Blake.
36040
36041 2009-08-23  Bruno Haible  <bruno@clisp.org>
36042
36043         Tolerate declared but missing dup3 syscall.
36044         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36045         * lib/unistd.in.h (dup3): If the function is already present,
36046         override it.
36047         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36048         * modules/dup3 (Makefile.am): Compile dup3.c always.
36049         Reported by Paolo Bonzini.
36050
36051 2009-08-23  Bruno Haible  <bruno@clisp.org>
36052
36053         Tolerate declared but missing pipe2 syscall.
36054         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36055         available.
36056         * lib/unistd.in.h (pipe2): If the function is already present,
36057         override it.
36058         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36059         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36060         Reported by Paolo Bonzini.
36061
36062 2009-08-23  Bruno Haible  <bruno@clisp.org>
36063
36064         * lib/pipe2.c (pipe2): Move #ifs inside function.
36065
36066 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36067
36068         quotearg: document limitations of quote_these_too
36069         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36070         those limitations are created.
36071         * lib/quotearg.h (set_char_quoting): Document that digits and
36072         letters that are special after backslash are not permitted.
36073         (quotearg_char): Cross-reference set_char_quoting documentation.
36074
36075 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36076
36077         quotearg: implement custom_quoting_style
36078         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36079         right_quote fields.
36080         (set_custom_quoting): New public function.
36081         (quotearg_buffer_restyled): Add left_quote and right_quote
36082         arguments, handle them very much like locale quoting, and update
36083         all uses.
36084         (quotearg_n_custom): New public function.
36085         (quotearg_n_custom_mem): New public function.
36086         (quotearg_custom): New public function.
36087         (quotearg_custom_mem): New public function.
36088         * lib/quotearg.h: Prototype and document new public functions.
36089         (enum quoting_style): For escape_quoting_style and
36090         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36091         ignored even though they're otherwise like c_quoting_style.
36092         Add custom_quoting_style member and document with comparison to
36093         clocale_quoting_style.
36094         * tests/test-quotearg.c (custom_quotes): New array.
36095         (custom_results): New array.
36096         (main): Extend to test custom quoting.
36097
36098 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36099
36100         quotearg: fix right quote escaping when it's in quote_these_too
36101         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36102         quote, be sure to prepend only one backslash.
36103         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36104         (main): Test it.
36105
36106 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36107
36108         quotearg-tests: test escaping of embedded locale quotes
36109         * tests/test-quotearg.c (struct result_strings): Add member for
36110         new input.
36111         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36112         (inputs): Add new input.
36113         (results_g): Add expected results.
36114         (flag_results): Likewise.
36115         (locale_results): Likewise.
36116         (compare_strings): Check those.
36117
36118 2009-08-23  Bruno Haible  <bruno@clisp.org>
36119
36120         Tests for module 'dup3'.
36121         * modules/dup3-tests: New file.
36122         * tests/test-dup3.c: New file.
36123
36124         New module 'dup3'.
36125         * lib/unistd.in.h (dup3): New declaration.
36126         * lib/dup3.c: New file.
36127         * m4/dup3.m4: New file.
36128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36129         HAVE_DUP3.
36130         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36131         * modules/dup3: New file.
36132         * doc/glibc-functions/dup3.texi: Mention the new module.
36133
36134 2009-08-23  Bruno Haible  <bruno@clisp.org>
36135
36136         Tweak the dup2 test.
36137         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36138         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36139         the test file is still empty. Fix argument order of lseek.
36140
36141 2009-08-23  Bruno Haible  <bruno@clisp.org>
36142
36143         Avoid test link errors when the modules getopt-gnu, gettext are used.
36144         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36146
36147 2009-08-23  Bruno Haible  <bruno@clisp.org>
36148
36149         Fix getdtablesize() on mingw.
36150         * lib/getdtablesize.c (getdtablesize): Implement differently.
36151         * lib/unistd.in.h (getdtablesize): Improve comment.
36152
36153 2009-08-23  Bruno Haible  <bruno@clisp.org>
36154
36155         New module 'mkostemp'.
36156         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36157         * lib/stdlib.in.h (mksotemp): New declaration.
36158         * lib/mkostemp.c: New file, from glibc with modifications.
36159         * lib/tempname.h (GT_FILE): Remove outdated comment.
36160         (gen_tempname): Add flags argument.
36161         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36162         (__GT_FILE): Map to 1.
36163         (small_open, large_open): Remove macros.
36164         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36165         * lib/mkstemp.c (mkstemp): Update.
36166         * lib/mkdtemp.c (mkdtemp): Likewise.
36167         * m4/mkostemp.m4: New file.
36168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36169         HAVE_MKOSTEMP.
36170         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36171         HAVE_MKOSTEMP.
36172         * modules/mkostemp: New file, based on modules/mkstemp.
36173         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36174         * NEWS: Mention the change.
36175
36176 2009-08-23  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36179         Reported by Eric Blake.
36180
36181 2009-08-23  Bruno Haible  <bruno@clisp.org>
36182
36183         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36184         Reported by Eric Blake.
36185
36186 2009-08-23  Bruno Haible  <bruno@clisp.org>
36187
36188         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36189         * modules/pipe2 (Depends-on): Likewise.
36190
36191 2009-08-23  Eric Blake  <ebb9@byu.net>
36192
36193         fcntl-h: add O_TTY_INIT support
36194         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36195         * tests/test-fcntl-h.c (o): Test it.
36196         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36197
36198         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36199         * modules/fcntl: Move <fcntl.h> header replacement...
36200         * modules/fcntl-h: ...to new name, so as not to collide with
36201         like-named function.
36202         * tests/test-fcntl.c: Rename...
36203         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36204         * modules/fcntl-tests: Rename...
36205         * modules/fcntl-h-tests: ...to this.  Update test file name.
36206         * modules/chdir-long (Depends-on): Update clients.
36207         * modules/chdir-safer (Depends-on): Likewise.
36208         * modules/fcntl-safer (Depends-on): Likewise.
36209         * modules/fts (Depends-on): Likewise.
36210         * modules/mkancesdirs (Depends-on): Likewise.
36211         * modules/mkdir-p (Depends-on): Likewise.
36212         * modules/open (Depends-on): Likewise.
36213         * modules/savewd (Depends-on): Likewise.
36214         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36215         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36216
36217 2009-08-22  Bruno Haible  <bruno@clisp.org>
36218
36219         * modules/binary-io (License): Relicense under LGPL.
36220         * modules/pipe2 (License): Likewise.
36221
36222 2009-08-22  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36225         return value.
36226         * lib/pipe-filter-gi.c (filter_init): Likewise.
36227         Reported by Eric Blake.
36228
36229 2009-08-22  Bruno Haible  <bruno@clisp.org>
36230
36231         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36232         * modules/pipe (Depends-on): Add pipe2.
36233
36234 2009-08-22  Bruno Haible  <bruno@clisp.org>
36235
36236         Tests for module 'pipe2'.
36237         * modules/pipe2-tests: New file.
36238         * tests/test-pipe2.c: New file.
36239
36240         New module 'pipe2'.
36241         * lib/unistd.in.h (pipe2): New declaration.
36242         * lib/pipe2.c: New file.
36243         * m4/pipe2.m4: New file.
36244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36245         HAVE_PIPE2.
36246         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36247         * modules/pipe2: New file.
36248         * doc/glibc-functions/pipe2.texi: Mention the new module.
36249
36250 2009-08-22  Bruno Haible  <bruno@clisp.org>
36251
36252         Reference some new glibc functions.
36253         * doc/glibc-functions/accept4.texi: New file.
36254         * doc/glibc-functions/dup3.texi: New file.
36255         * doc/glibc-functions/mkostemp.texi: New file.
36256         * doc/glibc-functions/pipe2.texi: New file.
36257         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36258         (Glibc sys/socket.h): Refer to accept4.
36259         (Glibc unistd.h): Refer to dup3, pipe2.
36260         Reported by Eric Blake.
36261
36262 2009-08-22  Jim Meyering  <meyering@redhat.com>
36263             Bruno Haible  <bruno@clisp.org>
36264
36265         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36266         This makes it so packages using automake-1.11's silent-rules option
36267         can print e.g., a single "GEN    configmake.h" line, rather than
36268         the 30+ statements that perform the job.  If you want to see the
36269         actual commands, you can still run "make V=1".
36270         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36271         so that make output is abbreviated when those variables are defined
36272         appropriately.
36273         * modules/argz: Likewise.
36274         * modules/arpa_inet: Likewise.
36275         * modules/byteswap: Likewise.
36276         * modules/configmake: Likewise.
36277         * modules/dirent: Likewise.
36278         * modules/errno: Likewise.
36279         * modules/fcntl: Likewise.
36280         * modules/float: Likewise.
36281         * modules/fnmatch: Likewise.
36282         * modules/getopt-posix: Likewise.
36283         * modules/glob: Likewise.
36284         * modules/iconv_open: Likewise.
36285         * modules/inttypes: Likewise.
36286         * modules/localcharset: Likewise.
36287         * modules/locale: Likewise.
36288         * modules/math: Likewise.
36289         * modules/netdb: Likewise.
36290         * modules/netinet_in: Likewise.
36291         * modules/poll: Likewise.
36292         * modules/posix_spawnp-tests: Likewise.
36293         * modules/sched: Likewise.
36294         * modules/search: Likewise.
36295         * modules/selinux-h: Likewise.
36296         * modules/signal: Likewise.
36297         * modules/spawn: Likewise.
36298         * modules/stdarg: Likewise.
36299         * modules/stdbool: Likewise.
36300         * modules/stddef: Likewise.
36301         * modules/stdint: Likewise.
36302         * modules/stdio: Likewise.
36303         * modules/stdlib: Likewise.
36304         * modules/string: Likewise.
36305         * modules/strings: Likewise.
36306         * modules/sys_file: Likewise.
36307         * modules/sys_ioctl: Likewise.
36308         * modules/sys_select: Likewise.
36309         * modules/sys_socket: Likewise.
36310         * modules/sys_stat: Likewise.
36311         * modules/sys_time: Likewise.
36312         * modules/sys_times: Likewise.
36313         * modules/sys_utsname: Likewise.
36314         * modules/sys_wait: Likewise.
36315         * modules/sysexits: Likewise.
36316         * modules/time: Likewise.
36317         * modules/unistd: Likewise.
36318         * modules/wchar: Likewise.
36319         * modules/wctype: Likewise.
36320
36321 2009-08-22  Jim Meyering  <meyering@redhat.com>
36322
36323         announce-gen: detect write failure
36324         * build-aux/announce-gen: Add Coda at end.
36325         Remove equivalent-but-more-verbose block at top.
36326
36327 2009-08-19  Akim Demaille  <demaille@gostai.com>
36328
36329         bootstrap: --help to stdout.
36330         * bootstrap (usage): Don't send --help to stderr.
36331         Use a here doc instead of a long string.
36332
36333 2009-08-21  Eric Blake  <ebb9@byu.net>
36334
36335         test-popen-safer: split from test-popen
36336         * tests/test-popen.c (main): Move...
36337         * tests/test-popen.h: ...into new file.
36338         * tests/test-popen-safer2.c: New file.
36339         * modules/popen-tests (Files): Add test-popen.h.
36340         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36341         Suggested by Bruno Haible.
36342
36343         test-fcntl-safer: split from test-open
36344         * tests/test-open.c (main): Move...
36345         * tests/test-open.h: ...into new file.
36346         * tests/test-fcntl-safer.c: New file.
36347         * modules/open-tests (Files): Add test-open.h.
36348         * modules/fcntl-safer-tests: New file.
36349         Suggested by Bruno Haible.
36350
36351         test-fopen-safer: split from test-fopen
36352         * tests/test-fopen.c (main): Move...
36353         * tests/test-fopen.h: ...into new file.
36354         * tests/test-fopen-safer.c: New file.
36355         * modules/fopen-tests (Files): Add test-fopen.h.
36356         * modules/fopen-safer-tests: New file.
36357         Suggested by Bruno Haible.
36358
36359 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36360
36361         popen-safer: test O_CLOEXEC at run-time.
36362         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36363
36364 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36365
36366         fcntl: move more flags to the header
36367         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36368         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36369         * lib/fcntl.in.h: Do both things here.
36370
36371 2009-08-21  Jim Meyering  <meyering@redhat.com>
36372
36373         consistently remove $@-t before redirecting to it
36374         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36375         * modules/alloca-opt: Likewise.
36376         * modules/byteswap: Likewise.
36377         * modules/fnmatch: Likewise.
36378         * modules/getopt-posix: Likewise.
36379         * modules/glob: Likewise.
36380         * modules/poll: Likewise.
36381         * modules/posix_spawnp-tests: Likewise.
36382         * modules/sys_socket: Likewise.
36383         * modules/sysexits: Likewise.
36384
36385 2009-08-21  Eric Blake  <ebb9@byu.net>
36386
36387         popen: simplify access to original popen
36388         * lib/popen.c (rpl_popen): No need to worry about popen being a
36389         macro.
36390         Reported by Bruno Haible.
36391
36392 2009-08-20  Eric Blake  <ebb9@byu.net>
36393
36394         build: avoid some compiler warnings
36395         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36396         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36397         type.
36398         (new_exclude_segment, excluded_file_pattern_p)
36399         (excluded_file_name_p): Reduce scope.
36400         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36401         old-style declaration.
36402
36403 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36404
36405         * tests/test-exclude1.sh: Handle Windows EOL.
36406         * tests/test-exclude2.sh: Likewise.
36407         * tests/test-exclude3.sh: Likewise.
36408         * tests/test-exclude4.sh: Likewise.
36409         * tests/test-exclude5.sh: Likewise.
36410         * tests/test-exclude6.sh: Likewise.
36411         * tests/test-exclude7.sh: Likewise.
36412
36413 2009-08-19  Akim Demaille  <demaille@gostai.com>
36414
36415         bootstrap: find sha1sum when named gsha1sum.
36416         * bootstrap (find_tool): New.
36417         ($SHA1SUM): New.
36418         Use it.
36419
36420 2009-08-20  Jim Meyering  <meyering@redhat.com>
36421
36422         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36423         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36424         expression that converts "." in a file name to "\." in the resulting
36425         regexp.  Start with a dummy statement, so that prior shell variable
36426         definitions are expanded portably.  Reported by Simon Josefsson.
36427
36428 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36429
36430         Fix polling for writeability of a screen buffer.
36431         * lib/poll.c: Distinguish input and screen buffers for the
36432         Win32 implementation.
36433         * lib/select.c: Likewise.
36434
36435 2009-08-19  Eric Blake  <ebb9@byu.net>
36436
36437         popen-safer: prevent popen from clobbering std descriptors
36438         * modules/popen-safer: New file.
36439         * lib/popen-safer.c: Likewise.
36440         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36441         * lib/stdio--.h (popen): Provide override.
36442         * lib/stdio-safer.h (popen_safer): Provide declaration.
36443         * tests/test-popen.c (includes): Partially test this.
36444         * modules/popen-safer-tests: New file, for more tests.
36445         * tests/test-popen-safer.c: Likewise.
36446         * MODULES.html.sh (file stream based Input/Output): Mention it.
36447
36448         tests: test some of the *-safer modules
36449         * modules/fopen-safer (Depends-on): Add fopen.
36450         * modules/fcntl-safer (Depends-on): Add fcntl.
36451         * modules/stdlib-safer (Depends-on): Add stdlib.
36452         (configure.ac): Set indicator.
36453         * modules/unistd-safer (configure.ac): Likewise.
36454         * modules/tmpfile-safer (configure.ac): Likewise.
36455         (Depends-on): Add tmpfile.
36456         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
36457         active.
36458         * tests/test-fopen.c (includes): Test safer versions when they are
36459         in use.
36460         * tests/test-open.c (includes): Likewise.
36461
36462         popen: fix cygwin 1.5 bug when stdin closed
36463         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
36464         * modules/popen: New file.
36465         * modules/popen-tests: Likewise.
36466         * tests/test-popen.c: Likewise.
36467         * m4/popen.m4: Likewise.
36468         * lib/popen.c: Likewise.
36469         * lib/stdio.in.h (popen): New declaration.
36470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
36471         * modules/stdio (Makefile.am): Likewise.
36472         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
36473
36474 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
36475
36476         maint.mk: give full control over update-copyright exclusions
36477         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
36478         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
36479         (update-copyright): Don't force inclusion of top-level
36480         ChangeLog.  Don't force exclusion of all COPYING files, but make
36481         them the default exclusion instead.
36482
36483 2009-08-16  Bruno Haible  <bruno@clisp.org>
36484
36485         Fix test failures on Solaris 10.
36486         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
36487         tests when Solaris iconv() is used.
36488         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36489         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36490         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36491         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36492         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36493
36494 2009-08-16  Bruno Haible  <bruno@clisp.org>
36495
36496         Fix test failures on Solaris 10.
36497         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
36498         'tr' program and pass it as first argument.
36499         * tests/test-pipe-filter-gi1.sh: Likewise.
36500         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
36501         program as first argument.
36502         * tests/test-pipe-filter-gi1.c (main): Likewise.
36503
36504 2009-08-16  Eric Blake  <ebb9@byu.net>
36505
36506         fpurge: fix previous commits
36507         * modules/fpurge (Makefile.am): Make replacement conditional,
36508         partially reverting 2007-04-29 change; missed in previous
36509         attempt.
36510         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
36511         is missing.
36512
36513 2009-08-16  Bruno Haible  <bruno@clisp.org>
36514
36515         Clarify fpurge's effect on the file position.
36516         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
36517         * tests/test-fpurge.c (main): Make a second pass for checking the file
36518         position.
36519
36520 2009-08-16  Bruno Haible  <bruno@clisp.org>
36521
36522         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
36523         declaration of fpurge is missing.
36524         * tests/test-fpurge.c (main): Check that the file has not more contents
36525         than expected. Close the file before removing it.
36526
36527 2009-08-15  Eric Blake  <ebb9@byu.net>
36528
36529         fpurge: don't wrap working cygwin implementation
36530         * lib/fpurge.c (fpurge): Fix comment typo.
36531         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
36532         1.7 to avoid replacement.
36533         * tests/test-fpurge.c (main): Enhance test.
36534
36535 2009-08-15  Eric Blake  <ebb9@byu.net>
36536         and Jim Meyering  <meyering@redhat.com>
36537
36538         test-update-copyright: skip if perl is insufficient
36539         * tests/test-update-copyright.sh: Failure to run maintainer tool
36540         should not cause testsuite failure on cygwin 1.5.
36541
36542 2009-08-14  Eric Blake  <ebb9@byu.net>
36543
36544         doc: mention more functions added in cygwin 1.7.0
36545         * doc/posix-headers/limits.texi (limits.h): Update for recent
36546         cygwin additions.
36547         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
36548         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36549         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
36550         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
36551         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
36552
36553 2009-08-14  Eric Blake  <ebb9@byu.net>
36554
36555         maint.mk: simplify update-copyright rule
36556         * top/maint.mk (update-copyright-local): Delete, and document how
36557         to do it in cfg.mk instead.
36558         (update-copyright-exclude-regexp): Delete, and document how to do
36559         it in .x-update-copyright instead.
36560         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
36561         exclude ChangeLog.
36562
36563 2009-08-14  Bruno Haible  <bruno@clisp.org>
36564
36565         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
36566
36567 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36568
36569         maint.mk: support update-copyright-env
36570         * top/maint.mk (update-copyright-env): Define place-holder.
36571         (update-copyright): Expand $(update-copyright-env) before
36572         invoking update-copyright.
36573
36574 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36575
36576         update-copyright: implement forced reformatting
36577         * build-aux/update-copyright: Implement and document
36578         UPDATE_COPYRIGHT_FORCE.
36579         * tests/test-update-copyright.sh: Test it.
36580
36581 2009-08-14  Eric Blake  <ebb9@byu.net>
36582         and Bruno Haible  <bruno@clisp.org>
36583
36584         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
36585         * tests/test-locale.c: Revert previous patch related to NULL.
36586         * tests/test-stdio.c: Likewise.
36587         * tests/test-stdlib.c: Likewise.
36588         * tests/test-string.c: Likewise.
36589         * tests/test-unistd.c: Likewise.
36590         * modules/time-tests (Depends-on): Add verify.
36591         * modules/wchar-tests (Depends-on): Likewise.
36592         * tests/test-time.c: Test for NULL compliance.
36593         * tests/test-wchar.c: Likewise.
36594         * modules/locale (Depends-on): Add stddef.
36595         * modules/stdio (Depends-on): Likewise.
36596         * modules/stdlib (Depends-on): Likewise.
36597         * modules/string (Depends-on): Likewise.
36598         * modules/time (Depends-on): Likewise.
36599         * modules/unistd (Depends-on): Likewise.
36600         * modules/wchar (Depends-on): Likewise.
36601         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
36602         * lib/stdlib.in.h (includes): Likewise.
36603         * lib/string.in.h (includes): Likewise.
36604         * lib/time.in.h (includes): Likewise.
36605         * lib/unistd.in.h (includes): Likewise.
36606         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
36607         replaced.
36608         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36609         * m4/stddef_h.m4: New file.
36610         * modules/stddef: Likewise.
36611         * lib/stddef.in.h: Likewise.
36612         * modules/stddef-tests: Likewise.
36613         * tests/test-stddef.c: Likewise.
36614         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
36615         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
36616         * doc/posix-headers/locale.texi (locale.h): Likewise.
36617         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
36618         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
36619         * doc/posix-headers/string.texi (string.h): Likewise.
36620         * doc/posix-headers/time.texi (time.h): Likewise.
36621         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
36622         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
36623
36624 2009-08-14  Eric Blake  <ebb9@byu.net>
36625
36626         doc: improve git diff of texinfo files
36627         * .gitattributes: Add rule for *.texi files, with hint on how to
36628         use it.
36629         Copied from m4, and based on a report by Bruno Haible.
36630
36631 2009-08-14  Bruno Haible  <bruno@clisp.org>
36632
36633         Disable multithread support by default on Cygwin 1.5.x for real.
36634         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
36635
36636 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
36637
36638         update-copyright: much ado about intervals
36639         * build-aux/update-copyright: Implement and document
36640         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
36641         of copyright year intervals.
36642         Also, document UPDATE_COPYRIGHT_YEAR.
36643         * tests/test-update-copyright.sh: Test it.
36644
36645         update-copyright: convert 2-digit to 4-digit years
36646         * build-aux/update-copyright: Implement and document.
36647         * tests/test-update-copyright.sh: Update.
36648
36649 2009-08-14  Jim Meyering  <meyering@redhat.com>
36650
36651         test-exclude: avoid coreutils "make check" failure
36652         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
36653         just as in test-argmatch.c.
36654
36655 2009-08-13  Eric Blake  <ebb9@byu.net>
36656
36657         test-dup2: fix bad assumption
36658         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
36659         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
36660
36661         test-version-etc: fix CRLF portability issue
36662         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
36663         recognize \r.
36664         * tests/test-argp-version-etc-1.sh: Likewise.
36665
36666         getopt: update client modules
36667         * modules/argp (Depends-on): Use getopt-gnu.
36668         * modules/git-merge-changelog (Depends-on): Likewise.
36669         * modules/long-options (Depends-on): Likewise.
36670         * modules/xstrtol (Depends-on): Likewise.
36671
36672 2009-08-13  Simon Josefsson  <simon@josefsson.org>
36673
36674         * tests/test-version-etc.sh: Don't fail on different
36675         project/version.  Don't fail on CRLF differences.  Rewrite to use
36676         multiple -e instead of multiple sed forks, suggested by Eric Blake
36677         <ebb9@byu.net>.
36678         * tests/test-argp-version-etc-1.sh: 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.
36684
36685 2009-08-12  Bruno Haible  <bruno@clisp.org>
36686
36687         Tests for modules 'getopt-posix', 'getopt-gnu'.
36688         * modules/getopt-posix-tests: New file.
36689         * tests/test-getopt.c: New file.
36690         * tests/test-getopt.h: New file.
36691         * tests/test-getopt_long.h: New file.
36692
36693         New modules 'getopt-posix', 'getopt-gnu'.
36694         * modules/getopt-gnu: New file, renamed from modules/getopt.
36695         * modules/getopt-posix: New file.
36696         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
36697         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
36698         (gl_GETOPT): Remove macro.
36699         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
36700         Disable the test against BSD systems that declare optreset. Test
36701         against mingw bug. Test against lack of support of optional arguments
36702         on many platforms.
36703         * doc/glibc-headers/getopt.texi: Update module name and list of
36704         relevant platforms.
36705         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
36706         'getopt-gnu' and more portability problems.
36707         * NEWS: Mention the changes.
36708
36709 2009-08-12  Bruno Haible  <bruno@clisp.org>
36710
36711         Ensure that optarg etc. get declared by <unistd.h>.
36712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
36713         AC_USE_SYSTEM_EXTENSIONS.
36714         * modules/getopt (Depends-on): Add 'extensions'.
36715
36716 2009-08-12  Bruno Haible  <bruno@clisp.org>
36717
36718         Avoid test link errors.
36719         * modules/pipe-filter-ii-tests (Makefile.am): Define
36720         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
36721         * modules/pipe-filter-gi-tests (Makefile.am): Define
36722         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
36723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36724
36725 2009-08-12  Bruno Haible  <bruno@clisp.org>
36726
36727         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
36728         gl_GETOPT_SUBSTITUTE before.
36729         (gl_GETOPT): Use it.
36730         * m4/argp.m4 (gl_ARGP): Update.
36731         Reported by Sergey Poznyakoff.
36732
36733         * m4/getopt.m4: Reorder macros.
36734         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
36735         (gl_GETOPT_SUBSTITUTE): Remove macro.
36736
36737 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36738
36739         Minor improvement in gitlog-to-changelog
36740
36741         * build-aux/gitlog-to-changelog: New option `--format' makes
36742         output format string configurable.
36743
36744 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
36745
36746         Optimize exclude: use hash tables for non-wildcard patterns.
36747
36748         * lib/exclude.c: Include hash.h and mbuiter.h
36749         (struct exclude_pattern, exclude_segment): New data types.
36750         (struct exclude): Rewrite.
36751         (fnmatch_pattern_has_wildcards): New function.
36752         (new_exclude_segment, free_exclude_segment): New functions.
36753         (excluded_file_pattern_p, excluded_file_name_p): New functions.
36754         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
36755         * lib/exclude.h (is_fnmatch_pattern): New prototype.
36756         * modules/exclude: Depend on hash and mbuiter.
36757
36758         * modules/exclude-tests: New file.
36759         * tests/test-exclude.c: New file.
36760         * tests/test-exclude1.sh: New file.
36761         * tests/test-exclude2.sh: New file.
36762         * tests/test-exclude3.sh: New file.
36763         * tests/test-exclude4.sh: New file.
36764         * tests/test-exclude5.sh: New file.
36765         * tests/test-exclude6.sh: New file.
36766         * tests/test-exclude7.sh: New file.
36767
36768 2009-08-12  Bruno Haible  <bruno@clisp.org>
36769
36770         Ensure that getopt() gets declared by <unistd.h>.
36771         * lib/unistd.in.h: Conditionally include getopt.h.
36772         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
36773         Set GNULIB_UNISTD_H_GETOPT.
36774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36775         GNULIB_UNISTD_H_GETOPT.
36776         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
36777
36778 2009-08-12  Bruno Haible  <bruno@clisp.org>
36779
36780         Clarify logic.
36781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
36782         gl_replace_getopt instead of GETOPT_H.
36783
36784 2009-08-12  Bruno Haible  <bruno@clisp.org>
36785
36786         * m4/getopt.m4: Add comments.
36787
36788 2009-08-12  Bruno Haible  <bruno@clisp.org>
36789
36790         Disable multithread support by default on Cygwin 1.5.x.
36791         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
36792         set gl_use_threads=no if not specified otherwise.
36793
36794 2009-08-11  Bruno Haible  <bruno@clisp.org>
36795
36796         Avoid compilation error on NetBSD 5.0.
36797         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
36798         * tests/test-stdio.c: Likewise.
36799         * tests/test-stdlib.c: Likewise.
36800         * tests/test-string.c: Likewise.
36801         * tests/test-unistd.c: Likewise.
36802         Reported by Greg Troxel <gdt@ir.bbn.com>
36803         at <https://savannah.gnu.org/support/?106973>.
36804
36805 2009-08-11  Bruno Haible  <bruno@clisp.org>
36806
36807         * modules/dup2-tests (Depends-on): Remove close.
36808
36809         Undo 2009-07-19 commit.
36810         * modules/acl-tests (Depends-on): Remove close.
36811         * modules/binary-io-tests (Depends-on): Likewise.
36812         * modules/closein-tests (Depends-on): Likewise.
36813         * modules/flock-tests (Depends-on): Likewise.
36814         * modules/fsync-tests (Depends-on): Likewise.
36815         * modules/lseek-tests (Depends-on): Likewise.
36816         * modules/pipe-tests (Depends-on): Likewise.
36817         * modules/posix_spawn-tests (Depends-on): Likewise.
36818         * modules/posix_spawnp-tests (Depends-on): Likewise.
36819         * modules/stat-time-tests (Depends-on): Likewise.
36820         * modules/yesno-tests (Depends-on): Likewise.
36821
36822 2009-08-10  Bruno Haible  <bruno@clisp.org>
36823
36824         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
36825
36826 2009-08-10  Bruno Haible  <bruno@clisp.org>
36827
36828         Fix a gcc warning.
36829         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
36830
36831 2009-08-10  Bruno Haible  <bruno@clisp.org>
36832
36833         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
36834         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
36835         not only the first time.
36836         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
36837         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
36838         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
36839         is 1, not only the the first time.
36840
36841 2009-08-10  Bruno Haible  <bruno@clisp.org>
36842
36843         Make it possible to use module 'gethostname' without module 'close'.
36844         * lib/unistd.in.h (close): Evoke a link error only if
36845         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36846         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36847         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36848         * modules/unistd (Makefile.am): Substitute
36849         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36850         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
36851         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
36852         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36853         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36854         * modules/sys_ioctl (Makefile.am): Substitute
36855         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36856         * modules/socket (configure.ac): On native Windows, set
36857         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
36858         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
36859         Reported by Sam Steingold <sds@gnu.org>.
36860
36861 2009-08-10  Bruno Haible  <bruno@clisp.org>
36862
36863         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
36864         * modules/ioctl (configure.ac): Likewise.
36865
36866 2009-08-10  Bruno Haible  <bruno@clisp.org>
36867
36868         Avoid collision between gnulib wrapper and libintl wrapper.
36869         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
36870         already defined in intl/printf.c.
36871         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
36872         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
36873
36874 2009-08-09  Bruno Haible  <bruno@clisp.org>
36875
36876         Make <sys/select.h> really self-contained, also on Solaris 10.
36877         * lib/sys_select.in.h: Include <string.h>.
36878         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
36879         Solaris 10 problem.
36880         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
36881         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
36882         Reported by Jim Meyering.
36883
36884 2009-08-09  Bruno Haible  <bruno@clisp.org>
36885
36886         Avoid warnings from 'aclocal' that are due to a use of macro name
36887         AM_XGETTEXT_OPTION that is not defined in automake.
36888         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
36889         automake.
36890         * modules/error (configure.ac): Likewise.
36891         * modules/propername (configure.ac): Likewise.
36892         * modules/vasprintf (configure.ac): Likewise.
36893         * modules/verror (configure.ac): Likewise.
36894         * modules/xprintf (configure.ac): Likewise.
36895         * modules/xvasprintf (configure.ac): Likewise.
36896
36897 2009-08-08  Bruno Haible  <bruno@clisp.org>
36898
36899         Avoid compilation error in C++ mode.
36900         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
36901         Reported by Sam Steingold <sds@gnu.org>.
36902
36903 2009-08-08  Bruno Haible  <bruno@clisp.org>
36904
36905         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
36906         for the various Unix platforms.
36907         * doc/posix-headers/limits.texi: Update platforms list regarding
36908         HOST_NAME_MAX.
36909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36910
36911 2009-08-07  Jim Meyering  <meyering@redhat.com>
36912
36913         selinux-at: fix typo in a comment
36914         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
36915         Spotted by Paolo Bonzini.
36916
36917         selinux-at: remove redundant m4 code, add documentation
36918         * modules/selinux-at (configure.ac): Remove redundant code.
36919         LIB_SELINUX is already set via the dependent module, selinux-h.
36920         (Include): Add quotes around selinux-at.h.
36921         * lib/selinux-at.h: Add documentation.
36922         Reported by Bruno Haible in
36923         http://marc.info/?l=gnulib-bug&m=124958988300749
36924
36925 2009-08-07  Bruno Haible  <bruno@clisp.org>
36926
36927         Avoid link error on MacOS X 10.3 and 10.4.
36928         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
36929         on non-ELF systems.
36930         * lib/argp-pv.c (argp_program_version): Likewise.
36931         Reported by Simon Josefsson.
36932
36933 2009-08-07  Simon Josefsson  <simon@josefsson.org>
36934
36935         * tests/test-version-etc.sh: Use $EXEEXT.
36936
36937 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
36938
36939         update-copyright: update documentation to point to maint.mk
36940         * build-aux/update-copyright: Here.
36941
36942 2009-08-06  Jim Meyering  <meyering@redhat.com>
36943
36944         maint.mk: support update-copyright-local
36945         * top/maint.mk (update-copyright-local): Define place-holder.
36946         (update-copyright): Depend on $(update-copyright-local).
36947
36948 2009-08-06  Jim Meyering  <meyering@redhat.com>
36949
36950         selinux-at: new module
36951         Initially written for coreutils, this module will soon be
36952         used by findutils, too.
36953         * MODULES.html.sh [Misc]: Add selinux-at.
36954         * lib/selinux-at.h: New file, from coreutils.
36955         * lib/selinux-at.c: Likewise.
36956         * modules/selinux-at: Likewise.
36957         (License): Change from LGPL to GPL, since it depends
36958         on the GPL'd openat module.
36959
36960         doc: update README
36961         * README: Remove references to cogito.
36962         Remove cvs-repo-updating instructions from 2007.
36963         Don't imply that CVS is better if you have limited disk space.
36964
36965 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36966
36967         update-copyright: support C-style comments
36968         * build-aux/update-copyright: Implement and document.
36969         * tests/test-update-copyright.sh: Test.
36970
36971 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36972
36973         update-copyright: support omitted "(C)"
36974         * build-aux/update-copyright: Implement and document.  Also,
36975         allow variable whitespace before "(C)".
36976         * tests/test-update-copyright.sh: Test.
36977
36978 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36979
36980         update-copyright: don't trip on non-FSF copyright statements
36981         * build-aux/update-copyright: Fix so that the first correctly
36982         formatted FSF copyright statement is recognized no matter what
36983         appears before it.  Update documentation.
36984         * tests/test-update-copyright.sh: Test that.
36985
36986 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36987
36988         update-copyright: clean up code a little
36989         * build-aux/update-copyright: Append "_re" to the name of any
36990         variable holding a regular expression.
36991         Replace "old" and "new" with "stmt" in variable names.
36992         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
36993         handled correctly.
36994         Format code more consistently.
36995
36996 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
36997
36998         update-copyright-tests: improve portability
36999         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37000         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37001
37002 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37003
37004         update-copyright: support @copyright{} and &copy;
37005         * build-aux/update-copyright: Implement and document.
37006         * tests/test-update-copyright.sh: Test.
37007
37008 2009-08-04  Jim Meyering  <meyering@redhat.com>
37009
37010         update-copyright-tests: correctly test EOL=\r\n handling
37011         * tests/test-update-copyright.sh: Put \r at the end of some lines
37012         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37013
37014         maint.mk: make update-copyright exclusion list more configurable
37015         * top/maint.mk (update-copyright): Default to excluding COPYING,
37016         but allow an override, in case someone does want to update that file.
37017
37018         maint.mk: don't update copyright date in COPYING
37019         * top/maint.mk (update-copyright): Exclude COPYING.
37020
37021         maint.mk: add a copyright-updating rule
37022         * top/maint.mk (update-copyright): New rule.
37023         Derived from coreutils/Makefile.am.
37024
37025         update-copyright: rename some variables
37026         * build-aux/update-copyright: Rename a few variables for clarity.
37027         Tweak syntax.  List Joel E. Denny as coauthor.
37028
37029 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37030
37031         update-copyright: fix bug for 2-digit last year and add tests
37032         * build-aux/update-copyright: Fix bug.
37033         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37034         specified.
37035         * modules/update-copyright-tests: New
37036         * tests/test-update-copyright.sh: New.
37037
37038 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37039
37040         update-copyright: handle leading tabs in line prefix
37041         * build-aux/update-copyright: Count leading tabs as 8 spaces
37042         when computing margin.  This helps with the formatting of
37043         ChangeLogs, for example.
37044         Fix documentation a little.
37045
37046 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37047
37048         update-copyright: support EOL=\r\n
37049         * build-aux/update-copyright: Implement that.
37050
37051 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37052
37053         update-copyright: automatically format copyright statements
37054         * build-aux/update-copyright: Implement that.
37055         Also, be a little more predictable and safer by always failing
37056         when the full copyright format is not perfectly recognized as an
37057         unbroken whole.  Discussed at
37058         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37059         Rewrite documentation.
37060
37061 2009-08-03  Bruno Haible  <bruno@clisp.org>
37062
37063         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37064
37065 2009-08-02  Bruno Haible  <bruno@clisp.org>
37066
37067         Tests for module 'uname'.
37068         * modules/uname-tests: New file.
37069         * tests/test-uname.c: New file.
37070
37071         New module 'uname'.
37072         * lib/uname.c: New file.
37073         * m4/uname.m4: New file.
37074         * modules/uname: New file.
37075         * doc/posix-functions/uname.texi: Mention the new module.
37076
37077 2009-08-02  Bruno Haible  <bruno@clisp.org>
37078
37079         Tests for module 'sys_utsname'.
37080         * modules/sys_utsname-tests: New file.
37081         * tests/test-sys_utsname.c: New file.
37082
37083         New module 'sys_utsname'.
37084         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37085         * m4/sys_utsname_h.m4: New file.
37086         * modules/sys_utsname: New file.
37087         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37088
37089 2009-08-02  Bruno Haible  <bruno@clisp.org>
37090
37091         Implicitly initialize the sockets library.
37092         * lib/gethostname.c: Include sockets.h.
37093         (rpl_gethostname): Invoke gl_sockets_startup.
37094         * lib/socket.c: Include sockets.h.
37095         (rpl_socket): Invoke gl_sockets_startup.
37096         * modules/gethostname (Depends-on): Add sockets.
37097         * modules/socket (Depends-on): Likewise.
37098         * tests/test-poll.c: Don't include sockets.h.
37099         (main): Don't invoke gl_sockets_startup.
37100         * tests/test-select.c: Don't include sockets.h.
37101         (main): Don't invoke gl_sockets_startup.
37102
37103 2009-08-02  Bruno Haible  <bruno@clisp.org>
37104
37105         Allow multiple calls to gl_sockets_startup.
37106         * lib/sockets.c (initialized_sockets_version): New variable.
37107         (gl_sockets_startup): Do nothing if already called for this or a higher
37108         version.
37109         (gl_sockets_cleanup): Reset initialized_sockets_version.
37110
37111 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37112
37113         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37114         different project/version.
37115
37116 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37117             Bruno Haible  <bruno@clisp.org>
37118
37119         Tests for module 'pipe-filter-gi'.
37120         * modules/pipe-filter-gi-tests: New file.
37121         * tests/test-pipe-filter-gi1.sh: New file.
37122         * tests/test-pipe-filter-gi1.c: New file.
37123         * tests/test-pipe-filter-gi2.sh: New file.
37124         * tests/test-pipe-filter-gi2-main.c: New file.
37125         * tests/test-pipe-filter-gi2-child.c: New file.
37126
37127         New module 'pipe-filter-gi'.
37128         * lib/pipe-filter-gi.c: New file.
37129         * modules/pipe-filter-gi: New file.
37130
37131 2009-08-02  Bruno Haible  <bruno@clisp.org>
37132             Paolo Bonzini  <bonzini@gnu.org>
37133
37134         Tests for module 'pipe-filter-ii'.
37135         * modules/pipe-filter-ii-tests: New file.
37136         * tests/test-pipe-filter-ii1.sh: New file.
37137         * tests/test-pipe-filter-ii1.c: New file.
37138         * tests/test-pipe-filter-ii2.sh: New file.
37139         * tests/test-pipe-filter-ii2-main.c: New file.
37140         * tests/test-pipe-filter-ii2-child.c: New file.
37141
37142         New module 'pipe-filter-ii'.
37143         * lib/pipe-filter.h: New file.
37144         * lib/pipe-filter-ii.c: New file.
37145         * lib/pipe-filter-aux.h: New file.
37146         * modules/pipe-filter-ii: New file.
37147
37148 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37149
37150         * lib/gc-libgcrypt.c: Change copyright to FSF.
37151         * lib/gc-gnulib.c: Likewise.
37152
37153 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37154
37155         * lib/gethostname.c: Include limits.h.
37156
37157 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37158             Bruno Haible  <bruno@clisp.org>
37159
37160         Ensure HOST_NAME_MAX as part of the gethostname module.
37161         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37162         define also HOST_NAME_MAX.
37163         * tests/test-gethostname.c: Include <limits.h>.
37164         (main): Check also HOST_NAME_MAX.
37165         * doc/posix-headers/limits.texi: Document the mingw problem.
37166
37167 2009-08-02  Bruno Haible  <bruno@clisp.org>
37168
37169         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37170         Add comments.
37171
37172 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37173
37174         * lib/gethostname.c: Add Windows wrapper.
37175         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37176         * modules/gethostname: Depend on sys_socket & errno, for also
37177         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37178         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37179
37180 2009-07-31  Jim Meyering  <meyering@redhat.com>
37181
37182         getloadavg: fix symbol name in comment
37183         * lib/getloadavg.c: Correct a typo I introduced when adding
37184         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37185         Matt Kraai spotted the problem.
37186
37187 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37188
37189         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37190         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37191         code also if ! defined N_NAME_POINTER.
37192         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37193         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37194         but the n_name member is a 12-byte array.
37195
37196 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37197
37198         update-copyright: generalize comment handling
37199         * build-aux/update-copyright: Handle copyright statements
37200         within more comment styles.
37201         Document usage.
37202         Report any file with an external copyright holder or parse failure.
37203
37204 2009-07-29  Jim Meyering  <meyering@redhat.com>
37205
37206         mktime: correct setting of REPLACE_MKTIME
37207         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37208
37209         update-copyright: new module
37210         * modules/update-copyright: New file.
37211         * build-aux/update-copyright: New file.
37212         * MODULES.html.sh (maint+release support): Add update-copyright.
37213
37214 2009-07-27  Bruno Haible  <bruno@clisp.org>
37215
37216         Fix compilation error when <ctime> is used and mktime is replaced.
37217         * lib/time.in.h (mktime): New declaration.
37218         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37219         REPLACE_MKTIME instead of defining mktime in config.h.
37220         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37221         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37222         Reported by Ross McFarland <rwmcfa1@neces.com>.
37223
37224 2009-07-27  Bruno Haible  <bruno@clisp.org>
37225
37226         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37227         Reported by Matt Kraai <mkraai@beckman.com>.
37228
37229 2009-07-25  Jim Meyering  <meyering@redhat.com>
37230
37231         maint.mk: avoid warnings about missing files
37232         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37233         diagnostic when .prev-version does not exist.
37234         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37235         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37236         nonexistent cfg.mk.
37237         Suggestions from Simon Josefsson.
37238
37239 2009-07-25  Bruno Haible  <bruno@clisp.org>
37240
37241         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37242         defined as macros. Needed on QNX 6.4.1.
37243         Reported by Matt Kraai <mkraai@beckman.com>.
37244
37245 2009-07-23  Jim Meyering  <meyering@redhat.com>
37246
37247         maint.mk: invoke "make dist" with a working value of XZ_OPT
37248         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37249
37250 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37251
37252         Make fseeko.c compile on QNX.
37253         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37254
37255 2009-07-22  Peter Simons  <simons@cryp.to>
37256
37257         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37258         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37259         * lib/md4.h: Likewise.
37260         * lib/md5.h: Likewise.
37261         * lib/sha1.h: Likewise.
37262         * lib/sha256.h: Likewise.
37263         * lib/sha512.h: Likewise.
37264
37265         tests-sha1: don't assign literal string to 'char *' variable
37266         * tests/test-sha1.c (main): Declare locals with "const" to match
37267         attributes of the right hand side.
37268
37269 2009-07-21  Eric Blake  <ebb9@byu.net>
37270
37271         dup2: fix more mingw problems
37272         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37273         fd to itself.
37274         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37275         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37276         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37277         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37278         care of mingw bugs.
37279
37280 2009-07-21  Jim Meyering  <meyering@redhat.com>
37281
37282         vc-list-files: avoid failure when /bin/sh is dash
37283         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37284         On some Debian based systems, /bin/sh is a symlink to dash, and running
37285         this command would omit the "/" following each 'tests' prefix:
37286           dash -x build-aux/vc-list-files -C . tests
37287         That is because bash and dash work differently:
37288           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37289           bash ok
37290           dash odd
37291
37292 2009-07-21  Eric Blake  <ebb9@byu.net>
37293
37294         dup2-tests: test previous patch
37295         * modules/dup2-tests: New file.
37296         * tests/test-dup2.c: Likewise.
37297         * tests/test-open.c (main): Avoid unspecified behavior.
37298         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37299         test.
37300
37301         dup2: work around mingw and cygwin 1.5 bug
37302         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37304         * modules/unistd (Makefile.am): Substitute it.
37305         * lib/unistd.in.h (dup2): Declare the replacement.
37306         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37307         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37308         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37309         * modules/execute (Depends-on): Add dup2.
37310         * modules/fseterr (Depends-on): Likewise.
37311         * modules/pipe (Depends-on): Likewise.
37312         * modules/posix_spawn-internal (Depends-on): Likewise.
37313
37314 2009-07-21  Bruno Haible  <bruno@clisp.org>
37315
37316         * modules/.gitattributes: New file.
37317
37318 2009-07-20  Bruno Haible  <bruno@clisp.org>
37319
37320         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37321         (main): Use it.
37322
37323 2009-07-20  Eric Blake  <ebb9@byu.net>
37324
37325         test-pipe: make a bit more robust.
37326         * tests/test-pipe.c (myerr): Allow error messages regardless of
37327         what we do to stderr.
37328         (test_pipe): Rearrange to avoid deadlock.
37329         (child_main): Try a larger read, to ensure we avoided deadlock.
37330         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37331         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37332         if misused.
37333
37334 2009-07-19  Jim Meyering  <meyering@redhat.com>
37335
37336         fts: avoid false-positive cycle-detection
37337         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37338         for each new command line argument.
37339
37340 2009-07-19  Bruno Haible  <bruno@clisp.org>
37341
37342         Fix build error on mingw with the modules sys_select and unistd.
37343         * modules/acl-tests (Depends-on): Add close.
37344         * modules/binary-io-tests (Depends-on): Likewise.
37345         * modules/closein-tests (Depends-on): Likewise.
37346         * modules/flock-tests (Depends-on): Likewise.
37347         * modules/fsync-tests (Depends-on): Likewise.
37348         * modules/lseek-tests (Depends-on): Likewise.
37349         * modules/pipe-tests (Depends-on): Likewise.
37350         * modules/posix_spawn-tests (Depends-on): Likewise.
37351         * modules/posix_spawnp-tests (Depends-on): Likewise.
37352         * modules/stat-time-tests (Depends-on): Likewise.
37353         * modules/yesno-tests (Depends-on): Likewise.
37354
37355 2009-07-19  Bruno Haible  <bruno@clisp.org>
37356
37357         Unify conditionals.
37358         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37359         macros, not at the compiler macros.
37360         * lib/pipe.c: Likewise.
37361         * lib/execute.c: Likewise.
37362         * lib/spawni.c: Likewise.
37363
37364 2009-07-19  Bruno Haible  <bruno@clisp.org>
37365
37366         Fix handling of closed stdin/stdout/stderr on mingw.
37367         * lib/w32spawn.h: Include unistd.h.
37368         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37369         file descriptor with O_NOINHERIT flag.
37370         (fd_safer_noinherit): New function, based on fd-safer.c.
37371         (dup_safer_noinherit): New function, based on dup-safer.c.
37372         (undup_safer_noinherit): New function.
37373         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37374         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37375         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37376         instead of fd_safer.
37377         * tests/test-pipe.c: Include <windows.h>.
37378         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37379         result.
37380
37381         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37382         from main.
37383         (test_pipe): Pass an extra argument for disambiguation.
37384         (main): Invoke parent_main or child_main.
37385
37386         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37387         consistently.
37388
37389 2009-07-18  Eric Blake  <ebb9@byu.net>
37390
37391         test-pipe: fix mingw build
37392         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37393
37394 2009-07-18  Bruno Haible  <bruno@clisp.org>
37395
37396         * modules/pipe-tests (Makefile.am): Fix typo.
37397
37398 2009-07-18  Eric Blake  <ebb9@byu.net>
37399
37400         error: fix mingw build
37401         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37402         Reported by Bruno Haible.
37403
37404         error: avoid undefined use of stdout
37405         * lib/error.c (error, error_at_line): Check that fd 1 is open
37406         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37407         is handling faults and the close_stdout module wants to report the
37408         detection of closed stdout as an error.
37409
37410 2009-07-17  Eric Blake  <ebb9@byu.net>
37411
37412         pipe: be robust in face of closed fds
37413         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37414         should cause child to misbehave.
37415         * modules/pipe-tests: New module.
37416         * tests/test-pipe.c: New file.
37417         * tests/test-pipe.sh: New file.
37418         Reported by Akim Demaille.
37419
37420 2009-07-14  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37423         Reported by anonymous kc.
37424
37425 2009-07-07  Jim Meyering  <meyering@redhat.com>
37426
37427         maint.mk: don't look for translatable strings in *.m4 or *.mk
37428         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37429         when searching for translatable strings.
37430
37431 2009-07-05  Jim Meyering  <meyering@redhat.com>
37432
37433         remove superfluous parentheses in STREQ definition
37434         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37435         * lib/getugroups.c (STREQ): Likewise.
37436         * lib/fnmatch.c (STREQ): Likewise.
37437         Spotted by Bruno Haible.
37438
37439 2009-07-04  Jim Meyering  <meyering@redhat.com>
37440
37441         argv-iter: new module
37442         * MODULES.html.sh: Add argv-iter.
37443         * lib/argv-iter.c, lib/argv-iter.h: New files.
37444         * modules/argv-iter: New file.
37445         * modules/argv-iter-tests: New file.
37446         * tests/test-argv-iter.c: Test it.
37447
37448 2009-07-04  Bruno Haible  <bruno@clisp.org>
37449
37450         Fix assertion.
37451         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
37452         contains more exact copies of a given entry than file2, leave the extra
37453         copies unpaired rather than aborting.
37454         Reported by Eric Blake.
37455
37456 2009-07-02  Bruno Haible  <bruno@clisp.org>
37457
37458         Speedup git-merge-changelog for git cherry-pick.
37459         * lib/git-merge-changelog.c (struct entries_mapping): New type.
37460         (entries_mapping_get): New function, extracted from compute_mapping.
37461         (entries_mapping_reverse_get): New function.
37462         (compute_mapping): Add a 'full' argument. Return the result in a
37463         'struct entries_mapping'.
37464         (main): Update. Access the mappings through entries_mapping_get.
37465         Reported by Eric Blake.
37466
37467 2009-07-02  Bruno Haible  <bruno@clisp.org>
37468
37469         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
37470         best_i.
37471
37472 2009-07-02  Bruno Haible  <bruno@clisp.org>
37473
37474         Speed up approximate search for matching ChangeLog entries.
37475         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
37476         argument. Call fstrcmp_bounded instead of fstrcmp.
37477         (compute_mapping, try_split_merged_entry, main): Update callers.
37478
37479 2009-07-02  Bruno Haible  <bruno@clisp.org>
37480
37481         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
37482
37483 2009-06-30  Bruno Haible  <bruno@clisp.org>
37484
37485         Reduce the number of uc_is_cased calls.
37486         * lib/unicase.h (casing_suffix_context_t): Add
37487         'first_char_except_ignorable' field.
37488         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
37489         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
37490         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
37491         Update initializer.
37492         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
37493         case-ignorable characters.
37494         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
37495         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
37496         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
37497         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
37498         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
37499
37500 2009-06-30  Bruno Haible  <bruno@clisp.org>
37501
37502         Tests for module 'unicase/ignorable'.
37503         * modules/unicase/ignorable-tests: New file.
37504         * tests/unicase/test-ignorable.c: New file, generated by
37505         gen-uni-tables.
37506
37507         Tests for module 'unicase/cased'.
37508         * modules/unicase/cased-tests: New file.
37509         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
37510         * tests/unicase/test-predicate-part1.h: New file, derived from
37511         tests/unictype/test-predicate-part1.h.
37512         * tests/unicase/test-predicate-part2.h: New file, same as
37513         tests/unictype/test-predicate-part2.h.
37514
37515         Fix evaluation of "Before C" condition of FINAL_SIGMA.
37516         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
37517         (output_casing_properties): New function.
37518         (main): Call it.
37519         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
37520         * lib/unicase/cased.c: Include unictype/bitmap.h.
37521         (uc_is_cased): Define through a bitmap lookup.
37522         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
37523         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
37524         (uc_is_case_ignorable): Define through a bitmap lookup.
37525         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
37526         lib/unictype/bitmap.h.
37527         (Depends-on): Add inline. Clean up.
37528         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
37529         lib/unictype/bitmap.h.
37530         (Depends-on): Add inline. Clean up.
37531         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
37532         recognition.
37533         * tests/unicase/test-u16-tolower.c (main): Likewise.
37534         * tests/unicase/test-u32-tolower.c (main): Likewise.
37535
37536 2009-06-30  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
37539         * lib/unicase/u16-casemap.c: Likewise.
37540         * lib/unicase/u32-casemap.c: Likewise.
37541
37542 2009-06-29  Bruno Haible  <bruno@clisp.org>
37543
37544         Define u32_casefold as a wrapper around u32_ct_casefold.
37545         * lib/unicase/u32-casefold.c: Update.
37546         * modules/unicase/u32-casefold (Depends-on): Add
37547         unicase/u32-ct-casefold, unicase/empty-prefix-context,
37548         unicase/empty-suffix-context. Clean up.
37549
37550         Define u16_casefold as a wrapper around u16_ct_casefold.
37551         * lib/unicase/u16-casefold.c: Update.
37552         * modules/unicase/u16-casefold (Depends-on): Add
37553         unicase/u16-ct-casefold, unicase/empty-prefix-context,
37554         unicase/empty-suffix-context. Clean up.
37555
37556         Define u8_casefold as a wrapper around u8_ct_casefold.
37557         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
37558         * lib/unicase/u8-casefold.c: Update.
37559         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
37560         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37561
37562         Define u32_totitle as a wrapper around u32_ct_totitle.
37563         * lib/unicase/u32-totitle.c: Update.
37564         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
37565         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37566
37567         Define u16_totitle as a wrapper around u16_ct_totitle.
37568         * lib/unicase/u16-totitle.c: Update.
37569         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
37570         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37571
37572         Define u8_totitle as a wrapper around u8_ct_totitle.
37573         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
37574         functions.
37575         (FUNC): Delegate to U_CT_TOTITLE.
37576         * lib/unicase/u8-totitle.c: Update.
37577         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
37578         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
37579
37580         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
37581         invocation.
37582         * modules/unicase/u32-tolower (Depends-on): Add
37583         unicase/empty-prefix-context, unicase/empty-suffix-context.
37584
37585         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
37586         invocation.
37587         * modules/unicase/u16-tolower (Depends-on): Add
37588         unicase/empty-prefix-context, unicase/empty-suffix-context.
37589
37590         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
37591         * modules/unicase/u8-tolower (Depends-on): Add
37592         unicase/empty-prefix-context, unicase/empty-suffix-context.
37593
37594         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
37595         invocation.
37596         * modules/unicase/u32-toupper (Depends-on): Add
37597         unicase/empty-prefix-context, unicase/empty-suffix-context.
37598
37599         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
37600         invocation.
37601         * modules/unicase/u16-toupper (Depends-on): Add
37602         unicase/empty-prefix-context, unicase/empty-suffix-context.
37603
37604         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
37605         * modules/unicase/u8-toupper (Depends-on): Add
37606         unicase/empty-prefix-context, unicase/empty-suffix-context.
37607
37608         New module 'unicase/u32-ct-casefold'.
37609         * lib/unicase/u32-ct-casefold.c: New file.
37610         * modules/unicase/u32-ct-casefold: New file.
37611
37612         New module 'unicase/u16-ct-casefold'.
37613         * lib/unicase/u16-ct-casefold.c: New file.
37614         * modules/unicase/u16-ct-casefold: New file.
37615
37616         New module 'unicase/u8-ct-casefold'.
37617         * lib/unicase/u8-ct-casefold.c: New file.
37618         * lib/unicase/u-ct-casefold.h: New file, derived from
37619         lib/unicase/u-casefold.h.
37620         * modules/unicase/u8-ct-casefold: New file.
37621
37622         New module 'unicase/u32-ct-totitle'.
37623         * lib/unicase/u32-ct-totitle.c: New file.
37624         * modules/unicase/u32-ct-totitle: New file.
37625
37626         New module 'unicase/u16-ct-totitle'.
37627         * lib/unicase/u16-ct-totitle.c: New file.
37628         * modules/unicase/u16-ct-totitle: New file.
37629
37630         New module 'unicase/u8-ct-totitle'.
37631         * lib/unicase/u8-ct-totitle.c: New file.
37632         * lib/unicase/u-ct-totitle.h: New file, derived from
37633         lib/unicase/u-totitle.h.
37634         * modules/unicase/u8-ct-totitle: New file.
37635
37636         New module 'unicase/u32-ct-tolower'.
37637         * lib/unicase/u32-ct-tolower.c: New file.
37638         * modules/unicase/u32-ct-tolower: New file.
37639
37640         New module 'unicase/u16-ct-tolower'.
37641         * lib/unicase/u16-ct-tolower.c: New file.
37642         * modules/unicase/u16-ct-tolower: New file.
37643
37644         New module 'unicase/u8-ct-tolower'.
37645         * lib/unicase/u8-ct-tolower.c: New file.
37646         * modules/unicase/u8-ct-tolower: New file.
37647
37648         New module 'unicase/u32-ct-toupper'.
37649         * lib/unicase/u32-ct-toupper.c: New file.
37650         * modules/unicase/u32-ct-toupper: New file.
37651
37652         New module 'unicase/u16-ct-toupper'.
37653         * lib/unicase/u16-ct-toupper.c: New file.
37654         * modules/unicase/u16-ct-toupper: New file.
37655
37656         New module 'unicase/u8-ct-toupper'.
37657         * lib/unicase/u8-ct-toupper.c: New file.
37658         * modules/unicase/u8-ct-toupper: New file.
37659
37660         Add context arguments to u*_casemap functions.
37661         * lib/unicase/unicasemap.h: Include unicase.h.
37662         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
37663         suffix_context arguments.
37664         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
37665         functions.
37666         (FUNC): Add prefix_context and suffix_context arguments. Use
37667         uc_is_cased and uc_is_case_ignorable.
37668         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
37669         * lib/unicase/u16-casemap.c: Likewise.
37670         * lib/unicase/u32-casemap.c: Likewise.
37671         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
37672         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37673         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
37674         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37675         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
37676         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
37677
37678         New module 'unicase/u32-suffix-context'.
37679         * lib/unicase/u32-suffix-context.c: New file.
37680         * modules/unicase/u32-suffix-context: New file.
37681
37682         New module 'unicase/u16-suffix-context'.
37683         * lib/unicase/u16-suffix-context.c: New file.
37684         * modules/unicase/u16-suffix-context: New file.
37685
37686         New module 'unicase/u8-suffix-context'.
37687         * lib/unicase/u8-suffix-context.c: New file.
37688         * lib/unicase/u-suffix-context.h: New file.
37689         * modules/unicase/u8-suffix-context: New file.
37690
37691         New module 'unicase/empty-suffix-context'.
37692         * lib/unicase/empty-suffix-context.c: New file.
37693         * modules/unicase/empty-suffix-context: New file.
37694
37695         New module 'unicase/u32-prefix-context'.
37696         * lib/unicase/u32-prefix-context.c: New file.
37697         * modules/unicase/u32-prefix-context: New file.
37698
37699         New module 'unicase/u16-prefix-context'.
37700         * lib/unicase/u16-prefix-context.c: New file.
37701         * modules/unicase/u16-prefix-context: New file.
37702
37703         New module 'unicase/u8-prefix-context'.
37704         * lib/unicase/u8-prefix-context.c: New file.
37705         * lib/unicase/u-prefix-context.h: New file.
37706         * lib/unicase/context.h: New file.
37707         * modules/unicase/u8-prefix-context: New file.
37708
37709         New module 'unicase/empty-prefix-context'.
37710         * lib/unicase/empty-prefix-context.c: New file.
37711         * modules/unicase/empty-prefix-context: New file.
37712
37713         New module 'unicase/ignorable'.
37714         * lib/unicase/ignorable.c: New file.
37715         * modules/unicase/ignorable: New file.
37716
37717         New module 'unicase/cased'.
37718         * lib/unicase/caseprop.h: New file.
37719         * lib/unicase/cased.c: New file.
37720         * modules/unicase/cased: New file.
37721
37722         New functions for case mapping of substrings.
37723         * lib/unicase.h (casing_prefix_context_t): New type.
37724         (unicase_empty_prefix_context): New variable.
37725         (u8_casing_prefix_context, u16_casing_prefix_context,
37726         u32_casing_prefix_context, u8_casing_prefixes_context,
37727         u16_casing_prefixes_context, u32_casing_prefixes_context): New
37728         declarations.
37729         (casing_suffix_context_t): New type.
37730         (unicase_empty_suffix_context): New variable.
37731         (u8_casing_suffix_context, u16_casing_suffix_context,
37732         u32_casing_suffix_context, u8_casing_suffixes_context,
37733         u16_casing_suffixes_context, u32_casing_suffixes_context,
37734         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
37735         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
37736         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
37737         declarations.
37738
37739 2009-06-28  Jim Meyering  <meyering@redhat.com>
37740
37741         boostrap: indent only with spaces
37742         * build-aux/bootstrap: Indent only with spaces, never TABs.
37743
37744         bootstrap: split long lines
37745         * build-aux/bootstrap: Keep line length < 80.
37746
37747         bootstrap: sync from coreutils
37748         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
37749         just as autoreconf does.  Verify a list of prerequisite
37750         package-name,version-number pairs if defined in bootstrap.conf.
37751         Refer to README-prereq, if prerequisites are not satisfied.
37752
37753 2009-06-27  Eric Blake  <ebb9@byu.net>
37754
37755         tests: add test for bogus NULL definition
37756         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
37757         * tests/test-stdlib.c: Likewise.
37758         * tests/test-string.c: Likewise.
37759         * tests/test-locale.c: Likewise.
37760         * tests/test-unistd.c: Likewise.
37761         * modules/stdio-tests (Depends-on): Add verify.
37762         * modules/stdlib-tests (Depends-on): Likewise.
37763         * modules/string-tests (Depends-on): Likewise.
37764         * modules/locale-tests (Depends-on): Likewise.
37765         * modules/unistd-tests (Depends-on): Likewise.
37766
37767 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
37768
37769         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
37770         self-explaining comment.
37771         * m4/selinux-selinux-h: Update serial.
37772         (gl_LIBSELINUX): New macro, adding a warning for missing development
37773         packages to code extracted from...
37774         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
37775         Add warning for missing development packages here, too.
37776
37777 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
37778
37779         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
37780
37781 2009-06-25  Eric Blake  <ebb9@byu.net>
37782
37783         version-etc: fix regression
37784         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
37785         gcc.
37786         (version_etc): Use it, to catch bugs with trailing NULL.
37787         * lib/version-etc.c (version_etc_arn): Delete unused argument.
37788         (version_etc_va): Fix logic bug.
37789         * modules/version-etc-tests: Add test.
37790         * tests/test-version-etc.c: New file.
37791         * tests/test-version-etc.sh: Likewise.
37792
37793 2009-06-25  Sam Steingold  <sds@gnu.org>
37794
37795         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
37796         mbtowc declaration.
37797
37798 2009-06-25  Eric Blake  <ebb9@byu.net>
37799
37800         fpurge: migrate into <stdio.h>
37801         * lib/fpurge.h: Delete...
37802         * lib/stdio.in.h (fpurge): ...and declare here, instead.
37803         * lib/fpurge.c (fpurge): Change declaring header.
37804         * modules/fpurge (Files): Drop deleted file.
37805         (Depends-on): Add stdio.
37806         (configure.ac): Set witness.
37807         * modules/stdio (Makefile.am): Support fpurge macros.
37808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37809         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
37810         * lib/fflush.c: Update client.
37811         * tests/test-fpurge.c: Likewise.
37812         * NEWS: Mention the change.
37813
37814 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37815
37816         * lib/argp-version-etc.c (program_authors): Add const
37817         qualifier.
37818         * lib/version-etc.c: Fix typos in the comments.
37819         * modules/argp-version-etc: Depends on version-etc.
37820
37821 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37822
37823         argp-version-etc: new module.
37824
37825         * lib/argp-version-etc.c: New file.
37826         * lib/argp-version-etc.h: New file.
37827         * modules/argp-version-etc: New file.
37828         * modules/argp-version-etc-tests: New file.
37829         * tests/test-argp-version-etc.c: New test.
37830         * tests/test-argp-version-etc-1.sh: New test.
37831
37832 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
37833
37834         Provide additional interfaces and documentation for version-etc
37835         module.
37836
37837         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
37838         interfaces.
37839         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
37840         prototypes.
37841
37842 2009-06-24  Bruno Haible  <bruno@clisp.org>
37843
37844         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
37845         HAVE_LIB${NAME} macro.
37846         Reported by Sam Steingold <sds@gnu.org>.
37847
37848 2009-06-23  Simon Josefsson  <simon@josefsson.org>
37849
37850         * modules/hash-tests (test_hash_LDADD): Link to libintl when
37851         needed.
37852
37853 2009-06-21  Bruno Haible  <bruno@clisp.org>
37854
37855         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
37856         work.
37857         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
37858         together with LIB${NAME}, LTLIB${NAME}.
37859         Reported by Sam Steingold <sds@gnu.org>.
37860
37861 2009-06-20  Jim Meyering  <meyering@redhat.com>
37862
37863         tests: make sc_require_test_exit_idiom more generic
37864         * top/maint.mk (Exit_witness_file): New overridable variable.
37865         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
37866         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
37867
37868 2009-06-19  Jim Meyering  <meyering@redhat.com>
37869
37870         hash: reverse order of src/dst parameters in an internal interface
37871         * lib/hash.c (transfer_entries): Reverse order of parameters to
37872         put DST before SRC.  Adjust callers.
37873
37874         tests: test-hash: avoid wholesale duplication
37875         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
37876         Instead, use a loop and add a single conditional.
37877
37878         tests: test-hash: allow seed selection via a command line argument
37879         * tests/test-hash.c (get_seed): New function.
37880         (main): Use it.
37881
37882 2009-06-19  Eric Blake  <ebb9@byu.net>
37883
37884         hash: avoid memory leak on allocation failure
37885         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
37886         failure.  Factor repeated algorithm...
37887         (transfer_entries): ...into new helper routine.
37888         (hash_delete): React to hash_rehash return value.
37889
37890         hash: reduce memory pressure in hash_rehash no-op case
37891         * lib/hash.c (next_prime): Avoid overflow.
37892         (hash_initialize): Factor bucket size computation...
37893         (compute_bucket_size): ...into new helper function.
37894         (hash_rehash): Use new function and open coding to reduce memory
37895         pressure, and avoid a memory leak in USE_OBSTACK code.
37896         Reported by Jim Meyering.
37897
37898 2009-06-18  Eric Blake  <ebb9@byu.net>
37899
37900         hash: make rotation more obvious
37901         * modules/hash (Depends-on): Add bitrotate and stdint.
37902         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
37903         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
37904         (SIZE_MAX): Rely on headers for definition.
37905         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
37906         (raw_hasher): Use rotr_sz.
37907         Suggested by Jim Meyering.
37908
37909         hash: fix memory leak in last patch
37910         * lib/hash.c (hash_rehash): Avoid memory leak.
37911
37912         hash: avoid no-op rehashing
37913         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
37914
37915         hash: provide default callback functions
37916         * lib/hash.c (raw_hasher, raw_comparator): New functions.
37917         (hash_initialize): Use them as defaults.
37918         * tests/test-hash.c (main): Test this.
37919
37920         hash: minor optimization
37921         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
37922         when possible.
37923         (hash_initialize): Document this promise.
37924         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
37925         * tests/test-hash.c (hash_compare_strings): Test this.
37926
37927 2009-06-18  Bruno Haible  <bruno@clisp.org>
37928
37929         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
37930         going to be replaced anyway.
37931
37932 2009-06-18  Bruno Haible  <bruno@clisp.org>
37933
37934         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
37935         in one place.
37936         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
37937         be replaced anyway.
37938
37939 2009-06-18  Eric Blake  <ebb9@byu.net>
37940
37941         hash: check for resize before insertion
37942         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
37943         threshold before insertion, so that a pathological hash_rehash
37944         that fills every bucket can still trigger another rehash.
37945
37946 2009-06-18  Jim Meyering  <meyering@redhat.com>
37947
37948         hash-tests: add a loop around the small tests
37949         * tests/test-hash.c (main): Repeat small tests with selected
37950         small initial table sizes.
37951
37952 2009-06-17  Eric Blake  <ebb9@byu.net>
37953
37954         hash: minor cleanups
37955         * lib/hash.h (hash_entry): Make opaque, by moving...
37956         * lib/hash.c (hash_entry): ...here.
37957         (hash_insert): Clarify restrictions on what can be inserted.
37958         (hash_get_next): Clarify when it is safe to remove an element
37959         during traversal.
37960         (check_tuning): Skip verification when tuning is known safe.
37961         (hash_initialize): Clarify restrictions on tuning.
37962
37963 2009-06-17  Jim Meyering  <jim@meyering.net>
37964         and Eric Blake  <ebb9@byu.net>
37965
37966         hash-tests: new module
37967         * modules/hash-tests: New file.
37968         * tests/test-hash.c: New file.
37969
37970 2009-06-17  Eric Blake  <ebb9@byu.net>
37971
37972         strstr-simple: document new module
37973         * MODULES.html.sh: Document new module.
37974
37975         strstr, strcasestr: replace on platforms with broken memchr
37976         * modules/strstr: Split into...
37977         * modules/strstr-simple: ...new module that does not care about
37978         performance, but does care about glibc bug.
37979         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
37980         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
37981         if platform memchr is broken, per Debian bug 521737.
37982         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
37983         memchr.
37984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
37985         * doc/posix-functions/strstr.texi (strstr): Document the fix.
37986         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
37987         * modules/mountlist (Depends-on): Add strstr-simple.
37988         * modules/gen-uni-tables (Depends-on): Likewise.
37989         * modules/argz (Depends-on): Add strstr.
37990
37991 2009-06-17  Bruno Haible  <bruno@clisp.org>
37992
37993         * modules/posix_spawn-internal (Depends-on): Add errno.
37994
37995 2009-06-17  Bruno Haible  <bruno@clisp.org>
37996
37997         Define missing ESTALE on Interix 3.5.
37998         * lib/errno.in.h (ESTALE): Assign a value if missing.
37999         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38000         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38001         missing.
38002         * doc/posix-headers/errno.texi: Mention the Interix bug.
38003         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38004
38005 2009-06-15  Eric Blake  <ebb9@byu.net>
38006
38007         memchr, memchr2: add valgrind exception
38008         * lib/memchr.valgrind: New file.
38009         * lib/memchr2.valgrind: New file.
38010         * modules/memchr (Files): Distribute valgrind file.
38011         * modules/memchr2 (Files): Likewise.
38012
38013         docs: memchr is no longer obsolete
38014         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38015         * lib/string.in.h (memchr): Simplify logic.
38016
38017 2009-06-14  Jim Meyering  <meyering@redhat.com>
38018
38019         link-follow: fix the "checking..." message to not mention trailing slash
38020         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38021         never considered trailing slashes.
38022
38023 2009-06-14  Bruno Haible  <bruno@clisp.org>
38024
38025         * m4/memchr.m4: Mention also the bug on IA-64.
38026         * doc/posix-functions/memchr.texi: Likewise.
38027
38028 2009-06-12  Eric Blake  <ebb9@byu.net>
38029
38030         memchr: detect broken x86_64 and alpha implementations
38031         * modules/memchr-tests (Depends-on): Move mmap detection...
38032         * modules/memchr (Depends-on): ...here.
38033         (configure.ac): Set indicator.
38034         * lib/string.in.h (memchr): Declare replacement.
38035         * modules/string (Makefile.am): Trigger replacement.
38036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38037         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38038         bugs.
38039         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38040         * modules/getpagesize (License): Relax license.
38041
38042 2009-06-11  Bruno Haible  <bruno@clisp.org>
38043
38044         * lib/idpriv.h: Add more references.
38045
38046 2009-06-08  Bruno Haible  <bruno@clisp.org>
38047
38048         Tests for module 'idpriv-droptemp'.
38049         * modules/idpriv-droptemp-tests: New file.
38050         * tests/test-idpriv-droptemp.sh: New file.
38051         * tests/test-idpriv-droptemp.su.sh: New file.
38052         * tests/test-idpriv-droptemp.c: New file.
38053
38054         New module 'idpriv-droptemp'.
38055         * lib/idpriv-droptemp.c: New file.
38056         * modules/idpriv-droptemp: New file.
38057
38058 2009-06-08  Bruno Haible  <bruno@clisp.org>
38059
38060         Tests for module 'idpriv-drop'.
38061         * modules/idpriv-drop-tests: New file.
38062         * tests/test-idpriv-drop.sh: New file.
38063         * tests/test-idpriv-drop.su.sh: New file.
38064         * tests/test-idpriv-drop.c: New file.
38065
38066         New module 'idpriv-drop'.
38067         * lib/idpriv.h: New file.
38068         * lib-idpriv-drop.c: New file.
38069         * m4/idpriv.m4: New file.
38070         * modules/idpriv-drop: New file.
38071
38072 2009-06-08  Bruno Haible  <bruno@clisp.org>
38073
38074         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38075         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38076         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38077         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38078         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38079         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38080         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38081
38082 2009-06-08  Eric Blake  <ebb9@byu.net>
38083
38084         test-strstr: use memory fence, when possible
38085         * tests/test-strstr.c (main): Use memory fence, in order to be
38086         more likely to trigger Debian bug 521737.
38087         * modules/strstr-tests (Files): Pull in additional files.
38088
38089         memchr: no longer obsolete, for wider field testing
38090         * modules/memchr (Status, Notice): Delete, this module is no
38091         longer obsolete.
38092         * modules/vasnprintf (Depends-on): Add memchr.
38093
38094 2009-06-07  Jim Meyering  <meyering@redhat.com>
38095
38096         hash: declare some functions with the warn_unused_result attribute
38097         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38098
38099 2009-06-07  Bruno Haible  <bruno@clisp.org>
38100
38101         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38102         Reported by Eric Blake.
38103
38104 2009-06-06  Eric Blake  <ebb9@byu.net>
38105
38106         test-alignof: fix typo with long double
38107         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38108         compiler error.
38109
38110 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38111
38112         Escape non-texinfo { and }s.
38113         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38114         markup error.
38115
38116 2009-06-04  Jim Meyering  <meyering@redhat.com>
38117
38118         gitlog-to-changelog: don't infloop on an empty commit log
38119         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38120         Reported by Boris Petersen <transacid@centerim.org>.
38121
38122 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38123
38124         version-etc: extend for packagers
38125         Add three new configure options, intended for packagers:
38126           --with-packager="packager name"
38127           --with-packager-version="packager-specific version"
38128           --with-packager-bug-reports="packager bug reporting"
38129         An example with coreutils:
38130           $ ./configure \
38131             --with-packager=Gentoo \
38132             --with-packager-bug-report=http://bugs.gentoo.org/ \
38133             --with-packager-version="patchset 1.6"
38134           $ ./src/ls --version | head -n2
38135           ls (GNU coreutils) 7.1-dirty
38136           Packaged by Gentoo (patchset 1.6)
38137         Note that the bug reporting info via --help doesn't show up because
38138         coreutils uses its own custom emit_bug_reporting_address() implementation
38139         in src/system.h.  If it didn't, it'd look like:
38140           $ ./src/ls --help | tail -n4
38141           Report bugs to <bug-coreutils@gnu.org>.
38142           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38143           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38144           General help using GNU software: <http://www.gnu.org/gethelp/>.
38145         * lib/version-etc.c: Print new information, if provided.
38146         * m4/version-etc.m4: New file.
38147         * modules/version-etc (Files): Add m4/version-etc.m4.
38148         (configure.ac): Add gl_VERSION_ETC.
38149
38150 2009-05-31  Bruno Haible  <bruno@clisp.org>
38151
38152         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38153         and 'int64_t'.
38154         * modules/alignof-tests (Dependencies): Add stdint.
38155         Reported by Eric Blake.
38156
38157 2009-05-31  Bruno Haible  <bruno@clisp.org>
38158
38159         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38160         restriction due to compiler bugs.
38161         Reported by Eric Blake.
38162
38163 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38164             Bruno Haible  <bruno@clisp.org>
38165
38166         Fix test-alignof failure.
38167         * lib/alignof.h (alignof_slot): New macro.
38168         (alignof_type): New macro, with the same semantics as the previous
38169         'alignof'.
38170         (alignof): Alias to alignof_slot.
38171         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38172         check that the results are usable as constant expressions.
38173
38174 2009-05-31  Bruno Haible  <bruno@clisp.org>
38175
38176         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38177         * tests/test-memchr.c (main): Check that memchr does not read past the
38178         first occurrence of the byte.
38179         * tests/test-strstr.c (main): Update comment.
38180         Suggested by Eric Blake.
38181
38182 2009-05-30  Bruno Haible  <bruno@clisp.org>
38183
38184         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38185         detail how to use dumpbin.
38186         Reported by David Byron <dbyron@dbyron.com>.
38187
38188 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38189
38190         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38191
38192 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38193
38194         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38195
38196 2009-05-28  Bruno Haible  <bruno@clisp.org>
38197
38198         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38199         build-aux/ files.
38200
38201 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38202
38203         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38204
38205 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38206
38207         * gnulib-tool (sed_transform_main_lib_file)
38208         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38209         regexps.
38210
38211 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38212
38213         * tests/test-strstr.c: Add another self-test.
38214         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38215         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38216
38217 2009-05-23  Bruno Haible  <bruno@clisp.org>
38218
38219         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38220         change.
38221
38222 2009-05-21  Bruno Haible  <bruno@clisp.org>
38223
38224         Simplify use of mode_t varargs.
38225         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38226         uses 'mode_t' or 'int'.
38227         * lib/openat.c (openat): Likewise.
38228         * lib/open-safer.c (open_safer): Likewise.
38229         * m4/mode_t.m4: New file.
38230         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38231         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38232         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38233         * modules/open (Files): Add m4/mode_t.m4.
38234         * modules/openat (Files): Likewise.
38235         * modules/fcntl-safer (Files): Likewise.
38236         Suggested by Eric Blake.
38237
38238 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38239
38240         * doc/glibc-functions/fallocate.texi: New file.
38241         * doc/gnulib.texi: Include it.
38242
38243 2009-05-21  Eric Blake  <ebb9@byu.net>
38244             Bruno Haible  <bruno@clisp.org>
38245
38246         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38247         invocations.
38248         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38249
38250 2009-05-21  Eric Blake  <ebb9@byu.net>
38251             Bruno Haible  <bruno@clisp.org>
38252
38253         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38254         include_next. Fix of 2008-11-20 commit.
38255         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38256         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38257         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38258         NEXT_MATH_H.
38259         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38260         instead of NEXT_MATH_H.
38261
38262 2009-05-21  Bruno Haible  <bruno@clisp.org>
38263
38264         Avoid redefinition warnings for SIZE_MAX.
38265         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38266         Reported by Simon Josefsson.
38267
38268 2009-05-21  Bruno Haible  <bruno@clisp.org>
38269
38270         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38271         AC_CACHE_VAL.
38272
38273 2009-05-20  Bruno Haible  <bruno@clisp.org>
38274
38275         Make zeroptr.h work on mingw.
38276         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38277         mprotect.
38278         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38279         * modules/memchr2-tests (configure.ac): Likewise.
38280         * modules/memcmp-tests (configure.ac): Likewise.
38281         * modules/memmem-tests (configure.ac): Likewise.
38282         * modules/memrchr-tests (configure.ac): Likewise.
38283         Reported by Simon Josefsson.
38284
38285 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38286
38287         * tests/test-glob.c: Include string.h for strcmp prototype.
38288
38289 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38290
38291         * modules/getdelim (Depends-on): Add explicit stdint, although it
38292         was implicitly already pulled in via realloc-posix.
38293         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38294
38295 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38296
38297         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38298         G. Christensen" <tgc@jupiterrise.com>.
38299         * m4/sys_socket_h.m4: Check for sa_family_t.
38300         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38301         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38302         * tests/test-sys_socket.c: Check that sa_family_t works.
38303
38304 2009-05-18  Eric Blake  <ebb9@byu.net>
38305
38306         maint.mk: allow gnulib_dir in VPATH build
38307         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38308
38309 2009-05-15  Jim Meyering  <meyering@redhat.com>
38310
38311         maint.mk: Give gnulib_dir a default definition.
38312         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38313         Thus, most packages no longer need to specify this variable in cfg.mk
38314
38315 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38316
38317         rename.m4: fix typos that would make non-mingw cross-configure fail
38318         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38319
38320 2009-05-13  Eric Blake  <ebb9@byu.net>
38321
38322         mmap-anon: avoid out-of-order autoconf expansion
38323         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38324         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38325         * modules/memchr-tests (Depends-on): Add extensions.
38326         * modules/memchr2-tests (Depends-on): Add extensions.
38327         * modules/memcmp-tests (Depends-on): Add extensions.
38328         * modules/memmem-tests (Depends-on): Add extensions.
38329         * modules/memrchr-tests (Depends-on): Add extensions.
38330
38331 2009-05-13  Bruno Haible  <bruno@clisp.org>
38332
38333         Make some tests ISO C 99 compliant.
38334         * tests/zerosize-ptr.h: New file.
38335         * tests/test-memchr.c: Include zerosize-ptr.h.
38336         (main): Use a zero-size object pointer instead of NULL.
38337         * tests/test-memchr2.c: Include zerosize-ptr.h.
38338         (main): Use a zero-size object pointer instead of NULL.
38339         * tests/test-memcmp.c: Include zerosize-ptr.h.
38340         (main): Use a zero-size object pointer instead of NULL.
38341         * tests/test-memmem.c: Include zerosize-ptr.h.
38342         (main): Use a zero-size object pointer instead of NULL.
38343         * tests/test-memrchr.c: Include zerosize-ptr.h.
38344         (main): Use a zero-size object pointer instead of NULL.
38345         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38346         m4/mmap-anon.m4.
38347         (Depends-on): Add getpagesize.
38348         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38349         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38350         m4/mmap-anon.m4.
38351         (Depends-on): Add getpagesize.
38352         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38353         * modules/memcmp-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/memmem-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/memrchr-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
38366 2009-05-12  Bruno Haible  <bruno@clisp.org>
38367
38368         Tests for module 'alignof'.
38369         * modules/alignof-tests: New file.
38370         * tests/test-alignof.c: New file.
38371
38372 2009-05-12  Bruno Haible  <bruno@clisp.org>
38373
38374         Fix alignof macro.
38375         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38376         vendor compilers that are always correct.
38377
38378 2009-05-12  Bruno Haible  <bruno@clisp.org>
38379
38380         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38381         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38382         not whether its fully works.
38383
38384 2009-05-12  Bruno Haible  <bruno@clisp.org>
38385
38386         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38387
38388 2009-05-12  Jim Meyering  <meyering@redhat.com>
38389
38390         * top/maint.mk: Adjust backslash alignment.
38391
38392 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38393
38394         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38395
38396 2009-05-11  Eric Blake  <ebb9@byu.net>
38397
38398         argp: avoid undefined behavior
38399         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38400         macros.
38401
38402 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38403
38404         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38405         user.name to prevent git commit from complaining.
38406
38407 2009-05-10  Bruno Haible  <bruno@clisp.org>
38408
38409         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38410         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38411         it rewrites every file name only once.
38412         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38413
38414 2009-05-08  Bruno Haible  <bruno@clisp.org>
38415
38416         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38417         instead of 'max'.
38418
38419 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38420
38421         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38422         sockaddr_storage test.
38423
38424 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38425
38426         * modules/sys_socket (Makefile.am): Substitute
38427         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38428         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38429         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38430         * tests/test-sys_socket.c: Check sockaddr_storage.
38431
38432 2009-05-08  Bruno Haible  <bruno@clisp.org>
38433
38434         New module 'alignof'.
38435         * lib/alignof.h: New file.
38436         * modules/alignof: New file.
38437
38438 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38439             Bruno Haible  <bruno@clisp.org>
38440
38441         Fix test-file-has-acl on FreeBSD.
38442         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38443         mask is implicitly added.
38444         * tests/test-file-has-acl.c: Include <signal.h>.
38445         (main): Terminate the test after 5 seconds.
38446         * modules/acl-tests (configure.ac): Check for alarm function.
38447
38448 2009-05-04  Bruno Haible  <bruno@clisp.org>
38449
38450         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
38451         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
38452         * modules/errno (configure.ac): Drop AC_REQUIRE.
38453         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
38454         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
38455
38456 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38457
38458         * modules/glob-tests: New module.
38459         * tests/test-glob.c: Add.
38460
38461 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38462
38463         * modules/fnmatch-tests: New module.
38464         * tests/test-fnmatch.c: Add.
38465
38466 2009-05-04  Eric Blake  <ebb9@byu.net>
38467
38468         maint: make the new no-submodule-changes rule VPATH-safe
38469         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
38470
38471 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38472             Bruno Haible  <bruno@clisp.org>
38473
38474         acl: Fix infinite loop on FreeBSD.
38475         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
38476         of return value from acl_get_entry.
38477         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
38478         Likewise.
38479
38480 2009-05-03  Bruno Haible  <bruno@clisp.org>
38481
38482         * lib/acl-internal.h (acl_entries): Clarify return value.
38483         * lib/acl_entries.c (acl_entries): Likewise.
38484
38485 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38486
38487         Bug fix in acl module.
38488         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
38489
38490 2009-05-03  Bruno Haible  <bruno@clisp.org>
38491
38492         Create gperf-generated file in the source dir, not in the build dir.
38493         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
38494         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
38495         * modules/unicase/locale-language (unicase/locale-languages.h):
38496         Likewise.
38497         * modules/unicase/special-casing (unicase/special-casing-table.h):
38498         Likewise.
38499         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
38500         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
38501         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
38502         Reported by Ralf Wildenhues.
38503
38504 2009-05-03  Bruno Haible  <bruno@clisp.org>
38505
38506         * modules/fnmatch (Description, configure.ac): Taken from
38507         fnmatch-posix.
38508         * modules/fnmatch-posix: Turn into a symbolic reference to the
38509         'fnmatch' module, and deprecate.
38510         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
38511
38512 2009-05-03  Bruno Haible  <bruno@clisp.org>
38513
38514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
38515         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
38516         Reported by Ralf Wildenhues.
38517
38518 2009-05-04  Simon Josefsson  <simon@josefsson.org>
38519
38520         * m4/fnmatch.m4: Fix fnmatch re-define.
38521
38522 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38523
38524         priv-set: new module and tests; adapt write-any-file
38525         * lib/priv-set.c: New file.
38526         * lib/priv-set.h: New file.
38527         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
38528         * lib/write-any-file.c: Simplify by using priv-set module.
38529         * m4/priv-set.m4: New file.
38530         * modules/priv-set: New file.
38531         * modules/unlinkdir: Add dependency on priv-set module.
38532         * modules/write-any-file: Likewise.
38533
38534         Tests for module 'priv-set'.
38535         * modules/priv-set-tests: New file.
38536         * tests/test-priv-set.c: New file.
38537
38538 2009-05-03  Jim Meyering  <meyering@redhat.com>
38539             Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
38542         use the converted UTF-8 variant of the name instead.
38543
38544 2009-05-03  Jim Meyering  <meyering@redhat.com>
38545
38546         tests: tighten some getdate tests
38547         * tests/test-getdate.c (main): Tighten tests: require equality,
38548         not just greater than.  Set TZ envvar to UTC0.
38549
38550 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
38551
38552         getdate: correctly interpret "next monday" when run on a Monday
38553         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
38554         that e.g., "next tues" (when run on a tuesday) results in a date
38555         that is one week in the future, and not today's date.
38556         I.e., add a week when the wday is the same as the current one.
38557         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
38558         and earlier by Martin Bernreuther and Jan Minář.
38559         * tests/test-getdate.c (main): Check that "next DAY" is always in
38560         the future and that "last DAY" is always in the past.
38561
38562 2009-05-02  Jim Meyering  <meyering@redhat.com>
38563
38564         build: ensure that a release build fails when a submodule is unclean
38565         * top/maint.mk (no-submodule-changes): New rule.
38566         (alpha beta major): Depend on it.
38567
38568 2009-05-02  Bruno Haible  <bruno@clisp.org>
38569
38570         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
38571         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
38572         shell variable gl_fnmatch_required to detect which variant is
38573         requested.
38574         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
38575         gl_FUNC_FNMATCH_POSIX.
38576         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
38577         exclude fnmatch-posix.
38578
38579 2009-05-02  Bruno Haible  <bruno@clisp.org>
38580
38581         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
38582         * modules/mbsrtowcs (License): Change to LGPLv2+.
38583         * modules/strnlen1 (License): Likewise.
38584         Reported by Simon Josefsson.
38585
38586 2009-05-02  Bruno Haible  <bruno@clisp.org>
38587
38588         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
38589         "cross".
38590         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
38591         gnulib-tool was called with option --source-base=lib.
38592
38593 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38594
38595         Use automake *-local hooks without commands, for extensibility.
38596         * modules/localcharset (Makefile.am): Rename install-exec-local
38597         rule to install-exec-localcharset, and make it a prerequisite of
38598         install-exec-local.  Likewise, rename the uninstall-local rule to
38599         uninstall-localcharset, and make it a prerequisite of the former.
38600
38601 2009-05-01  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
38604         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38605         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
38606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
38607         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
38608         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38609         m4/locale-zh.m4, m4/codeset.m4.
38610
38611         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
38612         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
38613         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
38614         m4/locale-zh.m4.
38615
38616         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
38617         REPLACE_WCRTOMB if mbstate_t must be replaced.
38618         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
38619         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
38620
38621 2009-05-01  Bruno Haible  <bruno@clisp.org>
38622
38623         Avoid compiler warnings when redefining macros defined by <libintl.h>.
38624         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
38625         dngettext, dcngettext, textdomain, bindtextdomain,
38626         bind_textdomain_codeset): Undefine before redefining.
38627
38628 2009-04-30  Bruno Haible  <bruno@clisp.org>
38629
38630         Fix bug introduced on 2009-04-25.
38631         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
38632         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
38633         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
38634         is defined.
38635         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
38636         is defined.
38637         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
38638         is defined.
38639         Reported by Elbert_Pol <elbert.pol@gmail.com>.
38640
38641 2009-04-28  Bruno Haible  <bruno@clisp.org>
38642
38643         Comment tweaks.
38644         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
38645         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
38646         * lib/unicase.h (u*_casexfrm): Likewise.
38647         Reported by Paolo Bonzini.
38648
38649 2009-04-28  Bruno Haible  <bruno@clisp.org>
38650
38651         Fix a compilation error.
38652         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
38653         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38654         Reported by Jim Meyering.
38655
38656 2009-04-27  Bruno Haible  <bruno@clisp.org>
38657
38658         New module 'libunistring'.
38659         * modules/libunistring: New file.
38660         * m4/libunistring.m4: New file.
38661         * MODULES.html.sh (Unicode string functions): Add it.
38662
38663 2009-04-27  Eric Blake  <ebb9@byu.net>
38664
38665         maint.mk: allow package-specific header to provide <config.h>
38666         * top/maint.mk (sc_require_config_h): New variable.
38667         (sc_require_config_h, sc_require_config_h_first): Use it.
38668
38669 2009-04-27  Simon Josefsson  <simon@josefsson.org>
38670
38671         * top/maint.mk (sc_avoid_if_before_free): Except
38672         useless-if-before-free script.
38673
38674 2009-04-27  Eric Blake  <ebb9@byu.net>
38675
38676         maintainer-makefile: depend on all required helper scripts
38677         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
38678         useless-if-before-free.
38679         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
38680         version, rather than assuming gnulib checkout is available.
38681         Reported by Simen Josefsson.
38682
38683 2009-04-26  Bruno Haible  <bruno@clisp.org>
38684
38685         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
38686         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
38687         "../" or "..".
38688
38689 2009-04-26  Bruno Haible  <bruno@clisp.org>
38690
38691         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
38692         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
38693         AC_LIB_HAVE_LINKFLAGS.
38694
38695 2009-04-26  Bruno Haible  <bruno@clisp.org>
38696
38697         Simplify calling convention of u*_conv_from_encoding.
38698         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
38699         u32_conv_from_encoding): Expect a resultbuf argument and return the
38700         result directly as a pointer.
38701         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
38702         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
38703         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
38704         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
38705         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
38706         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38707         Update.
38708         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
38709         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
38710         * lib/vasnprintf.c (VASNPRINTF): Update.
38711         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
38712         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
38713         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
38714         * NEWS: Mention the change.
38715
38716 2009-04-26  Bruno Haible  <bruno@clisp.org>
38717
38718         Simplify calling convention of u*_conv_to_encoding.
38719         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
38720         u32_conv_to_encoding): Expect a resultbuf argument and return the
38721         result directly as a pointer.
38722         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38723         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
38724         freeing scaled_offsets if mem_iconveha failed.
38725         * lib/unicase/u-casexfrm.h (FUNC): Update.
38726         * lib/uninorm/u-normxfrm.h (FUNC): Update.
38727         * lib/vasnprintf.c (VASNPRINTF): Update.
38728         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
38729         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
38730         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
38731         * NEWS: Mention the change.
38732
38733 2009-04-26  Bruno Haible  <bruno@clisp.org>
38734
38735         Avoid test failures on AIX and OSF/1.
38736         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
38737         malloc(0).
38738         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
38739         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
38740         Likewise.
38741         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
38742         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
38743         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
38744         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
38745         * doc/posix-functions/malloc.texi: Document the portability problem
38746         related to malloc(0).
38747
38748 2009-04-26  Bruno Haible  <bruno@clisp.org>
38749
38750         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
38751         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
38752         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
38753
38754 2009-04-25  Bruno Haible  <bruno@clisp.org>
38755
38756         Avoid link error when creating a namespace clean library.
38757         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
38758         as macro with arguments if already defined as an alias.
38759         * lib/signbitf.c (gl_signbitf): Don't undefine.
38760         * lib/signbitd.c (gl_signbitd): Don't undefine.
38761         * lib/signbitl.c (gl_signbitl): Don't undefine.
38762
38763 2009-04-25  Jim Meyering  <meyering@redhat.com>
38764
38765         vc-list-files: fix another quoting bug
38766         * build-aux/vc-list-files: Avoid sed backslash expansion
38767         of pathological directory names.
38768
38769 2009-04-25  Eric Blake  <ebb9@byu.net>
38770
38771         vc-list-files: fix shell quoting error
38772         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
38773         timestamp.
38774
38775 2009-04-25  Jim Meyering  <meyering@redhat.com>
38776
38777         vc-list-files: restore lost functionality with subdir argument
38778         * build-aux/vc-list-files: When given a non-"." sub-directory
38779         argument, substitute the $dir/ prefix back onto each resulting name.
38780         Otherwise, coreutils' root_tests check would fail.
38781
38782 2009-04-24  Eric Blake  <ebb9@byu.net>
38783
38784         vc-list-files: ignore git symlinks
38785         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
38786         than ls-files, to ignore git symlinks.
38787
38788         maint.mk: import improvements from m4
38789         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
38790         (move_if_change): Delete unused macro.
38791         (news-date-check, vc-diff-check): Support VPATH builds.
38792         (announcement): Likewise.  Split --bootstrap-tools list...
38793         (boostrap-tools): ...into separate list, which can be overridden
38794         in cfg.mk.
38795         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
38796         requiring dependency on useless-if-before-free module.
38797         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
38798         Support VPATH builds.
38799
38800 2009-04-24  Jim Meyering  <meyering@redhat.com>
38801
38802         maint.mk: remove coreutils-specific rules and variables
38803         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
38804         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
38805         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
38806
38807         maint.mk: remove obsolete rule
38808         * top/maint.mk (rel-check): Remove rule.
38809         (WGET, WGETFLAGS): Remove now-unused variables.
38810
38811 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38812
38813         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
38814         consistency.
38815
38816         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
38817         '$(PATH_SEPARATOR)' instead of ':'.
38818
38819 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38820
38821         * lib/getopt1.c (main): Use 'const' for static array.
38822
38823 2009-04-24  Simon Josefsson  <simon@josefsson.org>
38824
38825         * top/maint.mk: Sync with coreutils.
38826         * NEWS: Explain incompatibilities.
38827
38828 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38829             Bruno Haible  <bruno@clisp.org>
38830
38831         Fix cross-compilation results.
38832         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
38833         statement, as third argument of AC_TRY_RUN.
38834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
38835         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
38836         Likewise.
38837         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
38838         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
38839         Likewise.
38840         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
38842         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
38843
38844 2009-04-20  Bruno Haible  <bruno@clisp.org>
38845
38846         Avoid test failure on mingw.
38847         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
38848
38849 2009-04-20  Bruno Haible  <bruno@clisp.org>
38850
38851         Avoid compilation error on mingw.
38852         * modules/localename-tests (Depends-on): Add locale.
38853
38854 2009-04-19  Bruno Haible  <bruno@clisp.org>
38855
38856         Support for building a shared library on Windows platforms.
38857         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
38858         (main): Test the presence of UNINORM_NFC here.
38859         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
38860         (main): Test the presence of UNINORM_NFD here.
38861         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
38862         (main): Test the presence of UNINORM_NFKC here.
38863         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
38864         (main): Test the presence of UNINORM_NFKD here.
38865
38866 2009-04-19  Bruno Haible  <bruno@clisp.org>
38867
38868         Avoid a compiler warning.
38869         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
38870         Change type of variable 'sequence'.
38871
38872 2009-04-19  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/configmake (Makefile.am): When the contents of configmake.h
38875         does not change, arrange to preserve its modification time.
38876
38877 2009-04-17  Simon Josefsson  <simon@josefsson.org>
38878
38879         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
38880         gettext domain.
38881
38882 2009-04-16  Jim Meyering  <meyering@redhat.com>
38883
38884         useless-if-before-free: improve conversion code
38885         * build-aux/useless-if-before-free: Adjust code-in-comment to match
38886         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
38887
38888 2009-04-14  Bruno Haible  <bruno@clisp.org>
38889
38890         * modules/fcntl (Depends-on): Add extensions.
38891         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
38892
38893 2009-04-12  Ben Pfaff  <blp@gnu.org>
38894
38895         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
38896         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
38897
38898 2009-03-20  Ben Pfaff  <blp@gnu.org>
38899
38900         Make rename replace existing destinations on Windows.
38901         * m4/rename.m4: Add test for Mingw.
38902         * lib/rename.c: Add rename replacement that uses MoveFileEx with
38903         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
38904         * doc/posix-functions/rename.texi: Document.
38905
38906 2009-04-10  Bruno Haible  <bruno@clisp.org>
38907
38908         New include file "iconveh.h".
38909         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
38910         * lib/striconveh.h: Include it.
38911         (enum iconv_ilseq_handler): Remove definition.
38912         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
38913         striconveh.h.
38914         * lib/striconveha.c: Include striconveh.h.
38915         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
38916         * modules/striconveh (Files): Add lib/iconveh.h.
38917         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
38918         lib/striconveh.h.
38919
38920 2009-04-10  Bruno Haible  <bruno@clisp.org>
38921
38922         * lib/uniconv.h: Update comment.
38923
38924 2009-04-10  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
38927         always.
38928         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38929         * lib/unistr/u16-mbtouc-aux.c: Likewise.
38930         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
38931         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
38932         "unistring-notinline.h", so that the function gets defined always.
38933         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38934         * lib/unistr/u8-uctomb.c: Likewise.
38935         * lib/unistr/u16-mbtouc.c: Likewise.
38936         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
38937         * lib/unistr/u16-uctomb.c: Likewise.
38938         * lib/unistr/u32-mbtouc.c: Likewise.
38939         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
38940         * lib/unistr/u32-uctomb.c: Likewise.
38941
38942 2009-04-10  Bruno Haible  <bruno@clisp.org>
38943
38944         Mark 'utime' obsolete.
38945         * modules/utime (Status, Notice): New sections.
38946         Suggested by Jim Meyering.
38947
38948         Fix cross-compile guess for utime test.
38949         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
38950         autoconf.
38951         * doc/posix-functions/utime.texi: Give more precisions.
38952         Reported by Jan <ipif@ymail.com>.
38953
38954 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
38955
38956         filevercmp: correct today's change
38957         * lib/filevercmp.c: Also handle coreutils' test inputs.
38958         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
38959
38960         Fix regression in 'filevercmp' module. Thanks Sven Joachim
38961         for reporting it.
38962         * lib/filevercmp.c: Special handle for "", "." and "..".
38963         * tests/test-filevercmp.c: Enlarge the set suite.
38964
38965 2009-04-07  Jim Meyering  <meyering@redhat.com>
38966
38967         useless-if-before-free: show how to remove braced useless free, too
38968         * build-aux/useless-if-before-free: still only in a comment, though.
38969
38970 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
38971
38972         maint.mk: import changes to syntax-check macros from coreutils
38973         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
38974         Use them in the relevant macros.
38975
38976 2009-04-06  Bruno Haible  <bruno@clisp.org>
38977
38978         Fix unportable use of bit-fields.
38979         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
38980         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
38981         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
38982
38983 2009-04-06  Bruno Haible  <bruno@clisp.org>
38984
38985         Avoid test failures on AIX and OSF/1.
38986         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
38987         that malloc(0) = NULL.
38988         * tests/unicase/test-u8-tolower.c (check): Likewise.
38989         * tests/unicase/test-u8-totitle.c (check): Likewise.
38990         * tests/unicase/test-u8-toupper.c (check): Likewise.
38991         * tests/unicase/test-u16-casefold.c (check): Likewise.
38992         * tests/unicase/test-u16-tolower.c (check): Likewise.
38993         * tests/unicase/test-u16-totitle.c (check): Likewise.
38994         * tests/unicase/test-u16-toupper.c (check): Likewise.
38995         * tests/unicase/test-u32-casefold.c (check): Likewise.
38996         * tests/unicase/test-u32-tolower.c (check): Likewise.
38997         * tests/unicase/test-u32-totitle.c (check): Likewise.
38998         * tests/unicase/test-u32-toupper.c (check): Likewise.
38999         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39000         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39001         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39002         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39003         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39004         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39005         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39006         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39007         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39008         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39009         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39010         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39011
39012 2009-04-05  Bruno Haible  <bruno@clisp.org>
39013
39014         Work around an autoconf limitation.
39015         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39016         comment line if it would be longer than 3 KB.
39017
39018 2009-04-05  Bruno Haible  <bruno@clisp.org>
39019
39020         Avoid test failure with libiconv-1.13.
39021         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39022         of the expected test results.
39023
39024 2009-04-05  Bruno Haible  <bruno@clisp.org>
39025
39026         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39027         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39028         that it should be installed.
39029
39030 2009-04-05  Bruno Haible  <bruno@clisp.org>
39031
39032         * gnulib-tool: New option --copy-file.
39033         (func_usage): Document it.
39034         (func_dest_tmpfilename): Moved out of func_import.
39035         (func_add_file, func_update_file): New functions, extracted from
39036         func_import.
39037         (func_import): Update.
39038
39039 2009-04-05  Karl Berry  <karl@gnu.org>
39040
39041         * README: prominently mention gnulib-tool.
39042         Rearrange sections so getting the code is near the top.
39043
39044 2009-04-05  Bruno Haible  <bruno@clisp.org>
39045
39046         * lib/unicase.h: Mention u*_cmp2.
39047         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39048         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39049         * lib/unicase/ulc-casecmp.c: Likewise.
39050         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39051         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39052         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39053         unistr/u8-cmp.
39054         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39055         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39056         unistr/u16-cmp.
39057         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39058         unistr/u32-cmp.
39059
39060         * lib/uninorm.h: Mention u*_cmp2.
39061         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39062         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39063         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39064         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39065         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39066         unistr/u8-cmp.
39067         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39068         unistr/u16-cmp.
39069         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39070         unistr/u32-cmp.
39071
39072         New module 'unistr/u32-cmp2'.
39073         * lib/unistr/u32-cmp2.c: New file.
39074         * modules/unistr/u32-cmp2: New file.
39075
39076         New module 'unistr/u16-cmp2'.
39077         * lib/unistr/u16-cmp2.c: New file.
39078         * modules/unistr/u16-cmp2: New file.
39079
39080         New module 'unistr/u8-cmp2'.
39081         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39082         * lib/unistr/u8-cmp2.c: New file.
39083         * lib/unistr/u-cmp2.h: New file.
39084         * modules/unistr/u8-cmp2: New file.
39085
39086 2009-04-05  Bruno Haible  <bruno@clisp.org>
39087
39088         * lib/unictype.h (uc_property_is_valid): New macro.
39089         * tests/unictype/test-pr_byname.c (main): Use it.
39090
39091         * lib/unistr.h: Doc fixes.
39092         * lib/uniconv.h: Doc fixes.
39093         * lib/unictype.h: Doc fixes.
39094
39095 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39096
39097         Port coreutils 7.2 to Solaris 8.
39098
39099         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39100         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39101         for Solaris 8.  This is a bit of a hack, as it means it's the
39102         caller's responsibility to add -lnsl if needed, but most likely it
39103         won't be needed since only getaddrinfo uses this and getaddrinfo
39104         isn't needed on Solaris 8.
39105
39106         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39107         problem to Solaris 8 encountered with coreutils 7.2, which
39108         resulted in a message "fnmatch.c:292: warning: passing argument 4
39109         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39110         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39111
39112 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39113
39114         * m4/ld-version-script.m4: Add FIXME comment.
39115
39116 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39117
39118         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39119         SOVERSION variable.
39120
39121 2009-04-02  Bruno Haible  <bruno@clisp.org>
39122
39123         * Makefile (info, html, dvi, pdf): Combine the rules.
39124         Suggested by Jim Meyering.
39125
39126 2009-04-01  Bruno Haible  <bruno@clisp.org>
39127
39128         * Makefile (info, html, dvi, pdf): New targets.
39129         Reported by Reuben Thomas <rrt@sc3d.org>.
39130
39131 2009-04-01  Bruno Haible  <bruno@clisp.org>
39132
39133         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39134         can be put into PATH.
39135         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39136
39137 2009-04-01  Bruno Haible  <bruno@clisp.org>
39138
39139         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39140
39141 2009-04-01  Bruno Haible  <bruno@clisp.org>
39142
39143         Rename module 'visibility'.
39144         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39145         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39146         * doc/gnulib.texi: Update.
39147         * MODULES.html.sh (Misc): Update.
39148         * NEWS: Mention the change.
39149
39150 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39151
39152         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39153         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39154         Eric Blake <ebb9@byu.net> for review.
39155         * MODULES.html.sh: Add lib-msvc-compat.
39156         * doc/gnulib.texi: Link to new section.
39157         * m4/ld-output-def.m4: New file.
39158         * doc/ld-output-def.texi: New file.
39159
39160 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39161
39162         Rename ld-version-script to lib-symbol-versions.  Suggested by
39163         Bruno Haible <bruno@clisp.org>.
39164         * modules/ld-version-script: Renamed to lib-symbol-versions.
39165         * doc/ld-version-script.texi: Fix module name.
39166         * MODULES.html.sh: Add lib-symbol-versions.
39167
39168 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39169
39170         * modules/u64-tests: New file.
39171         * tests/test-u64.c: New file.
39172
39173 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39174
39175         * MODULES.html.sh: Mention u64.
39176         * modules/u64: New module.
39177         * modules/crypto/sha512: Depend on u64 module instead of providing
39178         u64.h.
39179
39180 2009-03-27  Eric Blake  <ebb9@byu.net>
39181
39182         test-strerror: make debugging EAI_SYSTEM easier
39183         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39184         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39185         failure was EAI_SYSTEM.
39186
39187 2009-03-25  Bruno Haible  <bruno@clisp.org>
39188
39189         Fix a problem with --enable-relocatable on Solaris 7.
39190         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39191         since 2008-02-24.
39192
39193 2009-03-25  Eric Blake  <ebb9@byu.net>
39194
39195         test-sockets: avoid gcc warning
39196         * tests/test-sockets.c (main): Silence compiler warning.
39197
39198 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39199
39200         New modules nproc, pthread, contributed by Glen Lenker.
39201
39202         * MODULES.html.sh: Add pthread, nproc.
39203         * lib/nproc.c: New file.
39204         * lib/nproc.h: New file.
39205         * lib/pthread.in.h: New file.
39206         * m4/pthread.m4: New file.
39207         * modules/nproc: New file.
39208         * modules/pthread: New file.
39209
39210 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39211
39212         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39213         New variable.
39214
39215 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39216
39217         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39218         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39219         * tests/test-filevercmp.c: Add tests for backup suffixes.
39220
39221 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39222
39223         * modules/stdlib (Depends-on): Add stdint, needed when defining
39224         struct random_data on, for example, HP-UX 10.20.  Reported by
39225         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39226
39227 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39228
39229         * lib/readline.c (readline): Call fflush on stdout after printing
39230         prompt.
39231
39232 2009-03-20  Bruno Haible  <bruno@clisp.org>
39233
39234         Remove dependency from 'close' module to -lws2_32 on native Windows.
39235         * lib/close-hook.h: New file.
39236         * lib/close-hook.c: New file.
39237         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39238         w32sock.h.
39239         (_gl_close_fd_maybe_socket): Remove function.
39240         (rpl_close): Invoke execute_all_close_hooks instead of
39241         _gl_close_fd_maybe_socket.
39242         * lib/sockets.c: Include close-hook.h, w32sock.h.
39243         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39244         (close_sockets_hook): New variable.
39245         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39246         (gl_sockets_cleanup): Unregister it.
39247         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39248         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39249         * modules/close-hook: New file.
39250         * modules/close (Files): Remove lib/w32sock.h.
39251         (Depends-on): Add close-hook.
39252         (Link): Remove section.
39253         * modules/sockets (Files): Add lib/w32sock.h.
39254         (Depends-on): Add close-hook.
39255         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39256         invocation.
39257         * NEWS: Mention that LIB_CLOSE is gone.
39258
39259 2009-03-23  Eric Blake  <ebb9@byu.net>
39260
39261         signal-tests: test previous patch
39262         * tests/test-signal.c: New file.
39263         * modules/signal-tests: Likewise.
39264
39265         signal.h: always support 'volatile sig_atomic_t'
39266         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39267         (gl_SIGNAL_H_DEFAULTS): Add a default.
39268         * modules/signal (Makefile.am): Substitute if needed.
39269         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39270         users can blindly add volatile.
39271         * doc/posix-headers/signal.texi (signal.h): Document it.
39272         Reported by Matthew Woehlke.
39273
39274 2009-03-23  Jim Meyering  <meyering@redhat.com>
39275
39276         pathmax: PATH_MAX: use pathconf only when available
39277         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39278         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39279         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39280         This avoids a link failure in a PSP cross-compilation environment
39281         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39282
39283         * lib/vasnprintf.c (divide): Fix typo in comment.
39284
39285 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39286
39287         * gnulib-tool (func_filter_filelist): Fix comment.
39288
39289 2009-03-20  Bruno Haible  <bruno@clisp.org>
39290
39291         Make sockets.h self-contained.
39292         * lib/sockets.c: Include sockets.h first.
39293         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39294
39295 2009-03-19  Eric Blake  <ebb9@byu.net>
39296
39297         doc: mention more functions added in cygwin 1.7.0
39298         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39299         addition.
39300         * doc/posix-functions/log2f.texi: Likewise.
39301
39302 2009-03-19  Jim Meyering  <meyering@redhat.com>
39303
39304         fsusage: avoid syntax error due to statement-before-declaration
39305         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39306         after all declarations.  Reported by Matthew Woehlke in
39307         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39308
39309 2009-03-18  Eric Blake  <ebb9@byu.net>
39310
39311         build-aux/compile: sync from automake
39312         * build-aux/compile: New file, from automake.
39313         * config/srclist.txt: Mention build-aux/compile.
39314
39315 2009-03-17  Bruno Haible  <bruno@clisp.org>
39316
39317         * lib/git-merge-changelog.c: Fix typo in comment.
39318         Reported by Reuben Thomas <rrt@sc3d.org>.
39319
39320 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39321
39322         * m4/regex.m4: update and improve help for
39323         --without-included-regex.
39324
39325 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39326
39327         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39328         failure on missing include files.
39329
39330 2009-03-17  Eric Blake  <ebb9@byu.net>
39331
39332         doc: mention more functions added in cygwin 1.7.0
39333         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39334         addition.
39335         * doc/posix-functions/fwscanf.texi: Likewise.
39336         * doc/posix-functions/swprintf.texi: Likewise.
39337         * doc/posix-functions/swscanf.texi: Likewise.
39338         * doc/posix-functions/vfwprintf.texi: Likewise.
39339         * doc/posix-functions/vfwscanf.texi: Likewise.
39340         * doc/posix-functions/vswprintf.texi: Likewise.
39341         * doc/posix-functions/vswscanf.texi: Likewise.
39342         * doc/posix-functions/vwprintf.texi: Likewise.
39343         * doc/posix-functions/vwscanf.texi: Likewise.
39344         * doc/posix-functions/wcscasecmp.texi: Likewise.
39345         * doc/posix-functions/wcsdup.texi: Likewise.
39346         * doc/posix-functions/wcsftime.texi: Likewise.
39347         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39348         * doc/posix-functions/wprintf.texi: Likewise.
39349         * doc/posix-functions/wscanf.texi: Likewise.
39350         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39351
39352 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39353
39354         maint.mk: really add $(AM_MAKEFLAGS)
39355         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39356         was inadvertently omitted in the last commit.
39357         Spotted by Bruno Haible.
39358
39359         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39360         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39361         $(AM_MAKEFLAGS)' rather than plain `make'.
39362
39363         gnulib-tool: execute $MAKE not make
39364         * gnulib-tool: Default $MAKE to 'make'.
39365         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39366         than make.  Initialize $MAKE in the do-autobuild script.
39367
39368         gnulib-tool: use $MAKE not make in generated files
39369         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39370         make, in generated files.  Initialize $MAKE in the do-autobuild
39371         script.
39372
39373         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39374
39375         GNUmakefile: disable parallelism only for multiple, recursive targets
39376         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39377         additions in the Makefile.
39378         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39379         by Automake.
39380         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39381         are listed on the command line and at least one of them is
39382         listed in $(ALL_RECURSIVE_TARGETS).
39383
39384 2009-03-14  Bruno Haible  <bruno@clisp.org>
39385
39386         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39387         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39388         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39389         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39390         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39391         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39392         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39393         unistr/u8-uctomb.
39394         * modules/unistr/u8-strchr (Depends-on): Likewise.
39395         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39396         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39397         unistr/u16-uctomb.
39398         * modules/unistr/u16-strchr (Depends-on): Likewise.
39399         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39400
39401 2009-03-12  Bruno Haible  <bruno@clisp.org>
39402
39403         Work around select() bug on Interix 3.5.
39404         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39405         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39406         * m4/select.m4: New file.
39407         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39408         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39409         * modules/select (Files): Add m4/select.m4.
39410         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39411         * modules/nanosleep (Depends-on): Add select.
39412         * modules/poll (Depends-on): Likewise.
39413         * doc/posix-functions/select.texi: Mention the Interix bug.
39414         Reported by Markus Duft <mduft@gentoo.org>.
39415
39416         * lib/select.c: Renamed from lib/winsock-select.c.
39417         * modules/select (Files): Add lib/select.c, remove
39418         lib/winsock-select.c.
39419         (configure.ac): Update.
39420
39421 2009-03-12  Jim Meyering  <meyering@redhat.com>
39422
39423         avoid gcc warnings about unused macro definitions
39424         * lib/readtokens.c (STREQ): Remove unused definition.
39425         * lib/xmalloc.c (SIZE_MAX): Likewise.
39426         * lib/openat-die.c (N_): Likewise.
39427         * lib/mountlist.c (SIZE_MAX): Remove definition.
39428         Instead, include <stdint.h>.
39429         * lib/readutmp.c: Likewise.
39430         * modules/readutmp (Depends-on): Add stdint.
39431         * modules/mountlist (Depends-on): Add stdint.
39432         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39433
39434 2009-03-10  Bruno Haible  <bruno@clisp.org>
39435
39436         Tests for module 'mbmemcasecoll'.
39437         * modules/mbmemcasecoll-tests: New file.
39438         * tests/test-mbmemcasecoll1.sh: New file.
39439         * tests/test-mbmemcasecoll2.sh: New file.
39440         * tests/test-mbmemcasecoll3.sh: New file.
39441         * tests/test-mbmemcasecoll.c: New file.
39442
39443         New module 'mbmemcasecoll'.
39444         * lib/mbmemcasecoll.h: New file.
39445         * lib/mbmemcasecoll.c: New file.
39446         * modules/mbmemcasecoll: New file.
39447
39448         * tests/test-mbmemcasecmp.h: New file, extracted from
39449         tests/test-mbmemcasecmp.c.
39450         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
39451         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
39452         (main): Update.
39453         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
39454
39455 2009-03-09  Bruno Haible  <bruno@clisp.org>
39456
39457         Tests for module 'mbmemcasecmp'.
39458         * modules/mbmemcasecmp-tests: New file.
39459         * tests/test-mbmemcasecmp1.sh: New file.
39460         * tests/test-mbmemcasecmp2.sh: New file.
39461         * tests/test-mbmemcasecmp3.sh: New file.
39462         * tests/test-mbmemcasecmp.c: New file.
39463
39464         New module 'mbmemcasecmp'.
39465         * lib/mbmemcasecmp.h: New file.
39466         * lib/mbmemcasecmp.c: New file.
39467         * modules/mbmemcasecmp: New file.
39468
39469 2009-03-09  Bruno Haible  <bruno@clisp.org>
39470
39471         Tests for module 'unicase/ulc-casecoll'.
39472         * modules/unicase/ulc-casecoll-tests: New file.
39473         * tests/unicase/test-ulc-casecoll1.sh: New file.
39474         * tests/unicase/test-ulc-casecoll2.sh: New file.
39475         * tests/unicase/test-ulc-casecoll.c: New file.
39476
39477         New module 'unicase/ulc-casecoll'.
39478         * lib/unicase.h (ulc_casecoll): New declaration.
39479         * lib/unicase/ulc-casecoll.c: New file.
39480         * modules/unicase/ulc-casecoll: New file.
39481
39482         New module 'unicase/ulc-casexfrm'.
39483         * lib/unicase.h (ulc_casexfrm): New declaration.
39484         * lib/unicase/ulc-casexfrm.c: New file.
39485         * modules/unicase/ulc-casexfrm: New file.
39486
39487 2009-03-09  Bruno Haible  <bruno@clisp.org>
39488
39489         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
39490         invocations.
39491
39492         * m4/mbscasecmp.m4: Remove file.
39493         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
39494         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
39495
39496         * m4/mbscasestr.m4: Remove file.
39497         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
39498         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
39499
39500         * m4/mbschr.m4: Remove file.
39501         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
39502         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
39503
39504         * m4/mbscspn.m4: Remove file.
39505         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
39506         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
39507
39508         * m4/mbslen.m4: Remove file.
39509         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
39510         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
39511
39512         * m4/mbsncasecmp.m4: Remove file.
39513         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
39514         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
39515
39516         * m4/mbsnlen.m4: Remove file.
39517         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
39518         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
39519
39520         * m4/mbspbrk.m4: Remove file.
39521         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
39522         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
39523
39524         * m4/mbspcasecmp.m4: Remove file.
39525         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
39526         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
39527
39528         * m4/mbsrchr.m4: Remove file.
39529         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
39530         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
39531
39532         * m4/mbssep.m4: Remove file.
39533         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
39534         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
39535
39536         * m4/mbsspn.m4: Remove file.
39537         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
39538         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
39539
39540         * m4/mbsstr.m4: Remove file.
39541         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
39542         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
39543
39544         * m4/mbstok_r.m4: Remove file.
39545         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
39546         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
39547
39548         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
39549
39550         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
39551         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
39552
39553         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
39554
39555 2009-03-08  Bruno Haible  <bruno@clisp.org>
39556
39557         Tests for module 'unicase/ulc-casecmp'.
39558         * modules/unicase/ulc-casecmp-tests: New file.
39559         * tests/unicase/test-ulc-casecmp1.sh: New file.
39560         * tests/unicase/test-ulc-casecmp2.sh: New file.
39561         * tests/unicase/test-ulc-casecmp.c: New file.
39562
39563         New module 'unicase/ulc-casecmp'.
39564         * lib/unicase.h (ulc_casecmp): New declaration.
39565         * lib/unicase/ulc-casecmp.c: New file.
39566         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
39567         'const SRC_UNIT *'.
39568         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
39569         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
39570         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
39571         * modules/unicase/ulc-casecmp: New file.
39572
39573         Tests for module 'unicase/u32-is-cased'.
39574         * modules/unicase/u32-is-cased-tests: New file.
39575         * tests/unicase/test-u32-is-cased.c: New file.
39576
39577         Tests for module 'unicase/u16-is-cased'.
39578         * modules/unicase/u16-is-cased-tests: New file.
39579         * tests/unicase/test-u16-is-cased.c: New file.
39580
39581         Tests for module 'unicase/u8-is-cased'.
39582         * modules/unicase/u8-is-cased-tests: New file.
39583         * tests/unicase/test-u8-is-cased.c: New file.
39584         * tests/unicase/test-is-cased.h: New file.
39585
39586         New module 'unicase/u32-is-cased'.
39587         * lib/unicase/u32-is-cased.c: New file.
39588         * modules/unicase/u32-is-cased: New file.
39589
39590         New module 'unicase/u16-is-cased'.
39591         * lib/unicase/u16-is-cased.c: New file.
39592         * modules/unicase/u16-is-cased: New file.
39593
39594         New module 'unicase/u8-is-cased'.
39595         * lib/unicase/u8-is-cased.c: New file.
39596         * lib/unicase/u-is-cased.h: New file.
39597         * modules/unicase/u8-is-cased: New file.
39598
39599         Tests for module 'unicase/u32-is-casefolded'.
39600         * modules/unicase/u32-is-casefolded-tests: New file.
39601         * tests/unicase/test-u32-is-casefolded.c: New file.
39602
39603         Tests for module 'unicase/u16-is-casefolded'.
39604         * modules/unicase/u16-is-casefolded-tests: New file.
39605         * tests/unicase/test-u16-is-casefolded.c: New file.
39606
39607         Tests for module 'unicase/u8-is-casefolded'.
39608         * modules/unicase/u8-is-casefolded-tests: New file.
39609         * tests/unicase/test-u8-is-casefolded.c: New file.
39610         * tests/unicase/test-is-casefolded.h: New file.
39611
39612         New module 'unicase/u32-is-casefolded'.
39613         * lib/unicase/u32-is-casefolded.c: New file.
39614         * modules/unicase/u32-is-casefolded: New file.
39615
39616         New module 'unicase/u16-is-casefolded'.
39617         * lib/unicase/u16-is-casefolded.c: New file.
39618         * modules/unicase/u16-is-casefolded: New file.
39619
39620         New module 'unicase/u8-is-casefolded'.
39621         * lib/unicase/u8-is-casefolded.c: New file.
39622         * modules/unicase/u8-is-casefolded: New file.
39623
39624         Tests for module 'unicase/u32-is-titlecase'.
39625         * modules/unicase/u32-is-titlecase-tests: New file.
39626         * tests/unicase/test-u32-is-titlecase.c: New file.
39627
39628         Tests for module 'unicase/u16-is-titlecase'.
39629         * modules/unicase/u16-is-titlecase-tests: New file.
39630         * tests/unicase/test-u16-is-titlecase.c: New file.
39631
39632         Tests for module 'unicase/u8-is-titlecase'.
39633         * modules/unicase/u8-is-titlecase-tests: New file.
39634         * tests/unicase/test-u8-is-titlecase.c: New file.
39635         * tests/unicase/test-is-titlecase.h: New file.
39636
39637         New module 'unicase/u32-is-titlecase'.
39638         * lib/unicase/u32-is-titlecase.c: New file.
39639         * modules/unicase/u32-is-titlecase: New file.
39640
39641         New module 'unicase/u16-is-titlecase'.
39642         * lib/unicase/u16-is-titlecase.c: New file.
39643         * modules/unicase/u16-is-titlecase: New file.
39644
39645         New module 'unicase/u8-is-titlecase'.
39646         * lib/unicase/u8-is-titlecase.c: New file.
39647         * modules/unicase/u8-is-titlecase: New file.
39648
39649         Tests for module 'unicase/u32-is-lowercase'.
39650         * modules/unicase/u32-is-lowercase-tests: New file.
39651         * tests/unicase/test-u32-is-lowercase.c: New file.
39652
39653         Tests for module 'unicase/u16-is-lowercase'.
39654         * modules/unicase/u16-is-lowercase-tests: New file.
39655         * tests/unicase/test-u16-is-lowercase.c: New file.
39656
39657         Tests for module 'unicase/u8-is-lowercase'.
39658         * modules/unicase/u8-is-lowercase-tests: New file.
39659         * tests/unicase/test-u8-is-lowercase.c: New file.
39660         * tests/unicase/test-is-lowercase.h: New file.
39661
39662         New module 'unicase/u32-is-lowercase'.
39663         * lib/unicase/u32-is-lowercase.c: New file.
39664         * modules/unicase/u32-is-lowercase: New file.
39665
39666         New module 'unicase/u16-is-lowercase'.
39667         * lib/unicase/u16-is-lowercase.c: New file.
39668         * modules/unicase/u16-is-lowercase: New file.
39669
39670         New module 'unicase/u8-is-lowercase'.
39671         * lib/unicase/u8-is-lowercase.c: New file.
39672         * modules/unicase/u8-is-lowercase: New file.
39673
39674         Tests for module 'unicase/u32-is-uppercase'.
39675         * modules/unicase/u32-is-uppercase-tests: New file.
39676         * tests/unicase/test-u32-is-uppercase.c: New file.
39677
39678         Tests for module 'unicase/u16-is-uppercase'.
39679         * modules/unicase/u16-is-uppercase-tests: New file.
39680         * tests/unicase/test-u16-is-uppercase.c: New file.
39681
39682         Tests for module 'unicase/u8-is-uppercase'.
39683         * modules/unicase/u8-is-uppercase-tests: New file.
39684         * tests/unicase/test-u8-is-uppercase.c: New file.
39685         * tests/unicase/test-is-uppercase.h: New file.
39686
39687         New module 'unicase/u32-is-uppercase'.
39688         * lib/unicase/u32-is-uppercase.c: New file.
39689         * modules/unicase/u32-is-uppercase: New file.
39690
39691         New module 'unicase/u16-is-uppercase'.
39692         * lib/unicase/u16-is-uppercase.c: New file.
39693         * modules/unicase/u16-is-uppercase: New file.
39694
39695         New module 'unicase/u8-is-uppercase'.
39696         * lib/unicase/u8-is-uppercase.c: New file.
39697         * modules/unicase/u8-is-uppercase: New file.
39698
39699         New module 'unicase/u32-is-invariant'.
39700         * lib/unicase/u32-is-invariant.c: New file.
39701         * modules/unicase/u32-is-invariant: New file.
39702
39703         New module 'unicase/u16-is-invariant'.
39704         * lib/unicase/u16-is-invariant.c: New file.
39705         * modules/unicase/u16-is-invariant: New file.
39706
39707         New module 'unicase/u8-is-invariant'.
39708         * lib/unicase/u8-is-invariant.c: New file.
39709         * lib/unicase/invariant.h: New file.
39710         * lib/unicase/u-is-invariant.h: New file.
39711         * modules/unicase/u8-is-invariant: New file.
39712
39713         Tests for module 'unicase/u32-casecoll'.
39714         * modules/unicase/u32-casecoll-tests: New file.
39715         * tests/unicase/test-u32-casecoll.c: New file.
39716
39717         Tests for module 'unicase/u16-casecoll'.
39718         * modules/unicase/u16-casecoll-tests: New file.
39719         * tests/unicase/test-u16-casecoll.c: New file.
39720
39721         Tests for module 'unicase/u8-casecoll'.
39722         * modules/unicase/u8-casecoll-tests: New file.
39723         * tests/unicase/test-u8-casecoll.c: New file.
39724
39725         New module 'unicase/u32-casecoll'.
39726         * lib/unicase/u32-casecoll.c: New file.
39727         * modules/unicase/u32-casecoll: New file.
39728
39729         New module 'unicase/u16-casecoll'.
39730         * lib/unicase/u16-casecoll.c: New file.
39731         * modules/unicase/u16-casecoll: New file.
39732
39733         New module 'unicase/u8-casecoll'.
39734         * lib/unicase/u8-casecoll.c: New file.
39735         * lib/unicase/u-casecoll.h: New file.
39736         * modules/unicase/u8-casecoll: New file.
39737
39738         New module 'unicase/u32-casexfrm'.
39739         * lib/unicase/u32-casexfrm.c: New file.
39740         * modules/unicase/u32-casexfrm: New file.
39741
39742         New module 'unicase/u16-casexfrm'.
39743         * lib/unicase/u16-casexfrm.c: New file.
39744         * modules/unicase/u16-casexfrm: New file.
39745
39746         New module 'unicase/u8-casexfrm'.
39747         * lib/unicase/u8-casexfrm.c: New file.
39748         * lib/unicase/u-casexfrm.h: New file.
39749         * modules/unicase/u8-casexfrm: New file.
39750
39751         Tests for module 'unicase/u32-casecmp'.
39752         * modules/unicase/u32-casecmp-tests: New file.
39753         * tests/unicase/test-u32-casecmp.c: New file.
39754
39755         Tests for module 'unicase/u16-casecmp'.
39756         * modules/unicase/u16-casecmp-tests: New file.
39757         * tests/unicase/test-u16-casecmp.c: New file.
39758
39759         Tests for module 'unicase/u8-casecmp'.
39760         * modules/unicase/u8-casecmp-tests: New file.
39761         * tests/unicase/test-u8-casecmp.c: New file.
39762         * tests/unicase/test-casecmp.h: New file.
39763
39764         New module 'unicase/u32-casecmp'.
39765         * lib/unicase/u32-casecmp.c: New file.
39766         * modules/unicase/u32-casecmp: New file.
39767
39768         New module 'unicase/u16-casecmp'.
39769         * lib/unicase/u16-casecmp.c: New file.
39770         * modules/unicase/u16-casecmp: New file.
39771
39772         New module 'unicase/u8-casecmp'.
39773         * lib/unicase/u8-casecmp.c: New file.
39774         * lib/unicase/u-casecmp.h: New file.
39775         * modules/unicase/u8-casecmp: New file.
39776
39777         Tests for module 'unicase/u32-casefold'.
39778         * modules/unicase/u32-casefold-tests: New file.
39779         * tests/unicase/test-u32-casefold.c: New file.
39780
39781         Tests for module 'unicase/u16-casefold'.
39782         * modules/unicase/u16-casefold-tests: New file.
39783         * tests/unicase/test-u16-casefold.c: New file.
39784
39785         Tests for module 'unicase/u8-casefold'.
39786         * modules/unicase/u8-casefold-tests: New file.
39787         * tests/unicase/test-u8-casefold.c: New file.
39788
39789         New module 'unicase/u32-casefold'.
39790         * lib/unicase/u32-casefold.c: New file.
39791         * modules/unicase/u32-casefold: New file.
39792
39793         New module 'unicase/u16-casefold'.
39794         * lib/unicase/u16-casefold.c: New file.
39795         * modules/unicase/u16-casefold: New file.
39796
39797         New module 'unicase/u8-casefold'.
39798         * lib/unicase/u8-casefold.c: New file.
39799         * lib/unicase/u-casefold.h: New file.
39800         * modules/unicase/u8-casefold: New file.
39801
39802         New module 'unicase/tocasefold'.
39803         * lib/unicase/casefold.h: New file.
39804         * lib/unicase/tocasefold.c: New file.
39805         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
39806         * modules/unicase/tocasefold: New file.
39807
39808         Tests for module 'unicase/u32-totitle'.
39809         * modules/unicase/u32-totitle-tests: New file.
39810         * tests/unicase/test-u32-totitle.c: New file.
39811
39812         Tests for module 'unicase/u16-totitle'.
39813         * modules/unicase/u16-totitle-tests: New file.
39814         * tests/unicase/test-u16-totitle.c: New file.
39815
39816         Tests for module 'unicase/u8-totitle'.
39817         * modules/unicase/u8-totitle-tests: New file.
39818         * tests/unicase/test-u8-totitle.c: New file.
39819
39820         New module 'unicase/u32-totitle'.
39821         * lib/unicase/u32-totitle.c: New file.
39822         * modules/unicase/u32-totitle: New file.
39823
39824         New module 'unicase/u16-totitle'.
39825         * lib/unicase/u16-totitle.c: New file.
39826         * modules/unicase/u16-totitle: New file.
39827
39828         New module 'unicase/u8-totitle'.
39829         * lib/unicase/u8-totitle.c: New file.
39830         * lib/unicase/u-totitle.h: New file.
39831         * modules/unicase/u8-totitle: New file.
39832
39833         Tests for module 'unicase/u32-tolower'.
39834         * modules/unicase/u32-tolower-tests: New file.
39835         * tests/unicase/test-u32-tolower.c: New file.
39836
39837         Tests for module 'unicase/u16-tolower'.
39838         * modules/unicase/u16-tolower-tests: New file.
39839         * tests/unicase/test-u16-tolower.c: New file.
39840
39841         Tests for module 'unicase/u8-tolower'.
39842         * modules/unicase/u8-tolower-tests: New file.
39843         * tests/unicase/test-u8-tolower.c: New file.
39844
39845         New module 'unicase/u32-tolower'.
39846         * lib/unicase/u32-tolower.c: New file.
39847         * modules/unicase/u32-tolower: New file.
39848
39849         New module 'unicase/u16-tolower'.
39850         * lib/unicase/u16-tolower.c: New file.
39851         * modules/unicase/u16-tolower: New file.
39852
39853         New module 'unicase/u8-tolower'.
39854         * lib/unicase/u8-tolower.c: New file.
39855         * modules/unicase/u8-tolower: New file.
39856
39857         Tests for module 'unicase/u32-toupper'.
39858         * modules/unicase/u32-toupper-tests: New file.
39859         * tests/unicase/test-u32-toupper.c: New file.
39860
39861         Tests for module 'unicase/u16-toupper'.
39862         * modules/unicase/u16-toupper-tests: New file.
39863         * tests/unicase/test-u16-toupper.c: New file.
39864
39865         Tests for module 'unicase/u8-toupper'.
39866         * modules/unicase/u8-toupper-tests: New file.
39867         * tests/unicase/test-u8-toupper.c: New file.
39868
39869         New module 'unicase/u32-toupper'.
39870         * lib/unicase/u32-toupper.c: New file.
39871         * modules/unicase/u32-toupper: New file.
39872
39873         New module 'unicase/u16-toupper'.
39874         * lib/unicase/u16-toupper.c: New file.
39875         * modules/unicase/u16-toupper: New file.
39876
39877         New module 'unicase/u8-toupper'.
39878         * lib/unicase/u8-toupper.c: New file.
39879         * modules/unicase/u8-toupper: New file.
39880
39881         New module 'unicase/u32-casemap'.
39882         * lib/unicase/u32-casemap.c: New file.
39883         * modules/unicase/u32-casemap: New file.
39884
39885         New module 'unicase/u16-casemap'.
39886         * lib/unicase/u16-casemap.c: New file.
39887         * modules/unicase/u16-casemap: New file.
39888
39889         New module 'unicase/u8-casemap'.
39890         * lib/unicase/unicasemap.h: New file.
39891         * lib/unicase/u8-casemap.c: New file.
39892         * lib/unicase/u-casemap.h: New file.
39893         * modules/unicase/u8-casemap: New file.
39894
39895         New module 'unicase/special-casing'.
39896         * lib/unicase/special-casing.h: New file.
39897         * lib/unicase/special-casing.c: New file.
39898         * lib/unicase/special-casing-table.gperf: New file, generated by
39899         gen-uni-tables.c.
39900         * modules/unicase/special-casing: New file.
39901
39902         Tests for module 'unicase/locale-language'.
39903         * modules/unicase/locale-language-tests: New file.
39904         * tests/unicase/test-locale-language.sh: New file.
39905         * tests/unicase/test-locale-language.c: New file.
39906
39907         New module 'unicase/locale-language'.
39908         * lib/unicase/locale-language.c: New file.
39909         * lib/unicase/locale-languages.gperf: New file.
39910         * modules/unicase/locale-language: New file.
39911
39912         Generate more tables for case conversion and case folding.
39913         * lib/gen-uni-tables.c (SCC_*): New enum items.
39914         (struct special_casing_rule): New type.
39915         (casing_rules, num_casing_rules, allocated_casing_rules): New
39916         variables.
39917         (add_casing_rule, fill_casing_rules): New functions.
39918         (struct casefold_rule): New type.
39919         (casefolding_rules, num_casefolding_rules,
39920         allocated_casefolding_rules): New variables.
39921         (fill_casefolding_rules): New function.
39922         (unicode_casefold): New variable.
39923         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
39924         sort_casing_rules, output_casing_rules): New functions.
39925         (main): Accept to more arguments: SpecialCasing.txt and
39926         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
39927         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
39928         Output mapping for casefolding.
39929
39930         * lib/unicase.h: Include stdbool.h, uninorm.h.
39931         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
39932         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
39933         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
39934         arguments.
39935         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
39936         resultp arguments.
39937         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
39938         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
39939         resultp arguments.
39940         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
39941         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
39942         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
39943         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
39944         declarations.
39945         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
39946
39947 2009-03-08  Bruno Haible  <bruno@clisp.org>
39948
39949         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39950         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
39951         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
39952         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39953
39954 2009-03-07  Bruno Haible  <bruno@clisp.org>
39955
39956         Adjust u*_normcmp, u*_normcoll API.
39957         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
39958         u16_normcoll, u32_normcoll): Change failure conventions.
39959         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
39960         errno and return -1.
39961         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
39962
39963 2009-03-07  Bruno Haible  <bruno@clisp.org>
39964
39965         Tests for module 'uninorm/u32-normcoll'.
39966         * modules/uninorm/u32-normcoll-tests: New file.
39967         * tests/uninorm/test-u32-normcoll.c: New file.
39968
39969         Tests for module 'uninorm/u16-normcoll'.
39970         * modules/uninorm/u16-normcoll-tests: New file.
39971         * tests/uninorm/test-u16-normcoll.c: New file.
39972
39973         Tests for module 'uninorm/u8-normcoll'.
39974         * modules/uninorm/u8-normcoll-tests: New file.
39975         * tests/uninorm/test-u8-normcoll.c: New file.
39976
39977 2009-03-07  Bruno Haible  <bruno@clisp.org>
39978
39979         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
39980         tests/uninorm/test-u32-normcmp.c.
39981         * tests/uninorm/test-u32-normcmp.c: Include it.
39982         (test_nonascii): New function, extracted from main. Add some more
39983         tests.
39984         (main): Invoke test_ascii and test_nonascii.
39985         * modules/uninorm/u32-normcmp-tests (Files): Add
39986         tests/uninorm/test-u32-normcmp.h.
39987         (Depends-on): Remove uninorm/u32-normcmp.
39988
39989         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
39990         tests/uninorm/test-u16-normcmp.c.
39991         * tests/uninorm/test-u16-normcmp.c: Include it.
39992         (test_nonascii): New function, extracted from main. Add some more
39993         tests.
39994         (main): Invoke test_ascii and test_nonascii.
39995         * modules/uninorm/u16-normcmp-tests (Files): Add
39996         tests/uninorm/test-u16-normcmp.h.
39997         (Depends-on): Remove uninorm/u16-normcmp.
39998
39999         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40000         tests/uninorm/test-u8-normcmp.c.
40001         * tests/uninorm/test-u8-normcmp.c: Include it.
40002         (test_nonascii): New function, extracted from main. Add some more
40003         tests.
40004         (main): Invoke test_ascii and test_nonascii.
40005         * modules/uninorm/u8-normcmp-tests (Files): Add
40006         tests/uninorm/test-u8-normcmp.h.
40007         (Depends-on): Remove uninorm/u8-normcmp.
40008
40009 2009-03-07  Bruno Haible  <bruno@clisp.org>
40010
40011         New module 'uninorm/u32-normcoll'.
40012         * lib/uninorm/u32-normcoll.c: New file.
40013         * modules/uninorm/u32-normcoll: New file.
40014
40015         New module 'uninorm/u16-normcoll'.
40016         * lib/uninorm/u16-normcoll.c: New file.
40017         * modules/uninorm/u16-normcoll: New file.
40018
40019         New module 'uninorm/u8-normcoll'.
40020         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40021         declarations.
40022         * lib/uninorm/u8-normcoll.c: New file.
40023         * lib/uninorm/u-normcoll.h: New file.
40024         * modules/uninorm/u8-normcoll: New file.
40025
40026         New module 'uninorm/u32-normxfrm'.
40027         * lib/uninorm/u32-normxfrm.c: New file.
40028         * modules/uninorm/u32-normxfrm: New file.
40029
40030         New module 'uninorm/u16-normxfrm'.
40031         * lib/uninorm/u16-normxfrm.c: New file.
40032         * modules/uninorm/u16-normxfrm: New file.
40033
40034         New module 'uninorm/u8-normxfrm'.
40035         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40036         declarations.
40037         * lib/uninorm/u8-normxfrm.c: New file.
40038         * lib/uninorm/u-normxfrm.h: New file.
40039         * modules/uninorm/u8-normxfrm: New file.
40040
40041 2009-03-07  Bruno Haible  <bruno@clisp.org>
40042
40043         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40044         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40045         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40046
40047 2009-03-07  Bruno Haible  <bruno@clisp.org>
40048
40049         New module 'memxfrm'.
40050         * lib/memxfrm.h: New file.
40051         * lib/memxfrm.c: New file.
40052         * modules/memxfrm: New file.
40053
40054 2009-03-07  Bruno Haible  <bruno@clisp.org>
40055
40056         New module 'memcmp2'.
40057         * lib/memcmp2.h: New file.
40058         * lib/memcmp2.c: New file.
40059         * modules/memcmp2: New file.
40060
40061 2009-03-07  Bruno Haible  <bruno@clisp.org>
40062
40063         Tests for module 'uninorm/decomposing-form'.
40064         * modules/uninorm/decomposing-form-tests: New file.
40065         * tests/uninorm/test-decomposing-form.c: New file.
40066
40067         New module 'uninorm/decomposing-form'.
40068         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40069         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40070         Add 'decomposing_variant' field.
40071         * lib/uninorm/decomposing-form.c: New file.
40072         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40073         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40074         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40075         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40076         * modules/uninorm/decomposing-form: New file.
40077         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40078         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40079
40080 2009-03-07  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40083         strings.
40084
40085 2009-03-06  Bruno Haible  <bruno@clisp.org>
40086
40087         Tests for module 'uninorm/u32-normcmp'.
40088         * tests/uninorm/test-u32-normcmp.c: New file.
40089         * modules/uninorm/u32-normcmp-tests: New file.
40090
40091         Tests for module 'uninorm/u16-normcmp'.
40092         * tests/uninorm/test-u16-normcmp.c: New file.
40093         * modules/uninorm/u16-normcmp-tests: New file.
40094
40095         Tests for module 'uninorm/u8-normcmp'.
40096         * tests/uninorm/test-u8-normcmp.c: New file.
40097         * modules/uninorm/u8-normcmp-tests: New file.
40098
40099         New module 'uninorm/u32-normcmp'.
40100         * lib/uninorm/u32-normcmp.c: New file.
40101         * modules/uninorm/u32-normcmp: New file.
40102
40103         New module 'uninorm/u16-normcmp'.
40104         * lib/uninorm/u16-normcmp.c: New file.
40105         * modules/uninorm/u16-normcmp: New file.
40106
40107         New module 'uninorm/u8-normcmp'.
40108         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40109         declarations.
40110         * lib/uninorm/u8-normcmp.c: New file.
40111         * lib/uninorm/u-normcmp.h: New file.
40112         * modules/uninorm/u8-normcmp: New file.
40113
40114 2009-03-06  Bruno Haible  <bruno@clisp.org>
40115
40116         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40117         Reported by Eric Blake.
40118
40119 2009-03-06  Eric Blake  <ebb9@byu.net>
40120             Bruno Haible  <bruno@clisp.org>
40121
40122         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40123         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40124         condition.
40125         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40126         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40127         condition.
40128         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40129
40130 2009-03-06  Eric Blake  <ebb9@byu.net>
40131
40132         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40133         to avoid compiler warnings.
40134         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40135
40136 2009-03-05  Bruno Haible  <bruno@clisp.org>
40137
40138         * tests/test-ftell.c (main): Disable test beyond end of file on
40139         FreeMiNT.
40140         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40141
40142 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40143
40144         * lib/filevercmp.c: Move hidden files up in ordering.
40145         * tests/test-filevercmp.c: Add tests for hidden files.
40146
40147 2009-03-04  Bruno Haible  <bruno@clisp.org>
40148
40149         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40150         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40151         AM_CFLAGS.
40152         Reported by Simon Josefsson.
40153
40154 2009-03-03  Bruno Haible  <bruno@clisp.org>
40155
40156         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40157         Reported by Simon Josefsson.
40158
40159         * doc/ld-version-script.texi: Update node reference.
40160
40161 2009-03-03  Bruno Haible  <bruno@clisp.org>
40162
40163         * modules/visibility (License): Change to 'unlimited'.
40164         Suggested by Simon Josefsson.
40165
40166 2009-03-03  Jim Meyering  <meyering@redhat.com>
40167
40168         unlinkdir: cannot_unlink_dir may modify process state
40169         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40170         it's neither thread-safe nor appropriate for use in a library.
40171
40172 2009-03-03  Eric Blake  <ebb9@byu.net>
40173
40174         test-closein: silence test under Darwin
40175         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40176         care if it dies from EPIPE or EBADF.
40177
40178 2009-03-03  Bruno Haible  <bruno@clisp.org>
40179
40180         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40181         earlier.
40182         * doc/visibility.texi: Fix @node and @section.
40183
40184 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40185
40186         * doc/gnulib.texi: Link to sections for ld version script and
40187         visibility.
40188         * doc/visibility.texi: Add @node and @section.
40189         * modules/ld-version-script: New module.
40190         * m4/ld-version-script.m4: New file.
40191         * doc/ld-version-script.texi: New file.
40192
40193 2009-03-02  David Lutterkort  <lutter@redhat.com>
40194
40195         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40197
40198 2009-03-02  Bruno Haible  <bruno@clisp.org>
40199
40200         * doc/visibility.texi: Mention libtool's -export-symbols option.
40201
40202 2009-03-02  Jim Meyering  <meyering@redhat.com>
40203
40204         announce-gen: new option: --no-print-checksums
40205         * build-aux/announce-gen (usage): Describe it.
40206         (print_checksums): Print a newline here, not in the [*] footnote.
40207         (main): Honor it.
40208
40209 2009-03-01  Bruno Haible  <bruno@clisp.org>
40210
40211         Use socklen_t in the native Windows replacements prototypes.
40212         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40213         instead of 'int'.
40214         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40215         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40216         * modules/getsockopt (Depends-on): Add socklen.
40217         * modules/setsockopt (Depends-on): Add socklen.
40218
40219 2009-03-01  Bruno Haible  <bruno@clisp.org>
40220
40221         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40222         least 4.2.
40223
40224 2009-03-01  Eric Blake  <ebb9@byu.net>
40225             Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40228         error messages.
40229         * lib/wait-process.c (wait_subprocess): Omit error message about
40230         deadly signal sent to the child of termsigp != NULL.
40231
40232 2009-03-01  Eric Blake  <ebb9@byu.net>
40233
40234         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40235
40236 2009-03-01  Bruno Haible  <bruno@clisp.org>
40237
40238         Avoid a gcc warning.
40239         * tests/test-sched.c (b): Make global.
40240         Reported by Eric Blake.
40241
40242 2009-01-19  Martin Lambers  <marlam@marlam.de>
40243
40244         Provide POSIX semantics for socket timeout options on W32.
40245         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40246         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40247         * modules/setsockopt: Depend on sys_time module for struct timeval.
40248         * modules/getsockopt: Depend on sys_time module for struct timeval.
40249
40250 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40251
40252         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40253         __USE_GNU, for consistency with netdb.in.h.
40254         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40255
40256 2009-03-01  Bruno Haible  <bruno@clisp.org>
40257
40258         More support for FreeMiNT.
40259         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40260         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40261
40262 2009-03-01  Bruno Haible  <bruno@clisp.org>
40263
40264         More support for FreeMiNT.
40265         * lib/fpurge.c (fpurge): Correct last commit.
40266         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40267
40268 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40269
40270         Fix unportable awk script in vc-list-files.
40271         * build-aux/vc-list-files: In the replacement awk script, use
40272         substr with a second argument of 1, not zero.
40273         Report by Simon Josefsson.
40274
40275 2009-02-28  Bruno Haible  <bruno@clisp.org>
40276
40277         More support for FreeMiNT.
40278         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40279         to FreeMiNT today.
40280         * lib/fwriting.c (fwriting): Likewise.
40281         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40282
40283 2009-02-28  Bruno Haible  <bruno@clisp.org>
40284
40285         * tests/test-freadseek.c (main): Disable test beyond end of file on
40286         FreeMiNT.
40287         * tests/test-ftello.c (main): Likewise.
40288         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40289
40290 2009-02-28  Bruno Haible  <bruno@clisp.org>
40291
40292         Add tentative support for FreeMiNT.
40293         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40294         * lib/fpurge.c (fpurge): Likewise.
40295         * lib/freadable.c (freadable): Likewise.
40296         * lib/freading.c (freading): Likewise.
40297         * lib/freadptr.c (freadptr): Likewise.
40298         * lib/freadseek.c (freadptrinc): Likewise.
40299         * lib/fseeko.c (rpl_fseeko): Likewise.
40300         * lib/fseterr.c (fseterr): Likewise.
40301         * lib/fwritable.c (fwritable): Likewise.
40302         * lib/fwriting.c (fwriting): Likewise.
40303         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40304         Hourihane.
40305         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40306
40307 2009-02-28  Bruno Haible  <bruno@clisp.org>
40308
40309         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40310         SIGCHLD.
40311         Reported by Jim Meyering.
40312
40313 2009-02-28  Bruno Haible  <bruno@clisp.org>
40314
40315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40316         Mention the results of these tests on various platforms.
40317         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40318         order.
40319         * doc/posix-functions/printf.texi: Likewise.
40320         * doc/posix-functions/snprintf.texi: Likewise.
40321         * doc/posix-functions/sprintf.texi: Likewise.
40322         * doc/posix-functions/vfprintf.texi: Likewise.
40323         * doc/posix-functions/vprintf.texi: Likewise.
40324         * doc/posix-functions/vsnprintf.texi: Likewise.
40325         * doc/posix-functions/vsprintf.texi: Likewise.
40326         * doc/glibc-functions/obstack_printf.texi: Likewise.
40327         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40328
40329 2009-02-28  Bruno Haible  <bruno@clisp.org>
40330
40331         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40332         Reported by Loïc Minier <lool@dooz.org>.
40333
40334 2009-02-27  Bruno Haible  <bruno@clisp.org>
40335
40336         * gnulib-tool (func_import): Make the sed expression used to create the
40337         sed script for updating the .gitignore file POSIX compliant.
40338         Reported by Eric Blake.
40339
40340 2009-02-27  Bruno Haible  <bruno@clisp.org>
40341
40342         * gnulib-tool (sed): Don't alias as "sed --posix".
40343         Reported by Eric Blake.
40344
40345 2009-02-27  Bruno Haible  <bruno@clisp.org>
40346
40347         Avoid test link errors.
40348         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40349         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40350         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40351         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40353
40354 2009-02-27  Bruno Haible  <bruno@clisp.org>
40355
40356         Avoid spurious "(cached)" in configure output.
40357         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40358         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40360         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40361         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40362         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40363         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40364         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40365         Reported by Eric Blake.
40366
40367 2009-02-27  Eric Blake  <ebb9@byu.net>
40368
40369         printf: fix regression in previous patch
40370         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40371
40372 2009-02-27  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40375         value.
40376         * lib/stdint.in.h: Likewise.
40377         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40378
40379 2009-02-27  Eric Blake  <ebb9@byu.net>
40380
40381         doc: mention more functions added in cygwin 1.7.0
40382         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40383         addition.
40384         * doc/posix-functions/open_wmemstream.texi: Likewise.
40385         * doc/posix-functions/wcsnlen.texi: Likewise.
40386         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40387         * doc/posix-functions/wcstod.texi: Likewise.
40388         * doc/posix-functions/wcstof.texi: Likewise.
40389         * doc/posix-functions/wcstoimax.texi: Likewise.
40390         * doc/posix-functions/wcstok.texi: Likewise.
40391         * doc/posix-functions/wcstoumax.texi: Likewise.
40392
40393         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40394         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40395         * doc/posix-functions/fprintf.texi: Update.
40396         * doc/posix-functions/printf.texi: Update.
40397         * doc/posix-functions/snprintf.texi: Update.
40398         * doc/posix-functions/sprintf.texi: Update.
40399         * doc/posix-functions/vfprintf.texi: Update.
40400         * doc/posix-functions/vprintf.texi: Update.
40401         * doc/posix-functions/vsnprintf.texi: Update.
40402         * doc/posix-functions/vsprintf.texi: Update.
40403         * doc/glibc-functions/obstack_printf.texi: Update.
40404         * doc/glibc-functions/obstack_vprintf.texi: Update.
40405
40406 2009-02-26  Eric Blake  <ebb9@byu.net>
40407
40408         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40409         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40410         compilation bug by using runtime conversion.
40411         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40412         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40413         * modules/ceill-tests (Files): Use nan.h.
40414         * modules/floorl-tests (Files): Likewise.
40415         * modules/frexpl-tests (Files): Likewise.
40416         * modules/isnanl-tests (Files): Likewise.
40417         * modules/ldexpl-tests (Files): Likewise.
40418         * modules/roundl-tests (Files): Likewise.
40419         * modules/truncl-tests (Files): Likewise.
40420         * tests/test-ceill.c (main): Use a working NaN.
40421         * tests/test-floorl.c (main): Likewise.
40422         * tests/test-frexpl.c (main): Likewise.
40423         * tests/test-isnan.c (test_long_double): Likewise.
40424         * tests/test-isnanl.h (main): Likewise.
40425         * tests/test-ldexpl.h (main): Likewise.
40426         * tests/test-roundl.h (main): Likewise.
40427         * tests/test-truncl.h (main): Likewise.
40428         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40429
40430 2009-02-26  Eric Blake  <ebb9@byu.net>
40431             Bruno Haible  <bruno@clisp.org>
40432
40433         Work around a *printf bug with %ls on Solaris.
40434         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40435         precision is specified, sprintf stops converting the wide string
40436         argument when the number of bytes that have been produced by this
40437         conversion equals or exceeds the precision.
40438         * doc/posix-functions/fprintf.texi: Update.
40439         * doc/posix-functions/printf.texi: Update.
40440         * doc/posix-functions/snprintf.texi: Update.
40441         * doc/posix-functions/sprintf.texi: Update.
40442         * doc/posix-functions/vfprintf.texi: Update.
40443         * doc/posix-functions/vprintf.texi: Update.
40444         * doc/posix-functions/vsnprintf.texi: Update.
40445         * doc/posix-functions/vsprintf.texi: Update.
40446         * doc/glibc-functions/obstack_printf.texi: Update.
40447         * doc/glibc-functions/obstack_vprintf.texi: Update.
40448
40449 2009-02-26  Eric Blake  <ebb9@byu.net>
40450
40451         stdlib: favor compiler check of random.h
40452         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
40453         to avoid an ObjC random.h installed by Swarm.
40454
40455 2009-02-26  Bruno Haible  <bruno@clisp.org>
40456
40457         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
40458         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
40459         Reported by Gary V. Vaughan <gary@gnu.org>.
40460
40461 2009-02-26  Bruno Haible  <bruno@clisp.org>
40462
40463         Fix *printf behaviour regarding the %ls directive.
40464         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
40465         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
40466         NEED_PRINTF_DIRECTIVE_LS.
40467         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
40468         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
40469         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40470         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
40471         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
40472         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
40473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
40474         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40475         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40476         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40478         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
40479         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40480         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40481         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40482         * doc/posix-functions/fprintf.texi: Update.
40483         * doc/posix-functions/printf.texi: Update.
40484         * doc/posix-functions/snprintf.texi: Update.
40485         * doc/posix-functions/sprintf.texi: Update.
40486         * doc/posix-functions/vfprintf.texi: Update.
40487         * doc/posix-functions/vprintf.texi: Update.
40488         * doc/posix-functions/vsnprintf.texi: Update.
40489         * doc/posix-functions/vsprintf.texi: Update.
40490         * doc/glibc-functions/obstack_printf.texi: Update.
40491         * doc/glibc-functions/obstack_vprintf.texi: Update.
40492         Reported by Eric Blake.
40493
40494 2009-02-25  Bruno Haible  <bruno@clisp.org>
40495
40496         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
40497         with known value.
40498         Reported by Gary V. Vaughan <gary@gnu.org>.
40499
40500 2009-02-25  Bruno Haible  <bruno@clisp.org>
40501
40502         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
40503         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
40504         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
40505         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
40506         Reported by Gary V. Vaughan <gary@gnu.org>.
40507
40508 2009-02-25  Bruno Haible  <bruno@clisp.org>
40509
40510         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
40511         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
40512         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
40513         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
40514         Reported by Gary V. Vaughan <gary@gnu.org>.
40515
40516 2009-02-25  Eric Blake  <ebb9@byu.net>
40517
40518         tests: skip fseek/ftell tests if ungetc is broken
40519         * m4/ungetc.m4: New file.
40520         * modules/fseek-tests: Split test, so ungetc dependency is
40521         separate from rest of test.
40522         * modules/fseeko-tests: Likewise.
40523         * modules/ftell-tests: Likewise.
40524         * modules/ftello-tests: Likewise.
40525         * tests/test-fseek.c (main): Isolate ungetc dependency.
40526         * tests/test-fseeko.c (main): Likewise.
40527         * tests/test-ftell.c (main): Likewise.
40528         * tests/test-ftello.c (main): Likewise.
40529         * tests/test-fseek2.sh: New file.
40530         * tests/test-fseeko2.sh: Likewise.
40531         * tests/test-ftell2.sh: Likewise.
40532         * tests/test-ftello2.sh: Likewise.
40533
40534 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
40535
40536         test-getaddrinfo: fix usage of skip return code 77
40537         * tests/test-gettaddrinfo.c: Return skip code 77 only
40538         for first occurance of skip (4x77 is not 77)
40539
40540 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
40541
40542         strtod: avoid C99 decl-after-statement
40543         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
40544
40545 2009-02-24  Eric Blake  <ebb9@byu.net>
40546
40547         strtod: detect HP-UX 11.31 bug
40548         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
40549         Reported by Gary V. Vaughan.
40550
40551 2009-02-23  Bruno Haible  <bruno@clisp.org>
40552
40553         Fix invalid read past end of memory block.
40554         * lib/vasnprintf.c (DCHAR_SET): Define.
40555         (local_wcslen): Define only when needed.
40556         (local_strnlen, local_wcsnlen): New functions.
40557         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
40558         directives that involve a conversion ourselves.
40559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
40560         wcsnlen, mbrtowc, wcrtomb.
40561         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
40562         * tests/test-vasprintf-posix.c (test_function): Likewise.
40563         * tests/test-snprintf-posix.h (test_function): Likewise.
40564         * tests/test-sprintf-posix.h (test_function): Likewise.
40565         Reported by Ben Pfaff <blp@cs.stanford.edu>.
40566
40567 2009-02-22  Bruno Haible  <bruno@clisp.org>
40568
40569         Implement new clarified decomposition of Hangul syllables.
40570         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
40571         of type LTV, return only a pairwise decomposition.
40572         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
40573         Likewise.
40574         * tests/uninorm/test-decomposition.c (main): Updated expected result.
40575         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
40576         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
40577
40578 2009-02-22  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
40581         zero-length results and shrink excess allocated memory.
40582         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
40583         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
40584         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
40585         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
40586         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
40587         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
40588         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
40589         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
40590         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
40591         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
40592         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
40593         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
40594
40595 2009-02-21  Bruno Haible  <bruno@clisp.org>
40596
40597         * doc/gnulib.texi: Include safe-alloc.texi earlier.
40598         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
40599         spaces after a period. Put a space between a macro name and its
40600         argument list. Trivial rewordings.
40601         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
40602         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
40603         (main): Return 0 explicitly.
40604
40605 2009-02-21  Bruno Haible  <bruno@clisp.org>
40606
40607         Tests for module 'uninorm/filter'.
40608         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
40609         * modules/uninorm/filter-tests: New file.
40610
40611         New module 'uninorm/filter'.
40612         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
40613         uninorm_filter_flush, uninorm_filter_free): New declarations.
40614         * lib/uninorm/uninorm-filter.c: New file.
40615         * modules/uninorm/filter: New file.
40616
40617 2009-02-21  Bruno Haible  <bruno@clisp.org>
40618
40619         Tests for module 'uninorm/nfkc'.
40620         * tests/uninorm/test-nfkc.c: New file.
40621         * tests/uninorm/test-u8-nfkc.c: New file.
40622         * tests/uninorm/test-u16-nfkc.c: New file.
40623         * tests/uninorm/test-u32-nfkc.c: New file.
40624         * tests/uninorm/test-u32-nfkc-big.sh: New file.
40625         * tests/uninorm/test-u32-nfkc-big.c: New file.
40626         * modules/uninorm/nfkc-tests: New file.
40627
40628         New module 'uninorm/nfkc'.
40629         * lib/uninorm/nfkc.c: New file.
40630         * modules/uninorm/nfkc: New file.
40631
40632         Tests for module 'uninorm/nfkd'.
40633         * tests/uninorm/test-nfkd.c: New file.
40634         * tests/uninorm/test-u8-nfkd.c: New file.
40635         * tests/uninorm/test-u16-nfkd.c: New file.
40636         * tests/uninorm/test-u32-nfkd.c: New file.
40637         * tests/uninorm/test-u32-nfkd-big.sh: New file.
40638         * tests/uninorm/test-u32-nfkd-big.c: New file.
40639         * modules/uninorm/nfkd-tests: New file.
40640
40641         New module 'uninorm/nfkd'.
40642         * lib/uninorm/nfkd.c: New file.
40643         * modules/uninorm/nfkd: New file.
40644
40645         Tests for module 'uninorm/nfc'.
40646         * tests/uninorm/test-nfc.c: New file.
40647         * tests/uninorm/test-u8-nfc.c: New file.
40648         * tests/uninorm/test-u16-nfc.c: New file.
40649         * tests/uninorm/test-u32-nfc.c: New file.
40650         * tests/uninorm/test-u32-nfc-big.sh: New file.
40651         * tests/uninorm/test-u32-nfc-big.c: New file.
40652         * modules/uninorm/nfc-tests: New file.
40653
40654         New module 'uninorm/nfc'.
40655         * lib/uninorm/nfc.c: New file.
40656         * modules/uninorm/nfc: New file.
40657
40658         Tests for module 'uninorm/nfd'.
40659         * tests/uninorm/test-nfd.c: New file.
40660         * tests/uninorm/test-u8-nfd.c: New file.
40661         * tests/uninorm/test-u16-nfd.c: New file.
40662         * tests/uninorm/test-u32-nfd.c: New file.
40663         * tests/uninorm/test-u32-nfd-big.sh: New file.
40664         * tests/uninorm/test-u32-nfd-big.c: New file.
40665         * tests/uninorm/test-u32-normalize-big.h: New file.
40666         * tests/uninorm/test-u32-normalize-big.c: New file.
40667         * tests/uninorm/NormalizationTest.txt: New file, created from
40668         Unicode 5.1.0 NormalizationTest.txt.
40669         * modules/uninorm/nfd-tests: New file.
40670
40671         New module 'uninorm/nfd'.
40672         * lib/uninorm/nfd.c: New file.
40673         * modules/uninorm/nfd: New file.
40674
40675         New module 'uninorm/u32-normalize'.
40676         * lib/uninorm/u32-normalize.c: New file.
40677         * modules/uninorm/u32-normalize: New file.
40678
40679         New module 'uninorm/u16-normalize'.
40680         * lib/uninorm/u16-normalize.c: New file.
40681         * modules/uninorm/u16-normalize: New file.
40682
40683         New module 'uninorm/u8-normalize'.
40684         * lib/uninorm/u8-normalize.c: New file.
40685         * lib/uninorm/normalize-internal.h: New file.
40686         * lib/uninorm/u-normalize-internal.h: New file.
40687         * modules/uninorm/u8-normalize: New file.
40688
40689         New module 'uninorm/decompose-internal'.
40690         * lib/uninorm/decompose-internal.c: New file.
40691         * modules/uninorm/decompose-internal: New file.
40692
40693         Tests for module 'uninorm/composition'.
40694         * tests/uninorm/test-composition.c: New file.
40695         * modules/uninorm/composition-tests: New file.
40696
40697         New module 'uninorm/composition'.
40698         * lib/uninorm/composition.c: New file.
40699         * lib/uninorm/composition-table.gperf: New file, generated by
40700         gen-uni-tables.
40701         * modules/uninorm/composition: New file.
40702
40703         Tests for module 'uninorm/compat-decomposition'.
40704         * tests/uninorm/test-compat-decomposition.c: New file.
40705         * modules/uninorm/compat-decomposition-tests: New file.
40706
40707         New module 'uninorm/compat-decomposition'.
40708         * lib/uninorm/decompose-internal.h: New file.
40709         * lib/uninorm/compat-decomposition.c: New file.
40710         * modules/uninorm/compat-decomposition: New file.
40711
40712         Tests for module 'uninorm/canonical-decomposition'.
40713         * tests/uninorm/test-canonical-decomposition.c: New file.
40714         * modules/uninorm/canonical-decomposition-tests: New file.
40715
40716         New module 'uninorm/canonical-decomposition'.
40717         * lib/uninorm/canonical-decomposition.c: New file.
40718         * modules/uninorm/canonical-decomposition: New file.
40719
40720         Tests for module 'uninorm/decomposition'.
40721         * tests/uninorm/test-decomposition.c: New file.
40722         * modules/uninorm/decomposition-tests: New file.
40723
40724         New module 'uninorm/decomposition'.
40725         * lib/uninorm/decomposition.c: New file.
40726         * modules/uninorm/decomposition: New file.
40727
40728         New module 'uninorm/decomposition-table'.
40729         * lib/uninorm/decomposition-table.h: New file.
40730         * lib/uninorm/decomposition-table.c: New file.
40731         * lib/uninorm/decomposition-table1.h: New file, generated by
40732         gen-uni-tables.
40733         * lib/uninorm/decomposition-table2.h: New file, generated by
40734         gen-uni-tables.
40735         * modules/uninorm/decomposition-table: New file.
40736
40737         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
40738         (UC_DECOMP_*): New enumeration items.
40739         (get_decomposition): New function.
40740         (struct decomp_table): New type.
40741         (output_decomposition, output_decomposition_tables): New functions.
40742         (unicode_composition_exclusions): New variable.
40743         (fill_composition_exclusions, debug_output_composition_tables): New
40744         functions.
40745         (main): Accept one more argument. Invoke fill_composition_exclusions.
40746         Output decomposition and composition tables.
40747
40748         New module 'uninorm/base'.
40749         * lib/uninorm.h: New file.
40750         * lib/unictype.h: Update comment.
40751         * modules/uninorm/base: New file.
40752
40753 2009-02-21  David Lutterkort  <lutter@redhat.com>
40754
40755         Tests for module 'safe-alloc'.
40756         * tests/test-safe-alloc.c: New file.
40757         * modules/safe-alloc-tests: New file.
40758
40759         New module 'safe-alloc'.
40760         * lib/safe-alloc.h: New file.
40761         * lib/safe-alloc.c: New file.
40762         * m4/safe-alloc.m4: New file.
40763         * modules/safe-alloc: New file.
40764         * doc/safe-alloc.texi: New file.
40765         * doc/gnulib.texi: Include it.
40766         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
40767         safe-alloc.
40768
40769 2009-02-18  Bruno Haible  <bruno@clisp.org>
40770
40771         Fix link error on non-glibc systems.
40772         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
40773         variable.
40774         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40775
40776 2009-02-18  Jim Meyering  <meyering@redhat.com>
40777
40778         fts: avoid used-uninitialized error due to recent change
40779         * lib/fts.c (fts_read): Guard uses of the new member,
40780         parent->fts_n_dirs_remaining, since it's not relevant for
40781         the parent of a directory specified on the command-line.
40782
40783 2009-02-17  James Youngman  <jay@gnu.org>
40784             Bruno Haible  <bruno@clisp.org>
40785
40786         * m4/include_next.m4: Reformulate comment.
40787
40788 2009-02-16  Jim Meyering  <meyering@redhat.com>
40789
40790         fts: add #if guards so that the fts_lgpl module still builds
40791         * lib/fts.c: Guard just-added hash-table-using parts with
40792         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
40793         Reported by Simon Josefsson.
40794
40795 2009-02-15  Bruno Haible  <bruno@clisp.org>
40796
40797         * modules/array-mergesort-tests: New file.
40798         * tests/test-array-mergesort.c: New file.
40799
40800         New module 'array-mergesort'.
40801         * modules/array-mergesort: New file.
40802         * lib/array-mergesort.h: New file.
40803
40804 2009-02-15  Bruno Haible  <bruno@clisp.org>
40805
40806         Fix 2009-02-07 commit.
40807         * lib/gen-uni-tables.c (output_predicate, output_category,
40808         output_combclass, output_bidi_category, output_decimal_digit,
40809         output_digit, output_numeric, output_mirror, output_scripts,
40810         output_ident_category, output_simple_mapping): Fix format directives.
40811         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
40812
40813 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
40814
40815         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
40816         fixes are available from IBM.
40817
40818 2009-02-13  Jim Meyering  <meyering@redhat.com>
40819
40820         fts: arrange not to stat non-directories in more cases
40821         This makes GNU find (when it doesn't need to stat each file)
40822         *much* more efficient at traversing reiserfs file systems.
40823         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
40824         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
40825         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
40826         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
40827         (leaf_optimization_applies): New function.
40828         (LCO_hash, LCO_compare): New helper functions.
40829         (link_count_optimize_ok): New function.
40830         (fts_stat): Initialize new member (if dir).
40831         (fts_read): Decrement parent's fts_n_dirs_remaining count if
40832         we've just stat'ed a directory.  Skip the stat call when possible.
40833         ---
40834         Note this AFS-related exchange:
40835         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
40836         and note find's pioctl call in find/fstype.c.
40837         But that is necessary only if you want to enable the
40838         optimization for AFS, and for now, I don't.
40839
40840         fts: move a function definition "up" (no semantic change)
40841         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
40842         "up" to precede upcoming use of a related function.
40843
40844 2009-02-11  Jim Meyering  <meyering@redhat.com>
40845
40846         fts: correct internal computation of nlinks (optimization-related)
40847         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
40848         whether the current entry is a directory, so don't test it.
40849
40850 2009-02-10  Bruno Haible  <bruno@clisp.org>
40851
40852         Tests for module 'uniwbrk/ulc-wordbreaks'.
40853         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
40854         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
40855         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
40856
40857         Tests for module 'uniwbrk/u32-wordbreaks'.
40858         * modules/uniwbrk/u32-wordbreaks-tests: New file.
40859         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
40860
40861         Tests for module 'uniwbrk/u16-wordbreaks'.
40862         * modules/uniwbrk/u16-wordbreaks-tests: New file.
40863         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
40864
40865         Tests for module 'uniwbrk/u8-wordbreaks'.
40866         * modules/uniwbrk/u8-wordbreaks-tests: New file.
40867         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
40868
40869 2009-02-10  Bruno Haible  <bruno@clisp.org>
40870
40871         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
40872         property.
40873         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
40874         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
40875         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
40876
40877 2009-02-10  Simon Josefsson  <simon@josefsson.org>
40878
40879         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
40880         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
40881
40882 2009-02-10  Bruno Haible  <bruno@clisp.org>
40883
40884         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
40885         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
40886         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
40887         * lib/unilbrk/u8-possible-linebreaks.c: Update.
40888         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
40889         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
40890
40891 2009-02-09  Simon Josefsson  <simon@josefsson.org>
40892
40893         * lib/sockets.h (gl_fd_to_handle): New function.
40894
40895         * tests/test-sockets.c: Call gl_fd_to_handle.
40896
40897 2009-02-09  Bruno Haible  <bruno@clisp.org>
40898
40899         * doc/havelib.texi: Document the conventions on bi-arch systems.
40900
40901 2009-02-08  Bruno Haible  <bruno@clisp.org>
40902
40903         Document the AC_LIB_LINKFLAGS macro.
40904         * doc/havelib.texi: New file, mostly written on 2005-05-24.
40905         * doc/gnulib.texi: Include it.
40906
40907 2009-02-08  Bruno Haible  <bruno@clisp.org>
40908
40909         Fix wrong order of sections, compared to TOC.
40910         * doc/gnulib.texi: Include relocatable-maint.texi after the
40911         "Regular expressions" node, not before.
40912
40913 2009-02-08  Bruno Haible  <bruno@clisp.org>
40914
40915         Tests for module 'unicase/totitle'.
40916         * modules/unicase/totitle-tests: New file.
40917
40918         Tests for module 'unicase/tolower'.
40919         * modules/unicase/tolower-tests: New file.
40920
40921         Tests for module 'unicase/toupper'.
40922         * modules/unicase/toupper-tests: New file.
40923         * tests/unicase/test-mapping-part1.h: New file.
40924         * tests/unicase/test-mapping-part2.h: New file.
40925
40926         New module 'unicase/totitle'.
40927         * modules/unicase/totitle: New file.
40928         * lib/unicase/totitle.c: New file.
40929
40930         New module 'unicase/tolower'.
40931         * modules/unicase/tolower: New file.
40932         * lib/unicase/tolower.c: New file.
40933
40934         New module 'unicase/toupper'.
40935         * modules/unicase/toupper: New file.
40936         * lib/unicase/toupper.c: New file.
40937         * lib/unicase/simple-mapping.h: New file.
40938
40939         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
40940         (mapping_table): New structure.
40941         (output_simple_mapping): New function.
40942         (main): Invoke output_simple_mapping_test and output_simple_mapping.
40943         * modules/gen-uni-tables (Description): Update.
40944         * lib/unicase/toupper.h: New file, automatically generated by
40945         gen-uni-tables.
40946         * lib/unicase/tolower.h: New file, automatically generated by
40947         gen-uni-tables.
40948         * lib/unicase/totitle.h: New file, automatically generated by
40949         gen-uni-tables.
40950         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
40951         gen-uni-tables.
40952         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
40953         gen-uni-tables.
40954         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
40955         gen-uni-tables.
40956
40957         New module 'unicase/base'.
40958         * modules/unicase/base: New file.
40959         * lib/unicase.h: New file.
40960
40961 2009-02-08  Bruno Haible  <bruno@clisp.org>
40962
40963         New module 'uniwbrk/ulc-wordbreaks'.
40964         * modules/uniwbrk/ulc-wordbreaks: New file.
40965         * lib/uniwbrk/ulc-wordbreaks.c: New file.
40966
40967         New module 'uniwbrk/u32-wordbreaks'.
40968         * modules/uniwbrk/u32-wordbreaks: New file.
40969         * lib/uniwbrk/u32-wordbreaks.c: New file.
40970
40971         New module 'uniwbrk/u16-wordbreaks'.
40972         * modules/uniwbrk/u16-wordbreaks: New file.
40973         * lib/uniwbrk/u16-wordbreaks.c: New file.
40974
40975         New module 'uniwbrk/u8-wordbreaks'.
40976         * modules/uniwbrk/u8-wordbreaks: New file.
40977         * lib/uniwbrk/u8-wordbreaks.c: New file.
40978         * lib/uniwbrk/u-wordbreaks.h: New file.
40979
40980         New module 'uniwbrk/table'.
40981         * modules/uniwbrk/table: New file.
40982         * lib/uniwbrk/wbrktable.h: New file.
40983         * lib/uniwbrk/wbrktable.c: New file.
40984
40985         New module 'uniwbrk/wordbreak-property'.
40986         * modules/uniwbrk/wordbreak-property: New file.
40987         * lib/uniwbrk/wordbreak-property.c: New file.
40988
40989         * lib/gen-uni-tables.c (WBP_*): New enum items.
40990         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
40991         (unicode_org_wbp): New variable.
40992         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
40993         New functions.
40994         (wbp_table): New structure.
40995         (output_wbp, output_wbrk_tables): New functions.
40996         (main): Accept additional argument. Invoke fill_org_wbp,
40997         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
40998         output_wbrk_tables.
40999         * modules/gen-uni-tables (Description): Update.
41000         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41001         gen-uni-tables.
41002
41003         New module 'uniwbrk/base'.
41004         * modules/uniwbrk/base: New file.
41005         * lib/uniwbrk.h: New file.
41006
41007 2009-02-08  Bruno Haible  <bruno@clisp.org>
41008
41009         Update to Unicode 5.1.0.
41010         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41011         U+2185..U+2188.
41012         (is_property_default_ignorable_code_point): Don't include characters
41013         of category Cc or Cs and not-a-characters.
41014         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41015         U+0D79, U+109E, U+109F, U+A60C.
41016         * lib/unictype/bidi_of.h: Regenerated.
41017         * lib/unictype/blocks.h: Regenerated.
41018         * lib/unictype/categ_C.h: Regenerated.
41019         * lib/unictype/categ_Cf.h: Regenerated.
41020         * lib/unictype/categ_Cn.h: Regenerated.
41021         * lib/unictype/categ_L.h: Regenerated.
41022         * lib/unictype/categ_Ll.h: Regenerated.
41023         * lib/unictype/categ_Lm.h: Regenerated.
41024         * lib/unictype/categ_Lo.h: Regenerated.
41025         * lib/unictype/categ_Lu.h: Regenerated.
41026         * lib/unictype/categ_M.h: Regenerated.
41027         * lib/unictype/categ_Mc.h: Regenerated.
41028         * lib/unictype/categ_Me.h: Regenerated.
41029         * lib/unictype/categ_Mn.h: Regenerated.
41030         * lib/unictype/categ_N.h: Regenerated.
41031         * lib/unictype/categ_Nd.h: Regenerated.
41032         * lib/unictype/categ_Nl.h: Regenerated.
41033         * lib/unictype/categ_No.h: Regenerated.
41034         * lib/unictype/categ_P.h: Regenerated.
41035         * lib/unictype/categ_Pd.h: Regenerated.
41036         * lib/unictype/categ_Pe.h: Regenerated.
41037         * lib/unictype/categ_Pf.h: Regenerated.
41038         * lib/unictype/categ_Pi.h: Regenerated.
41039         * lib/unictype/categ_Po.h: Regenerated.
41040         * lib/unictype/categ_Ps.h: Regenerated.
41041         * lib/unictype/categ_S.h: Regenerated.
41042         * lib/unictype/categ_Sk.h: Regenerated.
41043         * lib/unictype/categ_Sm.h: Regenerated.
41044         * lib/unictype/categ_So.h: Regenerated.
41045         * lib/unictype/categ_of.h: Regenerated.
41046         * lib/unictype/combining.h: Regenerated.
41047         * lib/unictype/ctype_alnum.h: Regenerated.
41048         * lib/unictype/ctype_alpha.h: Regenerated.
41049         * lib/unictype/ctype_graph.h: Regenerated.
41050         * lib/unictype/ctype_lower.h: Regenerated.
41051         * lib/unictype/ctype_print.h: Regenerated.
41052         * lib/unictype/ctype_punct.h: Regenerated.
41053         * lib/unictype/ctype_upper.h: Regenerated.
41054         * lib/unictype/decdigit.h: Regenerated.
41055         * lib/unictype/digit.h: Regenerated.
41056         * lib/unictype/mirror.h: Regenerated.
41057         * lib/unictype/numeric.h: Regenerated.
41058         * lib/unictype/pr_alphabetic.h: Regenerated.
41059         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41061         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41062         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41063         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41064         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41065         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41066         * lib/unictype/pr_combining.h: Regenerated.
41067         * lib/unictype/pr_dash.h: Regenerated.
41068         * lib/unictype/pr_decimal_digit.h: Regenerated.
41069         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41070         * lib/unictype/pr_deprecated.h: Regenerated.
41071         * lib/unictype/pr_diacritic.h: Regenerated.
41072         * lib/unictype/pr_extender.h: Regenerated.
41073         * lib/unictype/pr_format_control.h: Regenerated.
41074         * lib/unictype/pr_grapheme_base.h: Regenerated.
41075         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41076         * lib/unictype/pr_grapheme_link.h: Regenerated.
41077         * lib/unictype/pr_id_continue.h: Regenerated.
41078         * lib/unictype/pr_id_start.h: Regenerated.
41079         * lib/unictype/pr_ideographic.h: Regenerated.
41080         * lib/unictype/pr_ignorable_control.h: Regenerated.
41081         * lib/unictype/pr_lowercase.h: Regenerated.
41082         * lib/unictype/pr_math.h: Regenerated.
41083         * lib/unictype/pr_numeric.h: Regenerated.
41084         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41085         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41086         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41087         * lib/unictype/pr_other_id_continue.h: Regenerated.
41088         * lib/unictype/pr_other_lowercase.h: Regenerated.
41089         * lib/unictype/pr_other_math.h: Regenerated.
41090         * lib/unictype/pr_punctuation.h: Regenerated.
41091         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41092         * lib/unictype/pr_soft_dotted.h: Regenerated.
41093         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41094         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41095         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41096         * lib/unictype/pr_uppercase.h: Regenerated.
41097         * lib/unictype/pr_xid_continue.h: Regenerated.
41098         * lib/unictype/pr_xid_start.h: Regenerated.
41099         * lib/unictype/pr_zero_width.h: Regenerated.
41100         * lib/unictype/scripts.h: Regenerated.
41101         * lib/unictype/scripts_byname.gperf: Regenerated.
41102         * lib/unictype/sy_java_ident.h: Regenerated.
41103         * lib/unilbrk/lbrkprop1.h: Regenerated.
41104         * lib/unilbrk/lbrkprop2.h: Regenerated.
41105         * tests/unictype/test-categ_C.c: Regenerated.
41106         * tests/unictype/test-categ_Cf.c: Regenerated.
41107         * tests/unictype/test-categ_Cn.c: Regenerated.
41108         * tests/unictype/test-categ_L.c: Regenerated.
41109         * tests/unictype/test-categ_Ll.c: Regenerated.
41110         * tests/unictype/test-categ_Lm.c: Regenerated.
41111         * tests/unictype/test-categ_Lo.c: Regenerated.
41112         * tests/unictype/test-categ_Lu.c: Regenerated.
41113         * tests/unictype/test-categ_M.c: Regenerated.
41114         * tests/unictype/test-categ_Mc.c: Regenerated.
41115         * tests/unictype/test-categ_Me.c: Regenerated.
41116         * tests/unictype/test-categ_Mn.c: Regenerated.
41117         * tests/unictype/test-categ_N.c: Regenerated.
41118         * tests/unictype/test-categ_Nd.c: Regenerated.
41119         * tests/unictype/test-categ_Nl.c: Regenerated.
41120         * tests/unictype/test-categ_No.c: Regenerated.
41121         * tests/unictype/test-categ_P.c: Regenerated.
41122         * tests/unictype/test-categ_Pd.c: Regenerated.
41123         * tests/unictype/test-categ_Pe.c: Regenerated.
41124         * tests/unictype/test-categ_Pf.c: Regenerated.
41125         * tests/unictype/test-categ_Pi.c: Regenerated.
41126         * tests/unictype/test-categ_Po.c: Regenerated.
41127         * tests/unictype/test-categ_Ps.c: Regenerated.
41128         * tests/unictype/test-categ_S.c: Regenerated.
41129         * tests/unictype/test-categ_Sk.c: Regenerated.
41130         * tests/unictype/test-categ_Sm.c: Regenerated.
41131         * tests/unictype/test-categ_So.c: Regenerated.
41132         * tests/unictype/test-ctype_alnum.c: Regenerated.
41133         * tests/unictype/test-ctype_alpha.c: Regenerated.
41134         * tests/unictype/test-ctype_graph.c: Regenerated.
41135         * tests/unictype/test-ctype_lower.c: Regenerated.
41136         * tests/unictype/test-ctype_print.c: Regenerated.
41137         * tests/unictype/test-ctype_punct.c: Regenerated.
41138         * tests/unictype/test-ctype_upper.c: Regenerated.
41139         * tests/unictype/test-decdigit.h: Regenerated.
41140         * tests/unictype/test-digit.h: Regenerated.
41141         * tests/unictype/test-numeric.h: Regenerated.
41142         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41143         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41144         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41145         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41146         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41147         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41148         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41149         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41150         * tests/unictype/test-pr_combining.c: Regenerated.
41151         * tests/unictype/test-pr_dash.c: Regenerated.
41152         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41153         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41154         * tests/unictype/test-pr_deprecated.c: Regenerated.
41155         * tests/unictype/test-pr_diacritic.c: Regenerated.
41156         * tests/unictype/test-pr_extender.c: Regenerated.
41157         * tests/unictype/test-pr_format_control.c: Regenerated.
41158         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41159         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41160         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41161         * tests/unictype/test-pr_id_continue.c: Regenerated.
41162         * tests/unictype/test-pr_id_start.c: Regenerated.
41163         * tests/unictype/test-pr_ideographic.c: Regenerated.
41164         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41165         * tests/unictype/test-pr_lowercase.c: Regenerated.
41166         * tests/unictype/test-pr_math.c: Regenerated.
41167         * tests/unictype/test-pr_numeric.c: Regenerated.
41168         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41169         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41170         Regenerated.
41171         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41172         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41173         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41174         * tests/unictype/test-pr_other_math.c: Regenerated.
41175         * tests/unictype/test-pr_punctuation.c: Regenerated.
41176         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41177         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41178         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41179         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41180         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41181         * tests/unictype/test-pr_uppercase.c: Regenerated.
41182         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41183         * tests/unictype/test-pr_xid_start.c: Regenerated.
41184         * tests/unictype/test-pr_zero_width.c: Regenerated.
41185
41186         Update to Unicode 5.1.0.
41187         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41188         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41189         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41190         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41191         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41192         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41193         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41194         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41195         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41196         (nonspacing_table_ind): Update.
41197         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41198
41199         Update to Unicode 5.1.0.
41200         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41201         code transform.
41202         * lib/uniname/uniname.c (unicode_character_name,
41203         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41204         * lib/uniname/uninames.h: Regenerated.
41205         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41206
41207 2009-02-07  Bruno Haible  <bruno@clisp.org>
41208
41209         Merge gen-ctype and gen-lbrk into a single program.
41210         * lib/gen-uni-tables.c: New file, incorporating
41211         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41212         Add directory prefixes to the names of the generated files.
41213         * lib/unictype/gen-ctype.c: Remove file.
41214         * lib/unilbrk/gen-lbrk.c: Remove file.
41215         * modules/gen-uni-tables: New file.
41216         * modules/unictype/gen-ctype: Remove file.
41217         * modules/unilbrk/gen-lbrk: Remove file.
41218
41219 2009-02-07  Bruno Haible  <bruno@clisp.org>
41220
41221         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41222
41223         New module 'unistr/u32-strcoll'.
41224         * modules/unistr/u32-strcoll: New file.
41225         * lib/unistr/u32-strcoll.c: New file.
41226
41227         New module 'unistr/u16-strcoll'.
41228         * modules/unistr/u16-strcoll: New file.
41229         * lib/unistr/u16-strcoll.c: New file.
41230
41231         New module 'unistr/u8-strcoll'.
41232         * modules/unistr/u8-strcoll: New file.
41233         * lib/unistr/u8-strcoll.c: New file.
41234         * lib/unistr/u-strcoll.h: New file.
41235
41236 2009-02-07  Bruno Haible  <bruno@clisp.org>
41237
41238         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41239         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41240         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41241         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41242         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41243         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41244
41245 2009-02-07  Bruno Haible  <bruno@clisp.org>
41246
41247         Make 64-bit clean.
41248         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41249         output_combclass, output_bidi_category, output_decimal_digit,
41250         output_digit, output_numeric, output_mirror, output_scripts,
41251         output_ident_category): Use proper width specifier in format strings.
41252
41253 2009-02-07  Bruno Haible  <bruno@clisp.org>
41254
41255         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41256         failure behaviour.
41257
41258 2009-02-07  Jim Meyering  <meyering@redhat.com>
41259
41260         regex: avoid compilation failure with upcoming gcc-4.4
41261         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41262         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41263         "... error: integer overflow in preprocessor expression".
41264
41265 2009-02-05  Ben Pfaff  <blp@gnu.org>
41266
41267         Fix link errors on Windows when close module is used.
41268         * modules/close: Add $(LIB_CLOSE) to Link section.
41269         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41270         $(LIB_CLOSE) on Windows.
41271
41272 2009-02-05  Jim Meyering  <meyering@redhat.com>
41273
41274         still avoid unused-parameter warnings, but do it cleanly
41275         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41276         (get_fs_usage): Cast to void instead.
41277         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41278         (dev_from_mount_options, read_file_system_list): Cast to void.
41279         Prompted by Bruno Haible.
41280
41281 2009-02-04  Jim Meyering  <meyering@redhat.com>
41282
41283         fsusage.c: correct copyright year
41284         * lib/fsusage.c: Reflect year in which the change is pushed into
41285
41286         avoid misc. warnings
41287         * lib/fsusage.c (UNUSED_PARAM): Define.
41288         (get_fs_usage): Mark parameter "disk" as unused.
41289         * lib/getugroups.c (getgrent): Use "void" in prototype.
41290         * lib/mountlist.c: Mark unused parameters.
41291         (read_file_system_list): Declare a local with "const".
41292         * lib/nanosleep.c (getnow): Declare static.
41293         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41294
41295         dirfd: set errno upon failure
41296         * lib/dirfd.c: Include <errno.h>.
41297         Set errno to ENOTSUP when returning -1.
41298         * modules/dirfd (Depends-on): Add errno.
41299         Suggested by John Kodis <kodis@comcast.net>.
41300
41301 2009-02-01  Bruno Haible  <bruno@clisp.org>
41302
41303         Don't assume sizeof (long) >= sizeof (void *).
41304         * lib/memcmp.c: Include stdint.h.
41305         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41306         srcp2 to 'const byte *'.
41307         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41308         types to uintptr_t.
41309         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41310         * modules/memcmp (Depends-on): Add stdint.
41311         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41312
41313 2009-01-30  Eric Blake  <ebb9@byu.net>
41314
41315         fix more require-before-expand issues
41316         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41317         expand, AC_PROG_AWK.
41318         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41319
41320 2009-01-28  Eric Blake  <ebb9@byu.net>
41321
41322         version-etc: use consistent URL formatting
41323         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41324         Improve formatting.  Use fputs for string without %.
41325
41326 2009-01-28  Jim Meyering  <meyering@redhat.com>
41327
41328         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41329         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41330         "underquoted definition of NAME" from autoconf-2.59.
41331
41332 2009-01-28  Bruno Haible  <bruno@clisp.org>
41333
41334         * doc/gnulib.texi: Add "Obsolete modules" to index.
41335
41336 2009-01-28  Jim Meyering  <meyering@redhat.com>
41337
41338         useless-if-before-free: recognize more variants
41339         * build-aux/useless-if-before-free: Also recognize e.g.,
41340         if (NULL != p) free (p);
41341
41342 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41343
41344         test-getaddrinfo: skip (don't fail) this test when there's no network
41345         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41346         on the presumption that it means you lack network access.
41347
41348 2009-01-26  Jim Meyering  <meyering@redhat.com>
41349
41350         fflush: avoid warnings on modern systems
41351         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41352         pos and result, into scopes where they're used.
41353
41354 2009-01-26  Eric Blake  <ebb9@byu.net>
41355
41356         Silence warning reintroduced by recent extensions patch.
41357         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41358         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41359         autoconf.
41360
41361         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41362         * m4/00gnulib.m4: New file.
41363         * gnulib-tool (func_get_filelist): Always use it.
41364         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41365         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41366
41367 2009-01-25  Bruno Haible  <bruno@clisp.org>
41368
41369         Make test-quotearg work on MacOS X and AIX.
41370         * tests/test-quotearg.sh: New file.
41371         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41372         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41373         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41374         include <libintl.h>.
41375         (fake_locale): Remove variable.
41376         (gettext, dgettext, dcgettext): Remove functions.
41377         (main): Instead of setting a fake locale, set a real locale. Call
41378         textdomain and bindtextdomain.
41379         * modules/quotearg-tests (Files): Add the new files.
41380         (Depends-on): Add gettext, setenv, unsetenv.
41381         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41382         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41383         Augment TESTS_ENVIRONMENT.
41384
41385 2009-01-25  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41388         fr_FR.ISO8859-1 locale on MacOS X.
41389         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41390         ja_JP.eucJP locale on MacOS X.
41391         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41392         zh_CN.GB18030 locale on MacOS X.
41393
41394 2009-01-25  Bruno Haible  <bruno@clisp.org>
41395
41396         Avoid link errors on MacOS X 10.3.
41397         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41398         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41399
41400 2009-01-25  Bruno Haible  <bruno@clisp.org>
41401
41402         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41403         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41404         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41405         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41406         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41407         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41408         posix_spawnattr_init, posix_spawnattr_setsigmask,
41409         posix_spawnattr_setflags, posix_spawnattr_destroy.
41410
41411         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41412         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41413         * modules/execute (Files): Remove m4/posix_spawn.m4.
41414         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
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 2009-01-25  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/glthread/threadlib.c: Include <stdlib.h>.
41422
41423 2009-01-25  Bruno Haible  <bruno@clisp.org>
41424
41425         * lib/glthread/threadlib.c (dummy): New declaration.
41426
41427 2009-01-25  Bruno Haible  <bruno@clisp.org>
41428
41429         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41430         multibyte characters also for the GB18030 encoding. Don't crash when
41431         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41432
41433 2009-01-25  Bruno Haible  <bruno@clisp.org>
41434
41435         Avoid redefining 'struct random_data' on OSF/1 5.1.
41436         * lib/stdlib.in.h: Include <random.h> if it exists.
41437         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41438         HAVE_RANDOM_H. Include <random.h> when testing whether
41439         'struct random_data' exists.
41440         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41441
41442 2009-01-25  Bruno Haible  <bruno@clisp.org>
41443
41444         Don't install charset.alias on MacOS X >= 10.3.
41445         * lib/localcharset.c (DARWIN7): New macro.
41446         (get_charset_aliases): Hardcode the result for Darwin7.
41447         * modules/localcharset (install-exec-local): Don't install
41448         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
41449
41450 2009-01-25  Bruno Haible  <bruno@clisp.org>
41451
41452         Don't install charset.alias on mingw and Cygwin.
41453         * modules/localcharset (install-exec-local): Don't install
41454         charset.alias on mingw and Cygwin, if the file does not yet exist.
41455         The result for these platforms is hardcoded in localcharset.c.
41456
41457 2009-01-25  Bruno Haible  <bruno@clisp.org>
41458
41459         Make it possible again to use AC_GNU_SOURCE together with gnulib.
41460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
41461         before requiring AC_USE_SYSTEM_EXTENSIONS.
41462
41463 2009-01-25  Jim Meyering  <meyering@redhat.com>
41464
41465         c-strtod: avoid warnings
41466         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
41467         "assignment discards qualifiers from pointer target type" warnings.
41468
41469 2009-01-24  Bruno Haible  <bruno@clisp.org>
41470
41471         Add support for non-UTF-8 locales on MacOS X.
41472         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
41473         canonical encodings. For Darwin 7 and newer, don't map traditional
41474         encodings to UTF-8.
41475         Reported by Vincent Lefevre <vincent@vinc17.org>
41476         at <http://savannah.gnu.org/bugs/?25235>.
41477
41478 2009-01-24  Bruno Haible  <bruno@clisp.org>
41479
41480         * doc/gnulib.texi (Obsolete modules): New section.
41481         Reported by Mike Frysinger <vapier@gentoo.org>.
41482
41483 2009-01-24  Bruno Haible  <bruno@clisp.org>
41484
41485         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
41486         (%.dvi): New rule.
41487
41488 2009-01-24  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
41491         Reported by Eric Blake.
41492
41493 2009-01-24  Bruno Haible  <bruno@clisp.org>
41494
41495         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
41496         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
41497         Reported by Gary V. Vaughan <gary@gnu.org>.
41498
41499 2009-01-24  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
41502
41503 2009-01-23  Bruno Haible  <bruno@clisp.org>
41504
41505         Make c-strtod, c-strtold usable in libraries.
41506         * lib/c-strtod.c: Include string.h instead of xalloc.h.
41507         (C_STRTOD): Call strdup instead of xstrdup.
41508         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
41509         * modules/c-strtold (Depends-on): Likewise.
41510         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
41511         * NEWS: Mention the change.
41512         Reported by Michael Gold <mgold@ncf.ca>.
41513
41514 2009-01-23  Jim Meyering  <meyering@redhat.com>
41515
41516         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
41517         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
41518         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
41519
41520 2009-01-23  Simon Josefsson  <simon@josefsson.org>
41521
41522         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
41523         GNU CoreUtils.
41524         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
41525         * modules/version-etc (Description): Update.
41526
41527 2009-01-22  Bruno Haible  <bruno@clisp.org>
41528
41529         Cache the C locale object.
41530         * lib/c-strtod.c (c_locale_cache): New variable.
41531         (c_locale): New function.
41532         (C_STRTOD): Use it, and don't call freelocale.
41533         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
41534         Suggested by Paolo Bonzini.
41535
41536 2009-01-21  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
41539         conditions other than overflow.
41540
41541 2009-01-21  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/c-strtod.c: Include errno.h.
41544         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
41545         value from STRTOD_L and STRTOD.
41546
41547 2009-01-21  Bruno Haible  <bruno@clisp.org>
41548         and Jim Meyering  <meyering@redhat.com>
41549
41550         nanosleep: skip configure test (fail it) for apple universal builds
41551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
41552         universal builds, assume that nanosleep does not work.
41553         * modules/nanosleep (Depends-on): Add multiarch.
41554
41555         mktime: skip configure test (fail it) for apple universal builds
41556         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
41557         universal builds, assume that mktime does not work.
41558         * modules/mktime (Depends-on): Add multiarch.
41559
41560 2009-01-21  Eric Blake  <ebb9@byu.net>
41561
41562         multiarch: avoid expand-before-require warning
41563         * modules/multiarch (configure.ac): Require, rather than expand,
41564         gl_MULTIARCH.
41565         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
41566         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
41567         enforce that all clients require it.  Partial reversion of
41568         2008-12-29 patch.
41569
41570         error: avoid expand-before-require warning
41571         * modules/errno (configure.ac): Require, rather than expand,
41572         gl_HEADER_ERRNO_H.
41573         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
41574         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
41575         enforce that all clients require it.
41576
41577         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
41578         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
41579         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
41580         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
41581
41582 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
41583
41584         Revert:
41585         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41586
41587         regex: do not depend on obsolete modules.
41588         * modules/regex: Remove memcmp and memmove.
41589
41590 2009-01-20  Bruno Haible  <bruno@clisp.org>
41591
41592         Make the 'link' module link on Windows NT 4.
41593         * lib/link.c (_WIN32_WINNT): Don't define.
41594         (CreateHardLinkFuncType): New type.
41595         (CreateHardLinkFunc, initialized): New variables.
41596         (initialize): New function.
41597         (link): Invoke CreateHardLink indirectly through the function pointer.
41598
41599 2009-01-20  Bruno Haible  <bruno@clisp.org>
41600
41601         Fix compilation failure on mingw.
41602         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
41603
41604 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
41605
41606         * doc/c-strtod.texi: Mention a couple of restrictions.
41607
41608 2009-01-20  Jim Meyering  <meyering@redhat.com>
41609
41610         gettimeofday: move more declarations out of functions
41611         * lib/gettimeofday.c: Move extern declarations of tzset and
41612         gmtime out of containing functions.  Prompted by Bruno Haible.
41613
41614 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
41615
41616         regex: do not depend on obsolete modules.
41617         * modules/regex: Remove memcmp and memmove.
41618
41619 2009-01-19  Bruno Haible  <bruno@clisp.org>
41620
41621         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41622         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
41623         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41624         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
41625         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
41626
41627 2009-01-19  Bruno Haible  <bruno@clisp.org>
41628
41629         * tests/test-link.c: Include <errno.h>.
41630         (main): Exit with code 77 when a hard link cannot be created due to
41631         the file system.
41632         * tests/test-link.sh: Skip test when a hard link cannot be created due
41633         to the file system.
41634         Suggested by Eric Blake.
41635
41636 2009-01-19  Martin Lambers  <marlam@marlam.de>
41637
41638         * modules/link-tests: New file.
41639         * tests/test-link.sh: New file.
41640         * tests/test-link.c: New file.
41641
41642 2009-01-19  Eric Blake  <ebb9@byu.net>
41643
41644         doc: mention another function added in cygwin 1.7.0
41645         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
41646         Another new function in cygwin 1.7.
41647
41648 2009-01-19  Bruno Haible  <bruno@clisp.org>
41649
41650         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
41651         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
41652         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
41653         gl_BIGENDIAN, not AC_C_BIGENDIAN.
41654         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41655         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
41656         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
41657         * m4/md4.m4 (gl_MD4): Likewise.
41658         * m4/md5.m4 (gl_MD5): Likewise.
41659         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
41660         * m4/sha1.m4 (gl_SHA1): Likewise.
41661         * m4/sha256.m4 (gl_SHA256): Likewise.
41662         * m4/sha512.m4 (gl_SHA512): Likewise.
41663
41664 2009-01-19  Bruno Haible  <bruno@clisp.org>
41665
41666         * modules/uniname/uniname-tests (Depends-on): Add progname.
41667         * tests/uniname/test-uninames.c: Include progname.h.
41668         (main): Call set_program_name.
41669
41670         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
41671         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
41672         (main): Call set_program_name.
41673
41674         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
41675         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
41676         (main): Call set_program_name.
41677
41678         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
41679         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
41680         (main): Call set_program_name.
41681
41682         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
41683         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
41684         (main): Call set_program_name.
41685
41686         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
41687         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
41688         (main): Call set_program_name.
41689
41690         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
41691         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
41692         (main): Call set_program_name.
41693
41694         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
41695         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
41696         (main): Call set_program_name.
41697
41698         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
41699         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
41700         (main): Call set_program_name.
41701
41702 2009-01-19  Eric Blake  <ebb9@byu.net>
41703
41704         test-unistd: test previous patch
41705         * tests/test-unistd.c: Test *_FILENO macros.
41706
41707         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
41708         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41709         Guarantee a definition.
41710         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
41711         * modules/unistd-safer (Depends-on): Add dependency on unistd.
41712         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
41713         * lib/dup-safer.c (STDERR_FILENO): Likewise.
41714         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41715         Likewise.
41716         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
41717         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
41718         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
41719         Likewise.
41720         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
41721         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
41722         (STDERR_FILENO): Likewise.
41723         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
41724         (STDERR_FILENO): Likewise.
41725         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
41726         (STDERR_FILENO): Likewise.
41727         Reported by Elbert Pol.
41728
41729 2009-01-19  Eric Blake  <ebb9@byu.net>
41730
41731         doc: mention more functions added in cygwin 1.7.0
41732         * doc/posix-functions/abort.texi (abort): Update wording related
41733         to cygwin.
41734         * doc/posix-functions/daylight.texi (daylight): Likewise.
41735         * doc/posix-functions/optarg.texi (optarg): Likewise.
41736         * doc/posix-functions/optarg.texi (opterr): Likewise.
41737         * doc/posix-functions/optarg.texi (optind): Likewise.
41738         * doc/posix-functions/optarg.texi (optopt): Likewise.
41739         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
41740         worked in 1.5.x, and was withdrawn in 1.7.
41741         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
41742         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
41743         cygwin versions.
41744         * doc/posix-functions/perror.texi (perror): Likewise.
41745         * doc/posix-functions/printf.texi (printf): Likewise.
41746         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
41747         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
41748         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
41749         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
41750         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41751         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
41752         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
41753         Likewise.
41754         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
41755         Likewise.
41756         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
41757         this function.
41758         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
41759         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
41760         Likewise.
41761         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
41762         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
41763         * doc/posix-functions/confstr.texi (confstr): Likewise.
41764         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
41765         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
41766         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
41767         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
41768         * doc/posix-functions/fputws.texi (fputws): Likewise.
41769         * doc/posix-functions/fwide.texi (fwide): Likewise.
41770         * doc/posix-functions/getwc.texi (getwc): Likewise.
41771         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
41772         * doc/posix-functions/putwc.texi (putwc): Likewise.
41773         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
41774         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
41775         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
41776         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
41777         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
41778         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
41779         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
41780         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
41781         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
41782         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
41783         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
41784
41785 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41786
41787         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
41788         * lib/ioctl.c: Include <sys/ioctl.h>.
41789
41790 2009-01-19  Simon Josefsson  <simon@josefsson.org>
41791
41792         * modules/getdate-tests (Depends-on): Add progname.
41793         * tests/test-getdate.c: Use progname module, to avoid link errors
41794         on non-glibc systems.
41795
41796 2009-01-18  Simon Josefsson  <simon@josefsson.org>
41797
41798         * modules/filenamecat-tests (Depends-on): Add progname.
41799         * modules/fstrcmp-tests (Depends-on): Likewise.
41800
41801         * tests/test-filenamecat.c: Use progname module, to avoid link
41802         errors on non-glibc systems.
41803         * tests/test-fstrcmp.c: Likewise.
41804
41805 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
41806
41807         gettimeofday: avoid warning: nested extern declaration of 'localtime'
41808         * lib/gettimeofday.c: Move extern declaration out of function.
41809
41810 2009-01-18  Bruno Haible  <bruno@clisp.org>
41811
41812         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
41813         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
41814         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
41815
41816 2009-01-18  Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/strftime.c (MEMPCPY): Remove unused macro.
41819         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
41820
41821 2009-01-18  Martin Lambers  <marlam@marlam.de>
41822
41823         New module 'link'.
41824         * lib/unistd.in.h (link): New declaration.
41825         * lib/link.c: New file.
41826         * m4/link.m4: New file.
41827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
41828         HAVE_LINK.
41829         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
41830         * modules/link: New file.
41831         * doc/posix-functions/link.texi: Mention the new module.
41832
41833 2009-01-18  Bruno Haible  <bruno@clisp.org>
41834
41835         * tests/test-avltree_list.c (main): Call set_program_name.
41836         * tests/test-avltree_oset.c (main): Likewise.
41837         * tests/test-obstack-printf.c: Include progname.h.
41838         (main): Call set_program_name.
41839         * tests/test-quotearg.c: Include progname.h.
41840         (main): Call set_program_name.
41841         * tests/test-xmemdup0.c: Include progname.h.
41842         (main): Call set_program_name.
41843
41844 2009-01-18  Bruno Haible  <bruno@clisp.org>
41845
41846         New module 'alphasort'.
41847         * lib/dirent.in.h (alphasort): New declaration.
41848         * lib/alphasort.c: New file, from glibc with modifications.
41849         * m4/alphasort.m4: New file.
41850         * modules/alphasort: New file.
41851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
41852         HAVE_ALPHASORT.
41853         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
41854         HAVE_ALPHASORT.
41855         * doc/posix-functions/alphasort.texi: Mention the new module and the
41856         portability problems.
41857
41858 2009-01-18  Bruno Haible  <bruno@clisp.org>
41859
41860         New module 'scandir'.
41861         * lib/dirent.in.h (scandir): New declaration.
41862         * lib/scandir.c: New file, from glibc with modifications.
41863         * m4/scandir.m4: New file.
41864         * modules/scandir: New file.
41865         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
41866         HAVE_SCANDIR.
41867         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
41868         HAVE_SCANDIR.
41869         * doc/posix-functions/scandir.texi: Mention the new module and the
41870         portability problems.
41871
41872 2009-01-17  Bruno Haible  <bruno@clisp.org>
41873
41874         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
41875         Update documentation.
41876         (func_remove_suffix): Escape all dots in the suffix. Update
41877         documentation.
41878         (func_filter_filelist): Update documentation.
41879         Reported by Ralf Wildenhues.
41880
41881 2009-01-17  Bruno Haible  <bruno@clisp.org>
41882
41883         * modules/dprintf-posix-tests: New file.
41884         * tests/test-dprintf-posix.sh: New file.
41885         * tests/test-dprintf-posix.c: New file.
41886
41887         New modules 'dprintf', 'dprintf-posix'.
41888         * lib/stdio.in.h (dprintf): New declaration.
41889         * lib/dprintf.c: New file.
41890         * m4/dprintf.m4: New file.
41891         * m4/dprintf-posix.m4: New file.
41892         * modules/dprintf: New file.
41893         * modules/dprintf-posix: New file.
41894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
41895         HAVE_DPRINTF, REPLACE_DPRINTF.
41896         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
41897         HAVE_DPRINTF, REPLACE_DPRINTF.
41898         * doc/posix-functions/dprintf.texi: Mention the new modules.
41899
41900 2009-01-17  Bruno Haible  <bruno@clisp.org>
41901
41902         * modules/vdprintf-posix-tests: New file.
41903         * tests/test-vdprintf-posix.sh: New file.
41904         * tests/test-vdprintf-posix.c: New file.
41905
41906         New modules 'vdprintf', 'vdprintf-posix'.
41907         * lib/stdio.in.h (vdprintf): New declaration.
41908         * lib/vdprintf.c: New file.
41909         * m4/vdprintf.m4: New file.
41910         * m4/vdprintf-posix.m4: New file.
41911         * modules/vdprintf: New file.
41912         * modules/vdprintf-posix: New file.
41913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
41914         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41915         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
41916         HAVE_VDPRINTF, REPLACE_VDPRINTF.
41917         * doc/posix-functions/vdprintf.texi: Mention the new modules.
41918
41919 2009-01-17  Bruno Haible  <bruno@clisp.org>
41920
41921         Fix replacement of fopen on mingw.
41922         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
41923         mingw.
41924
41925 2009-01-17  Bruno Haible  <bruno@clisp.org>
41926
41927         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
41928         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
41929
41930 2009-01-17  Bruno Haible  <bruno@clisp.org>
41931
41932         Avoid test-fflush2.sh failure on mingw.
41933         * tests/test-fflush2.c: Include binary-io.h.
41934         (main): Put standard input into binary mode.
41935         * modules/fflush-tests (Depends-on): Add binary-io.
41936
41937 2009-01-17  Bruno Haible  <bruno@clisp.org>
41938
41939         * lib/wchar.in.h: In another particular situation, include only the
41940         system's <wchar.h> file.
41941         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
41942         Reported by Albert Chin-A-Young <china@thewrittenword.com>
41943         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
41944
41945 2009-01-17  Bruno Haible  <bruno@clisp.org>
41946
41947         Support for stripping executables in --enable-relocatable.
41948         * build-aux/install-reloc: Expect one more argument, or an environment
41949         variable RELOC_STRIP_PROG. If set, strip the destination program and
41950         its wrapper.
41951         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
41952         RELOC_STRIP_PROG.
41953         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
41954         to set RELOCATABLE_STRIP.
41955         * NEWS: Mention the new Makefile requirement.
41956
41957 2009-01-17  Bruno Haible  <bruno@clisp.org>
41958
41959         * build-aux/install-reloc: Remove debugging information left over by
41960         C compiler on MacOS X.
41961
41962 2009-01-17  Bruno Haible  <bruno@clisp.org>
41963
41964         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
41965         * lib/progreloc.c (find_executable): Fix type of pointer passed to
41966         _NSGetExecutablePath.
41967
41968 2009-01-16  Jim Meyering  <meyering@redhat.com>
41969
41970         strerror: avoid warnings about discarding "const"
41971         * lib/strerror.c (rpl_strerror): Instead of returning a const
41972         string from each and every "case", use a variable, and add a single
41973         cast after the switch.
41974
41975 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
41976
41977         * lib/arpa_inet.in.h: Add extern "C" block for C++.
41978
41979 2009-01-16  Bruno Haible  <bruno@clisp.org>
41980
41981         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
41982         array initializer syntax that also works in C++ mode.
41983         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41984
41985 2009-01-16  Jim Meyering  <meyering@redhat.com>
41986
41987         poll: suppress a warning
41988         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
41989         to ignore "...unsigned expression < 0 is always false" warnings.
41990
41991 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
41992
41993         poll: remove declarations of unused variables
41994         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
41995         sockbuf and optlen.
41996
41997 2009-01-15  Bruno Haible  <bruno@clisp.org>
41998
41999         Make fflush-after-ungetc POSIX compliant on BSD systems.
42000         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42001         (clear_ungetc_buffer): Implement also for other systems.
42002         (rpl_fflush): On glibc systems, invoke
42003         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42004         clear_ungetc_buffer after fetching the stream's position, not before.
42005
42006 2009-01-15  Bruno Haible  <bruno@clisp.org>
42007
42008         Make fflush-after-ungetc POSIX compliant on glibc systems.
42009         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42010         after ungetc.
42011         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42012         (rpl_fflush): On glibc systems, simply call the system's fflush
42013         function after clearing the ungetc buffer.
42014         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42015         Instead, lseek only to the end of file, then use the system's fseeko
42016         for the rest. On glibc systems, reset the EOF indicator bit.
42017
42018 2009-01-15  Jim Meyering  <meyering@redhat.com>
42019
42020         openmp.m4: revert quote-adding change, for portability to older autoconf
42021         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42022         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42023         Simon Josefsson noticed the problem when using autoconf-2.61.
42024
42025 2009-01-15  Bruno Haible  <bruno@clisp.org>
42026
42027         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42028         * tests/test-fflush2.c (ASSERT): Always fail.
42029         (main): Add two tests for fflush() after ungetc(), taking into account
42030         the Austin Group's clarification.
42031         Suggested by Eric Blake.
42032
42033 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42034
42035         mktime.m4: remove K&R-style function prototypes
42036         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42037         for the Sun C++ compiler.
42038
42039 2009-01-14  Bruno Haible  <bruno@clisp.org>
42040
42041         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42042         while including <wchar.h>.
42043         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42044         the system's <wchar.h> file.
42045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42046
42047 2009-01-14  Bruno Haible  <bruno@clisp.org>
42048
42049         * m4/csharp.m4: Don't mention gettext on the serial number line.
42050         * m4/csharpexec.m4: Likewise.
42051         * m4/eaccess.m4: Likewise.
42052         * m4/javaexec.m4: Likewise.
42053         * m4/sig_atomic_t.m4: Likewise.
42054         * m4/tmpdir.m4: Likewise.
42055         * m4/intldir.m4: Bump gettext version.
42056         * m4/lib-ld.m4: Likewise.
42057
42058 2009-01-14  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/progname.c (set_program_name): Add more comments.
42061         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42062
42063 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42064
42065         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42066         were sys/stat.h does not define it.
42067
42068 2009-01-14  Jim Meyering  <meyering@redhat.com>
42069
42070         many *.m4 files: improve m4 quoting
42071         99% of this change was performed by running the following commands:
42072         git ls-files | grep '\.m4$' | xargs perl -pi \
42073           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42074           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42075           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42076           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42077         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42078         The remainder were to add Copyright dates, increment serial numbers,
42079         undo some changes in comments, exclude m4/intl.m4, and add quotes
42080         around the "1" in ",1" where the unusual spacing prohibited the
42081         above regexps from doing the job.  For more details, see
42082         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42083         * m4/acl.m4: Modified.
42084         * m4/afs.m4: Likewise.
42085         * m4/alloca.m4: Likewise.
42086         * m4/argp.m4: Likewise.
42087         * m4/argz.m4: Likewise.
42088         * m4/atexit.m4: Likewise.
42089         * m4/bison-i18n.m4: Likewise.
42090         * m4/bison.m4: Likewise.
42091         * m4/byteswap.m4: Likewise.
42092         * m4/c-stack.m4: Likewise.
42093         * m4/c-strtod.m4: Likewise.
42094         * m4/calloc.m4: Likewise.
42095         * m4/canonicalize-lgpl.m4: Likewise.
42096         * m4/chown.m4: Likewise.
42097         * m4/clock_time.m4: Likewise.
42098         * m4/codeset.m4: Likewise.
42099         * m4/copy-file.m4: Likewise.
42100         * m4/csharp.m4: Likewise.
42101         * m4/csharpcomp.m4: Likewise.
42102         * m4/csharpexec.m4: Likewise.
42103         * m4/d-ino.m4: Likewise.
42104         * m4/d-type.m4: Likewise.
42105         * m4/dirfd.m4: Likewise.
42106         * m4/double-slash-root.m4: Likewise.
42107         * m4/eaccess.m4: Likewise.
42108         * m4/eealloc.m4: Likewise.
42109         * m4/environ.m4: Likewise.
42110         * m4/errno_h.m4: Likewise.
42111         * m4/euidaccess.m4: Likewise.
42112         * m4/execute.m4: Likewise.
42113         * m4/fatal-signal.m4: Likewise.
42114         * m4/fchdir.m4: Likewise.
42115         * m4/fcntl_h.m4: Likewise.
42116         * m4/fileblocks.m4: Likewise.
42117         * m4/filenamecat.m4: Likewise.
42118         * m4/findprog.m4: Likewise.
42119         * m4/flexmember.m4: Likewise.
42120         * m4/fnmatch.m4: Likewise.
42121         * m4/fopen.m4: Likewise.
42122         * m4/fpending.m4: Likewise.
42123         * m4/fprintf-posix.m4: Likewise.
42124         * m4/free.m4: Likewise.
42125         * m4/frexp.m4: Likewise.
42126         * m4/frexpl.m4: Likewise.
42127         * m4/fsusage.m4: Likewise.
42128         * m4/ftruncate.m4: Likewise.
42129         * m4/gc-camellia.m4: Likewise.
42130         * m4/gc-random.m4: Likewise.
42131         * m4/gc.m4: Likewise.
42132         * m4/getaddrinfo.m4: Likewise.
42133         * m4/getcwd-abort-bug.m4: Likewise.
42134         * m4/getcwd-path-max.m4: Likewise.
42135         * m4/getdate.m4: Likewise.
42136         * m4/getdomainname.m4: Likewise.
42137         * m4/getgroups.m4: Likewise.
42138         * m4/gethostname.m4: Likewise.
42139         * m4/gethrxtime.m4: Likewise.
42140         * m4/getline.m4: Likewise.
42141         * m4/getloadavg.m4: Likewise.
42142         * m4/getndelim2.m4: Likewise.
42143         * m4/getpass.m4: Likewise.
42144         * m4/gettext.m4: Likewise.
42145         * m4/gettime.m4: Likewise.
42146         * m4/gettimeofday.m4: Likewise.
42147         * m4/gnulib-common.m4: Likewise.
42148         * m4/group-member.m4: Likewise.
42149         * m4/host-os.m4: Likewise.
42150         * m4/iconv.m4: Likewise.
42151         * m4/iconv_open.m4: Likewise.
42152         * m4/inet_ntop.m4: Likewise.
42153         * m4/inet_pton.m4: Likewise.
42154         * m4/inline.m4: Likewise.
42155         * m4/intldir.m4: Likewise.
42156         * m4/intlmacosx.m4: Likewise.
42157         * m4/intmax.m4: Likewise.
42158         * m4/intmax_t.m4: Likewise.
42159         * m4/inttypes.m4: Likewise.
42160         * m4/inttypes_h.m4: Likewise.
42161         * m4/inttypes-pri.m4: Likewise.
42162         * m4/isapipe.m4: Likewise.
42163         * m4/isnand.m4: Likewise.
42164         * m4/isnanf.m4: Likewise.
42165         * m4/isnanl.m4: Likewise.
42166         * m4/javacomp.m4: Likewise.
42167         * m4/javaexec.m4: Likewise.
42168         * m4/jm-winsz1.m4: Likewise.
42169         * m4/jm-winsz2.m4: Likewise.
42170         * m4/lchown.m4: Likewise.
42171         * m4/lcmessage.m4: Likewise.
42172         * m4/ldexpl.m4: Likewise.
42173         * m4/lib-ld.m4: Likewise.
42174         * m4/lib-link.m4: Likewise.
42175         * m4/libsigsegv.m4: Likewise.
42176         * m4/link-follow.m4: Likewise.
42177         * m4/localcharset.m4: Likewise.
42178         * m4/locale-fr.m4: Likewise.
42179         * m4/locale-ja.m4: Likewise.
42180         * m4/locale-tr.m4: Likewise.
42181         * m4/locale-zh.m4: Likewise.
42182         * m4/lock.m4: Likewise.
42183         * m4/longlong.m4: Likewise.
42184         * m4/ls-mntd-fs.m4: Likewise.
42185         * m4/lstat.m4: Likewise.
42186         * m4/malloc.m4: Likewise.
42187         * m4/mathl.m4: Likewise.
42188         * m4/mbrtowc.m4: Likewise.
42189         * m4/mbstate_t.m4: Likewise.
42190         * m4/mbswidth.m4: Likewise.
42191         * m4/memchr.m4: Likewise.
42192         * m4/memcmp.m4: Likewise.
42193         * m4/memcpy.m4: Likewise.
42194         * m4/memmem.m4: Likewise.
42195         * m4/memmove.m4: Likewise.
42196         * m4/mempcpy.m4: Likewise.
42197         * m4/memrchr.m4: Likewise.
42198         * m4/memset.m4: Likewise.
42199         * m4/minmax.m4: Likewise.
42200         * m4/mkdir-slash.m4: Likewise.
42201         * m4/mkdtemp.m4: Likewise.
42202         * m4/mktime.m4: Likewise.
42203         * m4/mmap-anon.m4: Likewise.
42204         * m4/mountlist.m4: Likewise.
42205         * m4/nanosleep.m4: Likewise.
42206         * m4/nls.m4: Likewise.
42207         * m4/nocrash.m4: Likewise.
42208         * m4/open.m4: Likewise.
42209         * m4/openat.m4: Likewise.
42210         * m4/openmp.m4: Likewise.
42211         * m4/pathmax.m4: Likewise.
42212         * m4/perl.m4: Likewise.
42213         * m4/physmem.m4: Likewise.
42214         * m4/pipe.m4: Likewise.
42215         * m4/po.m4: Likewise.
42216         * m4/poll.m4: Likewise.
42217         * m4/posixtm.m4: Likewise.
42218         * m4/posixver.m4: Likewise.
42219         * m4/printf-frexp.m4: Likewise.
42220         * m4/printf-frexpl.m4: Likewise.
42221         * m4/printf-posix.m4: Likewise.
42222         * m4/printf-posix-rpl.m4: Likewise.
42223         * m4/printf.m4: Likewise.
42224         * m4/progtest.m4: Likewise.
42225         * m4/putenv.m4: Likewise.
42226         * m4/readline.m4: Likewise.
42227         * m4/readlink.m4: Likewise.
42228         * m4/readutmp.m4: Likewise.
42229         * m4/realloc.m4: Likewise.
42230         * m4/regex.m4: Likewise.
42231         * m4/relocatable.m4: Likewise.
42232         * m4/relocatable-lib.m4: Likewise.
42233         * m4/rename-dest-slash.m4: Likewise.
42234         * m4/rename.m4: Likewise.
42235         * m4/rmdir-errno.m4: Likewise.
42236         * m4/rmdir.m4: Likewise.
42237         * m4/roundf.m4: Likewise.
42238         * m4/roundl.m4: Likewise.
42239         * m4/rpmatch.m4: Likewise.
42240         * m4/save-cwd.m4: Likewise.
42241         * m4/selinux-selinux-h.m4: Likewise.
42242         * m4/setenv.m4: Likewise.
42243         * m4/settime.m4: Likewise.
42244         * m4/sig2str.m4: Likewise.
42245         * m4/sig_atomic_t.m4: Likewise.
42246         * m4/signalblocking.m4: Likewise.
42247         * m4/signbit.m4: Likewise.
42248         * m4/sigpipe.m4: Likewise.
42249         * m4/sockets.m4: Likewise.
42250         * m4/sockpfaf.m4: Likewise.
42251         * m4/st_dm_mode.m4: Likewise.
42252         * m4/stat-time.m4: Likewise.
42253         * m4/stdbool.m4: Likewise.
42254         * m4/stdint.m4: Likewise.
42255         * m4/stdint_h.m4: Likewise.
42256         * m4/stpcpy.m4: Likewise.
42257         * m4/stpncpy.m4: Likewise.
42258         * m4/strcase.m4: Likewise.
42259         * m4/strchrnul.m4: Likewise.
42260         * m4/strcspn.m4: Likewise.
42261         * m4/strdup.m4: Likewise.
42262         * m4/strftime.m4: Likewise.
42263         * m4/strndup.m4: Likewise.
42264         * m4/strnlen.m4: Likewise.
42265         * m4/strpbrk.m4: Likewise.
42266         * m4/strptime.m4: Likewise.
42267         * m4/strsep.m4: Likewise.
42268         * m4/strtod.m4: Likewise.
42269         * m4/strtoimax.m4: Likewise.
42270         * m4/strtok_r.m4: Likewise.
42271         * m4/strtol.m4: Likewise.
42272         * m4/strtoll.m4: Likewise.
42273         * m4/strtoul.m4: Likewise.
42274         * m4/strtoull.m4: Likewise.
42275         * m4/strtoumax.m4: Likewise.
42276         * m4/strverscmp.m4: Likewise.
42277         * m4/threadlib.m4: Likewise.
42278         * m4/timegm.m4: Likewise.
42279         * m4/tm_gmtoff.m4: Likewise.
42280         * m4/tmpdir.m4: Likewise.
42281         * m4/tmpfile.m4: Likewise.
42282         * m4/tzset.m4: Likewise.
42283         * m4/uintmax_t.m4: Likewise.
42284         * m4/unlinkdir.m4: Likewise.
42285         * m4/unlocked-io.m4: Likewise.
42286         * m4/uptime.m4: Likewise.
42287         * m4/userspec.m4: Likewise.
42288         * m4/utimbuf.m4: Likewise.
42289         * m4/utime.m4: Likewise.
42290         * m4/utimes-null.m4: Likewise.
42291         * m4/utimes.m4: Likewise.
42292         * m4/vararrays.m4: Likewise.
42293         * m4/vasnprintf.m4: Likewise.
42294         * m4/vfprintf-posix.m4: Likewise.
42295         * m4/vprintf-posix.m4: Likewise.
42296         * m4/wait-process.m4: Likewise.
42297         * m4/wchar_t.m4: Likewise.
42298         * m4/wint_t.m4: Likewise.
42299         * m4/write-any-file.m4: Likewise.
42300         * m4/yield.m4: Likewise.
42301
42302 2009-01-13  Bruno Haible  <bruno@clisp.org>
42303
42304         Avoid test-copy-file.sh failures when ACL support insufficient.
42305         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42306         TESTS_ENVIRONMENT.
42307         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42308         Reported by Jim Meyering.
42309
42310 2009-01-13  Bruno Haible  <bruno@clisp.org>
42311
42312         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42313         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42314         * modules/unistdio/u8-printf-parse (Files): Likewise.
42315         * modules/unistdio/u32-printf-parse (Files): Likewise.
42316         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42317
42318 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42319
42320         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42321         and m4/inttypes_h.m4 too.
42322
42323 2009-01-12  Eric Blake  <ebb9@byu.net>
42324
42325         tests: IRIX 6.2 cc can't compile -0.0 into .data
42326         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42327         rather than at compile-time.
42328         * tests/test-floorl.c (minus_zero): Likewise.
42329         * tests/test-frexpl.c (minus_zero): Likewise.
42330         * tests/test-isnan.c (minus_zerol): Likewise.
42331         * tests/test-isnanl.h (minus_zero): Likewise.
42332         * tests/test-ldexpl.c (minus_zero): Likewise.
42333         * tests/test-roundl.c (minus_zero): Likewise.
42334         * tests/test-signbit.c (minus_zerol): Likewise.
42335         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42336         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42337         * tests/test-truncl.c (minus_zero): Likewise.
42338         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42339         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42340         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42341
42342 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42343
42344         regex: fix glibc bug 9697
42345         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42346         handling.
42347
42348 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42349
42350         regex: fix glibc bug 697
42351         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42352         being NULL also if there are no backreferences.
42353
42354 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42355
42356         regex: merge glibc changes
42357         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42358         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42359         re_string_skip_chars, re_string_reconstruct): Likewise.
42360         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42361
42362 2009-01-07  Jim Meyering  <meyering@redhat.com>
42363
42364         poll: filter through cppi
42365         * lib/poll.c: Indent cpp directives to reflect nesting.
42366
42367 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42368
42369         poll: don't return uninitialized
42370         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42371
42372 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42373
42374         avoid compile failure on AIX 6.1
42375         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42376         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42377
42378 2009-01-04  Jim Meyering  <meyering@redhat.com>
42379
42380         remove duplicate inclusion of <stdio.h>
42381         * tests/test-fprintf-posix.c: Likewise.
42382         * tests/test-printf-posix.c: Likewise.
42383         * tests/test-snprintf-posix.c: Likewise.
42384         * tests/test-sprintf-posix.c: Likewise.
42385         * tests/test-vasprintf-posix.c: Likewise.
42386         * tests/test-vfprintf-posix.c: Likewise.
42387         * tests/test-vprintf-posix.c: Likewise.
42388         * tests/test-vsnprintf-posix.c: Likewise.
42389         * tests/test-vsprintf-posix.c: Likewise.
42390
42391 2009-01-03  Jim Meyering  <meyering@redhat.com>
42392
42393         gnulib-tool: fix sed-based filtering
42394         * gnulib-tool (func_filter_filelist): Remove extra backslash
42395         in sed_fff_filter definition.
42396
42397 2009-01-02  Jim Meyering  <meyering@redhat.com>
42398
42399         strftime: avoid compilation failure on Solaris 2.6
42400         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42401         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42402         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42403         be available.  Reported by Tom G. Christensen.  Details in
42404         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42405
42406 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42407             Bruno Haible  <bruno@clisp.org>
42408
42409         Speed up gnulib-tool by doing more string processing through shell
42410         built-ins.
42411         * gnulib-tool (fast_func_append): New variable.
42412         (func_remove_prefix, func_remove_suffix): New functions.
42413         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42414         (func_filter_filelist): New function.
42415         (func_get_dependencies): Use func_remove_suffix instead of sed.
42416         (func_get_automake_snippet): Use func_filter_filelist instead of a
42417         subshell and sed invocation.
42418
42419 2009-01-01  Bruno Haible  <bruno@clisp.org>
42420
42421         Fix a security bug.
42422         * gnulib-tool (func_import, import, update): Don't allow the characters
42423         '"', '$', '`', '\' in macro arguments that become part of commands that
42424         are evaluated.
42425
42426 2009-01-01  Bruno Haible  <bruno@clisp.org>
42427
42428         * gnulib-tool (func_reset_sigpipe): Add more comments.
42429
42430 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42431
42432         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42433         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42434         already know the answer.
42435
42436 2009-01-01  Jim Meyering  <meyering@redhat.com>
42437
42438         * lib/version-etc.c (version_etc_va): Update copyright year.
42439
42440 2008-12-30  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42443         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42444         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42445
42446 2008-12-29  Eric Blake  <ebb9@byu.net>
42447
42448         multiarch: avoid autoconf AC_REQUIRE bug
42449         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
42450         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
42451         2.63 and older.
42452         Reported by Bruno Haible, and analyzed in
42453         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
42454
42455 2008-12-29  Bruno Haible  <bruno@clisp.org>
42456
42457         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
42458         files in subdirectories correctly.
42459         Reported by Ralf Wildenhues.
42460
42461 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42462
42463         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
42464         rather than 'join FILE -', for Solaris join.
42465
42466 2008-12-29  Bruno Haible  <bruno@clisp.org>
42467
42468         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
42469         quoting.
42470         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
42471         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42472         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42473         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
42474         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42475         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
42476         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
42477         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
42478         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42479         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
42480         * m4/nls.m4 (AM_NLS): Likewise.
42481         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
42482         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
42483         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42484         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
42485         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
42486         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
42487         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
42488         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
42489         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
42490         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
42491         * m4/xsize.m4 (gl_XSIZE): Likewise.
42492         Suggested by Jim Meyering.
42493
42494 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42495
42496         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
42497         * lib/parse-duration.c: use a switch instead of cascading if's.
42498
42499 2008-12-29  Eric Blake  <ebb9@byu.net>
42500
42501         wchar.h: supply WEOF on Irix 5.3
42502         * lib/wchar.in.h (wint_t): Also supply WEOF.
42503         * lib/wctype.in.h (wint_t): Likewise.
42504         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
42505         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
42506         Reported by Tom G. Christensen.
42507
42508 2008-12-26  Bruno Haible  <bruno@clisp.org>
42509
42510         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
42511         i486, i586, i686.
42512
42513 2008-12-26  Bruno Haible  <bruno@clisp.org>
42514
42515         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
42516
42517 2008-12-26  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
42520         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
42521         not __STDC_CONSTANT_MACROS.
42522         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42523
42524 2008-12-25  Bruno Haible  <bruno@clisp.org>
42525
42526         Add support for universal builds to vasnprintf.
42527         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
42528         universal builds, guess no.
42529         * modules/vasnprintf-posix (Depends-on): Add multiarch.
42530         * modules/vasprintf-posix (Depends-on): Likewise.
42531         * modules/fprintf-posix (Depends-on): Likewise.
42532         * modules/vfprintf-posix (Depends-on): Likewise.
42533         * modules/snprintf-posix (Depends-on): Likewise.
42534         * modules/vsnprintf-posix (Depends-on): Likewise.
42535         * modules/sprintf-posix (Depends-on): Likewise.
42536         * modules/vsprintf-posix (Depends-on): Likewise.
42537         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42539         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42541         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42542         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42543         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42544
42545         Add support for universal builds to <inttypes.h>.
42546         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
42547         _SCNu64_PREFIX): In Apple
42548         universal builds, define directly, using _LP64.
42549         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
42550         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
42551         * modules/inttypes (Depends-on): Add multiarch.
42552         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42553
42554         Add support for universal builds to <stdint.h>.
42555         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
42556         universal builds, define directly, using _LP64.
42557         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
42558         Apple universal builds, don't test for the size and suffix of ptrdiff_t
42559         and size_t.
42560         * modules/stdint (Depends-on): Add multiarch.
42561         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
42562
42563         New module 'multiarch'.
42564         * modules/multiarch: New file.
42565         * m4/multiarch.m4: New file.
42566
42567 2008-12-25  Bruno Haible  <bruno@clisp.org>
42568
42569         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
42570
42571 2008-12-25  Bruno Haible  <bruno@clisp.org>
42572
42573         * modules/btowc (License): Relicense under LGPLv2+.
42574         * modules/mbsinit (License): Likewise.
42575         * modules/mbrtowc (License): Likewise.
42576         * modules/wcrtomb (License): Likewise.
42577         * modules/streq (License): Likewise.
42578         Reported by David Lutterkort <lutter@redhat.com>.
42579
42580 2008-12-23  Bruno Haible  <bruno@clisp.org>
42581
42582         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
42583
42584 2008-12-23  Bruno Haible  <bruno@clisp.org>
42585
42586         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
42587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
42588         GETADDRINFO_LIB, not in LIBS.
42589         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
42590         * modules/canon-host (Link): Likewise.
42591         * NEWS: Mention the change.
42592         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
42593         GETADDRINFO_LIB.
42594
42595 2008-12-22  Bruno Haible  <bruno@clisp.org>
42596
42597         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
42598         * doc/posix-functions/iswalpha_l.texi: Likewise.
42599         * doc/posix-functions/iswblank_l.texi: Likewise.
42600         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42601         * doc/posix-functions/iswctype_l.texi: Likewise.
42602         * doc/posix-functions/iswdigit_l.texi: Likewise.
42603         * doc/posix-functions/iswgraph_l.texi: Likewise.
42604         * doc/posix-functions/iswlower_l.texi: Likewise.
42605         * doc/posix-functions/iswprint_l.texi: Likewise.
42606         * doc/posix-functions/iswpunct_l.texi: Likewise.
42607         * doc/posix-functions/iswspace_l.texi: Likewise.
42608         * doc/posix-functions/iswupper_l.texi: Likewise.
42609         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42610         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
42611         * doc/posix-functions/open_wmemstream.texi: Likewise.
42612         * doc/posix-functions/swscanf.texi: Likewise.
42613         * doc/posix-functions/towctrans_l.texi: Likewise.
42614         * doc/posix-functions/towlower.texi: Likewise.
42615         * doc/posix-functions/towlower_l.texi: Likewise.
42616         * doc/posix-functions/towupper.texi: Likewise.
42617         * doc/posix-functions/towupper_l.texi: Likewise.
42618         * doc/posix-functions/vfwprintf.texi: Likewise.
42619         * doc/posix-functions/vfwscanf.texi: Likewise.
42620         * doc/posix-functions/vswscanf.texi: Likewise.
42621         * doc/posix-functions/vwprintf.texi: Likewise.
42622         * doc/posix-functions/vwscanf.texi: Likewise.
42623         * doc/posix-functions/wcpcpy.texi: Likewise.
42624         * doc/posix-functions/wcpncpy.texi: Likewise.
42625         * doc/posix-functions/wcscasecmp.texi: Likewise.
42626         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
42627         * doc/posix-functions/wcscoll_l.texi: Likewise.
42628         * doc/posix-functions/wcsdup.texi: Likewise.
42629         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42630         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
42631         * doc/posix-functions/wcsnlen.texi: Likewise.
42632         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42633         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42634         * doc/posix-functions/wctrans_l.texi: Likewise.
42635         * doc/posix-functions/wctype_l.texi: Likewise.
42636         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
42637         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
42638         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
42639         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
42640         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
42641         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
42642         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
42643         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
42644         * doc/glibc-functions/wcschrnul.texi: Likewise.
42645         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42646         * doc/glibc-functions/wcstod_l.texi: Likewise.
42647         * doc/glibc-functions/wcstof_l.texi: Likewise.
42648         * doc/glibc-functions/wcstol_l.texi: Likewise.
42649         * doc/glibc-functions/wcstold_l.texi: Likewise.
42650         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42651         * doc/glibc-functions/wcstoq.texi: Likewise.
42652         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42653         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42654         * doc/glibc-functions/wcstouq.texi: Likewise.
42655         * doc/glibc-functions/wmempcpy.texi: Likewise.
42656
42657 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
42658             Eric Blake  <ebb9@byu.net>
42659             Paolo Bonzini  <bonzini@gnu.org>
42660             Bruno Haible  <bruno@clisp.org>
42661
42662         Make c-stack work on Haiku.
42663         * lib/c-stack.c (SA_ONSTACK): Define fallback.
42664         (c_stack_action): Use SA_ONSTACK flag.
42665
42666 2008-12-22  Bruno Haible  <bruno@clisp.org>
42667
42668         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
42669
42670 2008-12-22  Bruno Haible  <bruno@clisp.org>
42671
42672         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
42673         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
42674         being overridden.
42675         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
42676         New macros.
42677         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
42678         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
42679         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
42680         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
42681
42682 2008-12-22  Bruno Haible  <bruno@clisp.org>
42683
42684         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
42685         from test code.
42686
42687 2008-12-22  Eric Blake  <ebb9@byu.net>
42688
42689         Avoid gcc warnings on cygwin.
42690         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
42691         Avoid unused variable.
42692         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
42693         Likewise.
42694
42695 2008-12-22  Bruno Haible  <bruno@clisp.org>
42696
42697         Remove HAVE_MBRTOWC conditionals.
42698         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
42699         (mbscasecmp): Assume mbrtowc function.
42700         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
42701         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
42702         * lib/mbschr.c: Include mbuiter.h unconditionally.
42703         (mbschr): Assume mbrtowc function.
42704         * lib/mbscspn.c: Include mbuiter.h unconditionally.
42705         (mbscspn): Assume mbrtowc function.
42706         * lib/mbslen.c: Include mbuiter.h unconditionally.
42707         (mbslen): Assume mbrtowc function.
42708         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
42709         (mbsncasecmp): Assume mbrtowc function.
42710         * lib/mbsnlen.c: Include mbiter.h unconditionally.
42711         (mbsnlen): Assume mbrtowc function.
42712         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
42713         (mbspbrk): Assume mbrtowc function.
42714         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
42715         (mbspcasecmp): Assume mbrtowc function.
42716         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
42717         (mbsrchr): Assume mbrtowc function.
42718         * lib/mbssep.c: Include mbuiter.h unconditionally.
42719         (mbssep): Assume mbrtowc function.
42720         * lib/mbsspn.c: Include mbuiter.h unconditionally.
42721         (mbsspn): Assume mbrtowc function.
42722         * lib/mbsstr.c: Include mbuiter.h unconditionally.
42723         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
42724         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
42725         (mbstok_r): Assume mbrtowc function.
42726         * lib/propername.c: Include mbuiter.h unconditionally.
42727         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
42728         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
42729         (trim2): Assume mbrtowc function.
42730         * lib/mbswidth.c (mbsinit): Remove fallback definition.
42731         (mbsnwidth): Assume mbrtowc function.
42732         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
42733         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
42734         fallback definitions.
42735         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
42736
42737 2008-12-22  Bruno Haible  <bruno@clisp.org>
42738
42739         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
42740
42741 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
42742
42743         * modules/regex: Request emulations for the mb*/wc* functions we need.
42744         * m4/regex.m4: Don't look for those functions here.
42745         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
42746
42747 2008-12-22  Bruno Haible  <bruno@clisp.org>
42748
42749         * modules/fnmatch (Depends-on): Remove duplicated dependency.
42750
42751 2008-12-21  Bruno Haible  <bruno@clisp.org>
42752
42753         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
42754         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
42755         (Include): Remove conditionalization.
42756         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
42757         (Include): Remove conditionalization.
42758         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
42759         (Include): Remove conditionalization.
42760         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
42761         * m4/mbfile.m4 (gl_MBFILE): Likewise.
42762         * NEWS: Mention the change.
42763         Reported by Alan Hourihane <alanh@fairlite.co.uk>
42764         via Sergey Poznyakoff <gray@gnu.org.ua>.
42765
42766 2008-12-21  Bruno Haible  <bruno@clisp.org>
42767
42768         * MODULES.html.sh (Extended multibyte and wide character utilities
42769         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
42770         wcrtomb, wcsrtombs.
42771         (Support for systems lacking POSIX:2008): Add accept, bind, close,
42772         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
42773         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
42774         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
42775
42776 2008-12-21  Bruno Haible  <bruno@clisp.org>
42777
42778         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
42779
42780 2008-12-21  Bruno Haible  <bruno@clisp.org>
42781
42782         * modules/wcsnrtombs-tests: New file.
42783         * tests/test-wcsnrtombs1.sh: New file.
42784         * tests/test-wcsnrtombs2.sh: New file.
42785         * tests/test-wcsnrtombs3.sh: New file.
42786         * tests/test-wcsnrtombs4.sh: New file.
42787         * tests/test-wcsnrtombs.c: New file.
42788
42789         New module 'wcsnrtombs'.
42790         * lib/wchar.in.h (wcsnrtombs): New declaration.
42791         * lib/wcsnrtombs.c: New file.
42792         * lib/wcsrtombs-state.c: New file.
42793         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
42794         (internal_state): Remove variable.
42795         * m4/wcsnrtombs.m4: New file.
42796         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
42797         compilation units.
42798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
42799         HAVE_WCSNRTOMBS.
42800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
42801         HAVE_WCSNRTOMBS.
42802         * modules/wcsnrtombs: New file.
42803         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
42804         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
42805
42806 2008-12-21  Bruno Haible  <bruno@clisp.org>
42807
42808         * modules/wcsrtombs-tests: New file.
42809         * tests/test-wcsrtombs1.sh: New file.
42810         * tests/test-wcsrtombs2.sh: New file.
42811         * tests/test-wcsrtombs3.sh: New file.
42812         * tests/test-wcsrtombs4.sh: New file.
42813         * tests/test-wcsrtombs.c: New file.
42814
42815         New module 'wcsrtombs'.
42816         * lib/wchar.in.h (wcsrtombs): New declaration.
42817         * lib/wcsrtombs.c: New file.
42818         * m4/wcsrtombs.m4: New file.
42819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
42820         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
42822         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
42823         * modules/wcsrtombs: New file.
42824         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
42825         bugs.
42826
42827 2008-12-21  Bruno Haible  <bruno@clisp.org>
42828
42829         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
42830         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
42831         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
42832         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
42833         if not correct.
42834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
42835         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
42836         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42837         m4/locale-zh.m4, m4/codeset.m4.
42838         * doc/posix-functions/wcrtomb.texi: Document the bug.
42839
42840 2008-12-21  Bruno Haible  <bruno@clisp.org>
42841
42842         Work around a btowc() bug on IRIX 6.5.
42843         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
42844         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
42845         REPLACE_WTOBC if not.
42846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
42847         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
42848         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
42849
42850 2008-12-21  Bruno Haible  <bruno@clisp.org>
42851
42852         * modules/wcrtomb-tests: New file.
42853         * tests/test-wcrtomb.sh: New file.
42854         * tests/test-wcrtomb.c: New file.
42855
42856         New module 'wcrtomb'.
42857         * lib/wchar.in.h (wcrtomb): New declaration.
42858         * lib/wcrtomb.c: New file.
42859         * m4/wcrtomb.m4: New file.
42860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
42861         HAVE_WCRTOMB.
42862         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
42863         HAVE_WCRTOMB.
42864         * modules/wcrtomb: New file.
42865         * doc/posix-functions/wcrtomb.texi: Mention the new module.
42866
42867 2008-12-21  Bruno Haible  <bruno@clisp.org>
42868
42869         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
42870         * modules/mbsrtowcs (Files): Likewise.
42871         * modules/wctob (Files): Likewise.
42872         * modules/c-strcase-tests (Files): Likewise.
42873         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42874         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42875         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42876         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42877         * modules/vasnprintf-posix-tests (Files): Likewise.
42878
42879 2008-12-21  William Pursell  <bill.pursell@gmail.com>
42880
42881         gitlog-to-changelog: pass all command-line arguments to git-log
42882         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
42883         it is sometimes convenient to filter the commits in various ways.
42884         gitlog-to-changelog only allows --since to specify a start date,
42885         but git-log itself supports many other filtering mechanisms.
42886         At the moment, I want to filter by branch name.  Rather than
42887         adding a --branch option to gitlog-to-changelog, it seems more
42888         flexible to simply pass all options directly to git-log and let
42889         git do the work.  Notice that this effectively makes --since a
42890         redundant option for gitlog-to-changelog, but removing it would
42891         require current usage to change since calls would then require
42892         an additional '--'.
42893
42894 2008-12-21  Bruno Haible  <bruno@clisp.org>
42895
42896         * modules/mbsnrtowcs-tests: New file.
42897         * tests/test-mbsnrtowcs1.sh: New file.
42898         * tests/test-mbsnrtowcs2.sh: New file.
42899         * tests/test-mbsnrtowcs3.sh: New file.
42900         * tests/test-mbsnrtowcs4.sh: New file.
42901         * tests/test-mbsnrtowcs.c: New file.
42902
42903         New module 'mbsnrtowcs'.
42904         * lib/wchar.in.h (mbsnrtowcs): New declaration.
42905         * lib/mbsnrtowcs.c: New file.
42906         * lib/mbsrtowcs-state.c: New file.
42907         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
42908         (internal_state): Remove variable.
42909         * m4/mbsnrtowcs.m4: New file.
42910         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
42911         compilation units.
42912         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
42913         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42914         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
42915         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
42916         * modules/mbsnrtowcs: New file.
42917         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
42918         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
42919         portability problem.
42920
42921 2008-12-21  Bruno Haible  <bruno@clisp.org>
42922
42923         Work around mbsrtowcs bug.
42924         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
42925         (gl_FUNC_MBSRTOWCS): Invoke it.
42926         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
42927         m4/locale-zh.m4.
42928         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
42929
42930 2008-12-21  Bruno Haible  <bruno@clisp.org>
42931
42932         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
42933
42934 2008-12-21  Bruno Haible  <bruno@clisp.org>
42935
42936         Update doc for AIX.
42937         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
42938         16-bit wchar_t type.
42939         * doc/posix-functions/btowc.texi: Likewise.
42940         * doc/posix-functions/fgetwc.texi: Likewise.
42941         * doc/posix-functions/fgetws.texi: Likewise.
42942         * doc/posix-functions/fputwc.texi: Likewise.
42943         * doc/posix-functions/fputws.texi: Likewise.
42944         * doc/posix-functions/fwide.texi: Likewise.
42945         * doc/posix-functions/fwprintf.texi: Likewise.
42946         * doc/posix-functions/fwscanf.texi: Likewise.
42947         * doc/posix-functions/getwchar.texi: Likewise.
42948         * doc/posix-functions/getwc.texi: Likewise.
42949         * doc/posix-functions/iswalnum.texi: Likewise.
42950         * doc/posix-functions/iswalpha.texi: Likewise.
42951         * doc/posix-functions/iswblank.texi: Likewise.
42952         * doc/posix-functions/iswcntrl.texi: Likewise.
42953         * doc/posix-functions/iswctype.texi: Likewise.
42954         * doc/posix-functions/iswdigit.texi: Likewise.
42955         * doc/posix-functions/iswgraph.texi: Likewise.
42956         * doc/posix-functions/iswlower.texi: Likewise.
42957         * doc/posix-functions/iswprint.texi: Likewise.
42958         * doc/posix-functions/iswpunct.texi: Likewise.
42959         * doc/posix-functions/iswspace.texi: Likewise.
42960         * doc/posix-functions/iswupper.texi: Likewise.
42961         * doc/posix-functions/iswxdigit.texi: Likewise.
42962         * doc/posix-functions/mbrtowc.texi: Likewise.
42963         * doc/posix-functions/mbsrtowcs.texi: Likewise.
42964         * doc/posix-functions/mbstowcs.texi: Likewise.
42965         * doc/posix-functions/mbtowc.texi: Likewise.
42966         * doc/posix-functions/putwchar.texi: Likewise.
42967         * doc/posix-functions/putwc.texi: Likewise.
42968         * doc/posix-functions/swprintf.texi: Likewise.
42969         * doc/posix-functions/tolower.texi: Likewise.
42970         * doc/posix-functions/toupper.texi: Likewise.
42971         * doc/posix-functions/towctrans.texi: Likewise.
42972         * doc/posix-functions/ungetwc.texi: Likewise.
42973         * doc/posix-functions/vswprintf.texi: Likewise.
42974         * doc/posix-functions/wcrtomb.texi: Likewise.
42975         * doc/posix-functions/wcscat.texi: Likewise.
42976         * doc/posix-functions/wcschr.texi: Likewise.
42977         * doc/posix-functions/wcscmp.texi: Likewise.
42978         * doc/posix-functions/wcscoll.texi: Likewise.
42979         * doc/posix-functions/wcscpy.texi: Likewise.
42980         * doc/posix-functions/wcscspn.texi: Likewise.
42981         * doc/posix-functions/wcsftime.texi: Likewise.
42982         * doc/posix-functions/wcslen.texi: Likewise.
42983         * doc/posix-functions/wcsncat.texi: Likewise.
42984         * doc/posix-functions/wcsncmp.texi: Likewise.
42985         * doc/posix-functions/wcsncpy.texi: Likewise.
42986         * doc/posix-functions/wcspbrk.texi: Likewise.
42987         * doc/posix-functions/wcsrchr.texi: Likewise.
42988         * doc/posix-functions/wcsrtombs.texi: Likewise.
42989         * doc/posix-functions/wcsspn.texi: Likewise.
42990         * doc/posix-functions/wcsstr.texi: Likewise.
42991         * doc/posix-functions/wcstod.texi: Likewise.
42992         * doc/posix-functions/wcstof.texi: Likewise.
42993         * doc/posix-functions/wcstoimax.texi: Likewise.
42994         * doc/posix-functions/wcstok.texi: Likewise.
42995         * doc/posix-functions/wcstold.texi: Likewise.
42996         * doc/posix-functions/wcstoll.texi: Likewise.
42997         * doc/posix-functions/wcstol.texi: Likewise.
42998         * doc/posix-functions/wcstombs.texi: Likewise.
42999         * doc/posix-functions/wcstoull.texi: Likewise.
43000         * doc/posix-functions/wcstoul.texi: Likewise.
43001         * doc/posix-functions/wcstoumax.texi: Likewise.
43002         * doc/posix-functions/wcswidth.texi: Likewise.
43003         * doc/posix-functions/wcsxfrm.texi: Likewise.
43004         * doc/posix-functions/wctob.texi: Likewise.
43005         * doc/posix-functions/wctomb.texi: Likewise.
43006         * doc/posix-functions/wctrans.texi: Likewise.
43007         * doc/posix-functions/wctype.texi: Likewise.
43008         * doc/posix-functions/wcwidth.texi: Likewise.
43009         * doc/posix-functions/wmemchr.texi: Likewise.
43010         * doc/posix-functions/wmemcmp.texi: Likewise.
43011         * doc/posix-functions/wmemcpy.texi: Likewise.
43012         * doc/posix-functions/wmemmove.texi: Likewise.
43013         * doc/posix-functions/wmemset.texi: Likewise.
43014         * doc/posix-functions/wprintf.texi: Likewise.
43015         * doc/posix-functions/wscanf.texi: Likewise.
43016
43017 2008-12-21  Bruno Haible  <bruno@clisp.org>
43018
43019         Update doc for HP-UX 11.11.
43020         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43021         in HP-UX version 11.00, not in all versions of HP-UX 11.
43022         * doc/posix-functions/fwide.texi: Likewise.
43023         * doc/posix-functions/fwprintf.texi: Likewise.
43024         * doc/posix-functions/fwscanf.texi: Likewise.
43025         * doc/posix-functions/inet_ntop.texi: Likewise.
43026         * doc/posix-functions/inet_pton.texi: Likewise.
43027         * doc/posix-functions/mbrlen.texi: Likewise.
43028         * doc/posix-functions/mbrtowc.texi: Likewise.
43029         * doc/posix-functions/mbsinit.texi: Likewise.
43030         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43031         * doc/posix-functions/swprintf.texi: Likewise.
43032         * doc/posix-functions/swscanf.texi: Likewise.
43033         * doc/posix-functions/towctrans.texi: Likewise.
43034         * doc/posix-functions/vfwprintf.texi: Likewise.
43035         * doc/posix-functions/vswprintf.texi: Likewise.
43036         * doc/posix-functions/vwprintf.texi: Likewise.
43037         * doc/posix-functions/wcrtomb.texi: Likewise.
43038         * doc/posix-functions/wcsrtombs.texi: Likewise.
43039         * doc/posix-functions/wcsstr.texi: Likewise.
43040         * doc/posix-functions/wctob.texi: Likewise.
43041         * doc/posix-functions/wctrans.texi: Likewise.
43042         * doc/posix-functions/wmemchr.texi: Likewise.
43043         * doc/posix-functions/wmemcmp.texi: Likewise.
43044         * doc/posix-functions/wmemcpy.texi: Likewise.
43045         * doc/posix-functions/wmemmove.texi: Likewise.
43046         * doc/posix-functions/wmemset.texi: Likewise.
43047         * doc/posix-functions/wprintf.texi: Likewise.
43048         * doc/posix-functions/wscanf.texi: Likewise.
43049
43050 2008-12-21  Bruno Haible  <bruno@clisp.org>
43051
43052         Work around a portability problem.
43053         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43054         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43055
43056 2008-12-20  Bruno Haible  <bruno@clisp.org>
43057
43058         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43059         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43060         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43061         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43062         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43063
43064         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43065         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43066         set.
43067         (GNULIB_defined_mbstate_t): New macro.
43068         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43069         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43070         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43071         reuses the system's mbrtowc function but works around the bugs.
43072         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43073         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43074         macros.
43075         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43076         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43077         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43079         REPLACE_MBSINIT if mbsinit needs to be overridden.
43080         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43081         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43082         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43083         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43084         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43085         m4/locale-zh.m4.
43086         (Depends): Add mbsinit.
43087         * modules/mbsinit (Depends): Add mbrtowc.
43088         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43089
43090 2008-12-20  Bruno Haible  <bruno@clisp.org>
43091
43092         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43093         so that there are no conversion errors on AIX.
43094         * tests/test-mbsrtowcs.c (main): LIkewise.
43095
43096 2008-12-20  Bruno Haible  <bruno@clisp.org>
43097
43098         Work around wctob bug on Solaris <= 9.
43099         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43100         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43101         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43102         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43103         * modules/wctob (Files): Add m4/locale-fr.m4.
43104         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43105
43106 2008-12-20  Bruno Haible  <bruno@clisp.org>
43107
43108         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43109         /dev/null.
43110         * tests/test-select-in.sh: Likewise.
43111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43112
43113 2008-12-20  Bruno Haible  <bruno@clisp.org>
43114
43115         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43116         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43117         Cygwin 1.5.x.
43118
43119 2008-12-20  Bruno Haible  <bruno@clisp.org>
43120
43121         Ensure mbstate_t is defined on HP-UX 11.11.
43122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43123         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43124         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43125         AC_USE_SYSTEM_EXTENSIONS.
43126         * modules/fnmatch (Depends-on): Add extensions.
43127         * modules/mbrlen (Depends-on): Likewise.
43128         * modules/mbrtowc (Depends-on): Likewise.
43129         * modules/mbsinit (Depends-on): Likewise.
43130         * modules/mbsrtowcs (Depends-on): Likewise.
43131         * modules/mbswidth (Depends-on): Likewise.
43132         * modules/quotearg (Depends-on): Likewise.
43133         * modules/strftime (Depends-on): Likewise.
43134
43135 2008-12-20  Bruno Haible  <bruno@clisp.org>
43136
43137         Ensure wctob is declared on IRIX 6.5.
43138         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43139         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43140         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43141         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43142         of HAVE_WCTOB.
43143         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43144         HAVE_WCTOB.
43145         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43146
43147 2008-12-19  Bruno Haible  <bruno@clisp.org>
43148
43149         * modules/mbsrtowcs-tests: New file.
43150         * tests/test-mbsrtowcs1.sh: New file.
43151         * tests/test-mbsrtowcs2.sh: New file.
43152         * tests/test-mbsrtowcs3.sh: New file.
43153         * tests/test-mbsrtowcs4.sh: New file.
43154         * tests/test-mbsrtowcs.c: New file.
43155
43156         New module 'mbsrtowcs'.
43157         * lib/wchar.in.h (mbsrtowcs): New declaration.
43158         * lib/mbsrtowcs.c: New file.
43159         * m4/mbsrtowcs.m4: New file.
43160         * modules/mbsrtowcs: New file.
43161         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43162         HAVE_MBSRTOWCS.
43163         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43164         HAVE_MBSRTOWCS.
43165         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43166
43167 2008-12-19  Bruno Haible  <bruno@clisp.org>
43168
43169         New module 'mbrlen'.
43170         * lib/wchar.in.h (mbrlen): New declaration.
43171         * lib/mbrlen.c: New file.
43172         * m4/mbrlen.m4: New file.
43173         * modules/mbrlen: New file.
43174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43175         HAVE_MBRLEN.
43176         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43177         HAVE_MBRLEN.
43178         * doc/posix-functions/mbrlen.texi: Document the new module.
43179
43180 2008-12-19  Bruno Haible  <bruno@clisp.org>
43181
43182         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43183         * modules/mbrtowc (Depends-on): Add verify.
43184         Suggested by Paul Eggert.
43185
43186 2008-12-18  Bruno Haible  <bruno@clisp.org>
43187
43188         * modules/mbsinit-tests: New file.
43189         * tests/test-mbsinit.sh: New file.
43190         * tests/test-mbsinit.c: New file.
43191
43192 2008-12-18  Bruno Haible  <bruno@clisp.org>
43193
43194         * modules/mbrtowc-tests: New file.
43195         * tests/test-mbrtowc1.sh: New file.
43196         * tests/test-mbrtowc2.sh: New file.
43197         * tests/test-mbrtowc3.sh: New file.
43198         * tests/test-mbrtowc4.sh: New file.
43199         * tests/test-mbrtowc.c: New file.
43200
43201         New module 'mbrtowc'.
43202         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43203         mbsinit and mbrtowc.
43204         (mbrtowc): New declaration.
43205         * lib/mbrtowc.c: New file.
43206         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43207         * modules/mbrtowc: New file.
43208         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43209         HAVE_MBRTOWC.
43210         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43211         HAVE_MBRTOWC.
43212         * doc/posix-functions/mbrtowc.texi: Document the new module.
43213
43214 2008-12-18  Bruno Haible  <bruno@clisp.org>
43215
43216         New module 'wctob'.
43217         * lib/wchar.in.h (wctob): New declaration.
43218         * lib/wctob.c: New file.
43219         * m4/wctob.m4: New file.
43220         * modules/wctob: New file.
43221         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43222         HAVE_WCTOB.
43223         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43224         * doc/posix-functions/wctob.texi: Document the new module.
43225
43226 2008-12-18  Bruno Haible  <bruno@clisp.org>
43227
43228         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43229         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43230
43231 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43232
43233         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43234         G. Christensen" <tgc@jupiterrise.com>.
43235
43236         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43237         G. Christensen" <tgc@jupiterrise.com>.
43238
43239         * lib/flock.c: Need to include string.h.  Reported by "Tom
43240         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43241         <ebb9@byu.net>.
43242
43243 2008-12-18  Bruno Haible  <bruno@clisp.org>
43244
43245         * m4/locale-ja.m4: New file, from GNU gettext.
43246
43247 2008-12-17  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43250         Suggested by Eric Blake.
43251
43252 2008-12-17  Bruno Haible  <bruno@clisp.org>
43253
43254         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43255
43256 2008-12-17  Bruno Haible  <bruno@clisp.org>
43257
43258         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43259         * modules/mbsinit (Depends-on): Add verify.
43260         Suggested by Paul Eggert.
43261
43262 2008-12-17  Bruno Haible  <bruno@clisp.org>
43263
43264         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43265         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43266         gl_FUNC_MBRTOWC.
43267         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43268         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43269         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43270         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43271         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43272         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43273         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43274         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43275         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43276         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43277         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43278         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43279         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43280         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43281         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43282         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43283         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43284         * modules/trim (configure.ac): Likewise.
43285
43286 2008-12-17  Bruno Haible  <bruno@clisp.org>
43287
43288         * modules/btowc-tests: New file.
43289         * tests/test-btowc1.sh: New file.
43290         * tests/test-btowc2.sh: New file.
43291         * tests/test-btowc.c: New file.
43292
43293         New module 'btowc'.
43294         * lib/wchar.in.h (btowc): New declaration.
43295         * lib/btowc.c: New file.
43296         * m4/btowc.m4: New file.
43297         * modules/btowc: New file.
43298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43299         HAVE_BTOWC.
43300         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43301         * doc/posix-functions/btowc.texi: Document the new module.
43302
43303 2008-12-17  Bruno Haible  <bruno@clisp.org>
43304
43305         New module 'mbsinit'.
43306         * lib/wchar.in.h (mbsinit): New declaration.
43307         * lib/mbsinit.c: New file.
43308         * m4/mbsinit.m4: New file.
43309         * modules/mbsinit: New file.
43310         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43311         HAVE_MBSINIT.
43312         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43313         HAVE_MBSINIT.
43314         * doc/posix-functions/mbsinit.texi: Document the new module.
43315
43316 2008-12-16  Bruno Haible  <bruno@clisp.org>
43317
43318         * lib/unistd.in.h: Add comment.
43319         * tests/test-environ.c: Don't include <stdlib.h>.
43320
43321 2008-12-16  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/parse-duration.h (parse_duration): Document return value
43324         convention.
43325         * lib/parse-duration.c: Include specification header first. Add
43326         comments.
43327         (_): Remove macro.
43328         (parse_year_month_day, parse_hour_minute_second): Move side effects
43329         outside of strchr call.
43330         (parse_non_iso8601): Move side effects outside of isspace call.
43331         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43332         call.
43333
43334 2008-12-16  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-parse-duration.sh: Produce no output when the test
43337         succeeds.
43338
43339 2008-12-16  Bruno Haible  <bruno@clisp.org>
43340
43341         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43342         expressions.
43343
43344 2008-12-15  Bruno Haible  <bruno@clisp.org>
43345
43346         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43347         * doc/glibc-functions/flistxattr.texi: Likewise.
43348         * doc/glibc-functions/fopencookie.texi: Likewise.
43349         * doc/glibc-functions/fremovexattr.texi: Likewise.
43350         * doc/glibc-functions/fsetxattr.texi: Likewise.
43351         * doc/glibc-functions/getxattr.texi: Likewise.
43352         * doc/glibc-functions/lgetxattr.texi: Likewise.
43353         * doc/glibc-functions/listxattr.texi: Likewise.
43354         * doc/glibc-functions/llistxattr.texi: Likewise.
43355         * doc/glibc-functions/lremovexattr.texi: Likewise.
43356         * doc/glibc-functions/lsetxattr.texi: Likewise.
43357         * doc/glibc-functions/removexattr.texi: Likewise.
43358         * doc/glibc-functions/setxattr.texi: Likewise.
43359         * doc/posix-functions/open_memstream.texi: Likewise.
43360
43361 2008-12-15  Eric Blake  <ebb9@byu.net>
43362
43363         Update doc for cygwin 1.7.
43364         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43365         functions.
43366         * doc/posix-functions/fchmodat.texi: Likewise.
43367         * doc/posix-functions/fchownat.texi: Likewise.
43368         * doc/posix-functions/fdopendir.texi: Likewise.
43369         * doc/posix-functions/fmemopen.texi: Likewise.
43370         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43371         * doc/posix-functions/fstatat.texi: Likewise.
43372         * doc/posix-functions/futimens.texi: Likewise.
43373         * doc/posix-functions/gai_strerror.texi: Likewise.
43374         * doc/posix-functions/getaddrinfo.texi: Likewise.
43375         * doc/posix-functions/getnameinfo.texi: Likewise.
43376         * doc/posix-functions/if_freenameindex.texi: Likewise.
43377         * doc/posix-functions/if_indextoname.texi: Likewise.
43378         * doc/posix-functions/if_nameindex.texi: Likewise.
43379         * doc/posix-functions/if_nametoindex.texi: Likewise.
43380         * doc/posix-functions/insque.texi: Likewise.
43381         * doc/posix-functions/linkat.texi: Likewise.
43382         * doc/posix-functions/llrint.texi: Likewise.
43383         * doc/posix-functions/llrintf.texi: Likewise.
43384         * doc/posix-functions/llrintl.texi: Likewise.
43385         * doc/posix-functions/lockf.texi: Likewise.
43386         * doc/posix-functions/lrintl.texi: Likewise.
43387         * doc/posix-functions/mkdirat.texi: Likewise.
43388         * doc/posix-functions/mkfifoat.texi: Likewise.
43389         * doc/posix-functions/mknodat.texi: Likewise.
43390         * doc/posix-functions/mq_close.texi: Likewise.
43391         * doc/posix-functions/mq_getattr.texi: Likewise.
43392         * doc/posix-functions/mq_notify.texi: Likewise.
43393         * doc/posix-functions/mq_open.texi: Likewise.
43394         * doc/posix-functions/mq_receive.texi: Likewise.
43395         * doc/posix-functions/mq_send.texi: Likewise.
43396         * doc/posix-functions/mq_setattr.texi: Likewise.
43397         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43398         * doc/posix-functions/mq_timedsend.texi: Likewise.
43399         * doc/posix-functions/mq_unlink.texi: Likewise.
43400         * doc/posix-functions/open_memstream.texi: Likewise.
43401         * doc/posix-functions/openat.texi: Likewise.
43402         * doc/posix-functions/posix_fadvise.texi: Likewise.
43403         * doc/posix-functions/posix_fallocate.texi: Likewise.
43404         * doc/posix-functions/posix_madvise.texi: Likewise.
43405         * doc/posix-functions/posix_memalign.texi: Likewise.
43406         * doc/posix-functions/posix_openpt.texi: Likewise.
43407         * doc/posix-functions/readlinkat.texi: Likewise.
43408         * doc/posix-functions/remque.texi: Likewise.
43409         * doc/posix-functions/renameat.texi: Likewise.
43410         * doc/posix-functions/rintl.texi: Likewise.
43411         * doc/posix-functions/sem_unlink.texi: Likewise.
43412         * doc/posix-functions/shm_open.texi: Likewise.
43413         * doc/posix-functions/shm_unlink.texi: Likewise.
43414         * doc/posix-functions/signgam.texi: Likewise.
43415         * doc/posix-functions/sigset.texi: Likewise.
43416         * doc/posix-functions/stpcpy.texi: Likewise.
43417         * doc/posix-functions/stpncpy.texi: Likewise.
43418         * doc/posix-functions/strerror.texi: Likewise.
43419         * doc/posix-functions/strtod.texi: Likewise.
43420         * doc/posix-functions/symlinkat.texi: Likewise.
43421         * doc/posix-functions/unlinkat.texi: Likewise.
43422         * doc/posix-functions/utimensat.texi: Likewise.
43423         * doc/glibc-functions/bindresvport.texi: Likewise.
43424         * doc/glibc-functions/dn_expand.texi: Likewise.
43425         * doc/glibc-functions/exp10.texi: Likewise.
43426         * doc/glibc-functions/exp10f.texi: Likewise.
43427         * doc/glibc-functions/fgetxattr.texi: Likewise.
43428         * doc/glibc-functions/flistxattr.texi: Likewise.
43429         * doc/glibc-functions/fopencookie.texi: Likewise.
43430         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43431         * doc/glibc-functions/fremovexattr.texi: Likewise.
43432         * doc/glibc-functions/fsetxattr.texi: Likewise.
43433         * doc/glibc-functions/getifaddrs.texi: Likewise.
43434         * doc/glibc-functions/getxattr.texi: Likewise.
43435         * doc/glibc-functions/lgetxattr.texi: Likewise.
43436         * doc/glibc-functions/listxattr.texi: Likewise.
43437         * doc/glibc-functions/llistxattr.texi: Likewise.
43438         * doc/glibc-functions/lremovexattr.texi: Likewise.
43439         * doc/glibc-functions/lsetxattr.texi: Likewise.
43440         * doc/glibc-functions/pow10.texi: Likewise.
43441         * doc/glibc-functions/pow10f.texi: Likewise.
43442         * doc/glibc-functions/rcmd_af.texi: Likewise.
43443         * doc/glibc-functions/removexattr.texi: Likewise.
43444         * doc/glibc-functions/res_init.texi: Likewise.
43445         * doc/glibc-functions/res_mkquery.texi: Likewise.
43446         * doc/glibc-functions/res_query.texi: Likewise.
43447         * doc/glibc-functions/res_querydomain.texi: Likewise.
43448         * doc/glibc-functions/res_send.texi: Likewise.
43449         * doc/glibc-functions/rresvport_af.texi: Likewise.
43450         * doc/glibc-functions/setxattr.texi: Likewise.
43451         * doc/glibc-functions/strcasestr.texi: Likewise.
43452
43453 2008-12-15  Bruno Haible  <bruno@clisp.org>
43454
43455         Fix compilation error on OSF/1 4.0.
43456         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
43457         <sys/time.h>, simply delegate to the system header.
43458         Reported by Daniel Richard G. <oss@teragram.com>.
43459
43460 2008-12-15  Bruno Haible  <bruno@clisp.org>
43461
43462         * doc/posix-functions/openat.texi: Mention the 'openat' module.
43463         * doc/posix-functions/fchmodat.texi: Likewise.
43464         * doc/posix-functions/fchownat.texi: Likewise.
43465         * doc/posix-functions/fdopendir.texi: Likewise.
43466         * doc/posix-functions/fstatat.texi: Likewise.
43467         * doc/posix-functions/mkdirat.texi: Likewise.
43468         * doc/posix-functions/unlinkat.texi: Likewise.
43469
43470 2008-12-14  Bruno Haible  <bruno@clisp.org>
43471
43472         Update doc for POSIX:2008.
43473         * doc/posix-functions/faccessat.texi: New file.
43474         * doc/posix-functions/fchmodat.texi: New file.
43475         * doc/posix-functions/fchownat.texi: New file.
43476         * doc/posix-functions/fdopendir.texi: New file.
43477         * doc/posix-functions/fstatat.texi: New file.
43478         * doc/posix-functions/futimens.texi: New file.
43479         * doc/posix-functions/linkat.texi: New file.
43480         * doc/posix-functions/mkdirat.texi: New file.
43481         * doc/posix-functions/mkfifoat.texi: New file.
43482         * doc/posix-functions/mknodat.texi: New file.
43483         * doc/posix-functions/open_wmemstream.texi: New file.
43484         * doc/posix-functions/openat.texi: New file.
43485         * doc/posix-functions/psiginfo.texi: New file.
43486         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
43487         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
43488         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
43489         * doc/posix-functions/readlinkat.texi: New file.
43490         * doc/posix-functions/renameat.texi: New file.
43491         * doc/posix-functions/strerror_l.texi: New file.
43492         * doc/posix-functions/symlinkat.texi: New file.
43493         * doc/posix-functions/unlinkat.texi: New file.
43494         * doc/posix-functions/utimensat.texi: New file.
43495         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43496
43497 2008-12-14  Bruno Haible  <bruno@clisp.org>
43498
43499         Update doc for POSIX:2008.
43500         * doc/posix-functions/alphasort.texi: Renamed from
43501         doc/glibc-functions/alphasort.texi.
43502         * doc/posix-functions/dirfd.texi: Renamed from
43503         doc/glibc-functions/dirfd.texi.
43504         * doc/posix-functions/dprintf.texi: Renamed from
43505         doc/glibc-functions/dprintf.texi.
43506         * doc/posix-functions/duplocale.texi: Renamed from
43507         doc/glibc-functions/duplocale.texi.
43508         * doc/posix-functions/fexecve.texi: Renamed from
43509         doc/glibc-functions/fexecve.texi.
43510         * doc/posix-functions/fmemopen.texi: Renamed from
43511         doc/glibc-functions/fmemopen.texi.
43512         * doc/posix-functions/freelocale.texi: Renamed from
43513         doc/glibc-functions/freelocale.texi.
43514         * doc/posix-functions/getdate_err.texi: Renamed from
43515         doc/glibc-functions/getdate_err.texi.
43516         * doc/posix-functions/isalnum_l.texi: Renamed from
43517         doc/glibc-functions/isalnum_l.texi.
43518         * doc/posix-functions/isalpha_l.texi: Renamed from
43519         doc/glibc-functions/isalpha_l.texi.
43520         * doc/posix-functions/isblank_l.texi: Renamed from
43521         doc/glibc-functions/isblank_l.texi.
43522         * doc/posix-functions/iscntrl_l.texi: Renamed from
43523         doc/glibc-functions/iscntrl_l.texi.
43524         * doc/posix-functions/isdigit_l.texi: Renamed from
43525         doc/glibc-functions/isdigit_l.texi.
43526         * doc/posix-functions/isgraph_l.texi: Renamed from
43527         doc/glibc-functions/isgraph_l.texi.
43528         * doc/posix-functions/islower_l.texi: Renamed from
43529         doc/glibc-functions/islower_l.texi.
43530         * doc/posix-functions/isprint_l.texi: Renamed from
43531         doc/glibc-functions/isprint_l.texi.
43532         * doc/posix-functions/ispunct_l.texi: Renamed from
43533         doc/glibc-functions/ispunct_l.texi.
43534         * doc/posix-functions/isspace_l.texi: Renamed from
43535         doc/glibc-functions/isspace_l.texi.
43536         * doc/posix-functions/isupper_l.texi: Renamed from
43537         doc/glibc-functions/isupper_l.texi.
43538         * doc/posix-functions/iswalnum_l.texi: Renamed from
43539         doc/glibc-functions/iswalnum_l.texi.
43540         * doc/posix-functions/iswalpha_l.texi: Renamed from
43541         doc/glibc-functions/iswalpha_l.texi.
43542         * doc/posix-functions/iswblank_l.texi: Renamed from
43543         doc/glibc-functions/iswblank_l.texi.
43544         * doc/posix-functions/iswcntrl_l.texi: Renamed from
43545         doc/glibc-functions/iswcntrl_l.texi.
43546         * doc/posix-functions/iswctype_l.texi: Renamed from
43547         doc/glibc-functions/iswctype_l.texi.
43548         * doc/posix-functions/iswdigit_l.texi: Renamed from
43549         doc/glibc-functions/iswdigit_l.texi.
43550         * doc/posix-functions/iswgraph_l.texi: Renamed from
43551         doc/glibc-functions/iswgraph_l.texi.
43552         * doc/posix-functions/iswlower_l.texi: Renamed from
43553         doc/glibc-functions/iswlower_l.texi.
43554         * doc/posix-functions/iswprint_l.texi: Renamed from
43555         doc/glibc-functions/iswprint_l.texi.
43556         * doc/posix-functions/iswpunct_l.texi: Renamed from
43557         doc/glibc-functions/iswpunct_l.texi.
43558         * doc/posix-functions/iswspace_l.texi: Renamed from
43559         doc/glibc-functions/iswspace_l.texi.
43560         * doc/posix-functions/iswupper_l.texi: Renamed from
43561         doc/glibc-functions/iswupper_l.texi.
43562         * doc/posix-functions/iswxdigit_l.texi: Renamed from
43563         doc/glibc-functions/iswxdigit_l.texi.
43564         * doc/posix-functions/isxdigit_l.texi: Renamed from
43565         doc/glibc-functions/isxdigit_l.texi.
43566         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
43567         doc/glibc-functions/mbsnrtowcs.texi.
43568         * doc/posix-functions/mkdtemp.texi: Renamed from
43569         doc/glibc-functions/mkdtemp.texi.
43570         * doc/posix-functions/newlocale.texi: Renamed from
43571         doc/glibc-functions/newlocale.texi.
43572         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
43573         doc/glibc-functions/nl_langinfo_l.texi.
43574         * doc/posix-functions/open_memstream.texi: Renamed from
43575         doc/glibc-functions/open_memstream.texi.
43576         * doc/posix-functions/opterr.texi: Renamed from
43577         doc/glibc-functions/opterr.texi.
43578         * doc/posix-functions/optind.texi: Renamed from
43579         doc/glibc-functions/optind.texi.
43580         * doc/posix-functions/optopt.texi: Renamed from
43581         doc/glibc-functions/optopt.texi.
43582         * doc/posix-functions/psignal.texi: Renamed from
43583         doc/glibc-functions/psignal.texi.
43584         * doc/posix-functions/scandir.texi: Renamed from
43585         doc/glibc-functions/scandir.texi.
43586         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
43587         doc/glibc-functions/sched_get_priority_min.texi.
43588         * doc/posix-functions/signgam.texi: Renamed from
43589         doc/glibc-functions/signgam.texi.
43590         * doc/posix-functions/stpcpy.texi: Renamed from
43591         doc/glibc-functions/stpcpy.texi.
43592         * doc/posix-functions/stpncpy.texi: Renamed from
43593         doc/glibc-functions/stpncpy.texi.
43594         * doc/posix-functions/strcasecmp_l.texi: Renamed from
43595         doc/glibc-functions/strcasecmp_l.texi.
43596         * doc/posix-functions/strcoll_l.texi: Renamed from
43597         doc/glibc-functions/strcoll_l.texi.
43598         * doc/posix-functions/strfmon_l.texi: Renamed from
43599         doc/glibc-functions/strfmon_l.texi.
43600         * doc/posix-functions/strftime_l.texi: Renamed from
43601         doc/glibc-functions/strftime_l.texi.
43602         * doc/posix-functions/strncasecmp_l.texi: Renamed from
43603         doc/glibc-functions/strncasecmp_l.texi.
43604         * doc/posix-functions/strndup.texi: Renamed from
43605         doc/glibc-functions/strndup.texi.
43606         * doc/posix-functions/strnlen.texi: Renamed from
43607         doc/glibc-functions/strnlen.texi.
43608         * doc/posix-functions/strsignal.texi: Renamed from
43609         doc/glibc-functions/strsignal.texi.
43610         * doc/posix-functions/strxfrm_l.texi: Renamed from
43611         doc/glibc-functions/strxfrm_l.texi.
43612         * doc/posix-functions/timer_gettime.texi: Renamed from
43613         doc/glibc-functions/timer_gettime.texi.
43614         * doc/posix-functions/tolower_l.texi: Renamed from
43615         doc/glibc-functions/tolower_l.texi.
43616         * doc/posix-functions/toupper_l.texi: Renamed from
43617         doc/glibc-functions/toupper_l.texi.
43618         * doc/posix-functions/towctrans_l.texi: Renamed from
43619         doc/glibc-functions/towctrans_l.texi.
43620         * doc/posix-functions/towlower_l.texi: Renamed from
43621         doc/glibc-functions/towlower_l.texi.
43622         * doc/posix-functions/towupper_l.texi: Renamed from
43623         doc/glibc-functions/towupper_l.texi.
43624         * doc/posix-functions/uselocale.texi: Renamed from
43625         doc/glibc-functions/uselocale.texi.
43626         * doc/posix-functions/vdprintf.texi: Renamed from
43627         doc/glibc-functions/vdprintf.texi.
43628         * doc/posix-functions/wcpcpy.texi:
43629         Renamed from doc/glibc-functions/wcpcpy.texi.
43630         * doc/posix-functions/wcpncpy.texi: Renamed from
43631         doc/glibc-functions/wcpncpy.texi.
43632         * doc/posix-functions/wcscasecmp.texi: Renamed from
43633         doc/glibc-functions/wcscasecmp.texi.
43634         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
43635         doc/glibc-functions/wcscasecmp_l.texi.
43636         * doc/posix-functions/wcscoll_l.texi: Renamed from
43637         doc/glibc-functions/wcscoll_l.texi.
43638         * doc/posix-functions/wcsdup.texi: Renamed from
43639         doc/glibc-functions/wcsdup.texi.
43640         * doc/posix-functions/wcsncasecmp.texi: Renamed from
43641         doc/glibc-functions/wcsncasecmp.texi.
43642         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
43643         doc/glibc-functions/wcsncasecmp_l.texi.
43644         * doc/posix-functions/wcsnlen.texi: Renamed from
43645         doc/glibc-functions/wcsnlen.texi.
43646         * doc/posix-functions/wcsnrtombs.texi: Renamed from
43647         doc/glibc-functions/wcsnrtombs.texi.
43648         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
43649         doc/glibc-functions/wcsxfrm_l.texi.
43650         * doc/posix-functions/wctrans_l.texi: Renamed from
43651         doc/glibc-functions/wctrans_l.texi.
43652         * doc/posix-functions/wctype_l.texi: Renamed from
43653         doc/glibc-functions/wctype_l.texi.
43654         * doc/gnulib.texi (Function Substitutes): Add these subsections.
43655         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
43656         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
43657         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
43658         these subsections.
43659         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
43660         Remove sections.
43661
43662 2008-12-14  Bruno Haible  <bruno@clisp.org>
43663
43664         Update doc for POSIX:2008.
43665         * doc/posix-functions/*.texi: Update URL of POSIX specification.
43666
43667 2008-12-14  Bruno Haible  <bruno@clisp.org>
43668
43669         Update doc for POSIX:2008.
43670         * doc/pastposix-functions/bcmp.texi: Renamed from
43671         doc/posix-functions/bcmp.texi.
43672         * doc/pastposix-functions/bcopy.texi: Renamed from
43673         doc/posix-functions/bcopy.texi.
43674         * doc/pastposix-functions/bsd_signal.texi: Renamed from
43675         doc/posix-functions/bsd_signal.texi.
43676         * doc/pastposix-functions/bzero.texi: Renamed from
43677         doc/posix-functions/bzero.texi.
43678         * doc/pastposix-functions/ecvt.texi: Renamed from
43679         doc/posix-functions/ecvt.texi.
43680         * doc/pastposix-functions/fcvt.texi: Renamed from
43681         doc/posix-functions/fcvt.texi.
43682         * doc/pastposix-functions/ftime.texi: Renamed from
43683         doc/posix-functions/ftime.texi.
43684         * doc/pastposix-functions/gcvt.texi: Renamed from
43685         doc/posix-functions/gcvt.texi.
43686         * doc/pastposix-functions/getcontext.texi: Renamed from
43687         doc/posix-functions/getcontext.texi.
43688         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
43689         doc/posix-functions/gethostbyaddr.texi.
43690         * doc/pastposix-functions/gethostbyname.texi: Renamed from
43691         doc/posix-functions/gethostbyname.texi.
43692         * doc/pastposix-functions/getwd.texi: Renamed from
43693         doc/posix-functions/getwd.texi.
43694         * doc/pastposix-functions/h_errno.texi: Renamed from
43695         doc/posix-functions/h_errno.texi.
43696         * doc/pastposix-functions/index.texi: Renamed from
43697         doc/posix-functions/index.texi.
43698         * doc/pastposix-functions/makecontext.texi: Renamed from
43699         doc/posix-functions/makecontext.texi.
43700         * doc/pastposix-functions/mktemp.texi: Renamed from
43701         doc/posix-functions/mktemp.texi.
43702         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
43703         doc/posix-functions/pthread_attr_getstackaddr.texi.
43704         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
43705         doc/posix-functions/pthread_attr_setstackaddr.texi.
43706         * doc/pastposix-functions/rindex.texi: Renamed from
43707         doc/posix-functions/rindex.texi.
43708         * doc/pastposix-functions/scalb.texi: Renamed from
43709         doc/posix-functions/scalb.texi.
43710         * doc/pastposix-functions/setcontext.texi: Renamed from
43711         doc/posix-functions/setcontext.texi.
43712         * doc/pastposix-functions/swapcontext.texi: Renamed from
43713         doc/posix-functions/swapcontext.texi.
43714         * doc/pastposix-functions/ualarm.texi: Renamed from
43715         doc/posix-functions/ualarm.texi.
43716         * doc/pastposix-functions/usleep.texi: Renamed from
43717         doc/posix-functions/usleep.texi.
43718         * doc/pastposix-functions/vfork.texi: Renamed from
43719         doc/posix-functions/vfork.texi.
43720         * doc/pastposix-functions/wcswcs.texi: Renamed from
43721         doc/posix-functions/wcswcs.texi.
43722         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
43723         (Function Substitutes): Update.
43724
43725 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43726
43727         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
43728         m4/strerror.m4.
43729
43730 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43731             Bruno Haible  <bruno@clisp.org>
43732
43733         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
43734
43735 2008-12-13  Bruno Haible  <bruno@clisp.org>
43736
43737         * modules/strtoull (Depends-on): Remove unistd.
43738
43739 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43740
43741         * modules/strtoull (Depends-on): Add stdlib.
43742
43743 2008-12-11  Simon Josefsson  <simon@josefsson.org>
43744
43745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
43746
43747 2008-12-10  Jim Meyering  <meyering@redhat.com>
43748
43749         gl_ASSERT: don't say assertions are disabled when they're not
43750         * m4/assert.m4 (gl_ASSERT): Do not make configure report
43751         "checking whether to enable assertions... no", when they are in
43752         fact enabled.  This is solely a bug in the output of configure.
43753         In spite of saying "no", NDEBUG was not defined in that case.
43754         Also, as noted by Eric Blake, leave assertions enabled upon
43755         --enable-assert=INVALID.
43756
43757 2008-12-10  Bruno Haible  <bruno@clisp.org>
43758
43759         Change MODULES.html to refer to POSIX:2008 where possible.
43760         * MODULES.html.sh (POSIX2008_URL): New variable.
43761         (posix_headers): Remove sys/timeb, ucontext.
43762         (posix2001_headers): New variable.
43763         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
43764         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
43765         index, makecontext, mktemp, pthread_attr_getstackaddr,
43766         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
43767         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
43768         (posix2001_functions): New variable.
43769         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
43770         otherwise.
43771
43772 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43773
43774         add missing include to parse-duration.c
43775         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
43776         * modules/parse-duration (Depends-on): Add xalloc.
43777
43778         fix sed script reading maint.mk
43779         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
43780         (syntax-check-rules): Use it.
43781
43782 2008-12-09  Bruno Haible  <bruno@clisp.org>
43783
43784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
43785         MacOS X 10.4/PowerPC.
43786         Reported by Simon Josefsson.
43787
43788 2008-12-08  Jim Meyering  <meyering@redhat.com>
43789
43790         work around mingw's lack of some S_IF definitions
43791         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
43792         Reported by Simon Josefsson.
43793
43794 2008-12-08  Bruno Haible  <bruno@clisp.org>
43795
43796         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
43797         applied to variables. Needed on MacOS X 10.4/PowerPC.
43798         Reported by Simon Josefsson.
43799
43800 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
43801         and Eric Blake  <ebb9@byu.net>
43802
43803         assert: honor --enable-assert
43804         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
43805         order to honor --enable-assert, rather than treating it as a
43806         synonym for --disable-assert.
43807
43808 2008-12-08  Jim Meyering  <meyering@redhat.com>
43809
43810         * lib/posixtm.c: Remove now-useless declaration of mktime.
43811
43812         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
43813
43814 2008-12-07  Bruno Haible  <bruno@clisp.org>
43815
43816         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
43817         test_once): Mark functions as static.
43818         * tests/test-tls.c (test_tls): Likewise.
43819
43820 2008-12-07  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
43823         iconv_register_autodetect.
43824
43825 2008-12-07  Jim Meyering  <meyering@redhat.com>
43826
43827         posixtm.c: avoid a warning
43828         * lib/posixtm.c (posixtime): Don't initialize tm0.
43829         It's no longer needed to placate gcc4's -Wuninitialized,
43830         and the attempt to placate would elicit a new warning.
43831
43832         unicodeio.c: mark unused parameters
43833         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43834         (fallback_failure_callback): Likewise.
43835
43836 2008-12-07  Bruno Haible  <bruno@clisp.org>
43837
43838         * gnulib-tool (func_create_testdir): When building the tests
43839         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
43840         Reported by Simon Josefsson.
43841
43842 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43843
43844         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
43845
43846 2008-12-06  Bruno Haible  <bruno@clisp.org>
43847
43848         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
43849         Suggested by Eric Blake.
43850
43851 2008-12-06  Bruno Haible  <bruno@clisp.org>
43852
43853         Fix a c-stack test failure on MacOS X.
43854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
43855         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
43856         handler for SIGBUS as well.
43857         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
43858         install a signal handler for SIGBUS as well.
43859         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
43860
43861 2008-12-06  Bruno Haible  <bruno@clisp.org>
43862
43863         Advocacy documentation.
43864         * doc/gnulib-intro.texi (Benefits): New section.
43865         * doc/gnulib.texi: Update.
43866
43867 2008-12-06  Bruno Haible  <bruno@clisp.org>
43868
43869         Document the 'manywarnings' module.
43870         * doc/manywarnings.texi: New file.
43871         * doc/gnulib.texi: Include it.
43872
43873 2008-12-05  Eric Blake  <ebb9@byu.net>
43874
43875         tests: silence some gcc warnings
43876         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
43877         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
43878         type mismatches.
43879
43880 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43881             Bruno Haible  <bruno@clisp.org>
43882
43883         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
43884
43885 2008-11-29  Jim Meyering  <meyering@redhat.com>
43886
43887         unicodeio.c: mark unused parameters
43888         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
43889         (fallback_failure_callback): Likewise.
43890
43891         fts: fix a thinko
43892         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
43893         (set_stat_type): Return S_IF*-valued "type" directly.
43894         Prompted by James Youngman's spotting a related bug.
43895         Confirmed by further testing through find.
43896
43897         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
43898         * lib/fts.c (D_TYPE): Define.
43899         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
43900         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
43901         (s_ifmt_shift_bits): New function.
43902         (set_stat_type): New function.
43903         (fts_build): When not calling fts_stat, call set_stat_type
43904         to propagate dirent.d_type info to fts_read caller.
43905         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
43906         fts_statp->st_mode type information may be valid.
43907
43908 2008-11-28  Simon Josefsson  <simon@josefsson.org>
43909
43910         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
43911         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
43912         <sds@gnu.org>.
43913
43914 2008-11-20  Bruno Haible  <bruno@clisp.org>
43915
43916         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
43917         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
43918         INCLUDE_NEXT.
43919         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
43920         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
43921         * modules/math (Makefile.am): Substitute
43922         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
43923         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43924
43925 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
43926             Bruno Haible  <bruno@clisp.org>
43927
43928         * lib/stdint.in.h: Define all type macros so that their expansion is
43929         a single typedef'ed token. Fixes a compilation failure in Boost which
43930         does "using ::int8_t;".
43931
43932 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43933
43934         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
43935         gl_MANYWARN_ALL_GCC.
43936         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
43937         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
43938         * modules/manywarnings: New file.
43939         * MODULES.html.sh: Mention manywarnings module.
43940
43941 2008-11-18  Bruno Haible  <bruno@clisp.org>
43942
43943         * doc/gnulib-tool.texi (Unit tests): New section.
43944
43945 2008-11-18  Simon Josefsson  <simon@josefsson.org>
43946
43947         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
43948         paths like 'lib/po/foo.po'.
43949
43950 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43951
43952         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
43953         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
43954
43955 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43956
43957         * m4/warnings.m4: Use CPPFLAGS to really check whether the
43958         parameter works.
43959
43960 2008-11-17  Simon Josefsson  <simon@josefsson.org>
43961
43962         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
43963
43964 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43965
43966         * modules/parse-duration-tests: New file.
43967         * tests/test-parse-duration.sh: New file.
43968         * tests/test-parse-duration.c: New file.
43969
43970         New module 'parse-duration'.
43971         * lib/parse-duration.h: New file.
43972         * lib/parse-duration.c: New file.
43973         * modules/parse-duration: New file.
43974
43975 2008-11-17  Bruno Haible  <bruno@clisp.org>
43976
43977         * tests/test-select-out.sh: Comment out the first pipe test.
43978         Reported by Simon Josefsson.
43979
43980 2008-11-17  Bruno Haible  <bruno@clisp.org>
43981
43982         * modules/getaddrinfo (Depends-on): Add servent, hostent.
43983         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
43984         gl_HOSTENT.
43985
43986 2008-11-17  Bruno Haible  <bruno@clisp.org>
43987
43988         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
43989         -lnetwork and -lnet. Needed for Haiku and BeOS.
43990
43991 2008-11-16  Bruno Haible  <bruno@clisp.org>
43992
43993         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
43994
43995 2008-11-16  Bruno Haible  <bruno@clisp.org>
43996
43997         Avoid test failure on Haiku.
43998         * tests/test-fsync.c: Include <errno.h>.
43999         (main): Don't require that fsync (0) fails.
44000
44001 2008-11-15  Bruno Haible  <bruno@clisp.org>
44002
44003         New module 'hostent'.
44004         * modules/hostent: New file.
44005         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44006
44007 2008-11-15  Bruno Haible  <bruno@clisp.org>
44008
44009         New module 'servent'.
44010         * modules/servent: New file.
44011         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44012
44013 2008-11-15  Bruno Haible  <bruno@clisp.org>
44014
44015         Avoid generating same test program with two different rules.
44016         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44017         test-frexp to test-frexp-nolibm.
44018         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44019         test-frexpl to test-frexpl-nolibm.
44020
44021 2008-11-15  Bruno Haible  <bruno@clisp.org>
44022
44023         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44024         $(FREXPL_LIBM).
44025
44026 2008-11-15  Bruno Haible  <bruno@clisp.org>
44027
44028         * lib/netdb.in.h: Activate the definitions also when the system's
44029         <netdb.h> has 'struct addrinfo'.
44030         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44031         EAI_OVERFLOW or AI_NUMERICSERV.
44032         * doc/posix-headers/netdb.texi: Document the problem.
44033
44034 2008-11-15  Bruno Haible  <bruno@clisp.org>
44035
44036         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44037
44038         Make the 'sched' module work on platforms where <sched.h> exists but
44039         is incomplete (such as Haiku).
44040         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44041         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44042         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44043         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44044         HAVE_STRUCT_SCHED_PARAM.
44045         * modules/sched (Depends-on): Add include_next.
44046         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44047         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44048         * doc/posix-headers/sched.texi: Document the issue.
44049
44050 2008-11-13  Jim Meyering  <meyering@redhat.com>
44051
44052         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44053         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44054         test would fail due to the difference in the Report bugs to ...
44055         line.  The expected address is empty, "<>", while the actual
44056         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44057
44058 2008-11-12  Bruno Haible  <bruno@clisp.org>
44059
44060         lstat: don't compile lstat.c on systems lacking lstat
44061         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44062         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44063         Reported by Daniel P. Berrange via Jim Meyering.
44064
44065 2008-11-12  Jim Meyering  <meyering@redhat.com>
44066
44067         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44068
44069 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44070
44071         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44072         instead.
44073
44074 2008-11-12  Bruno Haible  <bruno@clisp.org>
44075
44076         * lib/unicodeio.c: Include unistr.h.
44077         (utf8_wctomb): Remove function.
44078         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44079
44080 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44081
44082         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44083         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44084         <bruno@clisp.org>.
44085         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44086
44087 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44088
44089         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44090         * doc/gnulib.texi: Add section for warnings.
44091
44092 2008-11-11  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/sockets.h: Add a comment.
44095
44096 2008-11-11  Karl Berry  <karl@gnu.org>
44097
44098         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44099
44100 2008-11-11  Eric Blake  <ebb9@byu.net>
44101
44102         fdl.texi: avoid git symlinks
44103         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44104
44105 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44106
44107         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44108
44109 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44110
44111         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44112         (gl_WARN_ADD): Substitute $2 if literal.
44113
44114 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44115
44116         * m4/warning.m4: Remove.
44117
44118 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44119
44120         * m4/warnings.m4: Almost complete rewrite. :-)
44121
44122 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44123
44124         * modules/warnings: New module.
44125         * m4/warnings.m4: New file.
44126         * MODULES.html.sh: Mention warnings module.
44127         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44128         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44129
44130 2008-11-10  Eric Blake  <ebb9@byu.net>
44131
44132         fdl.texi: make a symlink to the latest version
44133         * doc/standards.texi: Revert today's earlier change.
44134         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44135         * doc/fdl.texi: ...and replace this with a symlink to the newer
44136         fdl-1.3.texi.
44137
44138 2008-11-10  Bruno Haible  <bruno@clisp.org>
44139
44140         * tests/test-select-fd.c (main): Accept the result file name as fourth
44141         argument.
44142         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44143         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44144
44145 2008-11-10  Bruno Haible  <bruno@clisp.org>
44146
44147         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44148         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44149         as autoconf-substituted macros.
44150         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44151         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44152         gl_NETDB_H_DEFAULTS. Set these variables.
44153         * modules/netdb (Makefile.am): Substitute these variables.
44154
44155 2008-11-10  Eric Blake  <ebb9@byu.net>
44156
44157         standards.texi: include correct file for FDL 1.3
44158         * doc/standards.texi (GNU Free Documentation License): Change
44159         include file to pull in FDL 1.3, not 1.2.
44160
44161         fdl.texi: revert accidental change to license
44162         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44163
44164 2008-11-10  Bruno Haible  <bruno@clisp.org>
44165
44166         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44167         cross-compiling guesses also when the native compile gives no result.
44168
44169 2008-11-10  Bruno Haible  <bruno@clisp.org>
44170
44171         * lib/spawni.c (__spawni): Force variable into the stack.
44172
44173 2008-11-10  Bruno Haible  <bruno@clisp.org>
44174
44175         Add support for Haiku.
44176         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44177         glibc and BeOS, but also on Haiku.
44178         * lib/fpurge.c (fpurge): Likewise.
44179         * lib/freadable.c (freadable): Likewise.
44180         * lib/freadahead.c (freadahead): Likewise.
44181         * lib/freading.c (freading): Likewise.
44182         * lib/freadptr.c (freadptr): Likewise.
44183         * lib/freadseek.c (freadptrinc): Likewise.
44184         * lib/fseeko.c (rpl_fseeko): Likewise.
44185         * lib/fseterr.c (fseterr): Likewise.
44186         * lib/fwritable.c (fwritable): Likewise.
44187         * lib/fwriting.c (fwriting): Likewise.
44188         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44189
44190 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44191
44192         * lib/config.charset: Treat Haiku like BeOS.
44193
44194 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44195
44196         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44197         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44198
44199 2008-11-08  Bruno Haible  <bruno@clisp.org>
44200
44201         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44202         AC_CACHE_CHECK.
44203
44204 2008-11-08  Bruno Haible  <bruno@clisp.org>
44205
44206         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44207
44208 2008-11-08  Bruno Haible  <bruno@clisp.org>
44209
44210         * tests/test-select-fd.c: New file.
44211         * tests/test-select-in.sh: New file.
44212         * tests/test-select-out.sh: New file.
44213         * tests/test-select-stdin.c: New file.
44214         * modules/select-tests (Files): Add the new files.
44215         (Depends-on): Add gettimeofday.
44216         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44217         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44218         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44219
44220 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44221             Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44224
44225 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44226
44227         * build-aux/pmccabe2html: Added support for C++ source files.
44228
44229 2008-11-05  Ben Pfaff  <blp@gnu.org>
44230
44231         Fix lib/close.c build on Windows.
44232         * modules/close (Files): Add lib/w32sock.h.
44233
44234 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44235
44236         Accept Bison's NEWS format.
44237         * build-aux/announce-gen (print_news_deltas): Tweak
44238         $re_prefix.
44239
44240 2008-11-04  Bruno Haible  <bruno@clisp.org>
44241
44242         * modules/random_r (Maintainer): Add glibc.
44243
44244 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44245
44246         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44247         by karl@freefriends.org (Karl Berry).
44248         * doc/alloca.texi: Likewise.
44249         * doc/c-ctype.texi: Likewise.
44250         * doc/c-strcase.texi: Likewise.
44251         * doc/c-strcaseeq.texi: Likewise.
44252         * doc/c-strcasestr.texi: Likewise.
44253         * doc/c-strstr.texi: Likewise.
44254         * doc/c-strtod.texi: Likewise.
44255         * doc/c-strtold.texi: Likewise.
44256         * doc/ctime.texi: Likewise.
44257         * doc/error.texi: Likewise.
44258         * doc/fdl.texi: Likewise.
44259         * doc/gcd.texi: Likewise.
44260         * doc/getdate.texi: Likewise.
44261         * doc/gnulib-intro.texi: Likewise.
44262         * doc/gnulib-tool.texi: Likewise.
44263         * doc/gnulib.texi: Likewise.
44264         * doc/inet_ntoa.texi: Likewise.
44265         * doc/maintain.texi: Likewise.
44266         * doc/make-stds.texi: Likewise.
44267         * doc/quote.texi: Likewise.
44268         * doc/regexprops-generic.texi: Likewise.
44269         * doc/standards.texi: Likewise.
44270         * doc/verify.texi: Likewise.
44271         * doc/visibility.texi: Likewise.
44272         * doc/gnulib.texi (GNU Free Documentation License): Include
44273         fdl-1.3.texi instead of fdl.texi.
44274
44275 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44276
44277         * doc/fdl-1.3.texi: New file, from
44278         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44279         * modules/fdl-1.3: Add.
44280         * MODULES.html.sh: Add fdl-1.3.
44281
44282 2008-11-03  Bruno Haible  <bruno@clisp.org>
44283
44284         Make determination of absolute name of header file work with AIX xlc.
44285         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44286         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44287         preprocessing.
44288         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44289         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44290
44291 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44292
44293         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44294         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44295         <ludo@gnu.org>.
44296
44297 2008-11-02  Bruno Haible  <bruno@clisp.org>
44298
44299         Mark 'strpbrk' obsolete.
44300         * modules/strpbrk (Status, Notice): New sections.
44301         * modules/strtok_r (Depends-on): Add strpbrk.
44302
44303 2008-11-02  Bruno Haible  <bruno@clisp.org>
44304
44305         Mark 'strdup' obsolete.
44306         * modules/strdup (Status, Notice): New sections.
44307         * modules/findprog (Depends-on): Add strdup.
44308         * modules/getaddrinfo (Depends-on): Likewise.
44309         * modules/localename (Depends-on): Likewise.
44310         * modules/relocatable-lib (Depends-on): Likewise.
44311         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44312         * modules/relocatable-prog (Depends-on): Likewise.
44313         * modules/trim (Depends-on): Likewise.
44314         * modules/unictype/gen-ctype (Depends-on): Likewise.
44315         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44316
44317 2008-11-02  Bruno Haible  <bruno@clisp.org>
44318
44319         Mark 'strcspn' obsolete.
44320         * modules/strcspn (Status, Notice): New sections.
44321
44322 2008-11-02  Bruno Haible  <bruno@clisp.org>
44323
44324         Mark 'rmdir' obsolete.
44325         * modules/rmdir (Status, Notice): New sections.
44326         * modules/clean-temp (Depends-on): Add rmdir.
44327         * modules/openat (Depends-on): Likewise.
44328
44329 2008-11-02  Bruno Haible  <bruno@clisp.org>
44330
44331         Mark 'raise' obsolete.
44332         * modules/raise (Status, Notice): New sections.
44333         (Include): Specify <signal.h>.
44334         * modules/stdio (Depends-on): Add raise.
44335         * modules/write (Depends-on): Likewise.
44336
44337 2008-11-02  Bruno Haible  <bruno@clisp.org>
44338
44339         Mark 'memset' obsolete.
44340         * modules/memset (Status, Notice): New sections.
44341
44342 2008-11-02  Bruno Haible  <bruno@clisp.org>
44343
44344         Mark 'memmove' obsolete.
44345         * modules/memmove (Status, Notice): New sections.
44346         * modules/argp (Depends-on): Add memmove.
44347         * modules/argz (Depends-on): Likewise.
44348         * modules/canonicalize (Depends-on): Likewise.
44349         * modules/canonicalize-lgpl (Depends-on): Likewise.
44350         * modules/fts (Depends-on): Likewise.
44351         * modules/getcwd (Depends-on): Likewise.
44352         * modules/human (Depends-on): Likewise.
44353         * modules/regex (Depends-on): Likewise.
44354         * modules/striconveh (Depends-on): Likewise.
44355         * modules/trim (Depends-on): Likewise.
44356         * modules/unistr/u8-move (Depends-on): Likewise.
44357         * modules/unistr/u16-move (Depends-on): Likewise.
44358         * modules/unistr/u32-move (Depends-on): Likewise.
44359
44360 2008-11-02  Bruno Haible  <bruno@clisp.org>
44361
44362         Mark 'memcpy' obsolete.
44363         * modules/memcpy (Status, Notice): New sections.
44364
44365 2008-11-02  Bruno Haible  <bruno@clisp.org>
44366
44367         Mark 'memcmp' obsolete.
44368         * modules/memcmp (Status, Notice): New sections.
44369         * modules/argmatch (Depends-on): Add memchr.
44370         * modules/backupfile (Depends-on): Likewise.
44371         * modules/c-strcasestr (Depends-on): Likewise.
44372         * modules/crypto/des (Depends-on): Likewise.
44373         * modules/csharpcomp (Depends-on): Likewise.
44374         * modules/fnmatch (Depends-on): Likewise.
44375         * modules/git-merge-changelog (Depends-on): Likewise.
44376         * modules/isnand (Depends-on): Likewise.
44377         * modules/isnand-nolibm (Depends-on): Likewise.
44378         * modules/isnanf (Depends-on): Likewise.
44379         * modules/isnanf-nolibm (Depends-on): Likewise.
44380         * modules/isnanl (Depends-on): Likewise.
44381         * modules/isnanl-nolibm (Depends-on): Likewise.
44382         * modules/mbchar (Depends-on): Likewise.
44383         * modules/memcoll (Depends-on): Likewise.
44384         * modules/quotearg (Depends-on): Likewise.
44385         * modules/regex (Depends-on): Likewise.
44386         * modules/relocatable-prog (Depends-on): Likewise.
44387         * modules/same (Depends-on): Likewise.
44388         * modules/signbit (Depends-on): Likewise.
44389         * modules/strcasestr-simple (Depends-on): Likewise.
44390         * modules/unictype/gen-ctype (Depends-on): Likewise.
44391         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44392         * modules/uniname/uniname (Depends-on): Likewise.
44393         * modules/unistr/u8-cmp (Depends-on): Likewise.
44394
44395 2008-11-02  Bruno Haible  <bruno@clisp.org>
44396
44397         Mark 'memchr' obsolete.
44398         * modules/memchr (Status, Notice): New sections.
44399         * modules/argp (Depends-on): Add memchr.
44400         * modules/base64 (Depends-on): Likewise.
44401         * modules/c-strcasestr (Depends-on): Likewise.
44402         * modules/chdir-long (Depends-on): Likewise.
44403         * modules/fnmatch (Depends-on): Likewise.
44404         * modules/getsubopt (Depends-on): Likewise.
44405         * modules/git-merge-changelog (Depends-on): Likewise.
44406         * modules/glob (Depends-on): Likewise.
44407         * modules/strcasestr-simple (Depends-on): Likewise.
44408         * modules/strnlen (Depends-on): Likewise.
44409
44410 2008-11-02  Bruno Haible  <bruno@clisp.org>
44411
44412         Mark 'atexit' obsolete.
44413         * modules/atexit (Status, Notice): New sections.
44414         * modules/chdir-long (Depends-on): Add atexit.
44415         * modules/wait-process (Depends-on): Likewise.
44416
44417 2008-11-02  Bruno Haible  <bruno@clisp.org>
44418
44419         * gnulib-tool: New option --with-obsolete.
44420         (func_usage): Document it.
44421         (func_modules_transitive_closure): Drop obsolete dependencies if
44422         incobsolete is not true.
44423         (func_import): Read and save the incobsolete variable to the cache.
44424
44425 2008-11-02  Bruno Haible  <bruno@clisp.org>
44426
44427         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44428         * gnulib-tool: New option --extract-status.
44429         (func_usage): Document it.
44430         (sed_extract_prog): Recognize it.
44431         (func_get_status): New function.
44432
44433 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44434
44435         * modules/sockets (License): Change from LGPL to LGPLv2+.
44436
44437 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44438
44439         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44440
44441 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44442
44443         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44444         Mention times and sys_times.
44445         * modules/sys_times, modules/sys_times-tests: New modules.
44446         * modules/times, modules/times-tests: Likewise
44447         * m4/sys_times_h.m4: New file.
44448         * lib/sys_times.in.h: Likewise
44449         * lib/times.c: Likewise.
44450         * tests/test-sys_times.c: Likewise.
44451         * tests/test-times.c: Likewise.
44452         * doc/posix-headers/sys_times.texi: Update.
44453         * doc/posix-functions/times.texi: Update.
44454
44455 2008-10-28  Jim Meyering  <meyering@redhat.com>
44456
44457         * modules/tempname (Depends-on): Add lstat.
44458
44459         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
44460
44461 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44462
44463         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
44464         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
44465         using idiom used elsewhere in gnulib.
44466
44467 2008-10-27  Jim Meyering  <meyering@redhat.com>
44468
44469         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
44470
44471 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44472
44473         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
44474         TESTS_ENVIRONMENT, for shell scripts that needs to call built
44475         programs.
44476         * tests/test-argp-2.sh: Use $EXEEXT when needed.
44477
44478 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44479
44480         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
44481
44482 2008-10-27  Bruno Haible  <bruno@clisp.org>
44483
44484         * tests/test-lstat.c: Include <stdio.h>.
44485
44486 2008-10-27  Simon Josefsson  <simon@josefsson.org>
44487
44488         * modules/lstat-tests: New module.
44489         * tests/test-lstat.c: New file.
44490
44491 2008-10-26  Jim Meyering  <meyering@redhat.com>
44492
44493         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
44494
44495 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44496             Bruno Haible  <bruno@clisp.org>
44497
44498         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
44499         * modules/configmake (Include): Add a note that the include must come
44500         after all system headers.
44501         * lib/javaversion.c: Include configmake.h after all other includes.
44502
44503 2008-10-26  Bruno Haible  <bruno@clisp.org>
44504
44505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
44506         HAVE_STRUCT_RANDOM_DATA to 1.
44507         (gl_STDLIB_H): Simplify.
44508
44509 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44510
44511         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
44512         substitute HAVE_STRUCT_RANDOM_DATA.
44513         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
44514         random_data.
44515         * modules/stdlib (Makefile.am): Substitute
44516         HAVE_STRUCT_RANDOM_DATA.
44517
44518 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44519
44520         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
44521         * doc/gnulib-intro.texi (Copyright): Likewise.
44522
44523 2008-10-26  Simon Josefsson  <simon@josefsson.org>
44524
44525         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
44526         findings.
44527
44528 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
44529             Bruno Haible  <bruno@clisp.org>
44530
44531         * lib/unistd.in.h: Include <winsock2.h>.
44532         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
44533         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
44534         Provide dummy declarations.
44535         (gethostname): Override.
44536         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
44537         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
44538         gl_PREREQ_SYS_H_WINSOCK2.
44539         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
44540         * doc/posix-functions/gethostname.texi: More details.
44541
44542 2008-10-25  Bruno Haible  <bruno@clisp.org>
44543
44544         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44545         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
44546         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
44547
44548         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
44549         here ...
44550         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
44551         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
44552         gl_UNISTD_H_DEFAULTS.
44553
44554 2008-10-25  Eric Blake  <ebb9@byu.net>
44555
44556         signbit: avoid spurious compiler failure
44557         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
44558         declarations inside function.
44559
44560 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44561             Bruno Haible  <bruno@clisp.org>
44562
44563         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
44564         * modules/random_r (Depends-on): Add stdint.
44565
44566 2008-10-24  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
44569         Eggert.
44570         * modules/strerror (License): Likewise.
44571
44572 2008-10-24  Jim Meyering  <meyering@redhat.com>
44573
44574         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
44575         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
44576
44577 2008-10-24  Eric Blake  <ebb9@byu.net>
44578
44579         getgroups: fix compilation when getgroups is available
44580         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
44581         but with <config.h> override of getgroups disabled.
44582
44583 2008-10-24  Simon Josefsson  <simon@josefsson.org>
44584
44585         * doc/gnulib.texi (Header files): Add note about C++ problems.
44586         Explained by Bruno Haible <bruno@clisp.org>.
44587
44588 2008-10-23  Bruno Haible  <bruno@clisp.org>
44589
44590         Define a dummy SA_NODEFER macro on Interix.
44591         * lib/signal.in.h (SA_NODEFER): Define fallback.
44592         Reported by Aleksey Cheusov <cheusov@tut.by> via
44593         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
44594
44595 2008-10-23  Bruno Haible  <bruno@clisp.org>
44596
44597         * modules/freadahead (License): Change to LGPLv2+.
44598         Suggested by Simon Josefsson.
44599
44600 2008-10-23  Jim Meyering  <meyering@redhat.com>
44601
44602         random_r: new module
44603         * modules/random_r: New file.
44604         * m4/random_r.m4: New file.
44605         * lib/random_r.c: New file, from glibc.
44606         * modules/random_r-tests: New file.
44607         * tests/test-random_r.c: New file.
44608         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
44609          Declare.
44610         (RAND_MAX): Define.
44611         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
44612         * modules/stdlib: Substitute them, too.
44613         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
44614         * doc/glibc-functions/initstate_r.texi: Mention the new module.
44615         * doc/glibc-functions/random_r.texi: Likewise.
44616         * doc/glibc-functions/setstate_r.texi: Likewise.
44617         * doc/glibc-functions/srandom_r.texi: Likewise.
44618         * config/srclist.txt: Mention it.
44619
44620 2008-10-23  David Lutterkort  <lutter@redhat.com>
44621
44622         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
44623         link requirement
44624
44625 2008-10-23  Jim Meyering  <meyering@redhat.com>
44626
44627         selinux-h: mark parameters of stub functions as intentionally unused
44628         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
44629         * lib/se-context.in.h: Likewise.
44630
44631 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44632
44633         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
44634
44635 2008-10-22  Simon Josefsson  <simon@josefsson.org>
44636
44637         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
44638
44639 2008-10-22  Eric Blake  <ebb9@byu.net>
44640
44641         glthread/thread: avoid compiler warning
44642         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
44643         Add unreachable abort to silence compiler.
44644
44645 2008-10-22  Eric Blake  <ebb9@byu.net>
44646
44647         netdb: also supply struct addrinfo for cygwin 1.5.x
44648         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
44649         older cygwin.
44650         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
44651         cygwin.
44652         * doc/posix-headers/netdb.texi (netdb.h): Document this.
44653
44654 2008-10-22  Bruno Haible  <bruno@clisp.org>
44655
44656         * users.txt: Update entry about pspp.
44657
44658 2008-10-21  Bruno Haible  <bruno@clisp.org>
44659
44660         Simplification.
44661         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
44662         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
44663
44664         Simplification.
44665         * lib/ioctl.c (ioctl): Don't undefine.
44666         * lib/socket.c (socket): Don't undefine.
44667
44668         Remove unused module indicator macros.
44669         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
44670         GNULIB_$1 as a C macro.
44671
44672         * doc/posix-functions/close.texi: Undo last change.
44673         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
44674         Windows platforms.
44675
44676 2008-10-21  Bruno Haible  <bruno@clisp.org>
44677
44678         Add gethostname() declaration to <unistd.h>.
44679         * lib/unistd.in.h (gethostname): New declaration.
44680         * lib/gethostname.c: Include <unistd.h>.
44681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
44682         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
44683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
44684         and HAVE_GETHOSTNAME.
44685         * modules/gethostname (Depends-on): Add unistd.
44686         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44687         (Include): Specify <unistd.h>.
44688         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
44689         HAVE_GETHOSTNAME.
44690         * tests/test-gethostname.c: Include <unistd.h> first.
44691
44692 2008-10-21  Bruno Haible  <bruno@clisp.org>
44693
44694         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
44695         * modules/select-tests (Depends-on): Likewise.
44696         Reported by Simon Josefsson.
44697
44698 2008-10-21  Simon Josefsson  <simon@josefsson.org>
44699
44700         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
44701         * lib/accept.c: New file, based on winsock.c.
44702         * lib/bind.c: New file, based on winsock.c.
44703         * lib/connect.c: New file, based on winsock.c.
44704         * lib/getpeername.c: New file, based on winsock.c.
44705         * lib/getsockname.c: New file, based on winsock.c.
44706         * lib/getsockopt.c: New file, based on winsock.c.
44707         * lib/ioctl.c: New file, based on winsock.c.
44708         * lib/listen.c: New file, based on winsock.c.
44709         * lib/recv.c: New file, based on winsock.c.
44710         * lib/recvfrom.c: New file, based on winsock.c.
44711         * lib/send.c: New file, based on winsock.c.
44712         * lib/sendto.c: New file, based on winsock.c.
44713         * lib/setsockopt.c: New file, based on winsock.c.
44714         * lib/shutdown.c: New file, based on winsock.c.
44715         * lib/socket.c: New file, based on winsock.c.
44716         * lib/w32sock.h: New file, based on winsock.c.
44717         * lib/winsock.c: Remove file.
44718         * modules/accept: Likewise.
44719         * modules/bind: Likewise.
44720         * modules/connect: Likewise.
44721         * modules/getpeername: Likewise.
44722         * modules/getsockname: Likewise.
44723         * modules/getsockopt: Likewise.
44724         * modules/ioctl: Likewise.
44725         * modules/listen: Likewise.
44726         * modules/recv: Likewise.
44727         * modules/recvfrom: Likewise.
44728         * modules/send: Likewise.
44729         * modules/sendto: Likewise.
44730         * modules/setsockopt: Likewise.
44731         * modules/shutdown: Likewise.
44732         * modules/socket: Use socket.c instead of winsock.c.
44733         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
44734         * doc/posix-functions/accept.texi: Doc fix.
44735         * doc/posix-functions/bind.texi: Doc fix.
44736         * doc/posix-functions/close.texi: Doc fix.
44737         * doc/posix-functions/connect.texi: Doc fix.
44738         * doc/posix-functions/getpeername.texi: Doc fix.
44739         * doc/posix-functions/getsockname.texi: Doc fix.
44740         * doc/posix-functions/getsockopt.texi: Doc fix.
44741         * doc/posix-functions/ioctl.texi: Doc fix.
44742         * doc/posix-functions/listen.texi: Doc fix.
44743         * doc/posix-functions/recv.texi: Doc fix.
44744         * doc/posix-functions/recvfrom.texi: Doc fix.
44745         * doc/posix-functions/send.texi: Doc fix.
44746         * doc/posix-functions/sendto.texi: Doc fix.
44747         * doc/posix-functions/setsockopt.texi: Doc fix.
44748         * doc/posix-functions/shutdown.texi: Doc fix.
44749         * doc/posix-functions/socket.texi: Doc fix.
44750
44751 2008-10-20  Bruno Haible  <bruno@clisp.org>
44752
44753         Take into account the role of SIGABRT_COMPAT on Windows 2008.
44754         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
44755         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
44756         as an alias for SIGABRT.
44757         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
44758         (sigaction): Map it to SIGABRT.
44759         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
44760
44761 2008-10-20  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/fts.c: Don't include lstat.h.
44764         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
44765
44766         Move the lstat() declaration to <sys/stat.h>.
44767         * lib/lstat.h: Remove file.
44768         * lib/sys_stat.in.h: Add special invocation convention.
44769         (lstat): New declaration.
44770         * lib/lstat.c (orig_lstat): New function.
44771         (rpl_lstat): Use orig_lstat instead of lstat.
44772         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
44773         AC_C_INLINE. Set REPLACE_LSTAT.
44774         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
44775         and REPLACE_LSTAT.
44776         * modules/lstat (Files): Remove lib/lstat.h.
44777         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
44778         (Include): Specify <sys/stat.h> instead of lstat.h.
44779         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
44780         REPLACE_LSTAT.
44781         * NEWS: Mention the change.
44782
44783 2008-10-20  Bruno Haible  <bruno@clisp.org>
44784
44785         * modules/posix_spawn-tests: New file.
44786         * tests/test-posix_spawn3.c: New file.
44787
44788 2008-10-20  Bruno Haible  <bruno@clisp.org>
44789
44790         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
44791         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44792         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
44793         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
44794         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
44795
44796 2008-10-20  Bruno Haible  <bruno@clisp.org>
44797
44798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
44799         of posix_spawn on AIX 5.3.
44800
44801 2008-10-20  Bruno Haible  <bruno@clisp.org>
44802
44803         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
44804
44805 2008-10-20  Bruno Haible  <bruno@clisp.org>
44806
44807         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
44808         of AC_LANG_PROGRAM.
44809
44810 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44811
44812         * lib/netdb.in.h: Don't define GNU specific constants until they
44813         are supported or needed.  Reported by Bruno Haible
44814         <bruno@clisp.org>.
44815
44816 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44817
44818         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
44819
44820 2008-10-20  Simon Josefsson  <simon@josefsson.org>
44821
44822         * lib/getaddrinfo.h: Remove file.
44823         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
44824         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
44825         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
44826         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
44827         * modules/netdb: Substitute GNULIB_GETADDRINFO.
44828         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
44829         * tests/test-getaddrinfo.c: Likewise.
44830         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
44831         * NEWS: Mention change.
44832
44833 2008-10-19  Bruno Haible  <bruno@clisp.org>
44834
44835         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
44836
44837 2008-10-19  Bruno Haible  <bruno@clisp.org>
44838
44839         * lib/wait-process.c: Include simply <sys/wait.h>.
44840         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
44841         WIFSTOPPED): Remove fallback definitions.
44842         * modules/wait-process (Depends-on): Add sys_wait.
44843
44844         New module 'sys_wait'.
44845         * modules/sys_wait: New file.
44846         * lib/sys_wait.in.h: New file, partially copied from
44847         lib/wait-process.c.
44848         * m4/sys_wait_h.m4: New file.
44849         * doc/posix-headers/sys_wait.texi: Mention the new module.
44850
44851 2008-10-19  Bruno Haible  <bruno@clisp.org>
44852
44853         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
44854
44855 2008-10-19  Bruno Haible  <bruno@clisp.org>
44856
44857         Assume that waitpid() fills an 'int' status, not a 'union wait'.
44858         * lib/wait-process.c (WAIT_T): Remove type.
44859         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
44860         (wait_subprocess): Update.
44861
44862 2008-10-19  Bruno Haible  <bruno@clisp.org>
44863
44864         New module 'atoll'.
44865         * modules/atoll: New file.
44866         * lib/stdlib.in.h (atoll): New declaration.
44867         * lib/atoll.c: New file, from glibc with modifications.
44868         * m4/atoll.m4: New file.
44869         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
44870         HAVE_ATOLL.
44871         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
44872         * doc/posix-functions/atoll.texi: Mention the new module.
44873
44874 2008-10-19  Bruno Haible  <bruno@clisp.org>
44875
44876         Add strtoull() declaration to <stdlib.h>.
44877         * lib/stdlib.in.h (strtoull): New declaration.
44878         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44879         Set HAVE_STRTOULL.
44880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
44881         HAVE_STRTOULL.
44882         * modules/strtoull (Depends-on): Add stdlib.
44883         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44884         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
44885         HAVE_STRTOULL.
44886
44887 2008-10-19  Bruno Haible  <bruno@clisp.org>
44888
44889         Add strtoll() declaration to <stdlib.h>.
44890         * lib/stdlib.in.h (strtoll): New declaration.
44891         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
44892         Set HAVE_STRTOLL.
44893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
44894         HAVE_STRTOLL.
44895         * modules/strtoll (Depends-on): Add stdlib.
44896         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44897         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
44898
44899 2008-10-19  Bruno Haible  <bruno@clisp.org>
44900
44901         * modules/bcopy (Depends-on): Add strings.
44902         (Include): Specify <strings.h>.
44903
44904 2008-10-19  Bruno Haible  <bruno@clisp.org>
44905
44906         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
44907
44908 2008-10-19  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
44911         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
44912         mingw.
44913
44914 2008-10-19  Bruno Haible  <bruno@clisp.org>
44915
44916         * lib/atanl.c: Don't include isnanl.h.
44917         * lib/cosl.c: Likewise.
44918         * lib/ldexpl.c: Likewise.
44919         * lib/logl.c: Likewise.
44920         * lib/sinl.c: Likewise.
44921         * lib/sqrtl.c: Likewise.
44922         * lib/tanl.c: Likewise.
44923
44924         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
44925         * lib/isnanf.h: Remove file.
44926         * lib/isnand.h: Remove file.
44927         * lib/isnanl.h: Remove file.
44928         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
44929         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
44930         macros.
44931         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
44932         HAVE_ISNANF, don't define it as a C macro.
44933         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
44934         HAVE_ISNAND, don't define it as a C macro.
44935         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
44936         HAVE_ISNANL, don't define it as a C macro.
44937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
44938         HAVE_ISNAN[FDL].
44939         * modules/isnanf (Files): Remove lib/isnanf.h.
44940         (Depends-on): Add math.
44941         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44942         (Include): Specify <math.h> instead of isnanf.h.
44943         * modules/isnand (Files): Remove lib/isnand.h.
44944         (Depends-on): Add math.
44945         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44946         (Include): Specify <math.h> instead of isnand.h.
44947         * modules/isnanl (Files): Remove lib/isnanl.h.
44948         (Depends-on): Add math.
44949         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44950         (Include): Specify <math.h> instead of isnanl.h.
44951         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
44952         HAVE_ISNAN[FDL].
44953         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
44954         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
44955         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
44956         * NEWS: Mention the change.
44957
44958 2008-10-18  Bruno Haible  <bruno@clisp.org>
44959
44960         Add getusershell(), setusershell(), endusershell() declarations to
44961         <unistd.h>.
44962         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
44963         declarations.
44964         * lib/getusershell.c: Include unistd.h.
44965         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
44966         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
44967         HAVE_GETUSERSHELL.
44968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
44969         and HAVE_GETUSERSHELL.
44970         * modules/getusershell (Depends-on): Add unistd, extensions.
44971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44972         (Include): Specify <unistd.h>.
44973         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
44974         HAVE_GETUSERSHELL.
44975
44976 2008-10-18  Bruno Haible  <bruno@clisp.org>
44977
44978         Add a getloadavg() declaration to <stdlib.h>.
44979         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
44980         getloadavg declaration.
44981         (getloadavg): New declaration.
44982         * lib/getloadavg.c: Include <stdlib.h> first.
44983         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
44984         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
44985         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
44986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
44987         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44988         * modules/getloadavg (Depends-on): Add stdlib, extensions.
44989         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44990         (Include): Specify <stdlib.h>.
44991         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
44992         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
44993
44994 2008-10-18  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/dirchownmod.c: Don't include lchmod.h.
44997
44998         Move the lchmod() declaration to <sys/stat.h>.
44999         * lib/lchmod.h: Remove file.
45000         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45001         (lchmod): New declaration, moved here from lib/lchown.h.
45002         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45003         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45005         and HAVE_LCHMOD.
45006         * modules/lchmod (Files): Remove lib/lchmod.h.
45007         (Depends-on): Add sys_stat, extensions.
45008         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45009         (Include): Specify <sys/stat.h> instead of lchmod.h.
45010         * modules/sys_stat (Depends-on): Add link-warning.
45011         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45012         definition of GL_LINK_WARNING.
45013         * NEWS: Mention the change.
45014
45015 2008-10-18  Bruno Haible  <bruno@clisp.org>
45016
45017         * lib/fchdir.c: Don't include dirfd.h.
45018         * lib/fts.c: Likewise.
45019         * lib/getcwd.c: Likewise.
45020         * lib/glob.c: Likewise.
45021
45022         Move the dirfd() declaration to <dirent.h>.
45023         * lib/dirfd.h: Remove file.
45024         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45025         (dirfd): New declaration.
45026         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45027         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45028         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45029         HAVE_DECL_DIRFD.
45030         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45031         HAVE_DECL_DIRFD.
45032         * modules/dirfd (Files): Remove lib/dirfd.h.
45033         (Depends-on): Add dirent, extensions.
45034         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45035         (Include): Specify <dirent.h> instead of dirfd.h.
45036         * modules/dirent (Depends-on): Add link-warning.
45037         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45038         definition of GL_LINK_WARNING.
45039         * NEWS: Mention the change.
45040
45041 2008-10-18  Bruno Haible  <bruno@clisp.org>
45042
45043         Move the euidaccess() declaration to <unistd.h>.
45044         * lib/euidaccess.h: Remove file.
45045         * lib/unistd.in.h (euidaccess): New declaration.
45046         * lib/euidaccess.c: Don't include euidaccess.h.
45047         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45048         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45050         and HAVE_EUIDACCESS.
45051         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45052         (Depends-on): Add unistd.
45053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45054         (Include): Specify <unistd.h> instead of euidaccess.h.
45055         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45056         HAVE_EUIDACCESS.
45057         * NEWS: Mention the change.
45058
45059 2008-10-18  Bruno Haible  <bruno@clisp.org>
45060
45061         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45062
45063         Move the getdomainname() declaration to <unistd.h>.
45064         * lib/getdomainname.h: Remove file.
45065         * lib/unistd.in.h (getdomainname): New declaration.
45066         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45067         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45068         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45069         HAVE_GETDOMAINNAME.
45070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45071         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45072         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45073         (Depends-on): Add unistd, extensions.
45074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45075         (Includes): Specify <unistd.h> instead of getdomainname.h.
45076         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45077         HAVE_GETDOMAINNAME.
45078         * NEWS: Mention the change.
45079
45080 2008-10-18  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/dirent: New file.
45083         * m4/dirent_h.m4: New file.
45084         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45085         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45086         * modules/fchdir (Files): Remove lib/dirent.in.h.
45087         (Depends-on): Add dirent.
45088         (Makefile.am): Move rules to modules/dirent.
45089         * doc/posix-headers/dirent.texi: Mention the new module.
45090
45091 2008-10-18  Bruno Haible  <bruno@clisp.org>
45092
45093         Avoid -Wunused-parameter warnings in public gnulib header files.
45094         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45095         macro.
45096         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45097
45098 2008-10-18  Bruno Haible  <bruno@clisp.org>
45099
45100         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45101         * doc/glibc-functions/error.texi: Mention the module 'error'.
45102         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45103         * doc/glibc-functions/getdomainname.texi: Mention the module
45104         'getdomainname'.
45105         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45106         * doc/glibc-functions/getpagesize.texi: Mention the module
45107         'getpagesize'.
45108         * doc/glibc-functions/getusershell.texi: Mention the module
45109         'getusershell'.
45110         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45111         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45112         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45113         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45114         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45115         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45116         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45117         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45118         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45119         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45120         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45121         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45122         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45123         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45124
45125 2008-10-17  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45128         HP-UX and IRIX, use -0.0L.
45129         * tests/test-ceill.c (minus_zero): Likewise.
45130         * tests/test-floorl.c (minus_zero): Likewise.
45131         * tests/test-frexpl.c (minus_zero): Likewise.
45132         * tests/test-isnan.c (minus_zerol): Likewise.
45133         * tests/test-isnanl.h (minus_zero): Likewise.
45134         * tests/test-ldexpl.c (minus_zero): Likewise.
45135         * tests/test-roundl.c (minus_zero): Likewise.
45136         * tests/test-signbit.c (minus_zerol): Likewise.
45137         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45138         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45139         * tests/test-truncl.c (minus_zero): Likewise.
45140         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45141         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45142         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45143         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45144
45145 2008-10-17  Bruno Haible  <bruno@clisp.org>
45146
45147         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45148         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45149         that it gets activated only for gcc >= 3.0.
45150         * lib/dirent.in.h: Likewise.
45151         * lib/errno.in.h: Likewise.
45152         * lib/fcntl.in.h: Likewise.
45153         * lib/float.in.h: Likewise.
45154         * lib/iconv.in.h: Likewise.
45155         * lib/inttypes.in.h: Likewise.
45156         * lib/locale.in.h: Likewise.
45157         * lib/math.in.h: Likewise.
45158         * lib/netdb.in.h: Likewise.
45159         * lib/netinet_in.in.h: Likewise.
45160         * lib/search.in.h: Likewise.
45161         * lib/signal.in.h: Likewise.
45162         * lib/spawn.in.h: Likewise.
45163         * lib/stdarg.in.h: Likewise.
45164         * lib/stdint.in.h: Likewise.
45165         * lib/stdio.in.h: Likewise.
45166         * lib/stdlib.in.h: Likewise.
45167         * lib/string.in.h: Likewise.
45168         * lib/strings.in.h: Likewise.
45169         * lib/sys_file.in.h: Likewise.
45170         * lib/sys_ioctl.in.h: Likewise.
45171         * lib/sys_select.in.h: Likewise.
45172         * lib/sys_socket.in.h: Likewise.
45173         * lib/sys_stat.in.h: Likewise.
45174         * lib/sys_time.in.h: Likewise.
45175         * lib/sysexits.in.h: Likewise.
45176         * lib/time.in.h: Likewise.
45177         * lib/unistd.in.h: Likewise.
45178         * lib/wchar.in.h: Likewise.
45179         * lib/wctype.in.h: Likewise.
45180         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45181
45182 2008-10-17  Jim Meyering  <meyering@redhat.com>
45183
45184         ignore-value: don't depend on inline module
45185         * modules/ignore-value (Depends-on): Remove 'inline'.
45186         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45187         Suggestion from Bruno Haible.
45188
45189 2008-10-17  Bruno Haible  <bruno@clisp.org>
45190
45191         New implementation of condition variables for Win32.
45192         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45193         (gl_linked_waitqueue_t): New type.
45194         (gl_cond_t): Use it.
45195         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45196         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45197         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45198         (glthread_cond_init_func, glthread_cond_wait_func,
45199         glthread_cond_timedwait_func, glthread_cond_signal_func,
45200         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45201         Reimplemented on the basis of gl_linked_waitqueue_t.
45202         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45203         gl_waitqueue_t.
45204         (gl_rwlock_t): Update.
45205         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45206
45207 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45208
45209         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45210         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45211
45212 2008-10-17  Jim Meyering  <meyering@redhat.com>
45213
45214         ignore-value: new module
45215         * modules/ignore-value: New file.
45216         * lib/ignore-value.h: New file.
45217         * MODULES.html.sh (Compiler warning management): New section,
45218         just for this module.  More to come.
45219
45220 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45221
45222         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45223         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45224         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45225
45226 2008-10-16  Jim Meyering  <meyering@redhat.com>
45227
45228         openat-die.c: avoid 'no previous prototype' warning
45229         * lib/openat-die.c: Include "openat.h".
45230         Reported by Reuben Thomas <rrt@sc3d.org>.
45231
45232 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45233
45234         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45235         * lib/netdb.in.h: Fix typo.
45236         Reported by Bruno Haible  <bruno@clisp.org>
45237
45238         * lib/netdb.in.h: Include sys/socket.h for platforms without
45239         netdb.h, to get structures like hostent on MinGW.
45240         * modules/netdb (Depends-on): Add sys_socket.
45241
45242 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45243
45244         * modules/netdb, modules/netdb-tests: New file.
45245         * m4/netdb_h.m4: New file.
45246         * lib/netdb.in.h: Add, currently just an empty file pending
45247         definitions.
45248         * tests/test-netdb.c: New file.
45249         * doc/posix-headers/netdb.texi: Mention that we replace it if
45250         needed.
45251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45252         netdb.
45253
45254 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45255
45256         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45257         with code.
45258
45259 2008-10-13  Bruno Haible  <bruno@clisp.org>
45260
45261         * lib/glthread/cond.c (glthread_cond_wait_func,
45262         glthread_cond_timedwait_func): Add a comment.
45263
45264 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45265
45266         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45267         * tests/test-select.c: Likewise,
45268
45269 2008-10-13  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/glthread/cond.c (glthread_cond_wait_func,
45272         glthread_cond_timedwait_func): Fix variable name.
45273         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45274
45275 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45276
45277         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45279         struct sockaddr.sa_len.
45280         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45281
45282 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45283
45284         * build-aux/pmccabe2html: Add css and css_url parameters.
45285
45286 2008-10-12  Bruno Haible  <bruno@clisp.org>
45287
45288         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45289         calling aclx_get.
45290         Reported by Rainer Tammer <tammer@tammer.net>.
45291
45292 2008-10-12  Bruno Haible  <bruno@clisp.org>
45293
45294         Use msvcrt aware primitives for creation/termination of Win32 threads.
45295         * lib/glthread/thread.c: Include <process.h>.
45296         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45297         (wrapper_func): Update signature.
45298         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45299
45300 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45301             Bruno Haible  <bruno@clisp.org>
45302
45303         Provide a Win32 implementation of the 'cond' module.
45304         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45305         * lib/glthread/cond.c (glthread_cond_init_func,
45306         glthread_cond_wait_func, glthread_cond_timedwait_func,
45307         glthread_cond_signal_func, glthread_cond_broadcast_func,
45308         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45309         * modules/cond (Dependencies): Add gettimeofday.
45310
45311 2008-10-11  Bruno Haible  <bruno@clisp.org>
45312
45313         Make sleep work on older versions of mingw.
45314         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45315         only whether it exists.
45316         * doc/posix-functions/sleep.texi: Mention the problem with older
45317         versions of mingw.
45318
45319 2008-10-11  Bruno Haible  <bruno@clisp.org>
45320
45321         New module 'shutdown'.
45322         * modules/shutdown: New file.
45323         * lib/sys_socket.in.h (shutdown): New declaration.
45324         * lib/winsock.c (shutdown): New function.
45325         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45326         GNULIB_SHUTDOWN.
45327         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45328         * doc/posix-functions/shutdown.texi: Document the new module.
45329
45330 2008-10-11  Jim Meyering  <meyering@redhat.com>
45331
45332         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45333
45334 2008-10-11  Bruno Haible  <bruno@clisp.org>
45335
45336         New module 'fclose'.
45337         * modules/fclose: New file.
45338         * lib/stdio.in.h (fclose): New declaration.
45339         * lib/fclose.c: New file.
45340         * m4/fclose.m4: New file.
45341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45342         REPLACE_FCLOSE.
45343         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45344         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45345         REPLACE_FCLOSE.
45346         * modules/close (Depends-on): fclose.
45347         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45348
45349 2008-10-11  Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45352         set errno and don't call _close.
45353
45354 2008-10-10  Bruno Haible  <bruno@clisp.org>
45355
45356         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45357         ACL, not afterwards. Fixes test failure on Cygwin.
45358
45359 2008-10-09  Ben Pfaff  <blp@gnu.org>
45360
45361         * build-aux/announce-gen: Fix gnulib version related part of usage
45362         message.  Die with a useful error message if no tarballs are
45363         found.
45364
45365 2008-10-10  Jim Meyering  <meyering@redhat.com>
45366
45367         bootstrap: use git's --depth=N option only if it's supported
45368         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45369         recognize the --depth option.  Reported by Pádraig Brady.
45370
45371 2008-10-09  Bruno Haible  <bruno@clisp.org>
45372
45373         New module 'ioctl'.
45374         * modules/ioctl: New file.
45375         * lib/sys_socket.in.h (ioctl): Remove declaration.
45376         * lib/winsock.c: Include <sys/ioctl.h>.
45377         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45378         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45379         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45380         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45381         * doc/posix-functions/ioctl.texi: Mention the new module.
45382
45383 2008-10-09  Bruno Haible  <bruno@clisp.org>
45384
45385         New module 'sys_ioctl'.
45386         * lib/sys_ioctl.in.h: New file.
45387         * m4/sys_ioctl_h.m4: New file.
45388         * modules/sys_ioctl: New file.
45389         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45390
45391 2008-10-09  Bruno Haible  <bruno@clisp.org>
45392
45393         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45394         * lib/winsock.c: Include <stdarg.h>.
45395         (rpl_ioctl): Change to second argument 'int' and then varargs.
45396
45397 2008-10-09  Bruno Haible  <bruno@clisp.org>
45398
45399         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45400         when the sys_socket module is present and the system has <winsock2.h>.
45401
45402 2008-10-09  Bruno Haible  <bruno@clisp.org>
45403
45404         * doc/posix-functions/close.texi: Mention module 'close' instead of
45405         module 'sys_socket'.
45406
45407 2008-10-09  Bruno Haible  <bruno@clisp.org>
45408
45409         * doc/glibc-headers/sys_ioctl.texi: New file.
45410         * doc/gnulib.texi: Include it.
45411
45412 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45413             Bruno Haible  <bruno@clisp.org>
45414
45415         Combine the two replacements of 'close'.
45416         * lib/sys_socket.in.h (close): Define to a reminder to include
45417         <unistd.h>.
45418         (_gl_close_fd_maybe_socket): New declaration.
45419         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45420         * lib/winsock.c (close): Remove undefinition.
45421         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45422         needed for the gnulib module 'close'.
45423         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45424         define to an error symbol or to a warning, if suitable.
45425         * lib/close.c: Include <sys/socket.h>.
45426         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45427         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45428         UNISTD_H_HAVE_WINSOCK2_H.
45429         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45431         UNISTD_H_HAVE_WINSOCK2_H.
45432         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45433         (configure.ac): Set a module indicator.
45434         (Makefile.am): Substitute GNULIB_CLOSE.
45435         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45436         * modules/poll-tests (Depends-on): Add close.
45437         * modules/select-tests (Depends-on): Likewise.
45438
45439 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45440             Bruno Haible  <bruno@clisp.org>
45441
45442         New module 'close'.
45443         * modules/close: New file.
45444         * lib/unistd.in.h (close): Move declaration out of the
45445         FCHDIR_REPLACEMENT scope.
45446         (_gl_unregister_fd): New declaration.
45447         * lib/close.c: New file.
45448         * lib/fchdir.c (rpl_close): Remove function.
45449         * m4/close.m4: New file.
45450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45451         close.
45452         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
45453         REPLACE_CLOSE.
45454         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
45455         REPLACE_CLOSE.
45456         * modules/fchdir (Depends-on): Add close.
45457
45458 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45459             Bruno Haible  <bruno@clisp.org>
45460
45461         * lib/fcntl.in.h (open): Simplify conditionals.
45462         (_gl_register_fd): New declaration.
45463         * lib/fchdir.c (rpl_open): Remove function.
45464         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
45465         also.
45466         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
45467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
45468         open.
45469
45470 2008-10-09  Jim Meyering  <meyering@redhat.com>
45471
45472         GNUmakefile: use the more name-space-friendly "_version"
45473         * top/GNUmakefile (_dummy): Update.
45474         (_version): Rename from "version".
45475
45476 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45477             Bruno Haible  <bruno@clisp.org>
45478
45479         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
45480         rpl_close.
45481         (_gl_register_fd): New function, extracted from rpl_open.
45482         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
45483         (rpl_open, rpl_opendir): Use _gl_register_fd.
45484
45485 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45486
45487         Fix organization of 'open' replacement.
45488         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
45489         (gl_FUNC_OPEN): Use it.
45490         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
45491
45492 2008-10-08  Bruno Haible  <bruno@clisp.org>
45493
45494         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
45495
45496 2008-10-08  Simon Josefsson  <simon@josefsson.org>
45497
45498         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
45499         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
45500         listen).
45501
45502 2008-10-08  Eric Blake  <ebb9@byu.net>
45503
45504         GNUmakefile: add 'make version' target
45505         * top/GNUmakefile (_curr-ver): Split version update rules...
45506         (version): ...into a target.
45507
45508 2008-10-07  Bruno Haible  <bruno@clisp.org>
45509
45510         Use a more portable replacement expression for -0.0L.
45511         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
45512         instead of -0.0L. Fix m4 quotation.
45513
45514         * tests/test-signbit.c: Include <float.h>.
45515         (minus_zero): New variable.
45516         (test_signbitl): Use minus_zero instead of -zero.
45517         * modules/signbit-tests (Depends-on): Add float.
45518
45519         * tests/test-ceill.c: Include <float.h>.
45520         (zero): Remove variable.
45521         (minus_zero): New variable.
45522         (main): Use minus_zero instead of -zero.
45523         * modules/ceill-tests (Depends-on): Add float.
45524
45525         * tests/test-floorl.c: Include <float.h>.
45526         (zero): Remove variable.
45527         (minus_zero): New variable.
45528         (main): Use minus_zero instead of -zero.
45529         * modules/floorl-tests (Depends-on): Add float.
45530
45531         * tests/test-roundl.c: Include <float.h>.
45532         (zero): Remove variable.
45533         (minus_zero): New variable.
45534         (main): Use minus_zero instead of -zero.
45535         * modules/roundl-tests (Depends-on): Add float.
45536
45537         * tests/test-truncl.c: Include <float.h>.
45538         (zero): Remove variable.
45539         (minus_zero): New variable.
45540         (main): Use minus_zero instead of -zero.
45541         * modules/truncl-tests (Depends-on): Add float.
45542
45543         * tests/test-frexpl.c (zero): Remove variable.
45544         (minus_zero): New variable.
45545         (main): Use minus_zero instead of -zero.
45546         * modules/frexpl-tests (Depends-on): Add float.
45547
45548         * tests/test-isnan.c (zerol): Remove variable.
45549         (minus_zerol): New variable.
45550         (test_long_double): Use minus_zerol instead of -zerol.
45551         * modules/isnan-tests (Depends-on): Add float.
45552
45553         * tests/test-isnanl.h (zero): Remove variable.
45554         (minus_zero): New variable.
45555         (main): Use minus_zero instead of -zero.
45556         * modules/isnanl-nolibm-tests (Depends-on): Add float.
45557         * modules/isnanl-tests (Depends-on): Add float.
45558
45559         * tests/test-ldexpl.c (zero): Remove variable.
45560         (minus_zero): New variable.
45561         (main): Use minus_zero instead of -zero.
45562         * modules/ldexpl-tests (Depends-on): Add float.
45563
45564         * tests/test-snprintf-posix.h (zerol): Remove variable.
45565         (minus_zerol): New variable.
45566         (test_function): Use minus_zerol instead of -zerol.
45567         * modules/snprintf-posix-tests (Depends-on): Add float.
45568         * modules/vsnprintf-posix-tests (Depends-on): Add float.
45569
45570         * tests/test-sprintf-posix.h (zerol): Remove variable.
45571         (minus_zerol): New variable.
45572         (test_function): Use minus_zerol instead of -zerol.
45573         * modules/sprintf-posix-tests (Depends-on): Add float.
45574         * modules/vsprintf-posix-tests (Depends-on): Add float.
45575
45576         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
45577         (minus_zerol): New variable.
45578         (test_function): Use minus_zerol instead of -zerol.
45579         * modules/vasnprintf-posix-tests (Depends-on): Add float.
45580
45581         * tests/test-vasprintf-posix.c (zerol): Remove variable.
45582         (minus_zerol): New variable.
45583         (test_function): Use minus_zerol instead of -zerol.
45584         * modules/vasprintf-posix-tests (Depends-on): Add float.
45585
45586 2008-10-07  Simon Josefsson  <simon@josefsson.org>
45587
45588         * MODULES.html.sh (Support for building documentation): Mention
45589         pmccabe2html.  Sort entries.
45590
45591         Add pmccabe2html module, from gnupdf.
45592         * build-aux/pmccabe.css: New file.
45593         * build-aux/pmccabe2html: New file.
45594         * m4/pmccabe2html.m4: New file.
45595         * modules/pmccabe2html: New file.
45596
45597 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
45598
45599         flock: new module
45600         * MODULES.html.sh: Add to list of modules.
45601         * lib/flock.c: flock implementation for Windows and Unix systems
45602         which have fcntl.
45603         * doc/glibc-functions/flock.texi: Update documentation.
45604         * lib/sys_file.in.h: <sys/file.h> header file.
45605         * m4/flock.m4: M4 macros.
45606         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
45607         * modules/flock: flock module.
45608         * modules/flock-tests: flock tests module.
45609         * modules/sys_file: sys/file.h module.
45610         * tests/test-flock.c: test suite for flock.
45611
45612 2008-10-06  Jim Meyering  <meyering@redhat.com>
45613
45614         bootstrap: check for LT_INIT more portably still ;-)
45615         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
45616         Spotted by Bruno Haible.
45617
45618 2008-10-06  Eric Blake  <ebb9@byu.net>
45619
45620         test-signbit: avoid tripping Irix cc bug on -0.0L
45621         * tests/test-signbit.c (minus_zerol): Delete, and replace with
45622         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
45623         entire testsuite consistent and avoids an Irix 6.2 bug.
45624
45625 2008-10-05  Bruno Haible  <bruno@clisp.org>
45626             Jim Meyering  <jim@meyering.net>
45627
45628         Add an option for ignoring EPIPE during close_stdout.
45629         * lib/closeout.h: Include <stdbool.h>.
45630         (close_stdout_set_ignore_EPIPE): New declaration.
45631         * lib/closeout.c: Include <stdbool.h>.
45632         (ignore_EPIPE): New variable.
45633         (close_stdout_set_ignore_EPIPE): New function.
45634         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
45635         * lib/close-stream.c (close_stream): Mention the possible EPIPE
45636         failure.
45637         * modules/closeout (Depends-on): Add stdbool.
45638
45639 2008-10-05  Bruno Haible  <bruno@clisp.org>
45640
45641         * modules/accept: New file.
45642         * modules/bind: New file.
45643         * modules/connect: New file.
45644         * modules/getpeername: New file.
45645         * modules/getsockname: New file.
45646         * modules/getsockopt: New file.
45647         * modules/listen: New file.
45648         * modules/recv: New file.
45649         * modules/recvfrom: New file.
45650         * modules/send: New file.
45651         * modules/sendto: New file.
45652         * modules/setsockopt: New file.
45653         * modules/socket: New file.
45654         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
45655         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
45656         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
45657         the particular module is requested. Add a link warning when the
45658         particular module is not requested.
45659         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
45660         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
45661         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
45662         the particular module is requested.
45663         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
45664         gl_SYS_SOCKET_H_DEFAULTS): New macros.
45665         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
45666         * modules/sys_socket (Depends-on): Add link-warning.
45667         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
45668         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
45669         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
45670         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
45671         GL_LINK_WARNING.
45672         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
45673         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
45674         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
45675         * doc/posix-functions/getpeername.texi: Mention the new module
45676         'getpeername'.
45677         * doc/posix-functions/getsockname.texi: Mention the new module
45678         'getsockname'.
45679         * doc/posix-functions/getsockopt.texi: Mention the new module
45680         'getsockopt'.
45681         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
45682         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
45683         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
45684         * doc/posix-functions/send.texi: Mention the new module 'send'.
45685         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
45686         * doc/posix-functions/setsockopt.texi: Mention the new module
45687         'setsockopt'.
45688         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
45689         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
45690         listen, connect, accept.
45691         * modules/select-tests (Depends-on): Likewise.
45692
45693 2008-10-05  Bruno Haible  <bruno@clisp.org>
45694
45695         * lib/winsock.c (strerror): Remove unused #undef.
45696         (rpl_close): Remove unused local variable.
45697
45698         * modules/sys_socket (Depends-on); Add errno.
45699
45700 2008-10-05  Bruno Haible  <bruno@clisp.org>
45701
45702         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
45703         (select): Add a link warning when the 'select' module is not used.
45704         * modules/sys_select (Depends-on): Add link-warning.
45705         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
45706         Suggested by Paolo Bonzini.
45707
45708 2008-10-05  Jim Meyering  <meyering@redhat.com>
45709
45710         bootstrap: check for LT_INIT more portably
45711         * build-aux/bootstrap: Avoid using grep -E, since it's not
45712         portable enough.  Suggestion from Bruno Haible.
45713
45714 2008-10-05  Bruno Haible  <bruno@clisp.org>
45715
45716         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
45717         as being fixed by gnulib.
45718
45719 2008-10-05  Bruno Haible  <bruno@clisp.org>
45720
45721         * modules/select-tests: New file, mostly copied from
45722         modules/sys_select-tests.
45723         * tests/test-select.c: New file, mostly copied from
45724         tests/test-sys_select.c.
45725         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
45726         * modules/sys_select-tests (Depends-on): Remove all dependencies.
45727         (Makefile.am): Remove test_sys_select_LDADD.
45728
45729         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
45730         to an undefined symbol, for an error message.
45731         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
45732         (gl_SYS_SELECT_H_DEFAULTS): New macro.
45733         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
45734         winsock-select.c here.
45735         * modules/sys_select (Files): Remove lib/winsock-select.c.
45736         (Depends-on): Remove alloca.
45737         (Makefile.am): Substitute GNULIB_SELECT.
45738         * modules/select: New file.
45739         * doc/posix-functions/select.texi: Update.
45740
45741 2008-10-05  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
45744         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
45745         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
45746         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
45747         getdtablesize.
45748         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
45749         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
45750
45751 2008-10-05  Bruno Haible  <bruno@clisp.org>
45752
45753         * modules/getdtablesize-tests: New file.
45754         * tests/test-getdtablesize.c: New file.
45755
45756         New module 'getdtablesize'.
45757         * lib/unistd.in.h (getdtablesize): New declaration.
45758         * lib/getdtablesize.c: New file.
45759         * m4/getdtablesize.m4: New file.
45760         * modules/getdtablesize: New file.
45761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45762         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
45763         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
45764         HAVE_GETDTABLESIZE.
45765         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
45766
45767 2008-10-05  Bruno Haible  <bruno@clisp.org>
45768
45769         * modules/sched (Makefile.am): Fix typo.
45770         Reported by Simon Josefsson.
45771
45772 2008-10-05  Jim Meyering  <meyering@redhat.com>
45773
45774         bootstrap: check for LT_INIT, too
45775         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
45776         are deprecated.  Suggestion from Ralf Wildenhues.
45777
45778 2008-10-05  Bruno Haible  <bruno@clisp.org>
45779
45780         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
45781         overriding them by ours.
45782         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
45783
45784 2008-10-05  Jim Meyering  <meyering@redhat.com>
45785
45786         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
45787         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
45788         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
45789
45790 2008-10-04  Bruno Haible  <bruno@clisp.org>
45791
45792         * modules/dup2 (License): Change to LGPLv2+.
45793         * modules/sleep (License): Likewise.
45794         * modules/perror (License): Likewise.
45795         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
45796         Blake.
45797         * modules/signal (License): Likewise.
45798         * modules/sigprocmask (License): Likewise.
45799         * modules/raise (License): Change to LGPLv2+, with approval by Jim
45800         Meyering.
45801
45802 2008-10-04  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
45805         Reported by Rainer Tammer <tammer@tammer.net>.
45806
45807 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
45808             Bruno Haible  <bruno@clisp.org>
45809
45810         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
45811         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
45812         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
45813
45814 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
45815
45816         filevercmp: new module
45817         * lib/filevercmp.h: New function filevercmp comparing version strings.
45818         * lib/filevercmp.c: Implementation of filevercmp function.
45819         * modules/filevercmp: Module metadata.
45820         * tests/test-filevercmp.c: Unit test for new module.
45821         * modules/filevercmp-tests: Unit test metadata.
45822         * MODULES.html.sh: Add filevercmp module.
45823
45824 2008-10-03  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/c-ctype.h: Add comment.
45827         Reported by Jim Meyering.
45828
45829 2008-10-02  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/posix_spawn-internal (Depends-on): Add 'open'.
45832
45833 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45834
45835         * build-aux/bootstrap: Allow renaming bootstrap, and change the
45836         name of bootstrap.conf accordingly.
45837
45838 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45839
45840         * build-aux/bootstrap: Install git-merge-changelog configuration
45841         items into .gitconfig if needed.
45842
45843 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
45844
45845         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
45846         git repository, and initialize/update it accordingly.
45847
45848 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
45849
45850         * modules/fsync-tests: New file.
45851         * tests/test-fsync.c: New file.
45852
45853         New module 'fsync'.
45854         * lib/fsync.c: New file.
45855         * m4/fsync.m4: New file.
45856         * modules/fsync: New file.
45857         * lib/unistd.in.h (fsync): New declaration.
45858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
45859         GNULIB_FSYNC and HAVE_FSYNC.
45860         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
45861         * MODULES.html.sh (posix_functions): Add fsync.
45862         * doc/posix-functions/fsync.texi: Mention the new module.
45863
45864 2008-10-02  Jim Meyering  <meyering@redhat.com>
45865
45866         fts.c: sync with similar code from coreutils' remove.c
45867         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
45868         Guard also with "#if defined __linux__", since for now at least,
45869         this code is Linux-kernel-specific.
45870
45871 2008-10-02  Jim Meyering  <meyering@redhat.com>
45872
45873         fts: bug fixes
45874         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
45875         Include <sys/vfs.h>, not <sys/statfs.h>.
45876
45877         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
45878         Include <sys/vfs.h>, not <sys/statfs.h>.
45879
45880 2008-10-01  Bruno Haible  <bruno@clisp.org>
45881
45882         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
45883         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
45884         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
45885         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
45886         * doc/posix-functions/posix_spawnp.texi: Likewise.
45887         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
45888         whether posix_spawn actually works.
45889         * m4/pipe.m4 (gl_PIPE): Likewise.
45890         * modules/execute (Files): Add m4/posix_spawn.m4.
45891         * modules/pipe (Files): Add m4/posix_spawn.m4.
45892         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
45893
45894 2008-10-01  Jim Meyering  <meyering@redhat.com>
45895
45896         remove trailing spaces
45897         * NEWS: Likewise.
45898         * lib/poll.c (poll): Likewise.
45899         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
45900         * lib/winsock.c (rpl_close): Likewise.
45901         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
45902         * modules/yield: Likewise.
45903         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
45904         * tests/test-sys_select.c (connect_to_socket): Likewise.
45905
45906         fts.c: adjust a new interface to be more generally useful
45907         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
45908         (fts_build): Adjust caller.
45909
45910 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45911
45912         * modules/cond-tests: New file.
45913         * tests/test-cond.c: New file.
45914
45915 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45916             Bruno Haible  <bruno@clisp.org>
45917
45918         * modules/cond (Dependencies): Add errno, time.
45919         * lib/glthread/cond.h: Include <time.h>.
45920         (gl_cond_define, gl_cond_define_initialized): Use the same definition
45921         across platforms.
45922
45923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45924             Bruno Haible  <bruno@clisp.org>
45925
45926         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
45927
45928 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45929             Bruno Haible  <bruno@clisp.org>
45930
45931         * modules/tls-tests (Depends-on): Add thread, yield.
45932         (configure.ac): Remove all checks.
45933         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
45934         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45935         gl_thread_self): Remove definitions. Include glthread/thread.h and
45936         glthread/yield.h instead.
45937         (test_tls): Pass an additional NULL argument to gl_thread_join.
45938
45939 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45940             Bruno Haible  <bruno@clisp.org>
45941
45942         * modules/lock-tests (Depends-on): Add thread, yield.
45943         (configure.ac): Remove all checks.
45944         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
45945         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
45946         gl_thread_self): Remove definitions. Include glthread/thread.h and
45947         glthread/yield.h instead.
45948         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
45949         additional NULL argument to gl_thread_join.
45950
45951 2008-09-30  Bruno Haible  <bruno@clisp.org>
45952
45953         Fix the Win32 implementation of the 'thread' module.
45954         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
45955         pointer type.
45956         (gl_thread_self): Invoke gl_thread_self_func.
45957         (gl_thread_self_func): New declaration.
45958         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
45959         (do_init_self_key, init_self_key): New functions.
45960         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
45961         Remove some fields.
45962         (running_threads, running_lock): Remove variables.
45963         (get_current_thread_handle): New function.
45964         (gl_thread_self_func, wrapper_func, glthread_create_func,
45965         glthread_join_func, gl_thread_exit_func): Largely rewritten and
45966         simplified.
45967
45968 2008-09-30  Bruno Haible  <bruno@clisp.org>
45969
45970         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
45971         files.
45972
45973 2008-09-30  Jim Meyering  <meyering@redhat.com>
45974
45975         fts.m4: correct the test for statfs.f_type
45976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
45977         when checking for statfs.f_type.
45978
45979 2008-09-15  Simon Josefsson  <simon@josefsson.org>
45980
45981         tests: avoid some compiler warnings
45982         * tests/test-memchr.c (main): Pass NULL indirectly.
45983         * tests/test-getdate.c (main): Remove unused variable 'ret'.
45984
45985 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
45986
45987         getdate.y: disallow countable dayshifts like "4 yesterday ago"
45988         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
45989         exactly specified dayshifts.
45990         (dayshift): New rule.
45991         (rel): Add dayshift.
45992         (relative_time_table) [tomorrow, yesterday, today, now]:
45993         Use tDAY_SHIFT in place of tDAY_UNIT.
45994         * tests/test-getdate.c: Add tests for now-disallowed countable
45995         dayshifts, e.g., "4 yesterday ago".
45996
45997 2008-09-29  Bruno Haible  <bruno@clisp.org>
45998
45999         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46000         * tests/test-posix_spawn1.in.sh: Renamed from
46001         tests/test-posix_spawn.in.sh.
46002         * tests/test-posix_spawn2.c: New file.
46003         * tests/test-posix_spawn2.in.sh: New file.
46004         * modules/posix_spawnp-tests (Files): Update.
46005         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46006
46007 2008-09-29  Bruno Haible  <bruno@clisp.org>
46008
46009         Propagate effects of putenv/setenv/unsetenv to child processes.
46010         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46011         * lib/pipe.c (create_pipe): Likewise.
46012
46013 2008-09-29  Bruno Haible  <bruno@clisp.org>
46014
46015         Enable use of shell scripts as executables in mingw.
46016         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46017         run the program as a shell script.
46018         * lib/pipe.c (create_pipe): Likewise.
46019         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46020         resulting array.
46021
46022 2008-09-29  Eric Blake  <ebb9@byu.net>
46023
46024         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46025
46026 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46027
46028         * doc/posix-functions/accept.texi: Update mingw problems.
46029         * doc/posix-functions/bind.texi: Update mingw problems.
46030         * doc/posix-functions/close.texi: Update mingw problems.
46031         * doc/posix-functions/connect.texi: Update mingw problems.
46032         * doc/posix-functions/getpeername.texi: Update mingw problems.
46033         * doc/posix-functions/getsockname.texi: Update mingw problems.
46034         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46035         * doc/posix-functions/ioctl.texi: Update mingw problems.
46036         * doc/posix-functions/listen.texi: Update mingw problems.
46037         * doc/posix-functions/recv.texi: Update mingw problems.
46038         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46039         * doc/posix-functions/select.texi: Update mingw problems.
46040         * doc/posix-functions/send.texi: Update mingw problems.
46041         * doc/posix-functions/sendto.texi: Update mingw problems.
46042         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46043         * doc/posix-functions/socket.texi: Update mingw problems.
46044
46045 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46046             Bruno Haible  <bruno@clisp.org>
46047
46048         * lib/sys_select.in.h: Include sys/time.h.
46049         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46050         * modules/sys_select: Depend on sys_time.
46051         * tests/test-sys_select.c: Test that sys/select.h defines struct
46052         timeval fully.
46053
46054 2008-09-29  Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46057         * lib/sys_select.in.h: Likewise.
46058
46059 2008-09-29  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46062
46063 2008-09-29  Bruno Haible  <bruno@clisp.org>
46064
46065         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46066         Set LIBSOCKET instead of augmenting LIBS.
46067         * modules/sockets (Link): New section.
46068         * modules/sockets-tests (test_sockets_LDADD): New variable.
46069         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46070         * modules/poll-tests (test_poll_LDADD): New variable.
46071         * NEWS: Document the change.
46072
46073 2008-09-29  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46076         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46077         ARPA_INET_H directly.
46078         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46079
46080 2008-09-28  Bruno Haible  <bruno@clisp.org>
46081
46082         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46083         from gl_HEADER_SYS_SOCKET.
46084         (gl_HEADER_SYS_SOCKET): Invoke it.
46085         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46086
46087 2008-09-28  Bruno Haible  <bruno@clisp.org>
46088
46089         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46090         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46091         Needed on OSF/1 4.0.
46092
46093 2008-09-28  Bruno Haible  <bruno@clisp.org>
46094
46095         Override open more carefully.
46096         * lib/open.c (orig_open): New function.
46097         (rpl_open): Use orig_open instead of open.
46098         * lib/fcntl.in.h: Add special invocation convention.
46099         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46100         (gl_FUNC_OPEN): Invoke it.
46101
46102         Override freopen more carefully.
46103         * lib/freopen.c (orig_freopen): New function.
46104         (rpl_freopen): Use orig_freopen instead of freopen.
46105         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46106         (gl_FUNC_FREOPEN): Invoke it.
46107
46108         Override fopen more carefully.
46109         * lib/fopen.c (orig_fopen): New function.
46110         (rpl_fopen): Use orig_fopen instead of fopen.
46111         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46112         (gl_FUNC_FOPEN): Invoke it.
46113         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46114
46115 2008-09-28  Bruno Haible  <bruno@clisp.org>
46116
46117         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46118         SIGPIPE.
46119
46120 2008-09-28  Bruno Haible  <bruno@clisp.org>
46121
46122         * tests/test-sigaction.c (handler, main): Disable the check whether
46123         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46124         glibc systems with LinuxThreads.
46125
46126 2008-09-28  Bruno Haible  <bruno@clisp.org>
46127
46128         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46129
46130         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46131         with AIX xlc.
46132         * lib/fcntl.in.h (open): Likewise.
46133         Reported by Rainer Tammer <tammer@tammer.net>.
46134
46135 2008-09-28  Bruno Haible  <bruno@clisp.org>
46136
46137         * modules/posix_spawnp-tests: New file.
46138         * tests/test-posix_spawn.c: New file.
46139         * tests/test-posix_spawn.in.sh: New file.
46140
46141         New module 'posix_spawnp'.
46142         * modules/posix_spawnp: New file.
46143         * lib/spawnp.c: New file, from GNU libc with modifications.
46144         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46145
46146         New module 'posix_spawn'.
46147         * modules/posix_spawn: New file.
46148         * lib/spawn.c: New file, from GNU libc with modifications.
46149         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46150
46151         New module 'posix_spawnattr_destroy'.
46152         * modules/posix_spawnattr_destroy: New file.
46153         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46154         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46155         module.
46156
46157         New module 'posix_spawnattr_setsigmask'.
46158         * modules/posix_spawnattr_setsigmask: New file.
46159         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46160         modifications.
46161         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46162         new module.
46163
46164         New module 'posix_spawnattr_getsigmask'.
46165         * modules/posix_spawnattr_getsigmask: New file.
46166         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46167         modifications.
46168         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46169         new module.
46170
46171         New module 'posix_spawnattr_setsigdefault'.
46172         * modules/posix_spawnattr_setsigdefault: New file.
46173         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46174         modifications.
46175         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46176         new module.
46177
46178         New module 'posix_spawnattr_getsigdefault'.
46179         * modules/posix_spawnattr_getsigdefault: New file.
46180         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46181         modifications.
46182         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46183         new module.
46184
46185         New module 'posix_spawnattr_setschedpolicy'.
46186         * modules/posix_spawnattr_setschedpolicy: New file.
46187         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46188         modifications.
46189         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46190         new module.
46191
46192         New module 'posix_spawnattr_getschedpolicy'.
46193         * modules/posix_spawnattr_getschedpolicy: New file.
46194         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46195         modifications.
46196         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46197         new module.
46198
46199         New module 'posix_spawnattr_setschedparam'.
46200         * modules/posix_spawnattr_setschedparam: New file.
46201         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46202         modifications.
46203         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46204         new module.
46205
46206         New module 'posix_spawnattr_getschedparam'.
46207         * modules/posix_spawnattr_getschedparam: New file.
46208         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46209         modifications.
46210         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46211         new module.
46212
46213         New module 'posix_spawnattr_setpgroup'.
46214         * modules/posix_spawnattr_setpgroup: New file.
46215         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46216         modifications.
46217         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46218         module.
46219
46220         New module 'posix_spawnattr_getpgroup'.
46221         * modules/posix_spawnattr_getpgroup: New file.
46222         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46223         modifications.
46224         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46225         module.
46226
46227         New module 'posix_spawnattr_setflags'.
46228         * modules/posix_spawnattr_setflags: New file.
46229         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46230         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46231         module.
46232
46233         New module 'posix_spawnattr_getflags'.
46234         * modules/posix_spawnattr_getflags: New file.
46235         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46236         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46237         module.
46238
46239         New module 'posix_spawnattr_init'.
46240         * modules/posix_spawnattr_init: New file.
46241         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46242         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46243         module.
46244
46245         New module 'posix_spawn_file_actions_destroy'.
46246         * modules/posix_spawn_file_actions_destroy: New file.
46247         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46248         modifications.
46249         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46250         the new module.
46251
46252         New module 'posix_spawn_file_actions_addopen'.
46253         * modules/posix_spawn_file_actions_addopen: New file.
46254         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46255         modifications.
46256         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46257         the new module.
46258
46259         New module 'posix_spawn_file_actions_adddup2'.
46260         * modules/posix_spawn_file_actions_adddup2: New file.
46261         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46262         modifications.
46263         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46264         the new module.
46265
46266         New module 'posix_spawn_file_actions_addclose'.
46267         * modules/posix_spawn_file_actions_addclose: New file.
46268         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46269         modifications.
46270         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46271         the new module.
46272
46273         New module 'posix_spawn_file_actions_init'.
46274         * modules/posix_spawn_file_actions_init: New file.
46275         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46276         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46277         new module.
46278
46279         New module 'posix_spawn-internal'.
46280         * modules/posix_spawn-internal: New file.
46281         * lib/spawn_int.h: New file, from GNU libc with modifications.
46282         * lib/spawni.c: New file, from GNU libc with modifications.
46283         * m4/posix_spawn.m4: New file.
46284
46285         New module 'spawn'.
46286         * modules/spawn: New file.
46287         * lib/spawn.in.h: New file, from GNU libc with modifications.
46288         * m4/spawn_h.m4: New file.
46289         * doc/posix-headers/spawn.texi: Mention the new module.
46290
46291 2008-09-28  Bruno Haible  <bruno@clisp.org>
46292
46293         * modules/sched-tests: New file.
46294         * tests/test-sched.c: New file.
46295
46296         New module 'sched'.
46297         * modules/sched: New file.
46298         * lib/sched.in.h: New file.
46299         * m4/sched_h.m4: New file.
46300         * doc/posix-headers/sched.texi: Mention the new module.
46301
46302 2008-09-27  Eric Blake  <ebb9@byu.net>
46303
46304         Fix previous patch, and tweak references to $0.
46305         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46306         (func_version, func_gnulib_dir): Don't call this program
46307         gnulib-tool.
46308         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46309         with using $0 in function.
46310         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46311         (func_fatal_error): Reuse the name the user invoked us with.
46312
46313 2008-09-27  Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46316         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46317         (gl_ICONV_H): Not here.
46318         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46319         instead of assigning ICONV_H directly.
46320
46321         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46323         WCHAR_H directly.
46324
46325 2008-09-27  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46328         * modules/arpa_inet (Depends-on): Add link-warning.
46329         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46330         * modules/unistd (Makefile.am): Likewise.
46331
46332 2008-09-26  Bruno Haible  <bruno@clisp.org>
46333
46334         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46335         variables.
46336         (func_version): Essentially copied from gnulib-tool.
46337         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46338         func_readlink): Copied from gnulib-tool.
46339
46340 2008-09-26  Bruno Haible  <bruno@clisp.org>
46341
46342         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46343         invoking git-version-gen.
46344
46345 2008-09-26  Bruno Haible  <bruno@clisp.org>
46346
46347         * posix-modules: Update to directory names changed on 2008-01-19.
46348         Remove commas in output before splitting into words. No more need to
46349         avoid 'ftruncate' since 2007-02-19.
46350
46351 2008-09-26  Bruno Haible  <bruno@clisp.org>
46352
46353         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46354
46355 2008-09-26  Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46358         * modules/fwriteerror (Depends-on): Add errno.
46359
46360 2008-09-26  Bruno Haible  <bruno@clisp.org>
46361
46362         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46363         * tests/test-vc-list-files-cvs.sh: Likewise.
46364
46365 2008-09-26  Bruno Haible  <bruno@clisp.org>
46366
46367         * doc/posix-headers/sys_resource.texi: Reorder items.
46368
46369 2008-09-26  Jim Meyering  <meyering@redhat.com>
46370
46371         fts: tweak inode comparison function
46372         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46373         inode numbers, as documented.
46374
46375         fts: sort dirent entries on inode number before traversing
46376         This avoids a quadratic, seek-related performance penalty when
46377         operating on a directory containing many entries (measurable at 10k;
46378         3.5 hours at 2 million entries with a cold cache) on certain types
46379         of file systems, including ext3 and ext4, but not tmpfs.
46380         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46381         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46382         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46383         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46384         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46385         (fts_build): Set the stat.st_ino member from D_INO.
46386         If it is likely to be useful, sort dirent entries on inode number.
46387
46388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46389         and the struct statfs.f_type member.
46390         * modules/fts (Depends-on): Add d-ino.
46391
46392 2008-09-26  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/sigpipe-die (Depends-on): Add sigpipe.
46395
46396         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46397         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46398         and GNULIB_STDIO_H_SIGPIPE are set.
46399         * lib/stdio-write.c: New file.
46400         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46401         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46402         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46403         REPLACE_STDIO_WRITE_FUNCS.
46404         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46405         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46406         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46407         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46408         * modules/stdio (Files): Add lib/stdio-write.c.
46409         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46410         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46411         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46412         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46413         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46414         REPLACE_FPRINTF_POSIX.
46415         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46416         REPLACE_PRINTF_POSIX.
46417         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46418         REPLACE_VFPRINTF_POSIX.
46419         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46420         REPLACE_VPRINTF_POSIX.
46421         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46422         SIGPIPE issue.
46423         * doc/posix-functions/fputc.texi: Likewise.
46424         * doc/posix-functions/fputs.texi: Likewise.
46425         * doc/posix-functions/fwrite.texi: Likewise.
46426         * doc/posix-functions/printf.texi: Likewise.
46427         * doc/posix-functions/putc.texi: Likewise.
46428         * doc/posix-functions/putchar.texi: Likewise.
46429         * doc/posix-functions/puts.texi: Likewise.
46430         * doc/posix-functions/vfprintf.texi: Likewise.
46431         * doc/posix-functions/vprintf.texi: Likewise.
46432
46433         * modules/safe-write (Depends-on): Add write.
46434
46435         * modules/sigpipe-tests: New file.
46436         * tests/test-sigpipe.c: New file.
46437         * tests/test-sigpipe.sh: New file.
46438
46439         * modules/write: New file.
46440         * lib/unistd.in.h: Include <sys/types.h>.
46441         (write): New declaration.
46442         * lib/write.c: New file.
46443         * m4/write.m4: New file.
46444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46445         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46446         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
46447         GNULIB_WRITE, REPLACE_WRITE.
46448         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
46449         and the SIGPIPE issue.
46450
46451         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
46452         (raise): New declaration.
46453         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
46454         (ext_signal): New function.
46455         (rpl_raise): New function.
46456         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
46457         GNULIB_SIGNAL_H_SIGPIPE.
46458         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
46459         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
46460
46461         * modules/sigpipe: New file.
46462         * m4/sigpipe.m4: New file.
46463
46464 2008-09-25  Derek Price  <derek@ximbiot.com>
46465             Bruno Haible  <bruno@clisp.org>
46466
46467         * gnulib-tool (func_import): Report all license incompatibilities, not
46468         just the first one.
46469
46470 2008-09-25  Bruno Haible  <bruno@clisp.org>
46471
46472         * gnulib-tool (func_import): When computing the edits, consider not
46473         only the Makefile.ams that exist but also those that will be generated.
46474
46475 2008-09-25  Simon Josefsson  <simon@josefsson.org>
46476
46477         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
46478         fixes gnulib-tool --test warning about duplicate dependency.
46479
46480 2008-09-25  Bruno Haible  <bruno@clisp.org>
46481
46482         * gnulib-tool: Don't ask the user to perform edits in the generated
46483         Makefile.ams.
46484         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
46485         apply to the Makefile.am being generated.
46486         (func_emit_tests_Makefile_am): Execute edits that apply to the
46487         Makefile.am being generated.
46488         (func_import): Setup list of Makefile.am edits before emitting the
46489         Makefile.ams, not at the end.
46490         (func_create_testdir): Update.
46491         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46492
46493 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46494
46495         * gnulib-tool (func_import): Store the --tests-base option in the
46496         comment in gnulib-cache.m4.
46497
46498 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
46499
46500         * NEWS: Document increased portability that sys_select now provides.
46501
46502         * lib/sys_select.in.h: Install select wrapper.
46503         * lib/sys_socket.in.h: Use more descriptive name when there is no
46504         select wrapper.
46505         * lib/winsock-select.c: New.
46506         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
46507         Require gl_HEADER_SYS_SOCKET.
46508         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
46509         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
46510         * tests/test-sys_select.c: Add functional tests.
46511
46512 2008-09-24  Eric Blake  <ebb9@byu.net>
46513
46514         open, fopen: close fd leak in last patch
46515         * lib/open.c (rpl_open): Close fd before returning error.
46516         * lib/fopen.c (rpl_fopen): Close fd before returning error.
46517         * doc/posix-functions/open.texi (open): Document that Irix also
46518         has the bug.
46519         * doc/posix-functions/fopen.texi (fopen): Likewise.
46520         Reported by Paolo Bonzini.
46521
46522 2008-09-24  Bruno Haible  <bruno@clisp.org>
46523
46524         Ensure that a filename ending in a slash cannot be used to access a
46525         non-directory.
46526         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
46527         to check whether it's really a directory.
46528         * lib/fopen.c: Include fcntl.h, unistd.h.
46529         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
46530         and fdopen().
46531         * modules/fopen (Depends-on): Add unistd.
46532         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
46533         * tests/test-fopen.c (main): Likewise.
46534         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
46535         * doc/posix-functions/fopen.texi: Likewise.
46536         Reported by Eric Blake.
46537
46538 2008-09-23  Eric Blake  <ebb9@byu.net>
46539
46540         c-stack: avoid compiler optimizations when provoking overflow
46541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
46542         recursion harder to optimize, to ensure a stack overflow occurs.
46543         * tests/test-c-stack.c (recurse): Likewise.
46544         Borrowed from libsigsegv.
46545
46546         c-stack: work around Irix sigaltstack bug
46547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
46548         whether sigaltstack uses wrong end of stack_t (copied in part from
46549         libsigsegv).
46550         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
46551         Irix bug, without requiring an over-allocation.
46552         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
46553         bug.
46554
46555         fopen: document mingw bug on directories
46556         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
46557         not allowing a stream visiting a directory, even though reading
46558         from such a stream is not portable.
46559
46560 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46561
46562         * lib/poll.c: Rewrite.
46563         * modules/poll: Depend on alloca.
46564
46565 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46566
46567         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
46568         instead define prototypes for a full set of wrappers.  Ensure
46569         that Cygwin does not use the compatibility code, which is only
46570         for MinGW.
46571         * lib/winsock.c: New.
46572         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
46573         * modules/sys_socket: Add lib/winsock.c.
46574
46575         * modules/poll-tests: Add errno and perror.
46576         * tests/test-poll.c: Use ioctl, not ioctlsocket.
46577
46578 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
46579
46580         * tests/test-poll.c: Downgrade minimum needed Winsock version.
46581
46582 2008-09-23  Bruno Haible  <bruno@clisp.org>
46583
46584         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
46585         * doc/glibc-functions/*: Likewise.
46586
46587 2008-09-23  Simon Josefsson  <simon@josefsson.org>
46588
46589         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
46590         success.
46591
46592 2008-09-22  Eric Blake  <ebb9@byu.net>
46593             Bruno Haible  <bruno@clisp.org>
46594
46595         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
46596         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
46597         supply %A but mishandle pseudo-NaN.
46598         Reported by Simon Josefsson.
46599
46600 2008-09-21  Bruno Haible  <bruno@clisp.org>
46601
46602         * tests/test-lock.c (main): Tweak skip message.
46603         * tests/test-tls.c (main): Likewise.
46604
46605 2008-09-21  Bruno Haible  <bruno@clisp.org>
46606
46607         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
46608         whether 'struct sigaction' has sa_sigaction here...
46609         (gl_PREREQ_SIG_HANDLER_H): ... not here.
46610         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
46611
46612 2008-09-21  Bruno Haible  <bruno@clisp.org>
46613
46614         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
46615         section.
46616         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
46617         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
46618         the new section.
46619         (Support for obsolete systems lacking POSIX:2001): New section.
46620         (String handling <string.h>): Move strdup to the new section.
46621         Suggested by Simon Josefsson and Paolo Bonzini.
46622
46623 2008-09-21  Bruno Haible  <bruno@clisp.org>
46624
46625         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
46626         exponents in %e and %g results on 'long double'. Needed for mingw's
46627         improved *printf functions.
46628         * tests/test-vasprintf-posix.c (test_function): Likewise.
46629         * tests/test-snprintf-posix.h (test_function): Likewise.
46630         * tests/test-sprintf-posix.h (test_function): Likewise.
46631         Reported by Eric Blake.
46632
46633 2008-09-21  Bruno Haible  <bruno@clisp.org>
46634
46635         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
46636         * tests/test-sprintf-posix.h (test_function): Likewise.
46637
46638 2008-09-21  Bruno Haible  <bruno@clisp.org>
46639
46640         * modules/getpass (Depends-on): Add strdup-posix.
46641
46642         New module 'strdup-posix'.
46643         * modules/strdup-posix: New file.
46644         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
46645         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
46646         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46647         REPLACE_STRDUP.
46648         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
46649         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
46650         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46651         strdup-posix.
46652
46653         * modules/strdup (Depends-on): Remove malloc-posix.
46654
46655 2008-09-20  Bruno Haible  <bruno@clisp.org>
46656
46657         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
46658         Wildenhues.
46659
46660 2008-09-20  Bruno Haible  <bruno@clisp.org>
46661
46662         Ensure that wint_t gets defined on IRIX 5.3.
46663         * lib/wchar.in.h (wint_t): Define if not defined by the system.
46664         * lib/wctype.in.h (wint_t): Likewise.
46665         (__wctype_wint_t): Remove type.
46666         (isw*): Use wint_t instead of __wctype_wint_t.
46667         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
46668         * modules/wchar (Files): Add m4/wint_t.m4.
46669         (Makefile.am): Substitute HAVE_WINT_T.
46670         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
46671         * tests/test-wctype.c: Check that wint_t is defined.
46672         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
46673         * doc/posix-headers/wctype.texi: Likewise.
46674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46675
46676 2008-09-18  Bruno Haible  <bruno@clisp.org>
46677
46678         * gnulib-tool (func_exit): Update comment.
46679
46680 2008-09-18  Simon Josefsson  <simon@josefsson.org>
46681
46682         * modules/getaddrinfo (Depends-on): Remove strdup, this module
46683         assumes strdup exists and does not depend on strdup to return
46684         ENOMEM on out of memory conditions.
46685
46686 2008-09-18  Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
46689         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
46690         digits for the exponent.
46691
46692 2008-09-18  Jim Meyering  <meyering@redhat.com>
46693             Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/vasnprintf.c (decimal_point_char): Define also if
46696         NEED_PRINTF_INFINITE_LONG_DOUBLE.
46697
46698 2008-09-16  Bruno Haible  <bruno@clisp.org>
46699         and Eric Blake  <ebb9@byu.net>
46700
46701         vasnprintf: support Irix 5.3
46702         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
46703         that mishandle long double infinity.
46704         Reported by Tom G. Christensen.
46705
46706 2008-09-16  Bruno Haible  <bruno@clisp.org>
46707
46708         * doc/glibc-functions/scandir.texi: Mention the function is missing on
46709         Solaris 9.
46710         * doc/glibc-functions/alphasort.texi: Likewise.
46711         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
46712
46713 2008-09-16  Jim Meyering  <meyering@redhat.com>
46714
46715         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
46716         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
46717         a umask modification leak out of a subshell.  Otherwise, the
46718         opensolaris /bin/sh would be accepted and thus cause unwarranted
46719         failures in the coreutils test suite.
46720
46721 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
46722
46723         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
46724         to succeed.
46725
46726 2008-09-16  Jim Meyering  <meyering@redhat.com>
46727
46728         avoid spurious test failure when library is built without ACL support
46729         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
46730         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
46731         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
46732         * tests/test-copy-acl.sh: Likewise.
46733
46734 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46735
46736         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
46737         based on character occurrence counts.
46738
46739 2008-09-15  Eric Blake  <ebb9@byu.net>
46740
46741         tests: avoid some compiler warnings
46742         * tests/test-memchr.c (main): Pass NULL indirectly.
46743         * tests/test-closein.c (main): Avoid unused variable.
46744
46745 2008-09-15  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
46748         are missing on OpenBSD 4.0 individually.
46749         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46750
46751 2008-09-15  Bruno Haible  <bruno@clisp.org>
46752
46753         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
46754         * doc/posix-functions/strerror.texi: Mention also Cygwin.
46755         * doc/posix-functions/perror.texi: Likewise.
46756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
46757         is missing.
46758         Reported by Eric Blake.
46759
46760         * lib/errno.in.h: Use replacement values >= 2000.
46761         Reported by Eric Blake.
46762
46763 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46764
46765         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
46766         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
46767         limit.
46768         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
46769         compareseq was aborted.
46770
46771 2008-09-14  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
46774         yvec_edit_count.
46775         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
46776         (fstrcmp_bounded): Simplify result computation accordingly.
46777
46778 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46779
46780         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
46781         (fstrcmp): Define in terms of fstrcmp_bounded.
46782         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
46783         lower_bound argument.
46784         Return quickly if the result is certainly < lower_bound.
46785         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
46786
46787 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46788
46789         * lib/diffseq.h (EARLY_ABORT): New macro.
46790         (compareseq): Change return type to bool. Return true when EARLY_ABORT
46791         evaluates to true.
46792
46793 2008-09-14  Bruno Haible  <bruno@clisp.org>
46794
46795         * modules/perror-tests: New file.
46796         * tests/test-perror.sh: New file.
46797         * tests/test-perror.c: New file.
46798
46799         New module 'perror'.
46800         * lib/stdio.in.h (perror): New declaration.
46801         * lib/perror.c: New file.
46802         * m4/perror.m4: New file.
46803         * modules/perror: New file.
46804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
46805         * doc/posix-functions/perror.texi: Mention the perror module.
46806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
46807         REPLACE_PERROR.
46808         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
46809         REPLACE_PERROR.
46810
46811 2008-09-14  Bruno Haible  <bruno@clisp.org>
46812
46813         * modules/stdio (Makefile.am): Reorder to match the order in
46814         lib/stdio.in.h.
46815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46816
46817 2008-09-13  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
46820
46821 2008-09-13  Bruno Haible  <bruno@clisp.org>
46822
46823         Extend strerror to cover the added errno values.
46824         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
46825         (rpl_strerror): Provide error messages for the added errno values and
46826         for the WSA* values.
46827         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
46828         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
46829         strerror.
46830         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
46831         * modules/strerror (Depends-on): Add errno.
46832         * doc/posix-functions/strerror.texi: Document the change.
46833         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
46834         and EOVERFLOW.
46835
46836 2008-09-13  Bruno Haible  <bruno@clisp.org>
46837
46838         * modules/EOVERFLOW: Remove file.
46839         * m4/eoverflow.m4: Remove file.
46840         * modules/EOVERFLOW-tests: Remove file.
46841         * tests/test-EOVERFLOW.c: Remove file.
46842         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
46843         * modules/ftell (Depends-on): Likewise.
46844         * modules/getdelim (Depends-on): Likewise.
46845         * modules/getugroups (Depends-on): Likewise.
46846         * modules/poll (Depends-on): Likewise.
46847         * modules/snprintf (Depends-on): Likewise.
46848         * modules/sprintf-posix (Depends-on): Likewise.
46849         * modules/vasnprintf (Depends-on): Likewise.
46850         * modules/vasprintf (Depends-on): Likewise.
46851         * modules/vfprintf-posix (Depends-on): Likewise.
46852         * modules/vsnprintf (Depends-on): Likewise.
46853         * modules/vsprintf-posix (Depends-on): Likewise.
46854         * modules/xvasprintf (Depends-on): Likewise.
46855         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46856         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
46857         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
46858         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
46859         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46860         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
46861         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
46862         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
46863         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46864         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
46865         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
46866         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
46867         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46868         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
46869         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
46870         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
46871         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46872         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
46873         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
46874         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
46875         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46876         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
46877         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
46878         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
46879         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
46880         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46881         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
46882         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
46883         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
46884         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
46885         * MODULES.html.sh: Remove EOVERFLOW.
46886         * NEWS: Mention the change.
46887
46888 2008-09-13  Bruno Haible  <bruno@clisp.org>
46889
46890         * modules/errno-tests: New file.
46891         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
46892
46893         * lib/errno.in.h: New file.
46894         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
46895         * modules/errno: New file.
46896         * doc/posix-headers/errno.texi: Update documentation.
46897         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
46898
46899 2008-09-13  Bruno Haible  <bruno@clisp.org>
46900
46901         * tests/test-poll.c: Use #if for native Windows, rather than testing
46902         __MSVCRT__.
46903
46904 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46905             Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/glob.c: Don't include <pwd.h> on native Windows.
46908         (WINDOWS32): New macro.
46909         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
46910
46911 2008-09-13  Bruno Haible  <bruno@clisp.org>
46912
46913         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
46914         (ETIMEDOUT): Remove macro.
46915         (glthread_cond_timedwait_multithreaded): New declaration.
46916         (glthread_cond_timedwait): Use it.
46917         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
46918         (glthread_cond_timedwait_multithreaded): New function.
46919
46920 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46921
46922         * modules/poll-tests: Do not check for io.h.
46923         * tests/test-poll.c: Check for __MSVCRT__ instead.
46924
46925 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46926
46927         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
46928         * modules/poll-tests: Add inet_pton, stdbool, sockets.
46929         * tests/test-poll.c: Use them.  Use _pipe on Windows.
46930
46931 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
46932
46933         * modules/poll-tests: New.
46934         * tests/test-poll.c: New.
46935
46936 2008-09-12  Eric Blake  <ebb9@byu.net>
46937
46938         frexp: test for NetBSD failure on -0.0
46939         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
46940         not all, bugs from NetBSD 3.0 have been fixed.
46941         * doc/posix-functions/frexp.texi (frexp): Document bug.
46942         Reported by Thomas Klausner.
46943
46944         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
46945         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
46946         literal -0.0.
46947         Reported by Jonathan C. Patschke <jp@centtech.com>.
46948
46949 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46950
46951         * lib/glthread/cond.h: Use dummy implementation also if
46952         USE_WIN32_THREADS.
46953
46954 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46955
46956         * modules/fnmatch-posix (License): Change to LGPLv2+.
46957         * modules/fnmatch-gnu (License): Likewise.
46958
46959 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46960
46961         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
46962
46963 2008-09-11  Jim Meyering  <meyering@redhat.com>
46964
46965         * users.txt: Add gtk-vnc.
46966
46967 2008-09-08  Simon Josefsson  <simon@josefsson.org>
46968
46969         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
46970         rotate amounts.
46971
46972         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
46973         required for 16-bit and 8-bit rotates.
46974         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
46975         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
46976         UINT8_MAX instead of hard-coded constants.
46977         Suggested by Paul Eggert.
46978
46979 2008-09-07  Bruno Haible  <bruno@clisp.org>
46980
46981         * tests/test-striconveh.c (main): Check behaviour when converting from
46982         UTF-7.
46983
46984         Make striconveh work better with stateful encodings.
46985         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
46986         that iconv does not increment the inptr when returning -1/EINVAL.
46987
46988 2008-09-07  Bruno Haible  <bruno@clisp.org>
46989
46990         * build-aux/config.rpath: Update according to libtool-2.2.6.
46991         * build-aux/config.libpath: Likewise.
46992
46993 2008-09-06  Bruno Haible  <bruno@clisp.org>
46994
46995         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
46996         * lib/freadptr.c (freadptr): Likewise.
46997         * lib/freadseek.c (freadptrinc): Likewise.
46998         Reported by Simon Josefsson.
46999
47000 2008-09-06  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/freadptr (License): Change to LGPLv2+.
47003         * modules/freadseek (License): Likewise.
47004         Suggested by Eric Blake.
47005
47006         * modules/memchr2 (License): Change to LGPLv2+.
47007         Approved by Eric Blake.
47008
47009 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47010             Bruno Haible  <bruno@clisp.org>
47011
47012         Make gnulib-tool work with native 'sed' on AIX.
47013         * gnulib-tool (sed_noop): New variable.
47014         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47015         func_add_or_update, func_create_testdir): Use it to initialize sed
47016         script variables.
47017         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47018
47019 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47020             Bruno Haible  <bruno@clisp.org>
47021
47022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47023         also works after #include directives.
47024
47025 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47026
47027         getdate.y: reject an out-of-range timezone value
47028         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47029         the range [-24...+24].  When specified with only one or two digits,
47030         * tests/test-getdate.c: Tests for the fix.
47031         * doc/getdate.texi: Document this change.
47032
47033 2008-09-03  Bruno Haible  <bruno@clisp.org>
47034
47035         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47036
47037 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47038
47039         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47040         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47041         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47042         Blake <ebb9@byu.net>.
47043
47044         * tests/test-bitrotate.c: Add more test vectors.
47045
47046 2008-09-02  Eric Blake  <ebb9@byu.net>
47047
47048         vasnprintf-posix: handle large precision via %.*d
47049         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47050         when handling it ourselves.
47051         * tests/test-vasnprintf-posix.c (test_function): Add test.
47052         * tests/test-snprintf-posix.h (test_function): Likewise.
47053         * tests/test-sprintf-posix.h (test_function): Likewise.
47054         * tests/test-vasprintf-posix.c (test_function): Likewise.
47055         Reported by Alain Guibert.
47056
47057 2008-09-01  Eric Blake  <ebb9@byu.net>
47058
47059         c-stack: make configure-time check more robust
47060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47061         successful sigaction call.
47062         Reported by Tom G. Christensen.
47063
47064 2008-09-01  Bruno Haible  <bruno@clisp.org>
47065
47066         New module 'findprog-lgpl'.
47067         * modules/findprog-lgpl: New file.
47068         * lib/findprog-lgpl.c: New file.
47069         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47070         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47071         to decide whether to use strdup or xstrdup, concatenated_filename or
47072         xconcatenated_filename.
47073
47074 2008-09-01  Bruno Haible  <bruno@clisp.org>
47075
47076         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47077         'xconcat-filename' (GPL).
47078         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47079         (License): Change to LGPLv2+.
47080         * modules/xconcat-filename: New file.
47081         * lib/concat-filename.h (concatenated_filename): Change specification.
47082         (xconcatenated_filename): New declaration.
47083         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47084         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47085         memory situations.
47086         * lib/xconcat-filename.c: New file.
47087         * NEWS: Mention the change.
47088         * lib/findprog.c: Include concat-filename.h, not filename.h.
47089         (find_in_path): Use xconcatenated_filename instead of
47090         concatenated_filename.
47091         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47092         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47093         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47094         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47095         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47096         instead of concatenated_filename.
47097         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47098         (execute_java_class): Use xconcatenated_filename instead of
47099         concatenated_filename.
47100         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47101         * modules/javacomp (Depends-on): Likewise.
47102         * modules/javaexec (Depends-on): Likewise.
47103
47104 2008-09-01  Bruno Haible  <bruno@clisp.org>
47105
47106         Split module 'filename' into 'filename' and 'concat-filename'.
47107         * modules/filename: Keep only lib/filename.h.
47108         (License): Change to LGPLv2+.
47109         * modules/concat-filename: New file, extracted from modules/filename.
47110         * lib/filename.h (concatenated_filename): Remove declaration.
47111         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47112         * lib/concat-filename.c: Include concat-filename.h.
47113         * NEWS: Mention the change.
47114
47115 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47116
47117         * lib/bitrotate.h (rotl8, rotr8): Add.
47118
47119         * modules/bitrotate (configure.ac): Need
47120         AC_REQUIRE([AC_C_INLINE]).
47121         (Description): Mention stdint.h.  Reported by Bruno Haible
47122         <bruno@clisp.org>.
47123
47124         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47125         Paolo Bonzini <bonzini@gnu.org>.
47126
47127 2008-08-31  Bruno Haible  <bruno@clisp.org>
47128
47129         Assume Solaris specific bi-arch conventions on Solaris systems.
47130         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47131         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47133         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47134         like acl_libdirstem.
47135         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47136         acl_libdirstem.
47137         * NEWS: Mention the change.
47138         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47139
47140 2008-08-31  Jim Meyering  <meyering@redhat.com>
47141
47142         * lib/strftime.h: Add comments describing the two added arguments.
47143
47144         remove duplicate #include directives
47145         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47146         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47147
47148 2008-08-31  Bruno Haible  <bruno@clisp.org>
47149
47150         New module 'sigpipe-die'.
47151         * modules/sigpipe-die: New file.
47152         * lib/sigpipe-die.h: New file.
47153         * lib/sigpipe-die.c: New file.
47154         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47155
47156 2008-08-31  Bruno Haible  <bruno@clisp.org>
47157
47158         Don't override previously installed signal handlers.
47159         * lib/fatal-signal.c (saved_sigactions): New variable.
47160         (uninstall_handlers): Reset the signal to the saved handler, not
47161         to SIG_DFL (except when ignored).
47162         (install_handlers): Save the previous handlers.
47163
47164 2008-08-30  Bruno Haible  <bruno@clisp.org>
47165
47166         * gnulib-tool (func_reset_sigpipe): New function.
47167         (func_get_automake_snippet, func_modules_transitive_closure,
47168         func_import): Invoke it before a join command that reads from stdin,
47169         to avoid "echo: write error: Broken pipe" error messages on stderr.
47170         Reported by Sam Steingold <sds@gnu.org>.
47171
47172 2008-08-30  Bruno Haible  <bruno@clisp.org>
47173
47174         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47175         Code copied from m4/open.m4.
47176         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47177         access and the filename ends in a slash. Code copied from lib/open.c.
47178         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47179         * tests/test-fopen.c (main): Check against bug with trailing slash.
47180
47181 2008-08-29  Bruno Haible  <bruno@clisp.org>
47182
47183         Avoid some "gcc -pedantic" warnings.
47184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47185         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47186         * lib/dirent.in.h: Likewise.
47187         * lib/fcntl.in.h: Likewise.
47188         * lib/float.in.h: Likewise.
47189         * lib/iconv.in.h: Likewise.
47190         * lib/inttypes.in.h: Likewise.
47191         * lib/locale.in.h: Likewise.
47192         * lib/math.in.h: Likewise.
47193         * lib/netinet_in.in.h: Likewise.
47194         * lib/search.in.h: Likewise.
47195         * lib/signal.in.h: Likewise.
47196         * lib/stdarg.in.h: Likewise.
47197         * lib/stdint.in.h: Likewise.
47198         * lib/stdio.in.h: Likewise.
47199         * lib/stdlib.in.h: Likewise.
47200         * lib/string.in.h: Likewise.
47201         * lib/strings.in.h: Likewise.
47202         * lib/sys_select.in.h: Likewise.
47203         * lib/sys_socket.in.h: Likewise.
47204         * lib/sys_stat.in.h: Likewise.
47205         * lib/sys_time.in.h: Likewise.
47206         * lib/sysexits.in.h: Likewise.
47207         * lib/time.in.h: Likewise.
47208         * lib/unistd.in.h: Likewise.
47209         * lib/wchar.in.h: Likewise.
47210         * lib/wctype.in.h: Likewise.
47211         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47212         * modules/fchdir (Makefile.am): Likewise.
47213         * modules/fcntl (Makefile.am): Likewise.
47214         * modules/float (Makefile.am): Likewise.
47215         * modules/iconv_open (Makefile.am): Likewise.
47216         * modules/inttypes (Makefile.am): Likewise.
47217         * modules/locale (Makefile.am): Likewise.
47218         * modules/math (Makefile.am): Likewise.
47219         * modules/netinet_in (Makefile.am): Likewise.
47220         * modules/search (Makefile.am): Likewise.
47221         * modules/signal (Makefile.am): Likewise.
47222         * modules/stdarg (Makefile.am): Likewise.
47223         * modules/stdint (Makefile.am): Likewise.
47224         * modules/stdio (Makefile.am): Likewise.
47225         * modules/stdlib (Makefile.am): Likewise.
47226         * modules/string (Makefile.am): Likewise.
47227         * modules/strings (Makefile.am): Likewise.
47228         * modules/sys_select (Makefile.am): Likewise.
47229         * modules/sys_socket (Makefile.am): Likewise.
47230         * modules/sys_stat (Makefile.am): Likewise.
47231         * modules/sys_time (Makefile.am): Likewise.
47232         * modules/sysexits (Makefile.am): Likewise.
47233         * modules/time (Makefile.am): Likewise.
47234         * modules/unistd (Makefile.am): Likewise.
47235         * modules/wchar (Makefile.am): Likewise.
47236         * modules/wctype (Makefile.am): Likewise.
47237         Reported by Reuben Thomas <rrt@sc3d.org>.
47238
47239 2008-08-29  Bruno Haible  <bruno@clisp.org>
47240
47241         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47242         any more.
47243
47244 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47245
47246         * MODULES.html.sh (Misc): Add bitrotate.
47247
47248         * modules/bitrotate: New file.
47249
47250         * lib/bitrotate.h: New file.
47251
47252         * modules/bitrotate-tests: New file.
47253
47254         * tests/test-bitrotate.c: New file.
47255
47256         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47257         on the bitrotate module.
47258
47259         * lib/arctwo.c: Use new bitrotate module.
47260
47261 2008-08-29  Jim Meyering  <meyering@redhat.com>
47262
47263         bootstrap: merge changes from coreutils
47264         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47265         of copied files.  Remove a kludge, now that this is fixed.
47266         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47267         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47268         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47269
47270 2008-08-29  Bruno Haible  <bruno@clisp.org>
47271
47272         * MODULES.html.sh: Remove --cvs-urls option.
47273
47274 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47275
47276         maint.mk: adjust to file name change
47277         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47278
47279 2008-08-28  Jim Meyering  <meyering@redhat.com>
47280
47281         * modules/getndelim2 (License): Relicense to LGPLv2+.
47282         Approved by Richard Stallman for the version of 1995, and by
47283         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47284
47285 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47286
47287         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47288         dummy if one is not available.  Do not touch them if
47289         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47290         (getc_maybe_unlocked): New.
47291         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47292
47293 2008-08-26  Eric Blake  <ebb9@byu.net>
47294
47295         doc/INSTALL: resync from autoconf
47296         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47297         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47298         moving...
47299         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47300         * INSTALL: Regenerate.
47301         * INSTALL.ISO: New file.
47302         * INSTALL.UTF-8: Likewise.
47303
47304 2008-08-26  Jim Meyering  <meyering@redhat.com>
47305
47306         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47307         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47308         these definitions conditional, so that they may be overridden, too.
47309
47310 2008-08-26  Bruno Haible  <bruno@clisp.org>
47311
47312         Generate INSTALL file variants with prettier quotes.
47313         * doc/Makefile (INSTALL_PRELUDE): New macro.
47314         (INSTALL): Use it.
47315         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47316
47317 2008-08-26  Bruno Haible  <bruno@clisp.org>
47318
47319         Run makeinfo in an English locale.
47320         * doc/Makefile (MAKEINFO): New variable.
47321
47322 2008-08-26  Bruno Haible  <bruno@clisp.org>
47323
47324         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47325         Suggested by Eric Blake.
47326
47327 2008-08-25  Bruno Haible  <bruno@clisp.org>
47328
47329         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47330
47331 2008-08-25  Eric Blake  <ebb9@byu.net>
47332
47333         c-stack: test that stack overflow can be caught
47334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47335         that platform allows handling stack overflow; at least OS/2 EMX
47336         has sigaltstack, but crashes before transferring control to
47337         handler on stack overflow.
47338         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47339         check for HAVE_STACK_OVERFLOW_HANDLING.
47340         Reported by Elbert Pol.
47341
47342 2008-08-25  Bruno Haible  <bruno@clisp.org>
47343
47344         * doc/posix-functions/strftime.texi: Fix description of strftime
47345         module.
47346
47347 2008-08-24  Bruno Haible  <bruno@clisp.org>
47348
47349         * tests/uniwidth/test-uc_width2.c: New file.
47350         * tests/uniwidth/test-uc_width2.sh: New file.
47351         * modules/uniwidth/width-tests (Files): Add the new files.
47352         (TESTS): Add uniwidth/test-uc_width2.sh.
47353         (TESTS_ENVIRONMENT): New variable.
47354         (check_PROGRAMS): Add test-uc_width2.
47355         (test_uc_width2_SOURCES): New variable.
47356
47357         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47358         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47359         not 0x00AB.
47360         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47361
47362 2008-08-22  Eric Blake  <ebb9@byu.net>
47363
47364         test-lock, test-tls: mention why a test is skipped
47365         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47366         skipped.
47367         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47368
47369         count-one-bits: relax license
47370         * modules/count-one-bits (License): Relicense to LGPLv2+.
47371         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47372
47373 2008-08-22  Andreas Schwab  <schwab@suse.de>
47374
47375         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47376         Remove spurious space in assignment.
47377
47378 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47379
47380         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47381         Paul Eggert <eggert@CS.UCLA.EDU>.
47382
47383 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47384
47385         * modules/gettext: Add m4/threadlib.m4.
47386
47387 2008-08-19  Eric Blake  <ebb9@byu.net>
47388
47389         test-c-stack: fix compilation failure on FreeBSD 5.0
47390         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47391         headers before <sys/resource.h>.
47392         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47393         the bug.
47394         Reported by Nelson H. F. Beebe.
47395
47396         strverscmp: migrate from "strverscmp.h" to <string.h>
47397         * modules/string (Makefile.am): Add new hooks.
47398         * modules/strverscmp (Files): Remove strverscmp.h.
47399         (Depends-on): Add string.
47400         (configure.ac): Add indicator.
47401         (Include): Mention new header.
47402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47403         defaults.
47404         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47405         results.
47406         * lib/strverscmp.h: Delete.
47407         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47408         * tests/test-strverscmp.c (includes): Adjust client.
47409         * lib/check-version.c (includes): Likewise.
47410         * NEWS: Document the change.
47411
47412         strverscmp: add unit test
47413         * modules/strverscmp-tests: New file.
47414         * tests/test-strverscmp.c: Likewise.
47415
47416 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47417
47418         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47419         regarding Windows crypto stuff, from Mono.
47420
47421 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47422
47423         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47424         if present, for intel RND.  Return error on failures.
47425
47426 2008-08-18  Ben Pfaff  <blp@gnu.org>
47427
47428         gitlog-to-changelog: give better diagnostic for failed pipe-open
47429         * build-aux/gitlog-to-changelog: Improve error message: suggest
47430         that the version of Git may be too old.
47431
47432 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47433
47434         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47435         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47436
47437 2008-08-18  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47440         pthread_in_use().
47441
47442 2008-08-18  Bruno Haible  <bruno@clisp.org>
47443
47444         * lib/glthread/threadlib.c: Include <pthread.h>.
47445
47446 2008-08-18  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
47449         glthread_recursive_lock_* macros.
47450         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
47451         Fix syntax error.
47452
47453 2008-08-18  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/glthread/thread.c: Avoid forcing a context switch right after
47456         thread creation.
47457
47458 2008-08-17  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
47461         * lib/glthread/thread.h: Provide Win32 specific implementation.
47462         * modules/thread (Files): Add lib/glthread/thread.c.
47463         (Depends-on): Add lock.
47464         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
47465
47466 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47467
47468         New module 'yield'.
47469         * modules/yield: New file.
47470         * lib/glthread/yield.h: New file.
47471         * m4/yield.m4: New file.
47472         * MODULES.html.sh (Multithreading): Add yield.
47473
47474 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47475
47476         New module 'thread'.
47477         * modules/thread: New file.
47478         * lib/glthread/thread.h: New file.
47479         * m4/thread.m4: New file.
47480         * MODULES.html.sh (Multithreading): Add thread.
47481
47482 2008-08-17  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/glthread/lock.h: Include <stdlib.h> always.
47485         * lib/glthread/tls.h: Likewise.
47486         * lib/glthread/cond.h: Likewise.
47487
47488 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47489
47490         New module 'cond'.
47491         * modules/cond: New file.
47492         * lib/glthread/cond.h: New file.
47493         * lib/glthread/cond.c: New file.
47494         * m4/cond.m4: New file.
47495         * MODULES.html.sh (Multithreading): Add cond.
47496
47497 2008-08-16  Eric Blake  <ebb9@byu.net>
47498
47499         c-stack: fix regression on Irix 5.3 from 2008-06-21
47500         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
47501         sa_sigaction...
47502         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
47503         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
47504         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
47505         * modules/signal (Makefile.am): Use the value.
47506         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
47507         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
47508         * doc/posix-headers/signal.texi (signal.h): Document this
47509         portability issue.
47510         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
47511         Reported by Tom G. Christensen.
47512
47513 2008-08-17  Bruno Haible  <bruno@clisp.org>
47514
47515         New module 'threadlib'.
47516         * modules/threadlib: New file.
47517         * lib/glthread/threadlib.c: New file, extracted from
47518         lib/glthread/lock.c.
47519         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
47520         functions.
47521         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
47522         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
47523         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
47524         macros.
47525         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
47526         (gl_DISABLE_THREADS): Remove macro.
47527         * modules/lock (Files): Remove build-aux/config.rpath.
47528         (Depends-on): Remove havelib. Add threadlib.
47529         (configure.ac-early): Remove section.
47530         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
47531         * modules/tls (Depends-on): Remove lock. Add threadlib.
47532         (Link): New section, copied from threadlib.
47533         * MODULES.html.sh (Multithreading): Add threadlib.
47534
47535 2008-08-14  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
47538         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
47539         glthread_rwlock_unlock, glthread_rwlock_destroy,
47540         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
47541         glthread_recursive_lock_destroy): Define as macros always.
47542         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
47543         glthread_lock_lock.
47544         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
47545         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
47546         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
47547         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
47548         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
47549         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
47550         (glthread_recursive_lock_lock_func): Renamed from
47551         glthread_recursive_lock_lock.
47552         (glthread_recursive_lock_unlock_func): Renamed from
47553         glthread_recursive_lock_unlock.
47554         (glthread_recursive_lock_destroy_func): Renamed from
47555         glthread_recursive_lock_destroy.
47556
47557 2008-08-14  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/glthread/lock.h: Renamed from lib/lock.h.
47560         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
47561         * lib/glthread/tls.h: Renamed from lib/tls.h.
47562         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
47563         * lib/fstrcmp.c: Update includes.
47564         * lib/strsignal.c: Update includes.
47565         * modules/lock (Files, Makefile.am): Update.
47566         (Include): Change to "glthread/lock.h".
47567         * modules/tls (Files, Makefile.am): Update.
47568         (Include): Change to "glthread/tls.h".
47569         * tests/test-lock.c: Update includes.
47570         * tests/test-tls.c: Update includes.
47571         * NEWS: Mention the renamed header files.
47572
47573 2008-08-11  Jim Meyering  <meyering@redhat.com>
47574
47575         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
47576
47577 2008-08-11  Eric Blake  <ebb9@byu.net>
47578
47579         test-c-stack: avoid C99-ism
47580         * tests/test-c-stack.c (main): Fix whitespace, move declaration
47581         before statement.
47582         Reported by Alain Guibert.
47583
47584 2008-08-10  Jim Meyering  <meyering@redhat.com>
47585
47586         ensure that return value of uinttostr et al are not ignored
47587         * lib/inttostr.h (__GNUC_PREREQ): Define.
47588         (__attribute_warn_unused_result__): Define.
47589         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
47590
47591 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
47592
47593         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
47594         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
47595
47596 2008-08-07  Jim Meyering  <meyering@redhat.com>
47597
47598         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
47599
47600         * modules/mkstemp (License): Relicense under LGPLv2+.
47601         * modules/tempname (License): Likewise.
47602
47603 2008-08-06  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/poll.c (poll): Further micro-optimization.
47606
47607 2008-08-06  Jim Meyering  <meyering@redhat.com>
47608
47609         inet_pton.c: use locale-independent tolower
47610         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
47611         (inet_pton6): Use c_tolower rather than tolower.
47612         * modules/inet_pton (Depends-on): Add c-ctype.
47613
47614 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
47615
47616         * lib/poll.c (poll): Avoid division when timeout is 0, cache
47617         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
47618
47619 2008-08-06  Jim Meyering  <meyering@redhat.com>
47620
47621         * modules/inet_pton (License): Relicense under LGPLv2+.
47622
47623 2008-08-03  Bruno Haible  <bruno@clisp.org>
47624
47625         Additional non-aborting API for lock and tls.
47626         * lib/lock.h: Include <errno.h>.
47627         (glthread_lock_init): New macro/function.
47628         (gl_lock_init): Define as wrapper around glthread_lock_init.
47629         (glthread_lock_lock): New macro/function.
47630         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
47631         (glthread_lock_unlock): New macro/function.
47632         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
47633         (glthread_lock_destroy): New macro/function.
47634         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
47635         (glthread_rwlock_init): New macro/function.
47636         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
47637         (glthread_rwlock_rdlock): New macro/function.
47638         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
47639         (glthread_rwlock_wrlock): New macro/function.
47640         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
47641         (glthread_rwlock_unlock): New macro/function.
47642         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
47643         (glthread_rwlock_destroy): New macro/function.
47644         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
47645         (glthread_recursive_lock_init): New macro/function.
47646         (gl_recursive_lock_init): Define as wrapper around
47647         glthread_recursive_lock_init.
47648         (glthread_recursive_lock_lock): New macro/function.
47649         (gl_recursive_lock_lock): Define as wrapper around
47650         glthread_recursive_lock_lock.
47651         (glthread_recursive_lock_unlock): New macro/function.
47652         (gl_recursive_lock_unlock): Define as wrapper around
47653         glthread_recursive_lock_unlock.
47654         (glthread_recursive_lock_destroy): New macro/function.
47655         (gl_recursive_lock_destroy): Define as wrapper around
47656         glthread_recursive_lock_destroy.
47657         (glthread_once): New macro/function.
47658         (gl_once): Define as wrapper around glthread_once.
47659         Update function declarations.
47660         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
47661         glthread_rwlock_init. Return error code.
47662         (glthread_rwlock_rdlock_multithreaded): Renamed from
47663         glthread_rwlock_rdlock. Return error code.
47664         (glthread_rwlock_wrlock_multithreaded): Renamed from
47665         glthread_rwlock_wrlock. Return error code.
47666         (glthread_rwlock_unlock_multithreaded): Renamed from
47667         glthread_rwlock_unlock. Return error code.
47668         (glthread_rwlock_destroy_multithreaded): Renamed from
47669         glthread_rwlock_destroy. Return error code.
47670         (glthread_recursive_lock_init_multithreaded): Renamed from
47671         glthread_recursive_lock_init. Return error code.
47672         (glthread_recursive_lock_lock_multithreaded): Renamed from
47673         glthread_recursive_lock_lock. Return error code.
47674         (glthread_recursive_lock_unlock_multithreaded): Renamed from
47675         glthread_recursive_lock_unlock. Return error code.
47676         (glthread_recursive_lock_destroy_multithreaded): Renamed from
47677         glthread_recursive_lock_destroy. Return error code.
47678         (glthread_once_call): Make static.
47679         (glthread_once_multithreaded): Renamed from glthread_once.
47680         * lib/tls.h: Include <errno.h>.
47681         (glthread_tls_key_init): New macro/function.
47682         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
47683         (glthread_tls_set): New macro/function.
47684         (gl_tls_set): Define as wrapper around glthread_tls_set.
47685         (glthread_tls_key_destroy): New macro/function.
47686         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
47687         Update function declarations.
47688         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
47689         glthread_tls_get.
47690         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47691
47692 2008-08-04  Eric Blake  <ebb9@byu.net>
47693
47694         gnumakefile: use space, not TAB, outside of targets
47695         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
47696
47697 2008-08-02  Jim Meyering  <meyering@redhat.com>
47698
47699         getdate.y: avoid locale-dependent date parsing failure
47700         In Turkish locales, getdate would fail to recognize keywords
47701         containing a lowercase "i".  The solution is not to rely on
47702         locale-sensitive case-conversion.
47703         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
47704         (lookup_word): Use c_toupper in place of toupper.
47705         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
47706         Reported by Vefa Bicakci <bicave@superonline.com> in
47707         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
47708         * modules/getdate (Depends-on): Add c-ctype.
47709
47710 2008-08-02  Bruno Haible  <bruno@clisp.org>
47711
47712         * gnulib-tool (func_import): When updating or creating a .gitignore
47713         file, prepend each added line with a slash, and ignore leading slashes
47714         from the existing lines.
47715         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47716
47717 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47718
47719         Portability fix for GNU make 3.79.1.
47720         * top/GNUmakefile: Avoid 'else COND', which older GNU make
47721         versions do not understand.
47722
47723 2008-08-01  Bruno Haible  <bruno@clisp.org>
47724
47725         Work around bug of HP-UX 10.20 cc with -0.0 literal.
47726         * tests/test-isnanf.h (zero): New variable.
47727         (main): Avoid literal -0.0f.
47728         * tests/test-isnand.h (zero): New variable.
47729         (main): Avoid literal -0.0.
47730         * tests/test-isnanl.h (zero): New variable.
47731         (main): Avoid literal -0.0L.
47732         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
47733         (test_float, test_double, test_long_double): Avoid literals -0.0f,
47734         -0.0, -0.0L.
47735         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
47736         (test_signbitd): Avoid literal -0.0.
47737         (test_signbitl): Avoid literal -0.0L.
47738         * tests/test-ceilf1.c (zero): New variable.
47739         (main): Avoid literal -0.0f.
47740         * tests/test-ceill.c (zero): New variable.
47741         (main): Avoid literal -0.0L.
47742         * tests/test-floorf1.c (zero): New variable.
47743         (main): Avoid literal -0.0f.
47744         * tests/test-floorl.c (zero): New variable.
47745         (main): Avoid literal -0.0L.
47746         * tests/test-roundf1.c (zero): New variable.
47747         (main): Avoid literal -0.0f.
47748         * tests/test-round1.c (zero): New variable.
47749         (main): Avoid literal -0.0.
47750         * tests/test-roundl.c (zero): New variable.
47751         (main): Avoid literal -0.0L.
47752         * tests/test-truncf1.c (zero): New variable.
47753         (main): Avoid literal -0.0f.
47754         * tests/test-trunc1.c (zero): New variable.
47755         (main): Avoid literal -0.0.
47756         * tests/test-truncl.c (zero): New variable.
47757         (main): Avoid literal -0.0L.
47758         * tests/test-frexp.c (zero): New variable.
47759         (main): Avoid literal -0.0.
47760         * tests/test-frexpl.c (zero): New variable.
47761         (main): Avoid literal -0.0L.
47762         * tests/test-ldexpl.c (zero): New variable.
47763         (main): Avoid literal -0.0L.
47764         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47765         (zerod, zerol): New variables.
47766         (test_function): Avoid literals -0.0, -0.0L.
47767         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
47768         (zerod, zerol): New variables.
47769         (test_function): Avoid literals -0.0, -0.0L.
47770         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47771         (zerod, zerol): New variables.
47772         (test_function): Avoid literals -0.0, -0.0L.
47773         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
47774         (zerod, zerol): New variables.
47775         (test_function): Avoid literals -0.0, -0.0L.
47776         * tests/test-strtod.c (zero): New variable.
47777         (main): Avoid literal -0.0.
47778         Reported by Jonathan C. Patschke <jp@centtech.com>.
47779
47780 2008-07-31  Jim Meyering  <meyering@redhat.com>
47781
47782         sha256.h: correct definition of SHA224_DIGEST_SIZE
47783         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
47784         Reported by Paulie Pena IV <paulie4@gmail.com>.
47785         Define as 224 / 8, rather than as a literal.
47786         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
47787         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
47788         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
47789
47790 2008-07-31  Bruno Haible  <bruno@clisp.org>
47791
47792         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
47793         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
47794         Reported by Jonathan Patschke <jp@centtech.com>.
47795
47796 2008-07-31  Bruno Haible  <bruno@clisp.org>
47797
47798         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
47799         Reported by Paolo Bonzini <bonzini@gnu.org>.
47800
47801 2008-07-30  Eric Blake  <ebb9@byu.net>
47802
47803         test-strtod: allow compilation without -lm
47804         * tests/test-strtod.c (main): Avoid link dependence on fabs.
47805         Reported by Dennis Clarke <blastwave@gmail.com>.
47806
47807 2008-07-28  Jim Meyering  <meyering@redhat.com>
47808
47809         bootstrap: work also when there are no .po files in po/
47810         * build-aux/bootstrap (update_po_files): Complete the change
47811         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
47812
47813 2008-07-27  Jim Meyering  <meyering@redhat.com>
47814
47815         * users.txt: Add zile.
47816
47817 2008-07-26  Ben Pfaff  <blp@gnu.org>
47818
47819         Add missing dependencies on new m4/exponent[fdl].m4 files.
47820         * modules/isnanf-nolibm: Add m4/exponentf.m4.
47821         * modules/isnand-nolibm: Add m4/exponentd.m4.
47822         * modules/isnanl-nolibm: Add m4/exponentl.m4.
47823         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
47824         m4/isnan[fdl].m4, because the macros actually used moved.
47825         Reported by Jim Meyering.
47826
47827 2008-07-14  Ben Pfaff  <blp@gnu.org>
47828
47829         Add isinf module.
47830         * lib/isinf.c: New file.
47831         * lib/math.in.h: Define isinf macro if we have decided to replace
47832         it.
47833         * m4/isinf.m4: New file.
47834         * m4/math_h.m4: Initialize and substitute variables for isinf
47835         module.
47836         * modules/isinf: New file.
47837         * modules/isinf-tests: New file.
47838         * modules/math: Add substitutions for new module.
47839         * tests/test-isinf.c: New file.
47840         * doc/posix-functions/isinf.texi: Mention new module.
47841         * MODULES.html.sh: Mention new module.
47842
47843 2008-07-14  Ben Pfaff  <blp@gnu.org>
47844
47845         Factor out some macros for use by additional modules.
47846         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
47847         exponentf.m4.
47848         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
47849         exponentd.m4.
47850         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
47851         file exponentl.m4.
47852         * m4/exponentf.m4: New file.
47853         * m4/exponentd.m4: New file.
47854         * m4/exponentl.m4: New file.
47855         * modules/isnanf: Use new file m4/exponentf.m4.
47856         * modules/isnand: Use new file m4/exponentd.m4.
47857         * modules/isnanl: Use new file m4/exponentl.m4.
47858
47859 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
47860
47861         mktime.c: normalize tp->tm_isdst value to -1/0/1.
47862         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
47863         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
47864         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
47865
47866         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
47867         readlink on platforms without PATH_MAX.
47868
47869 2008-07-21  Eric Blake  <ebb9@byu.net>
47870
47871         Warn, not fail, on stale version.
47872         * top/GNUmakefile (_curr-ver): Tone down previous patch.
47873
47874         Don't allow installation with stale devel version number.
47875         * top/GNUmakefile (_is-install-target): New macro.
47876         (_curr-ver): Forbid installation with stale version number.
47877
47878 2008-07-20  Bruno Haible  <bruno@clisp.org>
47879
47880         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
47881         TESTS_ENVIRONMENT.
47882         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
47883
47884 2008-07-20  Bruno Haible  <bruno@clisp.org>
47885
47886         * lib/c-stack.h (c_stack_action): Add documentation.
47887         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
47888
47889 2008-07-20  Bruno Haible  <bruno@clisp.org>
47890
47891         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
47892         * modules/readlink (License): Likewise.
47893
47894 2008-07-17  Eric Blake  <ebb9@byu.net>
47895
47896         * modules/c-stack (Link): Fix typo.
47897
47898         Make c-stack use libsigsegv, when available.
47899         * modules/c-stack (Depends-on): Add libsigsegv.
47900         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
47901         needed.
47902         * lib/c-stack.c (SIGSTKSZ): Define fallback.
47903         (segv_handler, overflow_handler, c_stack_action)
47904         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
47905         implementation when libsigsegv is available, but only when using
47906         the library is necessary.
47907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
47908         comment, explaining why XSI check fails on Linux.
47909         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
47910         * tests/test-c-stack2.sh: Tweak skip message.
47911         * NEWS: Document new link-time requirements.
47912
47913 2008-07-16  Eric Blake  <ebb9@byu.net>
47914
47915         c-stack: Expose false positives when not using libsigsegv.
47916         * modules/c-stack-tests (Files): Expand test.
47917         * tests/test-c-stack.c (main): Add means to conditionally trigger
47918         non-overflow SIGSEGV.
47919         * tests/test-c-stack2.sh: New file.
47920
47921 2008-07-14  Bruno Haible  <bruno@clisp.org>
47922
47923         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
47924         Reported by Eric Blake.
47925
47926 2008-07-14  Sam Steingold  <sds@gnu.org>
47927             Bruno Haible  <bruno@clisp.org>
47928
47929         New module libsigsegv.
47930         * modules/libsigsegv: New file.
47931         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
47932         modifications.
47933         * MODULES.html.sh (Signal handling): New section.
47934
47935 2008-07-14  Bruno Haible  <bruno@clisp.org>
47936
47937         * modules/unictype/ctype-* (Description): Add the word "function".
47938         Improves the resulting doc in MODULES.html.
47939
47940 2008-07-12  Ben Pfaff  <blp@gnu.org>
47941
47942         Add longlong module.
47943         * modules/longlong: New file.
47944
47945 2008-07-12  Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
47948         to empty.
47949
47950 2008-07-10  Ben Pfaff  <blp@gnu.org>
47951
47952         Add isnan module.
47953         * doc/posix-functions/isnan.texi: Mention new module.
47954         * lib/math.in.h: Define isnan macro if we have decided to replace
47955         it.
47956         * m4/isnan.m4: New file.
47957         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
47958         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
47959         also.
47960         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
47961         redundancy.
47962         * m4/math_h.m4: Initialize and substitute variables for isnan
47963         module.
47964         * modules/isnan: New file.
47965         * modules/isnan-tests: New file.
47966         * modules/math: Add substitutions for new module.
47967         * tests/test-isnan.c: New file.
47968         * MODULES.html.sh: Mention new module.
47969
47970 2008-07-10  Ben Pfaff  <blp@gnu.org>
47971
47972         Add isnanf module.
47973         * lib/isnanf.m4: New file.
47974         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
47975         (gl_HAVE_ISNANF_IN_LIBM): New macro.
47976         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
47977         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
47978         * modules/isnanf: New file.
47979         * modules/isnanf-tests: New file.
47980         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
47981         files.
47982         * tests/test-isnanf-nolibm.c: factored most of its contents into
47983         new file tests/test-isnanf.h.
47984         * tests/test-isnanf.h: New file.
47985         * tests/test-isnanf.c: New file.
47986         * MODULES.html.sh: Mention new module.
47987         * doc/glibc-functions/isnanf.texi: Mention new module.
47988
47989 2008-07-10  Ben Pfaff  <blp@gnu.org>
47990
47991         Add isnand module.
47992         * lib/isnand.h: New file.
47993         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
47994         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
47995         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
47996         functionality also.
47997         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
47998         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
47999         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48000         * modules/isnand: New file.
48001         * modules/isnand-tests: New file.
48002         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48003         files.
48004         * tests/test-isnand-nolibm.c: factored most of its contents into
48005         new file tests/test-isnand.h.
48006         * tests/test-isnand.h: New file.
48007         * tests/test-isnand.c: New file.
48008         * MODULES.html.sh: Mention new module.
48009
48010 2008-07-10  Ben Pfaff  <blp@gnu.org>
48011
48012         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48013         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48014         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48015         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48016         * modules/isnanf-nolibm: Update references to renamed files.
48017         * modules/isnand-nolibm: Likewise.
48018         * modules/isnanf-nolibm-tests: Likewise.
48019         * modules/isnand-nolibm-tests: Likewise.
48020         * lib/frexp.c: Likewise.
48021         * lib/isfinite.c: Likewise.
48022         * lib/signbitd.c: Likewise.
48023         * lib/signbitf.c: Likewise.
48024         * lib/vasnprintf.c: Likewise.
48025         * tests/test-ceilf1.c: Likewise.
48026         * tests/test-ceilf2.c: Likewise.
48027         * tests/test-floorf1.c: Likewise.
48028         * tests/test-floorf2.c: Likewise.
48029         * tests/test-frexp.c: Likewise.
48030         * tests/test-round1.c: Likewise.
48031         * tests/test-round2.c: Likewise.
48032         * tests/test-roundf1.c: Likewise.
48033         * tests/test-strtod.c: Likewise.
48034         * tests/test-trunc1.c: Likewise.
48035         * tests/test-trunc2.c: Likewise.
48036         * tests/test-truncf1.c: Likewise.
48037         * tests/test-truncf2.c: Likewise.
48038         * NEWS: Mention the renamed header files.
48039
48040 2008-07-11  Jim Meyering  <meyering@redhat.com>
48041
48042         vc-list-files: make the last-resort awk code more portable
48043         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48044         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48045         does not support it.
48046
48047 2008-07-10  Eric Blake  <ebb9@byu.net>
48048
48049         Work with tar's bootstrap.
48050         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48051         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48052         an m4 comment.
48053
48054 2008-07-09  Jim Meyering  <meyering@redhat.com>
48055
48056         posix-shell.m4: fix typo that made this test malfunction
48057         * m4/posix-shell.m4: Remove capitalization in variable name.
48058
48059 2008-07-08  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/onceonly.m4: Update comments.
48062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48063
48064 2008-07-04  Jim Meyering  <meyering@redhat.com>
48065
48066         * users.txt: Add vc-dwim.
48067         (bison, coreutils): Use the gitweb URL.
48068
48069 2008-07-03  Jim Meyering  <meyering@redhat.com>
48070
48071         * users.txt: Add libffcall.  From Sam Steingold.
48072
48073 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48074
48075         getdate.y: do not ignore TZ with relative day, month or year offset
48076         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48077         relative-date-handling, since otherwise, the latter would clobber the
48078         sole output (an updated Start value) of the tz-handling block.
48079         * tests/test-getdate.c: Tests for the fix
48080
48081 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48082
48083         Recognize 'foo_LIBRARIES += libgnu.a'.
48084         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48085         makefile snippet has already specified an installation location,
48086         also using '+='.
48087
48088 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48089
48090         getdate.y: factor out common actions
48091         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48092         Use them in place of open-coded actions.
48093
48094 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48095
48096         Add self-test for getdate module.
48097         * modules/getdate-tests: New file.
48098         * tests/test-getdate.c: New file.
48099
48100 2008-06-29  Bruno Haible  <bruno@clisp.org>
48101
48102         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48103         .gitignore.
48104         Reported by Sylvain Beucler <beuc@beuc.net>.
48105
48106 2008-06-29  Bruno Haible  <bruno@clisp.org>
48107
48108         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48109         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48110
48111 2008-06-29  Bruno Haible  <bruno@clisp.org>
48112
48113         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48114         EXTRA_DIST.
48115         Reported by Sylvain Beucler <beuc@beuc.net>.
48116
48117 2008-06-26  Jim Meyering  <meyering@redhat.com>
48118
48119         make several modules depend on the "open" module
48120         This provides slightly increased consistency when opening-for-write
48121         the name of a non-directory spelled with a trailing slash.
48122         * modules/chdir-safer: Likewise.
48123         * modules/chown: Likewise.
48124         * modules/clean-temp: Likewise.
48125         * modules/copy-file: Likewise.
48126         * modules/fchdir: Likewise.
48127         * modules/fcntl-safer: Likewise.
48128         * modules/pipe: Likewise.
48129         * modules/utime: Likewise.
48130         Prompted by Eric Blake and Bruno Haible.
48131
48132 2008-06-24  Andreas Schwab  <schwab@suse.de>
48133
48134         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48135         literals can be used as initializers for global variables.
48136
48137 2008-06-23  Eric Blake  <ebb9@byu.net>
48138
48139         Make gnulib-cache.m4 easier to diff.
48140         * gnulib-tool (func_import): Allow newlines when reading cached
48141         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48142
48143 2008-06-23  Bruno Haible  <bruno@clisp.org>
48144
48145         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48146         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48147         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48148         m4/signalblocking.m4.
48149         (gl_PREREQ_SIGACTION): Don't invoke it.
48150         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48151         gl_PREREQ_SIG_HANDLER_H.
48152         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48153         Don't check for sigaction here.
48154
48155 2008-06-23  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48158         (install_handlers): Don't set the SA_RESETHAND flag.
48159
48160 2008-06-23  Bruno Haible  <bruno@clisp.org>
48161
48162         * m4/sigaction.m4: Comment fixes.
48163         * lib/signal.in.h: Likewise.
48164
48165 2008-06-23  Eric Blake  <ebb9@byu.net>
48166
48167         Fix typo.
48168         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48169
48170         Avoid SA_ namespace.
48171         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48172         Reported by Ralf Wildenhues.
48173
48174         Avoid test failure due to SA_RESTORER.
48175         * tests/test-sigaction.c (SA_MASK): New macro.
48176         (main): Avoid failing due to extension flags being set.
48177         Reported by Jim Meyering.
48178
48179         Revert use of sig-handler.h in sigprocmask.c.
48180         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48181         it requires the existence of struct sigaction.
48182         * lib/sigprocmask.c (handler_t): Restore typedef.
48183         (rpl_signal, old_handlers): Use local type.
48184
48185 2008-06-22  Bruno Haible  <bruno@clisp.org>
48186
48187         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48188         conditionally.
48189         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48190
48191 2008-06-22  Bruno Haible  <bruno@clisp.org>
48192
48193         * doc/posix-functions/siginterrupt.texi: Move note.
48194
48195         * lib/signal.in.h (SA_RESTART): New macro.
48196         * lib/sigaction.c: Update comment.
48197
48198         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48199
48200         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48201         (gl_PREREQ_SIGPROCMASK): Invoke it.
48202         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48203
48204         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48205
48206         * lib/sigprocmask.c: Update a comment.
48207
48208 2008-06-21  Eric Blake  <ebb9@byu.net>
48209
48210         Use sigaction module rather than signal().
48211         * modules/c-stack (Depends-on): Add sigaction.
48212         * modules/fatal-signal (Depends-on): Likewise.
48213         * modules/nanosleep (Depends-on): Likewise.
48214         * modules/sigprocmask (Files): Add sig-handler.h.
48215         * modules/sigaction (Files): Likewise.
48216         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48217         Eggert.
48218         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48219         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48220         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48221         (init_fatal_signals): Likewise.
48222         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48223         (siginterrupt): Delete fallback.
48224         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48225         instead.
48226         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48227         siginterrupt.
48228
48229         New module sigaction, for mingw.
48230         * modules/sigaction: New module...
48231         * modules/sigaction-tests: ...and its test.
48232         * m4/sigaction.m4: New file.
48233         * lib/sigaction.c: Likewise.
48234         * tests/test-sigaction.c: Likewise.
48235         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48236         * modules/signal (Makefile.am): Likewise.
48237         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48238         needed.
48239         * doc/posix-headers/signal.texi (signal.h): Mention provided
48240         types.
48241         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48242         that sigaction is preferable.
48243         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48244         module.
48245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48246         sigaction.
48247
48248         Improve robustness of sigprocmask by overriding signal.
48249         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48250         is in use.
48251         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48252         (SIGKILL, SIGSTOP): Provide fallbacks.
48253         (rpl_signal): Implement.
48254         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48255         signal can be called inside handlers.
48256
48257         Fix nanosleep module on mingw.
48258         * modules/nanosleep (Depends-on): Add sys_select.
48259         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48260
48261         Fix licensing of sigprocmask.
48262         * modules/raise (License): Relicense as LGPL.
48263
48264 2008-06-21  Bruno Haible  <bruno@clisp.org>
48265
48266         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48267         result if it contains question marks.
48268         Reported by Michael Geng <linux@michaelgeng.de>.
48269
48270 2008-06-19  Bruno Haible  <bruno@clisp.org>
48271
48272         Fix CVS-ism.
48273         * doc/gnulib.texi: Include updated-stamp.texi.
48274         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48275         (updated-stamp.texi): New rule.
48276         (gnulib.info): Depend on it.
48277         * doc/.gitignore: Add updated-stamp.texi.
48278         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48279
48280 2008-06-19  Bruno Haible  <bruno@clisp.org>
48281
48282         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48283         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48284
48285 2008-06-19  Eric Blake  <ebb9@byu.net>
48286
48287         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48288         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48289         Reported by Stepan Kasal.
48290
48291 2008-06-18  Bruno Haible  <bruno@clisp.org>
48292
48293         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48294         Reported by Eric Blake.
48295
48296 2008-06-18  Eric Blake  <ebb9@byu.net>
48297
48298         Work around cygwin 1.5.25 strsignal bug.
48299         * tests/test-strsignal.c: Allow for const char *.
48300         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48301
48302 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48303
48304         * users.txt: Update URL to article and add author/date
48305         information.
48306
48307 2008-06-17  Bruno Haible  <bruno@clisp.org>
48308
48309         New macro gl_DISABLE_THREADS.
48310         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48311         if the user did not pass --enable-threads or --disable-threads option.
48312         (gl_DISABLE_THREADS): New macro.
48313         Reported by Eric Blake <ebb9@byu.net>.
48314
48315 2008-06-17  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48318         when the macro ignores it.
48319         Based on a patch by Eric Blake <ebb9@byu.net>.
48320
48321 2008-06-17  Bruno Haible  <bruno@clisp.org>
48322
48323         * modules/tls (License): Change to LGPLv2+.
48324         Reported by Eric Blake.
48325
48326 2008-06-17  Eric Blake  <ebb9@byu.net>
48327
48328         Simplify c-stack prerequisites.
48329         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48330         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48331         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48332         check.
48333         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48334         <sys/resource.h>.
48335
48336         Move c-stack test into testsuite.
48337         * modules/c-stack-tests: New file.
48338         * lib/c-stack.c [DEBUG]: Move test program...
48339         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48340         fail test if sigaltstack is lacking.
48341         * tests/test-c-stack.sh: New driver file.
48342
48343 2008-06-16  Eric Blake  <ebb9@byu.net>
48344
48345         Use raise module consistently.
48346         * modules/fatal-signal (Depends-on): Add raise.
48347         * modules/sigprocmask (Depends-on): Likewise.
48348         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48349         * lib/sigprocmask.c (sigprocmask): Likewise.
48350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48351         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48352
48353         Fix compliance bug in sigpending.
48354         * lib/sigprocmask.c (sigpending): Return pending array via
48355         parameter, not return value.
48356
48357 2008-06-14  Eric Blake  <ebb9@byu.net>
48358
48359         Improve obstack-printf test code.
48360         * tests/test-obstack-printf.c (test_function): Fix comment, and
48361         simplify usage of obstack_* in macros.  Add a test for coverage.
48362         Reported by Bruno Haible.
48363
48364 2008-06-14  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48367         array size as a constant, not as a const variable.
48368         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48369         AC_USE_SYSTEM_EXTENSIONS.
48370         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48371         Test whether the obstack_printf function actually exists.
48372         * modules/obstack-printf (Depends-on): Add extensions.
48373         (Include): Remove obstack.h.
48374         * modules/obstack-printf-posix (Depends-on): Add extensions.
48375         (Include): Remove obstack.h.
48376
48377 2008-06-13  Eric Blake  <ebb9@byu.net>
48378
48379         Add obstack-printf and obstack-printf-posix modules.
48380         * modules/obstack-printf: New file.
48381         * modules/obstack-printf-posix: Likewise.
48382         * MODULES.html.sh (Misc): Mention them.
48383         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48384         Likewise.
48385         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48386         Likewise.
48387         * modules/stdio (Makefile.am): Accomodate new modules.
48388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48389         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48390         Declare.
48391         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48392         functions.
48393         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48394         (gl_REPLACE_OBSTACK_PRINTF): New macros
48395         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48396         * tests/test-obstack-printf.c: New file.
48397         * modules/obstack-printf-tests: Likewise.
48398         * modules/obstack-printf-posix-tests: Likewise.
48399
48400 2008-06-11  Bruno Haible  <bruno@clisp.org>
48401
48402         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48403         * lib/open.c: Include errno.h.
48404         (open): Fail when attempting to write to a file that has a trailing
48405         slash.
48406         * tests/test-open.c (main): Test against trailing slash bug.
48407         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48408
48409 2008-06-10  Bruno Haible  <bruno@clisp.org>
48410
48411         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48412         for $? to work inside the trap command, with various /bin/sh-s.
48413         * tests/test-vc-list-files-cvs.sh: Likewise.
48414
48415 2008-06-10  Bruno Haible  <bruno@clisp.org>
48416
48417         * lib/acl-internal.h: Don't include gettext.h here.
48418         * lib/set-mode-acl.c: Include gettext.h here.
48419         * lib/copy-acl.c: Likewise.
48420
48421 2008-06-10  Bruno Haible  <bruno@clisp.org>
48422
48423         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48424         * lib/wait-process.c (wait_subprocess): Likewise.
48425         * lib/execute.h (execute): Add termsigp argument.
48426         * lib/execute.c (execute): Likewise.
48427         * lib/csharpcomp.c (compile_csharp_using_pnet,
48428         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48429         * lib/csharpexec.c (execute_csharp_using_pnet,
48430         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48431         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48432         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48433         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48434         is_jikes_present): Update.
48435         * lib/javaexec.c (execute_java_class): Update.
48436         * lib/javaversion.c (execute_and_read_line): Update.
48437         * NEWS: Document the changes.
48438         Reported by Eric Blake.
48439
48440 2008-06-10  Eric Blake  <ebb9@byu.net>
48441
48442         Add missing include.
48443         * tests/test-strstr.c (includes): Add <signal.h>.
48444         * tests/test-strcasestr.c (includes): Likewise.
48445         * tests/test-memmem.c (includes): Likewise.
48446
48447 2008-06-10  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/wait-process.c (wait_subprocess): Add an assertion.
48450
48451 2008-06-10  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
48454
48455 2008-06-10  Bruno Haible  <bruno@clisp.org>
48456
48457         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
48458         using alarm().
48459         * tests/test-strcasestr.c (main): Likewise.
48460         * tests/test-strstr.c (main): Likewise.
48461
48462 2008-06-09  Bruno Haible  <bruno@clisp.org>
48463
48464         Work around the Solaris 10 ACE ACLs ABI change.
48465         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
48466         declare if ACL_NO_TRIVIAL is present.
48467         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
48468         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
48469         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
48470         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
48471         define if ACL_NO_TRIVIAL is present.
48472         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
48473         and use the current ABI.
48474         (file_has_acl): Use same #if condition as elsewhere.
48475         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
48476         in use, and use the current ABI.
48477         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
48478         Reported by Jim Meyering.
48479
48480 2008-06-09  Eric Blake  <ebb9@byu.net>
48481
48482         Work around environments that (stupidly) ignore SIGALRM.
48483         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
48484         before using alarm().
48485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48486         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48487         Reported by Ian Beckwith <ianb@erislabs.net>.
48488
48489         Produce autobuild blurb earlier in log.
48490         * modules/autobuild (configure.ac-early): Move AB_INIT here.
48491
48492 2008-06-09  Jim Meyering  <meyering@redhat.com>
48493         and Ondřej Vašík  <ovasik@redhat.com>
48494
48495         utimens.c: correct kernel bug work-around
48496         Ondřej Vašík found that the invalid return value of 280 indicates
48497         failure, not success, and the kernel bug we're trying to work
48498         around affects not just the utimensat call, but also the fallback
48499         futimens call.
48500         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
48501         not success.
48502         [HAVE_FUTIMENS]: Use the same work-around, here.
48503
48504 2008-06-09  Jim Meyering  <meyering@redhat.com>
48505
48506         add more guards around definition of ACE_-related code
48507         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
48508         ALLOW and ACE_OWNER are also defined.
48509
48510 2008-06-08  Bruno Haible  <bruno@clisp.org>
48511
48512         * lib/acl-internal.h: Add me as co-author.
48513         * lib/file-has-acl.c: Likewise.
48514         * lib/set-mode-acl.c: Likewise.
48515         * lib/copy-acl.c: Likewise.
48516
48517 2008-06-08  Bruno Haible  <bruno@clisp.org>
48518
48519         Add support for AIX ACLs.
48520         * lib/acl-internal.h (acl_nontrivial): New declaration.
48521         * lib/file-has-acl.c (acl_nontrivial): New function.
48522         (file_has_acl): Add implementation using AIX 4 ACL API.
48523         * lib/set-mode-acl.c (qset_acl): Likewise.
48524         * lib/copy-acl.c (qcopy_acl): Likewise.
48525
48526 2008-06-08  Bruno Haible  <bruno@clisp.org>
48527
48528         Add support for HP-UX ACLs.
48529         * lib/acl-internal.h (acl_nontrivial): New declaration.
48530         * lib/file-has-acl.c (acl_nontrivial): New function.
48531         (file_has_acl): Add implementation using HP-UX 11 ACL API.
48532         * lib/set-mode-acl.c (qset_acl): Likewise.
48533         * lib/copy-acl.c (qcopy_acl): Likewise.
48534
48535 2008-06-08  Bruno Haible  <bruno@clisp.org>
48536
48537         Add support for Cygwin ACLs.
48538         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
48539         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
48540         the chmod_or_fchmod call.
48541         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
48542
48543 2008-06-08  Bruno Haible  <bruno@clisp.org>
48544
48545         Fix bug with setuid modes in Solaris 10+ code.
48546         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
48547         succeeded, when the mode contains some special bits.
48548
48549 2008-06-08  Bruno Haible  <bruno@clisp.org>
48550
48551         Add support for Solaris 7..10 ACLs.
48552         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
48553         declarations.
48554         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
48555         functions.
48556         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
48557         * lib/set-mode-acl.c (qset_acl): Likewise.
48558         * lib/copy-acl.c (qcopy_acl): Likewise.
48559
48560 2008-06-08  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
48563         declaration.
48564         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
48565         (acl_access_nontrivial): Remove MacOS X case.
48566         (file_has_acl): Use acl_extended_nontrivial.
48567         * lib/copy-acl.c (qcopy_acl): Likewise.
48568
48569 2008-06-08  Bruno Haible  <bruno@clisp.org>
48570
48571         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
48572
48573 2008-06-08  Jim Meyering  <meyering@redhat.com>
48574
48575         * modules/acl (Maintainer): Add Bruno Haible.
48576
48577 2008-06-07  Bruno Haible  <bruno@clisp.org>
48578
48579         Improve support for Tru64 ACLs.
48580         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
48581         ACL on OSF/1.
48582
48583 2008-06-07  Bruno Haible  <bruno@clisp.org>
48584
48585         Add support for MacOS X ACLs.
48586         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
48587         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
48588         * lib/set-mode-acl.c (qset_acl): Likewise.
48589         * lib/copy-acl.c (qcopy_acl): Likewise.
48590
48591 2008-06-07  Bruno Haible  <bruno@clisp.org>
48592
48593         Fix memory leak introduced on 2008-05-22.
48594         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
48595         use.
48596
48597 2008-06-07  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
48600         to construct an empty ACL.
48601
48602 2008-06-07  Bruno Haible  <bruno@clisp.org>
48603
48604         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
48605         precisely.
48606         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
48607
48608 2008-06-07  Bruno Haible  <bruno@clisp.org>
48609
48610         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
48611         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
48612
48613 2008-06-07  Bruno Haible  <bruno@clisp.org>
48614
48615         * doc/posix-functions/_setjmp.texi: Explain the use of this function
48616         regardless of POSIX.
48617         * doc/posix-functions/_longjmp.texi: Likewise.
48618         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
48619         SystemV platform in this case.
48620
48621 2008-06-06  Eric Blake  <ebb9@byu.net>
48622
48623         Document abort() bugs.
48624         * doc/posix-functions/abort.texi (abort): Mention anomalies.
48625
48626         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
48627         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
48628         sigsetjmp.
48629         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
48630         siglongjmp, but only as a macro.
48631         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
48632         is obsolete.
48633         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
48634
48635         Tweak documentation to cover cygwin argz bugs.
48636         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
48637         argz bug fix; no code change needed since no cygwin releases
48638         occurred between the last fix and the bug being tested.
48639         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
48640         module and recently fixed cygwin bugs.
48641         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
48642         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
48643         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
48644         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
48645         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
48646         Likewise.
48647         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
48648         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
48649         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
48650         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
48651         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
48652         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
48653         Likewise.
48654
48655         Avoid gcc warning on cygwin.
48656         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
48657         !ACL_NO_TRIVIAL]: Avoid unused variable.
48658
48659 2008-06-05  Eric Blake  <ebb9@byu.net>
48660
48661         Be tolerant of UNKNOWN version in gnulib-tool test dir.
48662         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
48663         git-version-gen fails to come up with a version.
48664         Reported by Simon Josefsson.
48665
48666 2008-06-05  Jim Meyering  <meyering@redhat.com>
48667             Paul Eggert  <eggert@cs.ucla.edu>
48668
48669         utimens.c: work around a probable Linux kernel bug
48670         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
48671         appears to be a kernel bug that causes utimensat to return 280
48672         instead of 0, indicating success.
48673
48674 2008-06-04  Bruno Haible  <bruno@clisp.org>
48675
48676         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
48677         2008-06-01 commit.
48678
48679 2008-06-04  Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
48682         * lib/file-has-acl.c (acl_access_nontrivial): New function.
48683         (file_has_acl): Use it. Save errno afterwards.
48684         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
48685
48686 2008-06-03  Bruno Haible  <bruno@clisp.org>
48687
48688         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
48689         draft code. Simplify #ifs.
48690         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
48691         Put Solaris code after POSIX-draft code. Fix comments regarding
48692         Solaris 10, HP-UX. Mention Cygwin.
48693         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
48694
48695 2008-06-03  Eric Blake  <ebb9@byu.net>
48696
48697         Provide fallback for older kernels.
48698         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
48699         Provide runtime fallback if kernel lacks support.
48700         Reported by Mike Frysinger.
48701
48702 2008-06-02  Bruno Haible  <bruno@clisp.org>
48703
48704         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
48705         it exists.
48706
48707 2008-06-02  Bruno Haible  <bruno@clisp.org>
48708
48709         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
48710         * lib/copy-acl.c (qcopy_acl): Update comment.
48711
48712 2008-06-02  Bruno Haible  <bruno@clisp.org>
48713
48714         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
48715         like ACL APIs.
48716
48717 2008-06-02  Bruno Haible  <bruno@clisp.org>
48718
48719         * tests/test-file-has-acl.sh: Use different code for Cygwin.
48720         * tests/test-set-mode-acl.sh: Likewise.
48721         * tests/test-copy-acl.sh: Likewise.
48722         * tests/test-copy-file.sh: Likewise.
48723
48724 2008-06-02  Bruno Haible  <bruno@clisp.org>
48725
48726         * tests/test-file-has-acl.sh: Remove unused code.
48727
48728 2008-06-01  Bruno Haible  <bruno@clisp.org>
48729
48730         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
48731         (copy_acl): Just a wrapper around qcopy_acl that emits the error
48732         messages.
48733         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
48734
48735 2008-06-01  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
48738         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
48739         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
48740         APIs.
48741         * modules/acl-tests (configure.ac): Remove tests now contained in
48742         m4/acl.m4.
48743
48744 2008-06-02  Jim Meyering  <meyering@redhat.com>
48745
48746         announce-gen: use a better key-server host name
48747         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
48748         it may be more consistently reliable.  Suggested by Werner Koch
48749         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
48750
48751 2008-06-01  Bruno Haible  <bruno@clisp.org>
48752
48753         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
48754         Reported by Voroskoi Andras <voroskoi@gmail.com>.
48755
48756 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
48757
48758         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
48759
48760 2008-06-01  Bruno Haible  <bruno@clisp.org>
48761
48762         New ACL tests.
48763         * tests/test-file-has-acl.sh: New file.
48764         * tests/test-file-has-acl.c: New file.
48765         * tests/test-set-mode-acl.sh: New file.
48766         * tests/test-set-mode-acl.c: New file.
48767         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
48768         * tests/test-copy-acl.c: New file.
48769         * modules/acl-tests: New file, based on modules/copy-file-tests.
48770         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
48771         (Depends-on): Add acl-tests.
48772         (configure.ac): Remove checks.
48773         (Makefile.am): Don't create test-sameacls program here any more.
48774
48775 2008-06-01  Bruno Haible  <bruno@clisp.org>
48776
48777         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
48778         * tests/test-sameacls.c: Include progname.h.
48779         (main): Invoke set_program_name. Portability fixes for MacOS X,
48780         Solaris, HP-UX.
48781
48782 2008-06-01  Bruno Haible  <bruno@clisp.org>
48783
48784         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
48785         function.
48786         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
48787
48788 2008-06-01  Bruno Haible  <bruno@clisp.org>
48789
48790         * modules/rpmatch (Depends-on): Add strdup.
48791
48792 2008-06-01  Bruno Haible  <bruno@clisp.org>
48793
48794         * lib/pipe.c: Include unistd-safer.h.
48795         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
48796         * modules/pipe (Depends-on): Add unistd-safer.
48797
48798 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48799
48800         * modules/autobuild (configure.ac): Call AB_INIT.
48801
48802 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48803
48804         * tests/test-getaddrinfo.c: Don't print debug messages by default.
48805         Suggested by Bruno Haible <bruno@clisp.org>.
48806
48807 2008-05-30  Simon Josefsson  <simon@josefsson.org>
48808
48809         * tests/test-base64.c: Cast size_t to unsigned long when invoking
48810         printf.  Use %lu instead of %d.  Reported by Bruno Haible
48811         <bruno@clisp.org>.
48812
48813 2008-05-29  Eric Blake  <ebb9@byu.net>
48814
48815         Prefer new POSIX 200x interfaces over futimesat.
48816         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
48817         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
48818         when available.
48819         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
48820
48821 2008-05-28  Bruno Haible  <bruno@clisp.org>
48822
48823         * modules/stpcpy (License): Change to LGPLv2+.
48824         Requested by David Lutterkort <dlutter@redhat.com>.
48825
48826 2008-05-27  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
48829         current mingw.
48830         Reported by Jose E. Marchesi <jemarch@gnu.org>.
48831
48832 2008-05-27  Bruno Haible  <bruno@clisp.org>
48833
48834         * modules/iconv_open (Link): New section, from module 'iconv'.
48835         * modules/striconv (Link): Likewise.
48836         * modules/striconveh (Link): Likewise.
48837         * modules/xstriconv (Link): Likewise.
48838         * modules/unicodeio (Link): Likewise.
48839         * modules/propername (Link): Likewise.
48840         Reported by Jim Meyering.
48841
48842 2008-05-26  Jim Meyering  <meyering@redhat.com>
48843
48844         sha256: do not artificially restrict buffer length to be < 2^32
48845         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
48846         uint32_t to size_t.
48847         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
48848         to match.
48849
48850         avoid unaligned access errors, e.g., on sparc
48851         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
48852         direct access through a possibly-unaligned uint64* pointer.
48853         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
48854         direct access through a possibly-unaligned uint32* pointer.
48855         Prompted by this patch from Tom "spot" Callaway:
48856         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
48857
48858         sha512.c: fix typo in comment
48859         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
48860
48861 2008-05-25  Bruno Haible  <bruno@clisp.org>
48862
48863         * lib/set-mode-acl.c: Renamed from lib/acl.c.
48864         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
48865         (Makefile.am): Update lib_SOURCES.
48866
48867 2008-05-25  Bruno Haible  <bruno@clisp.org>
48868
48869         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
48870
48871 2008-05-25  Jim Meyering  <meyering@redhat.com>
48872
48873         useless-if-before-free: freed expr may have white-space differences
48874         * build-aux/useless-if-before-free: Recognize cases in which the
48875         freed expression differs from the tested one in embedded white
48876         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
48877         $1 was used, so we can't make any regexp shy.  Improved tests now
48878         detect this.
48879
48880         useless-if-before-free: accept white space in the expression.
48881         * build-aux/useless-if-before-free: For now, any white space
48882         in the expression must be identical in the free argument.
48883
48884         useless-if-before-free: efficiency tweak
48885         * build-aux/useless-if-before-free: Make the expression-matching
48886         regexp "shy".
48887         Make the *outer* regexp shy, not the expr-matching one.
48888
48889         update code-in-comment to accept cast of free arg
48890         * build-aux/useless-if-before-free: Update regexp.
48891
48892 2008-05-25  Bruno Haible  <bruno@clisp.org>
48893
48894         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
48895         * modules/copy-file-tests (Files, Makefile.am): Update.
48896         * tests/test-copy-file.c (func_test_copy): Update.
48897
48898 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
48899
48900         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
48901
48902 2008-05-23  Bruno Haible  <bruno@clisp.org>
48903
48904         Improve support for ACLs on OSF/1.
48905         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
48906         Remove fallback for unknown flavors of ACLs.
48907
48908 2008-05-22  Bruno Haible  <bruno@clisp.org>
48909
48910         Add support for ACLs on OSF/1.
48911         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
48912         replacements.
48913         (acl_free_text): New macro fallback.
48914         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
48915         acl_free.
48916         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
48917         acl_free_text function. Require AC_C_INLINE.
48918
48919 2008-05-22  Bruno Haible  <bruno@clisp.org>
48920
48921         Make copy_acl work on MacOS X 10.5.
48922         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
48923         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
48924         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
48925         If MODE_INSIDE_ACL, don't assume that every system has the same text
48926         representation for ACLs as FreeBSD.
48927         * lib/copy-acl.c (copy_acl): Add support for platforms with
48928         !MODE_INSIDE_ACL.
48929         * lib/file-has-acl.c (file_has_acl): Likewise.
48930         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
48931         FreeBSD, MacOS X, or IRIX, respectively.
48932
48933 2008-05-22  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/acl.h: Don't include <sys/acl.h>.
48936         (GETACLCNT): Move fallback to lib/acl-internal.h.
48937         * lib/acl-internal.h: Include <sys/acl.h> here.
48938         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
48939
48940 2008-05-22  Bruno Haible  <bruno@clisp.org>
48941
48942         Split off copy_acl function to separate file.
48943         * lib/copy-acl.c: New file, extracted from lib/acl.c.
48944         * lib/acl.c (copy_acl): Moved function to separate file.
48945         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
48946         * modules/acl (Files): Add lib/copy-acl.c.
48947         (Makefiles.am): Augment lib_SOURCES.
48948
48949 2008-05-22  Bruno Haible  <bruno@clisp.org>
48950
48951         * modules/copy-file-tests: New file.
48952         * tests/test-copy-file.sh: New file.
48953         * tests/test-copy-file.c: New file.
48954         * tests/test-copy-file-sameacls.c: New file.
48955
48956 2008-05-22  Eric Blake  <ebb9@byu.net>
48957
48958         Avoid gcc warning.
48959         * tests/test-memcmp.c (main): Pass NULL indirectly.
48960
48961 2008-05-21  Bruno Haible  <bruno@clisp.org>
48962
48963         Add reference doc about ACLs.
48964         * doc/acl-resources.txt: New file.
48965         * doc/acl-cygwin.txt: New file.
48966
48967 2008-05-21  Bruno Haible  <bruno@clisp.org>
48968
48969         Avoid one more warning from gcc.
48970         * lib/vasnprintf.c (IF_LINT): Update comments.
48971         (VASNPRINTF): Use it also for the 'prefix' array initializer.
48972
48973 2008-05-21  Jim Meyering  <meyering@redhat.com>
48974
48975         avoid a warning from gcc
48976         * lib/vasnprintf.c (IF_LINT): Define.
48977         (scale10_round_decimal_long_double):
48978         Use it to avoid a "may be used uninitialized" warning.
48979         (scale10_round_decimal_double): Likewise.
48980
48981 2008-05-21  Simon Josefsson  <simon@josefsson.org>
48982
48983         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
48984         declared.
48985
48986 2008-05-20  Bruno Haible  <bruno@clisp.org>
48987
48988         * tests/test-memcmp.c (main): Test also the sign of the result. Test
48989         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
48990
48991 2008-05-20  Simon Josefsson  <simon@josefsson.org>
48992
48993         * modules/memcmp-tests: New file.
48994         * tests/test-memcmp.c: New file.
48995
48996 2008-05-19  Bruno Haible  <bruno@clisp.org>
48997
48998         * modules/propername (Notice, configure.ac): Put quoted "..." into
48999         --keyword option.
49000         * lib/propername.h: Update comments accordingly.
49001         Reported by Eric Blake.
49002
49003 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49004
49005         * modules/getpass-gnu (Depends-on): Add fseeko.
49006
49007 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49008
49009         * modules/base64-tests: New file.
49010
49011 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49012
49013         * lib/base64.c (base64_decode_ctx): If a decode context structure
49014         was passed in use it to ignore newlines.  If a context structure
49015         was _not_ passed in, continue to treat newlines as garbage (this
49016         is the historical behavior).  Formerly base64_decode.
49017         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49018         takes a decode context structure.
49019         * lib/base64.h (base64_decode): Macro for four-argument calls.
49020         (base64_decode_alloc): Likewise.
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
49030 2008-05-19  Jim Meyering  <meyering@redhat.com>
49031
49032         avoid a warning from gcc
49033         * lib/trim.c (IF_LINT): Define.
49034         (trim2): Use it to avoid a "may be used uninitialized" warning.
49035
49036         Fix doc typo.
49037         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49038
49039 2008-05-19  Bruno Haible  <bruno@clisp.org>
49040
49041         * doc/glibc-functions/getpass.texi: Document limits of other
49042         implementations.
49043
49044 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49045             Bruno Haible <bruno@clisp.org>
49046
49047         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49048
49049 2008-05-18  Bruno Haible  <bruno@clisp.org>
49050
49051         * modules/propername: New file, from GNU gettext.
49052         * lib/propername.h: New file, from GNU gettext.
49053         * lib/propername.c: New file, from GNU gettext.
49054         * MODULES.html.sh (Internationalization functions): Add propername.
49055
49056 2008-05-16  Jim Meyering  <meyering@redhat.com>
49057             Bruno Haible  <bruno@clisp.org>
49058
49059         Avoid some warnings from "gcc -Wshadow".
49060         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49061
49062 2008-05-15  Eric Blake  <ebb9@byu.net>
49063
49064         Extend previous patch to cygwin 1.7.0.
49065         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49066         fast implementation in cygwin >= 1.7.0.
49067         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49068         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49069
49070 2008-05-15  Bruno Haible  <bruno@clisp.org>
49071
49072         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49073         implementation in glibc >= 2.9.
49074         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49076
49077 2008-05-15  Bruno Haible  <bruno@clisp.org>
49078
49079         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49080         (Unicode string functions): Add unilbrk/*.
49081         Reported by Karl Berry.
49082
49083 2008-05-15  Eric Blake  <ebb9@byu.net>
49084
49085         Fix violation of <stdbool.h> replacement in regex.
49086         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49087         * lib/regexec.c (re_search_internal): Likewise.
49088         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49089
49090 2008-05-15  Jim Meyering  <meyering@redhat.com>
49091
49092         avoid distracting test output when git or cvs is not found
49093         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49094         * tests/test-vc-list-files-git.sh: Likewise.
49095
49096 2008-05-15  Eric Blake  <ebb9@byu.net>
49097
49098         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49099         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49100         glibc version.
49101         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49102         * doc/posix-functions/strstr.texi (strstr): Likewise.
49103         * lib/str-two-way.h (MAX): Sychronize with glibc.
49104
49105 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49106
49107         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49108         opr.ctx_type.
49109         (calc_first): Initialize constraint field.
49110         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49111         Fix grammar.
49112         (duplicate_node): Merge constraint field for all node types.
49113         (calc_eclosure_iter): Look at constraint field for all node types.
49114         * lib/regex_internal.c (create_cd_newstate): Don't look at
49115         opr.ctx_type.
49116
49117 2008-05-14  Bruno Haible  <bruno@clisp.org>
49118
49119         Help GCC to do better code generation.
49120         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49121         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49122         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49123         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49124         Declare with attribute 'malloc' if supported.
49125
49126 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49127
49128         use "echo STR|wc -c" rather than unportable "expr length STR"
49129         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49130         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49131
49132 2008-05-14  Jim Meyering  <meyering@redhat.com>
49133
49134         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49135         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49136         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49137         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49138         via Collin Lasse.
49139
49140 2008-05-14  Eric Blake  <ebb9@byu.net>
49141
49142         Avoid quadratic growth in gl_LIBSOURCES.
49143         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49144         Suggested by Bruno Haible.
49145
49146         Test xmemdup0.
49147         * modules/xmemdup0-tests: New file.
49148         * tests/test-xmemdup0.c: Likewise.
49149
49150 2008-05-13  Eric Blake  <ebb9@byu.net>
49151
49152         Split xmemdup0 into its own module.
49153         * modules/xmemdup0: New file.
49154         * lib/xmemdup0.h: Likewise.
49155         * lib/xmemdup0.c: Likewise.
49156         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49157         * lib/xalloc.h (xmemdup0): Remove.
49158         * lib/xmalloc.c (xmemdup0): Likewise.
49159
49160 2008-05-13  Eric Blake  <ebb9@byu.net>
49161             Bruno Haible  <bruno@clisp.org>
49162
49163         Reduce number of forks required during autoconf.
49164         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49165         and gl_LIBSOURCES_DIR.
49166         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49167         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49168         m4_syscmd per file.
49169         <m4_foreach_w>: Move...
49170         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49171
49172 2008-05-13  Eric Blake  <ebb9@byu.net>
49173
49174         * gnulib-tool: Fix various comment typos.
49175
49176 2008-05-12  Bruno Haible  <bruno@clisp.org>
49177
49178         Tailor the linebreaking algorithm.
49179         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49180
49181 2008-05-12  Bruno Haible  <bruno@clisp.org>
49182
49183         Update to Unicode 5.0.0.
49184         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49185         LBP_JV, LBP_JT. Redistribute values.
49186         (unilbrk_table): Change size.
49187         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49188         Unicode TR#14 rev. 22.
49189         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49190         LBP_JV, LBP_JT. Redistribute values.
49191         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49192         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49193         Update.
49194         * lib/unilbrk/lbrkprop1.h: Regenerated.
49195         * lib/unilbrk/lbrkprop2.h: Regenerated.
49196         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49197         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49198         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49199         Likewise.
49200         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49201         Likewise.
49202         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49203         result.
49204         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49205         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49206         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49207         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49208         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49209         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49210
49211 2008-05-11  Bruno Haible  <bruno@clisp.org>
49212
49213         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49214
49215 2008-05-11  Bruno Haible  <bruno@clisp.org>
49216
49217         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49218         * modules/unilbrk/gen-lbrk: New file.
49219
49220 2008-05-11  Bruno Haible  <bruno@clisp.org>
49221
49222         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49223         * m4/sha512.m4 (gl_SHA512): Likewise.
49224
49225 2008-05-11  Jim Meyering  <meyering@redhat.com>
49226
49227         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49228         * modules/crypto/sha256: New file.
49229         * modules/crypto/sha512: Likewise.
49230         * lib/sha256.c: Likewise.
49231         * lib/sha256.h: Likewise.
49232         * lib/sha512.c: Likewise.
49233         * lib/sha512.h: Likewise.
49234         * lib/u64.h: Likewise.
49235         * m4/sha256.m4: Likewise.
49236         * m4/sha512.m4: Likewise.
49237         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49238
49239 2008-05-10  Bruno Haible  <bruno@clisp.org>
49240
49241         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49242         (Input/Output <stdio.h>): Add xprintf.
49243         (Signal handling <signal.h>): Add strsignal.
49244         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49245         (Core language properties): Add func.
49246         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49247         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49248         strings.
49249         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49250         (Input/output): New section.
49251         (File system functions): Add openat-die, stat-macros.
49252         (Networking functions): Add sockets.
49253         (Unicode string functions): Add unictype/*.
49254         (Support for building libraries and executables): Add gperf.
49255         (Support for building documentation): Add agpl-3.0.
49256         (Misc): Add nocrash.
49257
49258 2008-05-10  Bruno Haible  <bruno@clisp.org>
49259
49260         * modules/unictype/gen-ctype: New file.
49261
49262 2008-05-10  Jim Meyering  <meyering@redhat.com>
49263
49264         Make chdir-safer.c more efficient on a system with no symlinks.
49265         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49266         also if ELOOP is zero.  Suggested by Bruno Haible.
49267
49268         Make chdir-safer.c slightly safer.
49269         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49270         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49271
49272         Avoid compile failure on systems without ELOOP (like mingw).
49273         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49274         Reported by Bruno Haible.
49275
49276 2008-05-10  Bruno Haible  <bruno@clisp.org>
49277
49278         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49279         (is_utf8_encoding): Use a case-insensitive comparison.
49280         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49281         streq.
49282
49283 2008-05-10  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49286         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49287         * lib/unilbrk/ulc-common.h (iconv_string_length,
49288         iconv_string_keeping_offsets): Remove declarations.
49289         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49290         Don't include <iconv.h>, streq.h, xsize.h.
49291         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49292         conversion.
49293         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49294         <iconv.h>, streq.h, xsize.h.
49295         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49296         conversion.
49297         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49298         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49299         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49300         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49301
49302 2008-05-10  Bruno Haible  <bruno@clisp.org>
49303
49304         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49305         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49306
49307         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49308         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49309
49310         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49311         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49312
49313         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49314         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49315
49316         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49317         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49318
49319         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49320         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49321
49322         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49323         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49324
49325         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49326         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49327
49328 2008-05-10  Bruno Haible  <bruno@clisp.org>
49329
49330         Split up 'linebreak' module.
49331         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49332         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49333         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49334         modifications.
49335         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49336         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49337         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49338         lib/linebreak.c.
49339         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49340         lib/linebreak.c.
49341         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49342         lib/linebreak.c.
49343         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49344         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49345         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49346         lib/linebreak.c.
49347         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49348         lib/linebreak.c.
49349         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49350         lib/linebreak.c.
49351         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49352         lib/linebreak.c.
49353         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49354         lib/linebreak.c.
49355         * modules/unilbrk/base: New file.
49356         * modules/unilbrk/tables: New file.
49357         * modules/unilbrk/u8-possible-linebreaks: New file.
49358         * modules/unilbrk/u16-possible-linebreaks: New file.
49359         * modules/unilbrk/u32-possible-linebreaks: New file.
49360         * modules/unilbrk/ulc-common: New file.
49361         * modules/unilbrk/ulc-possible-linebreaks: New file.
49362         * modules/unilbrk/u8-width-linebreaks: New file.
49363         * modules/unilbrk/u16-width-linebreaks: New file.
49364         * modules/unilbrk/u32-width-linebreaks: New file.
49365         * modules/unilbrk/ulc-width-linebreaks: New file.
49366         * lib/linebreak.h: Remove file.
49367         * lib/linebreak.c: Remove file.
49368         * m4/linebreak.m4: Remove file.
49369         * modules/linebreak: Remove file.
49370         * NEWS: Mention the changes.
49371
49372 2008-05-09  Eric Blake  <ebb9@byu.net>
49373
49374         Add xmemdup0.
49375         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49376         implementation.
49377         * lib/xmalloc.c (xmemdup0): New C implementation.
49378
49379 2008-05-08  Bruno Haible  <bruno@clisp.org>
49380
49381         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49382
49383 2008-05-07  Eric Blake  <ebb9@byu.net>
49384
49385         Support cross-compilation of <wctype.h>.
49386         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49387         AC_CACHE_CHECK.
49388
49389 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49390
49391         * build-aux/vc-list-files: Add support for bzr.
49392
49393 2008-05-03  Jim Meyering  <meyering@redhat.com>
49394
49395         avoid failed assertion with tight malloc
49396         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49397
49398 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49399
49400         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49401         are needed from arpa/inet.h.
49402         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49403         Reported by Bruno Haible.
49404
49405 2008-05-02  Jim Meyering  <meyering@redhat.com>
49406
49407         avoid compilation error on FreeBSD 6
49408         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49409
49410 2008-05-01  Jim Meyering  <meyering@redhat.com>
49411
49412         useless-if-before-free: correct --help's exit status description
49413         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49414         for one or more matches, etc.  Reported by Bruno Haible.
49415
49416         vc-list-files: make the stand-alone gnulib test work
49417         * modules/vc-list-files-tests (configure.ac):
49418         Define and AC_SUBST abs_aux_dir.
49419         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49420         $(abs_top_srcdir) to each script and having each of them
49421         duplicate the work of setting PATH, set PATH here, using
49422         the new variable, abs_aux_dir instead.
49423         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49424         * tests/test-vc-list-files-git.sh: Likewise.
49425         Reported by Bruno Haible.
49426
49427 2008-05-01  Bruno Haible  <bruno@clisp.org>
49428
49429         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49430         reallocation. Rename 'done' to 'found_delimiter'.
49431
49432 2008-05-01  Jim Meyering  <meyering@redhat.com>
49433
49434         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49435         * build-aux/vc-list-files: Use `...`, not $(...).
49436
49437 2008-04-30  Jim Meyering  <meyering@redhat.com>
49438
49439         add tests for vc-list-files
49440         * modules/vc-list-files-tests: New module.
49441         * tests/test-vc-list-files-cvs.sh: New file.
49442         * tests/test-vc-list-files-git.sh: New file.
49443
49444         avoid a warning from gcc
49445         * lib/getndelim2.c (IF_LINT): Define.
49446         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
49447
49448         vc-list-files: work properly with build-aux/cvsu, too
49449         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
49450         to all cvs-based clauses.
49451
49452         vc-list-files: work properly in the CVS+awk case, too
49453         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
49454
49455         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
49456         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
49457         take more than one file argument, so .  Add quotes, just in case $dir
49458         ever contains a shell meta-character.  Prompted by Soren Hansen in
49459         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
49460
49461 2008-04-29  Eric Blake  <ebb9@byu.net>
49462
49463         Optimize getndelim2 to use block operations when possible.
49464         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
49465         freadseek, and memchr2.
49466         * lib/getndelim2.c (getndelim2): Use them for block reads.
49467
49468 2008-04-29  Bruno Haible  <bruno@clisp.org>
49469
49470         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
49471         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49472         * modules/inet_ntop (Depends-on): Add extensions.
49473         * modules/inet_pton (Depends-on): Likewise.
49474         Reported by Simon Josefsson.
49475
49476 2008-04-29  Jim Meyering  <meyering@redhat.com>
49477
49478         When the is more than one match in a block, match all of them.
49479         * build-aux/useless-if-before-free: Iterate through each block
49480         until there are no more matches.
49481
49482         Fix broken useless-if-before-free script.
49483         * build-aux/useless-if-before-free: Fix typo: missing "?" after
49484         the expression to match cast of argument to free-like function.
49485
49486 2008-04-29  Eric Blake  <ebb9@byu.net>
49487
49488         Use new header.
49489         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
49490
49491 2008-04-29  Jim Meyering  <meyering@redhat.com>
49492
49493         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
49494         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
49495         by gnulib to exist and to declare e.g., inet_ntop.
49496         Don't include "inet_ntop.h", now removed.
49497
49498         * m4/arpa_inet_h.m4: Remove trailing blanks.
49499
49500 2008-04-29  Eric Blake  <ebb9@byu.net>
49501
49502         Silence valgrind on safe reads beyond potential array bounds.
49503         * lib/rawmemchr.valgrind: New file.
49504         * lib/strchrnul.valgrind: Likewise.
49505         * modules/rawmemchr (Files): Distribute new file.
49506         * modules/strchrnul (Files): Likewise.
49507         Suggested by Bruno Haible.
49508
49509 2008-04-29  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
49512         (inet_ntop, inet_pton): Change portability warning's wording.
49513         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
49514         Invoke gl_CHECK_NEXT_HEADERS.
49515         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
49516         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
49517         set ARPA_INET_H.
49518         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
49519         * modules/arpa_inet (Description): No longer only for systems that
49520         lack it.
49521         (Depends-on): Add include_next.
49522         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
49523         HAVE_ARPA_INET_H.
49524
49525 2008-04-29  Jim Meyering  <meyering@redhat.com>
49526
49527         * modules/mkdir (License): Re-license as LGPLv2+.
49528
49529 2008-04-29  Bruno Haible  <bruno@clisp.org>
49530
49531         * modules/rawmemchr (Maintainer): Set to Eric.
49532         * modules/strchrnul (Maintainer): Likewise.
49533
49534 2008-04-29  Simon Josefsson  <simon@josefsson.org>
49535
49536         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
49537         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
49538
49539         * modules/arpa_inet (arpa/inet.h): Use them.
49540
49541 2008-04-28  Eric Blake  <ebb9@byu.net>
49542
49543         Test getndelim2.
49544         * modules/getndelim2-tests: New file.
49545         * tests/test-getndelim2.c: Likewise.
49546         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
49547         stream.
49548         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
49549
49550         * MODULES.html.sh: Document new module.
49551
49552 2008-04-20  Bruno Haible  <bruno@clisp.org>
49553
49554         * lib/c-stack.c (die): Use raise.
49555         * modules/c-stack (Depends-on): Add raise.
49556
49557 2008-04-28  Bruno Haible  <bruno@clisp.org>
49558
49559         Expect rpmatch to be declared.
49560         * lib/yesno.c (rpmatch): Remove declaration.
49561
49562         Declare rpmatch.
49563         * lib/stdlib.in.h (rpmatch): New declaration.
49564         * lib/rpmatch.c: Include <stdlib.h> first.
49565         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
49566         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
49567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
49568         HAVE_RPMATCH.
49569         * modules/rpmatch (Depends-on): Add stdlib, extensions.
49570         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49571         (Include): Set to <stdlib.h>.
49572         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
49573         HAVE_RPMATCH.
49574         * NEWS: Document the change.
49575
49576 2008-04-28  Bruno Haible  <bruno@clisp.org>
49577
49578         Change rpmatch to use nl_langinfo when appropriate.
49579         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
49580         (N_): New macro.
49581         (localized_pattern): New function/macro.
49582         (try): Remove match, nomatch arguments. Copy the pattern into safe
49583         memory before caching it.
49584         (rpmatch): Use localized_pattern. Add translator comments.
49585         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
49586         Suggested by Eric Blake.
49587         * modules/rpmatch (Depends-on): Add stdbool.
49588
49589 2008-04-28  Eric Blake  <ebb9@byu.net>
49590
49591         Add rawmemchr module, matching glibc.
49592         * modules/string (Makefile.am): New indicator.
49593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
49594         * lib/string.in.h (rawmemchr): Declare when appropriate.
49595         * modules/rawmemchr: New file.
49596         * m4/rawmemchr.m4: Likewise.
49597         * lib/rawmemchr.c: Likewise.
49598         * modules/rawmemchr-tests: Likewise.
49599         * tests/test-rawmemchr.c: Likewise.
49600         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
49601         module.
49602         * modules/strchrnul (Depends-on): Add rawmemchr.
49603         * lib/strchrnul.c (strchrnul): Optimize a corner case.
49604
49605         Whitespace cleanup.
49606         * tests/test-strchrnul.c: Reindent.
49607         * lib/strchrnul.c: Likewise.
49608
49609         Optimize and test strchrnul.
49610         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
49611         * modules/strchrnul-tests: New file.
49612         * tests/test-strchrnul.c: Likewise.
49613
49614         Remove intprops dependency.
49615         * modules/memchr (Depends-on): Remove intprops.
49616         * modules/memrchr (Depends-on): Likewise.
49617         * modules/memchr2 (Depends-on): Likewise.
49618         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
49619         * lib/memrchr.c (__memrchr): Likewise.
49620         * lib/memrchr2.c (memchr2): Likewise.
49621         Reported by Simon Josefsson.
49622
49623 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49624
49625         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
49626         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49627
49628 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49629
49630         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
49631
49632         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
49633
49634         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
49635
49636         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
49637         declarations.
49638         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
49639
49640         * m4/inet_pton.m4: Don't check for header files.
49641
49642         * m4/inet_ntop.m4: Don't check for header files.
49643
49644 2008-04-28  Simon Josefsson  <simon@josefsson.org>
49645
49646         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
49647         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
49648         trigger for cygwin).
49649         Reported by Bruno Haible  <bruno@clisp.org>.
49650
49651 2008-04-28  Bruno Haible  <bruno@clisp.org>
49652
49653         * doc/posix-functions/strdup.texi: Mention mingw problem.
49654
49655 2008-04-27  Bruno Haible  <bruno@clisp.org>
49656
49657         * modules/stat-time-tests (Depends-on): Add sleep.
49658         * tests/test-stat-time.c (force_unlink): New function.
49659         (cleanup): Use it.
49660         (test_mtime): Remove the ctime related tests.
49661         (test_ctime): New function, containing the ctime related tests.
49662         (main): Call test_ctime, except on native Windows platforms.
49663
49664 2008-04-27  Bruno Haible  <bruno@clisp.org>
49665
49666         * lib/rpmatch.c (rpmatch): Add some comments.
49667         Reported by James Youngman <jay@gnu.org>.
49668
49669 2008-04-27  Bruno Haible  <bruno@clisp.org>
49670
49671         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
49672         quiet NaNs.
49673
49674 2008-04-27  Bruno Haible  <bruno@clisp.org>
49675
49676         Make test-yesno.sh work on mingw.
49677         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
49678         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
49679         (main): Set stdin to binary mode.
49680         * modules/yesno-tests (Depends-on): Add binary-io.
49681
49682 2008-04-27  Bruno Haible  <bruno@clisp.org>
49683
49684         Fix 'isfinite' on x86, x86_64, ia64 platforms.
49685         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
49686         argument that lie outside the IEEE 854 domain.
49687         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
49688         (gl_ISFINITE): Use it.
49689         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
49690
49691 2008-04-27  Bruno Haible  <bruno@clisp.org>
49692
49693         Allow local renaming in config.h.
49694         * lib/memrchr.c (memrchr): Don't undefine outside libc.
49695
49696 2008-04-27  Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/memchr.c (__memchr): Change type of 'i'.
49699         * lib/memchr2.c (memchr2): Likewise.
49700
49701 2008-04-26  Eric Blake  <ebb9@byu.net>
49702         and Bruno Haible  <bruno@clisp.org>
49703
49704         Optimize and test memrchr.
49705         * modules/memrchr (Depends-on): Add intprops.
49706         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
49707         * modules/memrchr-tests: New file.
49708         * tests/test-memrchr.c: New file.
49709
49710 2008-04-26  Bruno Haible  <bruno@clisp.org>
49711
49712         Add tentative support for DragonFly BSD.
49713         * lib/stdio-impl.h: Add macros for DragonFly BSD.
49714         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
49715         fp.
49716         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49717         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
49718         * lib/fpurge.c (fpurge): Likewise.
49719         * lib/freadable.c (freaadable): Likewise.
49720         * lib/freadahead.c (freadahead): Likewise.
49721         * lib/freading.c (freading): Likewise.
49722         * lib/freadptr.c (freadptr): Likewise.
49723         * lib/freadseek.c (freadptrinc): Likewise.
49724         * lib/fseeko.c (fseeko): Likewise.
49725         * lib/fseterr.c (fseterr): Likewise.
49726         * lib/fwritable.c (fwritable): Likewise.
49727         * lib/fwriting.c (fwriting): Likewise.
49728
49729 2008-04-26  Bruno Haible  <bruno@clisp.org>
49730
49731         * lib/stdio-impl.h: New file.
49732         * lib/fbufmode.c: Include stdio-impl.h.
49733         (fbufmode): Use fp_, remove redundant #defines.
49734         * lib/fflush.c: Include stdio-impl.h.
49735         (clear_ungetc_buffer): Remove redundant #defines.
49736         * lib/fpurge.c: Include stdio-impl.h.
49737         (fpurge): Remove redundant #defines.
49738         * lib/freadable.c: Include stdio-impl.h.
49739         (freadable): Remove redundant #defines.
49740         * lib/freadahead.c: Include stdio-impl.h.
49741         (freadahead): Remove redundant #defines.
49742         * lib/freading.c: Include stdio-impl.h.
49743         (freading): Remove redundant #defines.
49744         * lib/freadptr.c: Include stdio-impl.h.
49745         (freadptr): Remove redundant #defines.
49746         * lib/freadseek.c: Include stdio-impl.h.
49747         (freadptrinc): Remove redundant #defines.
49748         * lib/fseeko.c: Include stdio-impl.h.
49749         (rpl_fseeko): Remove redundant #defines.
49750         * lib/fseterr.c: Include stdio-impl.h.
49751         (fseterr): Remove redundant #defines.
49752         * lib/fwritable.c: Include stdio-impl.h.
49753         (fwritable: Remove redundant #defines.
49754         * lib/fwriting.c: Include stdio-impl.h.
49755         (fwriting): Remove redundant #defines.
49756         * modules/fbufmode (Files): Add lib/stdio-impl.h.
49757         * modules/fflush (Files): Likewise.
49758         * modules/fpurge (Files): Likewise.
49759         * modules/freadable (Files): Likewise.
49760         * modules/freadahead (Files): Likewise.
49761         * modules/freading (Files): Likewise.
49762         * modules/freadptr (Files): Likewise.
49763         * modules/freadseek (Files): Likewise.
49764         * modules/fseeko (Files): Likewise.
49765         * modules/fseterr (Files): Likewise.
49766         * modules/fwritable (Files): Likewise.
49767         * modules/fwriting (Files): Likewise.
49768
49769 2008-04-26  Bruno Haible  <bruno@clisp.org>
49770
49771         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
49772         restore_seek_optimization, update_fpos_cache): New functions, extracted
49773         from rpl_fflush.
49774         (rpl_fflush): Use them.
49775         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
49776         (gl_REPLACE_FFLUSH): Use it.
49777
49778 2008-04-26  Bruno Haible  <bruno@clisp.org>
49779
49780         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
49781         on Solaris.
49782         * tests/test-xstrtoimax.sh: Likewise.
49783         * tests/test-xstrtoumax.sh: Likewise.
49784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49785
49786 2008-04-26  Bruno Haible  <bruno@clisp.org>
49787
49788         * modules/memchr-tests: New file.
49789         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
49790
49791 2008-04-26  Eric Blake  <ebb9@byu.net>
49792             Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/memchr.c: Include intprops.h.
49795         (__memchr): Optimize parallel detection of matching bytes. Rename local
49796         variables. Add explanatory comments.
49797
49798 2008-04-26  Bruno Haible  <bruno@clisp.org>
49799
49800         Fix module 'memchr', broken since 2000-10-28.
49801         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
49802
49803 2008-04-26  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
49806         comments.
49807
49808 2008-04-25  Eric Blake  <ebb9@byu.net>
49809
49810         Use native fstatat on cygwin 1.7.0.
49811         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
49812         first.
49813
49814 2008-04-23  Eric Blake  <ebb9@byu.net>
49815
49816         Improve memchr2 performance.
49817         * lib/memchr2.c (memchr2): Further optimize parallel detection of
49818         NUL bytes.
49819         * modules/memchr2 (Depends-on): Use intprops.h.
49820
49821 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49822
49823         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
49824         an inline function instead of a CPP macro.  Patch by Ben Pfaff
49825         <blp@cs.stanford.edu>.
49826
49827 2008-04-23  Simon Josefsson  <simon@josefsson.org>
49828
49829         * lib/arpa_inet.in.h: New file.
49830
49831         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
49832         (Makefile.am): Sed in substitute header file.
49833
49834         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
49835         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
49836
49837         * modules/inet_ntop (configure.ac): Use
49838         gl_ARPA_INET_MODULE_INDICATOR.
49839
49840         * modules/inet_pton (configure.ac): Use
49841         gl_ARPA_INET_MODULE_INDICATOR.
49842
49843 2008-04-22  Jim Meyering  <meyering@redhat.com>
49844
49845         * modules/verify (License): Re-license as LGPLv2+.
49846
49847 2008-04-22  Simon Josefsson  <simon@josefsson.org>
49848
49849         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
49850         parameter to void* as per POSIX standard (MinGW uses char*).
49851
49852 2008-04-21  Bruno Haible  <bruno@clisp.org>
49853
49854         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49855         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
49856         Define to replacements if REPLACE_ISWCNTRL is 1.
49857         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
49858         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
49859         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
49860         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
49861         what it fixes.
49862         * doc/posix-functions/iswalpha.texi: Likewise.
49863         * doc/posix-functions/iswblank.texi: Likewise.
49864         * doc/posix-functions/iswcntrl.texi: Likewise.
49865         * doc/posix-functions/iswdigit.texi: Likewise.
49866         * doc/posix-functions/iswgraph.texi: Likewise.
49867         * doc/posix-functions/iswlower.texi: Likewise.
49868         * doc/posix-functions/iswprint.texi: Likewise.
49869         * doc/posix-functions/iswpunct.texi: Likewise.
49870         * doc/posix-functions/iswspace.texi: Likewise.
49871         * doc/posix-functions/iswupper.texi: Likewise.
49872         * doc/posix-functions/iswxdigit.texi: Likewise.
49873         Reported by Alain Guibert.
49874
49875 2008-04-21  Bruno Haible  <bruno@clisp.org>
49876
49877         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
49878         Patch by Alain Guibert.
49879
49880 2008-04-21  Bruno Haible  <bruno@clisp.org>
49881
49882         Fix test failures on mingw.
49883         * tests/test-xstrtol.c (print_no_progname): New function.
49884         (main): Install it in error_print_progname hook.
49885         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
49886         * tests/test-xstrtoimax.sh: Likewise.
49887         * tests/test-xstrtoumax.sh: Likewise.
49888
49889 2008-04-21  Bruno Haible  <bruno@clisp.org>
49890
49891         Fix test failure on mingw.
49892         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
49893
49894 2008-04-21  Bruno Haible  <bruno@clisp.org>
49895
49896         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
49897         Actually assign a value.
49898
49899 2008-04-20  Bruno Haible  <bruno@clisp.org>
49900
49901         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
49902         take 2.
49903         * lib/canonicalize.c (canonicalize_file_name): Elide if the
49904         'canonicalize-lgpl' module is also used.
49905         * lib/canonicalize-lgpl.c: Undo last change.
49906         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
49907
49908 2008-04-20  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
49911         config.h. Provide _mkdir based fallback for mingw.
49912         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
49913         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
49914         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
49915         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
49916         rather than defining mkdir in config.h.
49917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
49918         (gl_SYS_STAT_H_DEFAULTS): New macro.
49919         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
49920         HAVE_IO_H any more.
49921         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
49922         HAVE_DECL_MKDIR and HAVE_IO_H.
49923
49924 2008-04-20  Bruno Haible  <bruno@clisp.org>
49925
49926         * lib/isapipe.c: Port to native Windows platforms.
49927
49928 2008-04-20  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
49931
49932 2008-04-21  Eric Blake  <ebb9@byu.net>
49933
49934         Work around preprocessors that don't handle UINTMAX_MAX.
49935         * lib/memchr2.c (memchr2): Avoid embedded #if.
49936         Reported by Alain Guibert, fix suggested by Bruno Haible.
49937
49938 2008-04-21  Simon Josefsson  <simon@josefsson.org>
49939
49940         * doc/posix-functions/strftime.texi (strftime): Explain better
49941         Windows incompatibility.  Suggested by Micah Cowan
49942         <micah@cowan.name>.
49943
49944 2008-04-20  Bruno Haible  <bruno@clisp.org>
49945
49946         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
49947         unistr/u8-mblen.
49948
49949 2008-04-20  Bruno Haible  <bruno@clisp.org>
49950
49951         Fix test failure on platforms with non-GNU iconv.
49952         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
49953         (U_TO_U8): Use it, rather than u16_to_u8.
49954         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
49955         units at the end of the input string.
49956         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
49957
49958 2008-04-20  Bruno Haible  <bruno@clisp.org>
49959
49960         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
49961         when the resulting length is 0.
49962         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
49963
49964 2008-04-20  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
49967         works.
49968         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
49969
49970 2008-04-20  Bruno Haible  <bruno@clisp.org>
49971
49972         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
49973         * modules/tsearch-tests (configure.ac): Test for initstate function.
49974
49975 2008-04-20  Bruno Haible  <bruno@clisp.org>
49976
49977         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
49978         for nlink_t if missing.
49979         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
49980
49981 2008-04-19  Bruno Haible  <bruno@clisp.org>
49982
49983         Work around snprintf bug on Linux libc5.
49984         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
49985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49986         gl_SNPRINTF_SIZE1.
49987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49988         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
49989         that test failed.
49990         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
49991         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
49992         * modules/snprintf (Files): Add m4/printf.m4.
49993         * modules/vsnprintf (Files): Likewise.
49994         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
49995         * doc/posix-functions/vsnprintf.texi: Likewise.
49996
49997 2008-04-19  Bruno Haible  <bruno@clisp.org>
49998
49999         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50000         from 0.0058 to less than 10^-7.
50001
50002 2008-04-19  Bruno Haible  <bruno@clisp.org>
50003
50004         Fix rounding when a precision is given.
50005         * lib/vasnprintf.c (is_borderline): New function.
50006         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50007         9...9x.
50008         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50009         %e, %g.
50010         * tests/test-vasprintf-posix.c (test_function): Likewise.
50011         * tests/test-snprintf-posix.h (test_function): Likewise.
50012         * tests/test-sprintf-posix.h (test_function): Likewise.
50013         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50014         * tests/test-printf-posix.h (test_function): Likewise.
50015         * tests/test-printf-posix.output: Update.
50016         Reported by John Darrington <john@darrington.wattle.id.au> via
50017         Ben Pfaff <blp@cs.stanford.edu>.
50018
50019 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50020
50021         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50022         Suggested by Bruno Haible <bruno@clisp.org>.
50023
50024 2008-04-17  Bruno Haible  <bruno@clisp.org>
50025
50026         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50027         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50028         implementation.
50029         Patch by Bruce Merry <bmerry@gmail.com>.
50030
50031 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50032
50033         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50034         doesn't work under Windows.
50035
50036 2008-04-16  Bruno Haible  <bruno@clisp.org>
50037
50038         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50039         New macros.
50040         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50041         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50042         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50043         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50044         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50045         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50046         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50047         macros.
50048         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50049         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50050         Northern Sotho, Uighur.
50051
50052 2008-04-16  Bruno Haible  <bruno@clisp.org>
50053
50054         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50055         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50056         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50057         Reported by Daniel Bergström <daniel@octocode.com>.
50058
50059 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50060             Bruno Haible  <bruno@clisp.org>
50061
50062         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50063         function.
50064         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50065         New functions, mostly extracted from gl_locale_name_default.
50066         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50067
50068 2008-04-16  Eric Blake  <ebb9@byu.net>
50069
50070         Adjust strtod detection to catch glibc 2.7 bug.
50071         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50072         Reported by John Gatewood Ham.
50073
50074 2008-04-16  Bruno Haible  <bruno@clisp.org>
50075
50076         Add tentative support for Linux libc5.
50077         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50078         * lib/fpurge.c (fpurge): Likewise.
50079         * lib/freadable.c (freadable): Likewise.
50080         * lib/freadahead.c (freadahead): Likewise.
50081         * lib/freading.c (freading): Likewise.
50082         * lib/freadptr.c (freadptr): Likewise.
50083         * lib/freadseek.c (freadptrinc): Likewise.
50084         * lib/fseeko.c (rpl_fseeko): Likewise.
50085         * lib/fseterr.c (fseterr): Likewise.
50086         * lib/fwritable.c (fwritable): Likewise.
50087         * lib/fwriting.c (fwriting): Likewise.
50088         Reported by Alain Guibert <alguibert+bts@free.fr>.
50089
50090 2008-04-15  Bruno Haible  <bruno@clisp.org>
50091
50092         * modules/mathl (configure.ac): Define module indicator.
50093
50094 2008-04-15  Bruno Haible  <bruno@clisp.org>
50095
50096         * lib/logl.c (logl): Remove unused variables.
50097
50098 2008-04-15  Bruno Haible  <bruno@clisp.org>
50099
50100         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50101         fails.
50102
50103 2008-04-15  Bruno Haible  <bruno@clisp.org>
50104
50105         * lib/trim.c (trim2): Fix argument of isspace() macro.
50106
50107 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50108
50109         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50110         to 0.
50111         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50112
50113 2008-04-14  Bruno Haible  <bruno@clisp.org>
50114
50115         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50116         AC_LANG_PROGRAM argument.
50117         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50118         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50119         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50120         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50121         * m4/math_h.m4 (gl_MATH_H): Likewise.
50122         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50123         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50124         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50125         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50126         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50127         * m4/regex.m4 (gl_REGEX): Likewise.
50128         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50129         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50131         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50132         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50133         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50134         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50135         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50136
50137 2008-04-14  Jim Meyering  <meyering@redhat.com>
50138
50139         test-strtod: fix typos: s/abs/fabs/
50140         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50141
50142 2008-04-13  Bruno Haible  <bruno@clisp.org>
50143
50144         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50145         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50146         module is also used and while not building the reloc-wrapper.
50147
50148 2008-04-13  Bruno Haible  <bruno@clisp.org>
50149
50150         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50151
50152 2008-04-13  Bruno Haible  <bruno@clisp.org>
50153
50154         Fix AIX compilation failure introduced on 2008-04-02.
50155         * tests/test-frexp.c (exp): Undefine before redefining.
50156         * tests/test-frexpl.c (exp): Likewise.
50157
50158 2008-04-13  Bruno Haible  <bruno@clisp.org>
50159
50160         Work around a HP-UX stdio bug.
50161         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50162         * tests/test-ftello.c (main): Likewise.
50163         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50164         * doc/posix-functions/ftello.texi: Likewise.
50165
50166 2008-04-13  Bruno Haible  <bruno@clisp.org>
50167
50168         Make test-signbit pass on HP-UX/hppa.
50169         * tests/test-signbit.c (minus_zerol): New variable.
50170         (test_signbitl): Use it.
50171
50172 2008-04-13  Bruno Haible  <bruno@clisp.org>
50173
50174         Make truncl work on OSF/1 4.0.
50175         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50176         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50177         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50179         HAVE_DECL_TRUNCL.
50180         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50181         HAVE_DECL_TRUNCL.
50182         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50183
50184 2008-04-13  Bruno Haible  <bruno@clisp.org>
50185
50186         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50187
50188 2008-04-13  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50191         expression, so as to avoid HP-UX 11 cc compiler bug.
50192
50193 2008-04-13  Bruno Haible  <bruno@clisp.org>
50194
50195         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50196
50197 2008-04-13  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/git-merge-changelog.c: Remove empty declaration outside of
50200         functions.
50201
50202 2008-04-13  Bruno Haible  <bruno@clisp.org>
50203
50204         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50205
50206 2008-04-13  Bruno Haible  <bruno@clisp.org>
50207
50208         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50209         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50210         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50211         also if it exists but lacks definitions of the SHUT_* macros.
50212         * modules/sys_socket (Description): Update.
50213         Reported by Elbert Pol <e.pol@chello.nl>.
50214
50215 2008-04-13  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/localcharset.c (OS2): Don't redefine if already defined.
50218         Reported by Elbert Pol <e.pol@chello.nl>.
50219
50220 2008-04-13  Bruno Haible  <bruno@clisp.org>
50221
50222         * lib/binary-io.h [__EMX__]: Include <io.h>.
50223         Reported by Elbert Pol <e.pol@chello.nl>.
50224
50225 2008-04-12  Bruno Haible  <bruno@clisp.org>
50226
50227         * lib/fpucw.h: Enable the definitions also for x86_64.
50228         Needed for NetBSD/x86_64.
50229         Reported by Thomas Klausner <tk@giga.or.at>.
50230
50231 2008-04-12  Bruno Haible  <bruno@clisp.org>
50232
50233         * tests/test-strtod.c: Include isnand.h.
50234         (main): Use isnand instead of isnan.
50235         Reported by Jim Meyering.
50236
50237 2008-04-12  Bruno Haible  <bruno@clisp.org>
50238
50239         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50240         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50241
50242 2008-04-12  Jim Meyering  <meyering@redhat.com>
50243
50244         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50245
50246 2008-04-12  Bruno Haible  <bruno@clisp.org>
50247
50248         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50249         Reported by Elbert Pol <e.pol@chello.nl>.
50250
50251 2008-04-12  Eric Blake  <ebb9@byu.net>
50252
50253         Work around Solaris 10 math.h bug.
50254         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50255         (gl_MATH_H_DEFAULTS): Set up default.
50256         * modules/math (Makefile.am): Replace new indicators.
50257         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50258         * tests/test-math.c (main): Test this.
50259         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50260         * doc/posix-headers/math.texi (math.h): Mention bug.
50261         Reported by Nelson H. F. Beebe and Jim Meyering.
50262
50263 2008-04-11  Bruno Haible  <bruno@clisp.org>
50264
50265         Adapt to future versions of Apple GCC.
50266         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50267         Reported by Peter O'Gorman <peter@pogma.com>.
50268
50269 2008-04-11  Bruno Haible  <bruno@clisp.org>
50270
50271         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50272
50273 2008-04-11  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50276
50277         * modules/getaddrinfo-tests (Makefile.am): Define
50278         test_getaddrinfo_LDADD.
50279
50280 2008-04-11  Bruno Haible  <bruno@clisp.org>
50281
50282         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50283         (init): Fix syntax error.
50284         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50285         is declared.
50286
50287 2008-04-11  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50290         * modules/glob (Depends-on): Add stdbool.
50291
50292 2008-04-11  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/trim.c: Include <string.h>.
50295
50296 2008-04-11  Eric Blake  <ebb9@byu.net>
50297
50298         Avoid compile failure on OS/2.
50299         * lib/regex_internal.h (internal_function): Disable optimization
50300         on OS/2 (__EMX__), where it caused compiler error.
50301         Reported by Elbert Pol.
50302
50303 2008-04-11  Bruno Haible  <bruno@clisp.org>
50304
50305         Flush the standard error stream before aborting. Needed on mingw.
50306         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50307         * tests/test-array_list.c (ASSERT): Likewise.
50308         * tests/test-array_oset.c (ASSERT): Likewise.
50309         * tests/test-avltree_list.c (ASSERT): Likewise.
50310         * tests/test-avltree_oset.c (ASSERT): Likewise.
50311         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50312         * tests/test-binary-io.c (ASSERT): Likewise.
50313         * tests/test-byteswap.c (ASSERT): Likewise.
50314         * tests/test-c-ctype.c (ASSERT): Likewise.
50315         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50316         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50317         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50318         * tests/test-c-strstr.c (ASSERT): Likewise.
50319         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50320         * tests/test-canonicalize.c (ASSERT): Likewise.
50321         * tests/test-carray_list.c (ASSERT): Likewise.
50322         * tests/test-ceilf1.c (ASSERT): Likewise.
50323         * tests/test-ceilf2.c (ASSERT): Likewise.
50324         * tests/test-ceill.c (ASSERT): Likewise.
50325         * tests/test-count-one-bits.c (ASSERT): Likewise.
50326         * tests/test-fbufmode.c (ASSERT): Likewise.
50327         * tests/test-fflush2.c (ASSERT): Likewise.
50328         * tests/test-floorf1.c (ASSERT): Likewise.
50329         * tests/test-floorf2.c (ASSERT): Likewise.
50330         * tests/test-floorl.c (ASSERT): Likewise.
50331         * tests/test-fopen.c (ASSERT): Likewise.
50332         * tests/test-fpending.c (ASSERT): Likewise.
50333         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50334         * tests/test-fpurge.c (ASSERT): Likewise.
50335         * tests/test-freadable.c (ASSERT): Likewise.
50336         * tests/test-freadahead.c (ASSERT): Likewise.
50337         * tests/test-freading.c (ASSERT): Likewise.
50338         * tests/test-freadptr.c (ASSERT): Likewise.
50339         * tests/test-freadptr2.c (ASSERT): Likewise.
50340         * tests/test-freadseek.c (ASSERT): Likewise.
50341         * tests/test-freopen.c (ASSERT): Likewise.
50342         * tests/test-frexp.c (ASSERT): Likewise.
50343         * tests/test-frexpl.c (ASSERT): Likewise.
50344         * tests/test-fseek.c (ASSERT): Likewise.
50345         * tests/test-fseeko.c (ASSERT): Likewise.
50346         * tests/test-fstrcmp.c (ASSERT): Likewise.
50347         * tests/test-ftell.c (ASSERT): Likewise.
50348         * tests/test-ftello.c (ASSERT): Likewise.
50349         * tests/test-func.c (ASSERT): Likewise.
50350         * tests/test-fwritable.c (ASSERT): Likewise.
50351         * tests/test-fwriting.c (ASSERT): Likewise.
50352         * tests/test-getdelim.c (ASSERT): Likewise.
50353         * tests/test-getline.c (ASSERT): Likewise.
50354         * tests/test-i-ring.c (ASSERT): Likewise.
50355         * tests/test-iconv-utf.c (ASSERT): Likewise.
50356         * tests/test-iconv.c (ASSERT): Likewise.
50357         * tests/test-isfinite.c (ASSERT): Likewise.
50358         * tests/test-isnand.c (ASSERT): Likewise.
50359         * tests/test-isnanf.c (ASSERT): Likewise.
50360         * tests/test-isnanl.h (ASSERT): Likewise.
50361         * tests/test-ldexpl.c (ASSERT): Likewise.
50362         * tests/test-linked_list.c (ASSERT): Likewise.
50363         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50364         * tests/test-localename.c (ASSERT): Likewise.
50365         * tests/test-lseek.c (ASSERT): Likewise.
50366         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50367         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50368         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50369         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50370         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50371         * tests/test-mbschr.c (ASSERT): Likewise.
50372         * tests/test-mbscspn.c (ASSERT): Likewise.
50373         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50374         * tests/test-mbspbrk.c (ASSERT): Likewise.
50375         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50376         * tests/test-mbsrchr.c (ASSERT): Likewise.
50377         * tests/test-mbsspn.c (ASSERT): Likewise.
50378         * tests/test-mbsstr1.c (ASSERT): Likewise.
50379         * tests/test-mbsstr2.c (ASSERT): Likewise.
50380         * tests/test-mbsstr3.c (ASSERT): Likewise.
50381         * tests/test-memchr2.c (ASSERT): Likewise.
50382         * tests/test-memmem.c (ASSERT): Likewise.
50383         * tests/test-open.c (ASSERT): Likewise.
50384         * tests/test-printf-frexp.c (ASSERT): Likewise.
50385         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50386         * tests/test-printf-posix.c (ASSERT): Likewise.
50387         * tests/test-quotearg.c (ASSERT): Likewise.
50388         * tests/test-rbtree_list.c (ASSERT): Likewise.
50389         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50390         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50391         * tests/test-round1.c (ASSERT): Likewise.
50392         * tests/test-roundf1.c (ASSERT): Likewise.
50393         * tests/test-roundl.c (ASSERT): Likewise.
50394         * tests/test-signbit.c (ASSERT): Likewise.
50395         * tests/test-sleep.c (ASSERT): Likewise.
50396         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50397         * tests/test-snprintf.c (ASSERT): Likewise.
50398         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50399         * tests/test-stat-time.c (ASSERT): Likewise.
50400         * tests/test-strcasestr.c (ASSERT): Likewise.
50401         * tests/test-strerror.c (ASSERT): Likewise.
50402         * tests/test-striconv.c (ASSERT): Likewise.
50403         * tests/test-striconveh.c (ASSERT): Likewise.
50404         * tests/test-striconveha.c (ASSERT): Likewise.
50405         * tests/test-strsignal.c (ASSERT): Likewise.
50406         * tests/test-strstr.c (ASSERT): Likewise.
50407         * tests/test-strtod.c (ASSERT): Likewise.
50408         * tests/test-trunc1.c (ASSERT): Likewise.
50409         * tests/test-trunc2.c (ASSERT): Likewise.
50410         * tests/test-truncf1.c (ASSERT): Likewise.
50411         * tests/test-truncf2.c (ASSERT): Likewise.
50412         * tests/test-truncl.c (ASSERT): Likewise.
50413         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50414         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50415         * tests/test-vasnprintf.c (ASSERT): Likewise.
50416         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50417         * tests/test-vasprintf.c (ASSERT): Likewise.
50418         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50419         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50420         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50421         * tests/test-vsnprintf.c (ASSERT): Likewise.
50422         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50423         * tests/test-wcwidth.c (ASSERT): Likewise.
50424         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50425         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50426         * tests/test-xvasprintf.c (ASSERT): Likewise.
50427         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50428         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50429         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50430         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50431         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50432         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50433         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50434         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50435         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50436         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50437         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50438         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50439         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50440         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50441         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50442         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50443         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50444         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50445         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50446         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
50447         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
50448         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
50449         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
50450         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
50451         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
50452         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
50453         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
50454         * tests/unictype/test-combining.c (ASSERT): Likewise.
50455         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
50456         * tests/unictype/test-digit.c (ASSERT): Likewise.
50457         * tests/unictype/test-mirror.c (ASSERT): Likewise.
50458         * tests/unictype/test-numeric.c (ASSERT): Likewise.
50459         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
50460         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
50461         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
50462         * tests/unictype/test-scripts.c (ASSERT): Likewise.
50463         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
50464         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
50465         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
50466         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
50467         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
50468         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
50469         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
50470         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
50471         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
50472         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
50473         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
50474         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
50475         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
50476         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
50477         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
50478         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
50479         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
50480         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
50481         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
50482         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
50483         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
50484         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
50485         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
50486         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
50487         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
50488         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
50489         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
50490         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
50491         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
50492         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
50493         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
50494         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
50495         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
50496         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
50497         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
50498         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
50499         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
50500         Reported by Eric Blake.
50501
50502 2008-04-11  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/wchar.in.h: Tweak comment.
50505
50506 2008-04-11  Bruno Haible  <bruno@clisp.org>
50507
50508         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
50509         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
50510         gl_COMMON.
50511         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
50512
50513 2008-04-11  Bruno Haible  <bruno@clisp.org>
50514
50515         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
50516
50517 2008-04-11  Simon Josefsson  <simon@josefsson.org>
50518
50519         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
50520         of attempting to use non-existing /dev/*random.  Based on patch
50521         from Adam Strzelecki <ono@java.pl> in
50522         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
50523
50524 2008-04-08  Bruno Haible  <bruno@clisp.org>
50525
50526         Add tentative support for emx+gcc.
50527         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
50528         * lib/fpurge.c (fpurge): Likewise.
50529         * lib/freadable.c (freadable): Likewise.
50530         * lib/freadahead.c (freadahead): Likewise.
50531         * lib/freading.c (freading): Likewise.
50532         * lib/freadptr.c (freadptr): Likewise.
50533         * lib/freadseek.c (freadptrinc): Likewise.
50534         * lib/fseeko.c (rpl_fseeko): Likewise.
50535         * lib/fseterr.c (fseterr): Likewise.
50536         * lib/fwritable.c (fwritable): Likewise.
50537         * lib/fwriting.c (fwriting): Likewise.
50538         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
50539
50540 2008-04-09  Eric Blake  <ebb9@byu.net>
50541
50542         Avoid some autoconf warnings.
50543         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
50544         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
50545         * m4/afs.m4 (gl_AFS): Likewise.
50546         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
50547         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
50548         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50549         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
50550         (gl_INTEGER_TYPE_SUFFIX): Likewise.
50551         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
50552         (AC_CHECK_DECLS_ONCE): Likewise.
50553         Rename file...
50554         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
50555         gnulib-tool requires autoconf 2.59 or better.
50556         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
50557
50558 2008-04-08  Eric Blake  <ebb9@byu.net>
50559
50560         Use 'git describe --match' if present (added in git 1.5.5).
50561         * build-aux/git-version-gen: Limit result to tags that match 'v*'
50562         if possible.
50563
50564 2008-04-08  Bruno Haible  <bruno@clisp.org>
50565
50566         Add tentative support for OpenServer.
50567         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
50568         _ptr, _cnt.
50569         * lib/fpurge.c (fpurge): Likewise.
50570         * lib/freadable.c (freadable): Likewise.
50571         * lib/freadahead.c (freadahead): Likewise.
50572         * lib/freading.c (freading): Likewise.
50573         * lib/freadptr.c (freadptr): Likewise.
50574         * lib/freadseek.c (freadptrinc): Likewise.
50575         * lib/fseeko.c (rpl_fseeko): Likewise.
50576         * lib/fseterr.c (fseterr): Likewise.
50577         * lib/fwritable.c (fwritable): Likewise.
50578         * lib/fwriting.c (fwriting): Likewise.
50579         Reported by Roger Cornelius <rac@tenzing.org> and
50580         Brian K. White <brian@aljex.com>.
50581
50582 2008-04-06  Jim Meyering  <meyering@redhat.com>
50583
50584         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
50585
50586 2008-04-06  Bruno Haible  <bruno@clisp.org>
50587
50588         Avoid possible error with non-ASCII bytes in UTF-8 locales.
50589         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
50590         * tests/test-printf-posix.sh: Likewise.
50591         * tests/test-vfprintf-posix.sh: Likewise.
50592         * tests/test-vprintf-posix.sh: Likewise.
50593         * tests/test-xprintf-posix.sh: Likewise.
50594
50595 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50596
50597         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
50598         hide error from 'ls', needed on OS/2.
50599         Report by Elbert Pol <elbert.pol@gmail.com>.
50600
50601 2008-04-04  Eric Blake  <ebb9@byu.net>
50602
50603         Make test-fseeko.c failures meaningful.
50604         * tests/test-fseeko.c: Print line number on failure.
50605         * tests/test-fseek.c: Likewise.
50606         Reported by Nelson H. F. Beebe.
50607
50608         Improve strtod bug detection check.
50609         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
50610         required for Solaris 10.
50611         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
50612
50613 2008-04-04  Bruno Haible  <bruno@clisp.org>
50614
50615         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
50616         by m4/setenv.m4.
50617
50618 2008-04-03  Eric Blake  <ebb9@byu.net>
50619
50620         Ensure sane .version contents.
50621         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
50622         version string.
50623         * build-aux/git-version-gen: Improve documentation.
50624
50625         Make GNU make output nicer.
50626         * top/GNUmakefile [!_have-Makefile]: Add dependency on
50627         MAKECMDGOALS to enforce message for all command line targets.  Set
50628         srcdir for use in maint.mk.
50629
50630         Another maintainer tweak.
50631         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
50632         a target that regenerates version.
50633
50634 2008-04-03  Jim Meyering  <meyering@redhat.com>
50635
50636         vc-list-files: don't cause coreutils "make po-check" failure
50637         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
50638
50639 2008-04-03  Eric Blake  <ebb9@byu.net>
50640
50641         Allow VPATH usage of vc-list-files.
50642         * build-aux/vc-list-files (scriptversion): Add timestamp.
50643         (options): Add --help, --version, -C.
50644         (CVS): Support installed cvsu.
50645
50646 2008-04-02  Bruno Haible  <bruno@clisp.org>
50647
50648         Avoid some "statement with no effect" warnings from gcc.
50649         * tests/test-wctype.c (main): Explicitly ignore unused values.
50650         Reported by Jim Meyering.
50651
50652 2008-04-02  Jim Meyering  <meyering@redhat.com>
50653
50654         Avoid some warnings from "gcc -Wshadow".
50655         * tests/test-frexp.c (exp): Define to a different identifier.
50656         * tests/test-frexpl.c (exp): Likewise.
50657
50658 2008-04-03  Jim Meyering  <meyering@redhat.com>
50659
50660         bootstrap: remove dangling *.[ch] symlinks from lib
50661         * build-aux/bootstrap [dangling symlink removal]: Move find's
50662         -depth option to precede all others, to avoid a warning.
50663         Remove *.[ch] files too, and from "$source_base" (usually lib/).
50664
50665 2008-04-02  Bruno Haible  <bruno@clisp.org>
50666
50667         Avoid some warnings from "gcc -Wshadow".
50668         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
50669         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
50670         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
50671         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
50672         Reported by Jim Meyering.
50673
50674 2008-04-01  Bruno Haible  <bruno@clisp.org>
50675
50676         Fix test to work on IRIX 6.5 with cc.
50677         * tests/test-math.c (numeric_equal): New function.
50678         (main): Use it.
50679
50680 2008-04-01  Bruno Haible  <bruno@clisp.org>
50681
50682         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
50683
50684 2008-04-01  Bruno Haible  <bruno@clisp.org>
50685
50686         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
50687         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50688         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
50689         (Depends-on): Remove math.
50690
50691         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
50692         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50693         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
50694         (Depends-on): Remove math.
50695
50696         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
50697         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50698         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
50699         (Depends-on): Remove math.
50700         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
50701         (Depends-on): Remove math.
50702
50703         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
50704         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
50705         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
50706         (Depends-on): Remove math.
50707         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
50708         (Depends-on): Remove math.
50709
50710         * tests/test-round1.c: Include nan.h.
50711         (main): Use NaNd instead of NAN.
50712         * modules/round-tests (Files): Add tests/nan.h.
50713
50714         * tests/test-trunc1.c: Include nan.h.
50715         (main): Use NaNd instead of NAN.
50716         * modules/trunc-tests (Files): Add tests/nan.h.
50717
50718         * tests/test-roundf1.c: Include nan.h.
50719         (main): Use NaNf instead of NAN.
50720         * modules/roundf-tests (Files): Add tests/nan.h.
50721
50722         * tests/test-truncf1.c: Include nan.h.
50723         (main): Use NaNf instead of NAN.
50724         * modules/truncf-tests (Files): Add tests/nan.h.
50725
50726         * tests/test-ceilf1.c: Include nan.h.
50727         (main): Use NaNf instead of NAN.
50728         * modules/ceilf-tests (Files): Add tests/nan.h.
50729
50730         * tests/test-floorf1.c: Include nan.h.
50731         (main): Use NaNf instead of NAN.
50732         * modules/floorf-tests (Files): Add tests/nan.h.
50733
50734         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
50735         (main): Use NaNf instead of NAN.
50736         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
50737
50738         * tests/test-isnand.c: Include nan.h instead of <math.h>.
50739         (main): Use NaNd instead of NAN.
50740         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
50741
50742         * tests/test-frexp.c: Include nan.h.
50743         (main): Use NaNd instead of NAN.
50744         * modules/frexp-tests (Files): Add tests/nan.h.
50745
50746         * lib/isnan.c: Don't include <math.h>.
50747         (FUNC): Don't use NAN macro.
50748         * modules/isnand-nolibm (Depends-on): Remove math.
50749         * modules/isnanf-nolibm (Depends-on): Remove math.
50750         * modules/isnanl (Depends-on): Remove math.
50751         * modules/isnanl-nolibm (Depends-on): Remove math.
50752
50753         * tests/nan.h: New file.
50754
50755 2008-04-01  Eric Blake  <ebb9@byu.net>
50756
50757         Fix typos.
50758         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
50759         values to be the right type.
50760
50761         For now, cater to gnulib strtod inaccuracies.
50762         * tests/test-strtod.c (main): Allow 1-ulp error on expected
50763         fractional results.  While not as nice from a QoI perspective, it
50764         is a quicker patch than correctly implementing decimal to binary
50765         rounding.
50766
50767 2008-03-31  Eric Blake  <ebb9@byu.net>
50768
50769         Guarantee a definition of NAN.
50770         * lib/math.in.h (NAN): Define if missing.
50771         * tests/test-math.c (main): Test it.
50772         * doc/posix-headers/math.texi (math.h): Document this.
50773         * lib/isnan.c (rpl_isnand): Use it.
50774         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
50775         * tests/test-floorf1.c (NaN): Likewise.
50776         * tests/test-frexp.c (NaN): Likewise.
50777         * tests/test-isnand.c (NaN): Likewise.
50778         * tests/test-isnanf.c (NaN): Likewise.
50779         * tests/test-round1.c (NaN): Likewise.
50780         * tests/test-roundf1.c (NaN): Likewise.
50781         * tests/test-snprintf-posix.h (NaN): Likewise.
50782         * tests/test-sprintf-posix.h (NaN): Likewise.
50783         * tests/test-trunc1.c (NaN): Likewise.
50784         * tests/test-truncf1.c (NaN): Likewise.
50785         * tests/test-vasnprintf-posix.c (NaN): Likewise.
50786         * tests/test-vasprintf-posix.c (NaN): Likewise.
50787         * modules/isnand-nolibm (Depends-on): Add math.
50788         * modules/isnanf-nolibm (Depends-on): Likewise.
50789         * modules/isnanl (Depends-on): Likewise.
50790         * modules/isnanl-nolibm (Depends-on): Likewise.
50791         * modules/snprintf-posix-tests (Depends-on): Likewise.
50792         * modules/sprintf-posix-tests (Depends-on): Likewise.
50793         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
50794         * modules/vsprintf-posix-tests (Depends-on): Likewise.
50795         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
50796         * modules/vasprintf-posix-tests (Depends-on): Likewise.
50797
50798 2008-03-31  Bruno Haible  <bruno@clisp.org>
50799
50800         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
50801         * doc/posix-functions/strtod.texi: Likewise.
50802
50803 2008-03-31  Bruno Haible  <bruno@clisp.org>
50804
50805         * tests/test-strtod.c (main): Don't use C99 syntax.
50806
50807 2008-03-31  Bruno Haible  <bruno@clisp.org>
50808
50809         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
50810         Reported by Eric Blake.
50811
50812 2008-03-31  Jim Meyering  <meyering@redhat.com>
50813
50814         Don't compare actual signbit return values.
50815         * tests/test-strtod.c (main): Rather, compare only their
50816         zero/non-zero nature.
50817
50818 2008-03-31  Eric Blake  <ebb9@byu.net>
50819
50820         More strtod documentation.
50821         * doc/posix-functions/strtod.texi (strtod): Interpret more test
50822         failures as distinct bugs.
50823
50824 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50825
50826         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
50827         Problem reported by Erik Benada in
50828         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
50829
50830 2008-03-30  Bruno Haible  <bruno@clisp.org>
50831
50832         * tests/test-strtod.c: Add comments about which assertion fails on which
50833         platform.
50834         * doc/posix-functions/strtod.texi: Add info about many more platforms.
50835
50836 2008-03-30  Eric Blake  <ebb9@byu.net>
50837
50838         Test signbit behavior on zeros.
50839         * tests/test-signbit.c (test_signbitf): Add tests for zero.
50840         (test_signbitd, test_signbitl): Likewise.
50841
50842         More strtod touchups.
50843         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
50844         sign of negative underflow, for now.  Use .5, not .1.
50845         * doc/posix-functions/strtod.texi (strtod): Mention these
50846         limitations.
50847         Reported by Jim Meyering.
50848
50849 2008-03-30  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
50852         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
50853
50854 2008-03-30  Bruno Haible  <bruno@clisp.org>
50855
50856         Avoid failure when attempting to return empty iconv results on some
50857         platforms.
50858         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
50859         allocation, don't report ENOMEM when the resulting string is empty.
50860
50861 2008-03-30  Bruno Haible  <bruno@clisp.org>
50862
50863         Fix buffer overrun.
50864         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
50865         Don't consider the width for tmp_length. Check count against tmp_length
50866         before doing the padding. Ensure enough allocation during padding.
50867
50868 2008-03-30  Eric Blake  <ebb9@byu.net>
50869
50870         strtod touchups.
50871         * lib/strtod.c (strtod): Avoid compiler warnings.
50872         Reported by Jim Meyering.
50873
50874 2008-03-30  Bruno Haible  <bruno@clisp.org>
50875
50876         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
50877         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
50878         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
50879         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
50880         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
50881         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
50882         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
50883         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
50884
50885         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
50886         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
50887         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
50888         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
50889         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
50890         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
50891         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
50892         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
50893
50894         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
50895         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
50896         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
50897         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
50898         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
50899         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
50900         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
50901         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
50902
50903         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
50904         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
50905
50906         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
50907         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
50908
50909         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
50910         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
50911
50912         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
50913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
50914         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
50915
50916         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
50917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
50918         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
50919
50920         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
50921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
50922         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
50923
50924         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
50925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
50926         * modules/vasprintf (Depends-on): Add EOVERFLOW.
50927
50928         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
50929         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
50930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
50931         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
50932         (Depends-on): Add EOVERFLOW.
50933         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
50934         (Depends-on): Add EOVERFLOW.
50935         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50936         (Depends-on): Add EOVERFLOW.
50937         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
50938         (Depends-on): Add EOVERFLOW.
50939         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50940         (Depends-on): Add EOVERFLOW.
50941         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
50942         (Depends-on): Add EOVERFLOW.
50943         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50944         (Depends-on): Add EOVERFLOW.
50945         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
50946         (Depends-on): Add EOVERFLOW.
50947
50948         * lib/sprintf.c (EOVERFLOW): Remove fallback.
50949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
50950         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
50951
50952         * lib/snprintf.c (EOVERFLOW): Remove fallback.
50953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
50954         * modules/snprintf (Depends-on): Add EOVERFLOW.
50955
50956         * lib/poll.c (EOVERFLOW): Remove fallback.
50957         * modules/poll (Depends-on): Add EOVERFLOW.
50958
50959         * lib/getugroups.c (EOVERFLOW): Remove fallback.
50960         * modules/getugroups (Depends-on): Add EOVERFLOW.
50961
50962         * lib/getdelim.c (EOVERFLOW): Remove fallback.
50963         * modules/getdelim (Depends-on): Add EOVERFLOW.
50964
50965         * lib/ftell.c (EOVERFLOW): Remove fallback.
50966         * modules/ftell (Depends-on): Add EOVERFLOW.
50967
50968         * lib/fprintf.c (EOVERFLOW): Remove fallback.
50969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
50970         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
50971
50972         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
50973
50974         * modules/EOVERFLOW-tests: New file.
50975         * tests/test-EOVERFLOW.c: New file.
50976
50977         * modules/EOVERFLOW: New file.
50978         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
50979
50980 2008-03-30  Bruno Haible  <bruno@clisp.org>
50981
50982         Fix bug introduced on 2007-06-10.
50983         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
50984         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
50985
50986 2008-03-30  Bruno Haible  <bruno@clisp.org>
50987
50988         Improve freadseek's efficiency after ungetc.
50989         * lib/freadseek.c: Include freadahead.h.
50990         (freadptrinc): New function, extracted from freadseek.
50991         (freadseek): Use it in a loop. Use freadahead to determine the number
50992         of loop iterations.
50993         * modules/freadseek (Depends-on): Add freadahead.
50994         (configure.ac): Require AC_C_INLINE.
50995
50996 2008-03-30  Bruno Haible  <bruno@clisp.org>
50997
50998         * lib/freadseek.c (freadseek): Don't ignore the return value of
50999         freadptr.
51000
51001 2008-03-29  Eric Blake  <ebb9@byu.net>
51002
51003         Add hex float support.
51004         * modules/strtod (Depends-on): Add c-ctype.
51005         (Link): Mention POW_LIB.
51006         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51007         whitespace between 'e' and exponent.
51008         * tests/test-strtod.c (main): Enable hex float tests.
51009         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51010         now provides.
51011
51012         Document various strtod bugs, with some fixes.
51013         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51014         "-0x", "inf", "nan", and hex constants.
51015         * doc/posix-functions/atof.texi (atof): Likewise.
51016         * modules/stdlib (Makefile.am): Support strtod.
51017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51018         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51019         detect additional strtod bugs.
51020         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51021         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51022         bool where appropriate.  Parse 'inf' and 'nan'.
51023         * tests/test-strtod.c: New file.
51024         * modules/strtod (Depends-on): Add stdbool, stdlib.
51025         (configure.ac): Turn on module indicator.
51026         * modules/strtod-tests: New module.
51027
51028 2008-03-29  Eric Blake  <ebb9@byu.net>
51029
51030         Fix ftell on mingw.
51031         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51032         * modules/ftell-tests (Depends-on): Add binary-io.
51033         * modules/ftello-tests (Depends-on): Likewise.
51034         * tests/test-ftell.c (main): Enhance test to cover behavior after
51035         ungetc.  Enforce binary mode.
51036         * tests/test-ftello.c (main): Likewise.
51037
51038         Pass test-freadseek on cygwin.
51039         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51040         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51041         ungetc buffer.
51042
51043         * tests/test-fflush2.c (main): Fix typo.
51044
51045 2008-03-29  Bruno Haible  <bruno@clisp.org>
51046
51047         * tests/test-fflush2.c (main): Temporarily disable the contents of
51048         this test.
51049         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51050         Reported by Eric Blake.
51051
51052 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51053
51054         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51055         (GC_SHA224_DIGEST_SIZE): Add.
51056
51057         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51058         (gc_hash_digest_length): Likewise.
51059         (gc_hash_buffer): Likewise.
51060
51061 2008-03-25  Bruno Haible  <bruno@clisp.org>
51062
51063         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51064         detail which gettext release to use.
51065         Reported by Simon Josefsson.
51066
51067 2008-03-26  Jim Meyering  <meyering@redhat.com>
51068
51069         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51070         * modules/gnumakefile (clean-GNUmakefile): Also, use
51071         test ... && ... || : syntax rather than if-then ... fi.
51072
51073         gnumakefile: Don't double-quote-expand $(VPATH) value.
51074         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51075
51076 2008-03-24  Eric Blake  <ebb9@byu.net>
51077
51078         Alter GNUmakefile to install into top directory.
51079         * modules/maintainer-makefile: Split, and add dependency...
51080         * modules/gnumakefile: to this new module.
51081         * build-aux/GNUmakefile: Move...
51082         * top/GNUmakefile: ...here.
51083         * build-aux/maint.mk: Move...
51084         * top/maint.mk: ...here.
51085         * MODULES.html.sh (Support for maintaining...): Document new
51086         module.
51087
51088 2008-03-23  Bruno Haible  <bruno@clisp.org>
51089
51090         * gnulib-tool: New options --vc-files, --no-vc-files.
51091         (func_usage): Document them.
51092         (vc_files): New variable.
51093         (func_import): Consider vc_files.
51094         (func_create_testdir): Set vc_files to empty.
51095         Suggested by Jim Meyering and Karl Berry.
51096
51097 2008-03-23  Bruno Haible  <bruno@clisp.org>
51098
51099         Fix regex compilation error on HP-UX 11.
51100         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51101         * modules/regex (Files): Add m4/mbstate_t.m4.
51102         Reported by Ton Voon <ton.voon@altinity.com>.
51103
51104 2008-03-23  Bruno Haible  <bruno@clisp.org>
51105
51106         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51107
51108 2008-03-23  Eric Blake  <ebb9@byu.net>
51109             Bruno Haible  <bruno@clisp.org>
51110
51111         Install files from top/ in the destination directory.
51112         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51113         augmentation also for the files from top/.
51114         (func_import, func_create_testdir): Rewrite file names:
51115         top/filename -> filename.
51116
51117 2008-03-23  Bruno Haible  <bruno@clisp.org>
51118
51119         Tweak "gnulib --version" output.
51120         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51121
51122 2008-03-23  Bruno Haible  <bruno@clisp.org>
51123
51124         Tweak "gnulib --version" output.
51125         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51126         rather than contents of ChangeLog, when possible.
51127
51128 2008-03-21  Eric Blake  <ebb9@byu.net>
51129
51130         More --version tweaks.
51131         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51132         date of last ChangeLog entry.
51133
51134 2008-03-21  Jim Meyering  <meyering@redhat.com>
51135
51136         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51137
51138 2008-03-20  Eric Blake  <ebb9@byu.net>
51139
51140         VPATH fix.
51141         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51142
51143 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51144
51145         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51146         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51147
51148 2008-03-20  Eric Blake  <ebb9@byu.net>
51149
51150         Sync GNUmakefile with coreutils.
51151         * build-aux/GNUmakefile (have-Makefile): Rename...
51152         (_have-Makefile): ...to this, for namespace consideration.
51153         (GNUmakefile.cfg): Include, if present.
51154         (_autoreconf): Define a default.
51155         (_is-dist-target): New rule for rebuilds to pick up intra-release
51156         version.
51157         (maint-cfg.mk): Rename...
51158         (cfg.mk): ...to this.
51159
51160 2008-03-18  Jim Meyering  <meyering@redhat.com>
51161
51162         New script and module: mktempd
51163         * MODULES.html.sh (maint+release support): Add mktempd.
51164         * build-aux/mktempd: New file.
51165         * modules/mktempd: New file.
51166
51167 2008-03-15  Jim Meyering  <meyering@redhat.com>
51168
51169         Undo last change.
51170         * lib/sha1.c, lib/md5.c: 63 != ~63.
51171         Reported by Andreas Schwab.
51172
51173         sha1.c, md5.c: Hoist a redundant expression.
51174         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51175         "ctx->buflen" only once, before calling *_process_block.
51176         * lib/md5.c (md5_process_bytes): Likewise.
51177
51178 2008-03-14  Eric Blake  <ebb9@byu.net>
51179
51180         Bump copyright year in files generated by gnulib-tool.
51181         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51182         gnulib-tool, rather than hard-coding it.
51183
51184         Fix 'gnulib-tool --version' output to work with git.
51185         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51186         (startup): ...here.
51187         (func_version): Use it to invoke git-version-gen, rather than
51188         relying on CVS keyword expansion.  Modernize wording.
51189         (cvsdatestamp, last_checkin_date, version): Kill unused
51190         variables.
51191
51192 2008-03-12  Jim Meyering  <meyering@redhat.com>
51193
51194         Recognize optional cast of the argument to free.
51195         * build-aux/useless-if-before-free: Update regexps.
51196
51197         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51198
51199 2008-03-11  Bruno Haible  <bruno@clisp.org>
51200
51201         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51202         by a single package.
51203         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51204         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51205         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51206         Reported by Sam Steingold <sds@gnu.org>.
51207
51208 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51209
51210         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51211         repositories.
51212
51213 2008-03-11  Bruno Haible  <bruno@clisp.org>
51214
51215         Avoid conflicts between local macro definitions.
51216         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51217         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51218
51219 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51220             Bruno Haible  <bruno@clisp.org>
51221
51222         Make va_copy work with some version of xlc on AIX 5.1.
51223         * lib/stdarg.in.h: New file.
51224         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51225         On AIX, use a <stdarg.h> file substitute.
51226         * modules/stdarg (Files): Add lib/stdarg.in.h.
51227         (Depends-on): Add include_next.
51228         (Makefile.am): Build a stdarg.h substitute if requested.
51229         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51230
51231 2008-03-10  Bruno Haible  <bruno@clisp.org>
51232
51233         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51235         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51236
51237 2008-03-10  Bruno Haible  <bruno@clisp.org>
51238
51239         * modules/stdlib (Depends-on): Add include_next, remove
51240         absolute-header.
51241
51242 2008-03-09  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/freadahead.h (freadahead): Document more precisely.
51245         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51246         the sum of both buffer sizes.
51247         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51248         * NEWS: Document the change.
51249
51250 2008-03-09  Bruno Haible  <bruno@clisp.org>
51251
51252         Extend freadptr to return also the buffer size.
51253         * lib/freadptr.h (freadptr): Add sizep argument.
51254         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51255         (freadptr): Add sizep argument. Determine buffer size like freadahead
51256         does.
51257         * tests/test-freadptr.c: Don't include freadahead.h.
51258         (main): Adapt for new calling convention of freadptr.
51259         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51260         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51261         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51262         tests/test-freadptr2.sh.
51263         (Depends): Remove freadahead.
51264         (TESTS): Add test-freadptr2.sh.
51265         (check_PROGRAMS): Add test-freadptr2.
51266
51267 2008-03-09  Bruno Haible  <bruno@clisp.org>
51268
51269         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51270         Report and solution by Simon Josefsson.
51271
51272 2008-03-06  Bruno Haible  <bruno@clisp.org>
51273
51274         Make fflush after ungetc work on BSD platforms.
51275         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51276         * tests/test-fflush2.c: New file.
51277         * tests/test-fflush2.sh: New file.
51278         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51279         tests/test-fflush2.c.
51280         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51281         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51282
51283 2008-03-06  Eric Blake  <ebb9@byu.net>
51284
51285         Likewise for ftello.
51286         * modules/ftello (Dependencies): Add extensions.
51287         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51288
51289 2008-03-06  Bruno Haible  <bruno@clisp.org>
51290
51291         * modules/fseeko (Dependencies): Add extensions.
51292         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51293         Needed on glibc systems.
51294
51295 2008-03-06  Bruno Haible  <bruno@clisp.org>
51296
51297         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51298         email address.
51299         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51300
51301 2008-03-06  Bruno Haible  <bruno@clisp.org>
51302
51303         * users.txt: Add libgnupdf.
51304
51305 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51306
51307         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51308         (Header File Substitutes, Function Substitutes,
51309         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51310         (Build robot for gnulib): Fix typo.
51311
51312 2008-03-06  Bruno Haible  <bruno@clisp.org>
51313
51314         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51315         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51316
51317 2008-03-06  Bruno Haible  <bruno@clisp.org>
51318
51319         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51320         * doc/gnulib.texi: Include it.
51321
51322 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51323
51324         * modules/func (License): Change license to unlimited; there was
51325         no LGPL parts in the module anyway.
51326
51327 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51328
51329         * modules/__func__: Renamed to modules/func.
51330         * modules/__func__-tests: Renamed to modules/func-tests.
51331         * tests/test-__func__.c: Renamed to tests/test-func.c.
51332         * m4/__func__.m4: Renamed to m4/func.m4.
51333         * doc/gnulib.texi (__func__): Section renamed to func.
51334         Suggested by Eric Blake <ebb9@byu.net>.
51335
51336 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51337
51338         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51339         about __func__.  Make example self-contained.  Suggested by Eric
51340         Blake <ebb9@byu.net>.
51341
51342         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51343         Suggested by Eric Blake <ebb9@byu.net>.
51344
51345 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51346
51347         * modules/__func__: New file.
51348         * modules/__func__-tests: New file.
51349         * tests/test-__func__.c: New file.
51350         * m4/__func__.m4: New file.
51351         * doc/gnulib.texi (__func__): Document __func__ module.
51352
51353 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51354
51355         * modules/byteswap (License): Re-license as LGPLv2+.
51356
51357 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51358
51359         * doc/Makefile: Add pdf target.
51360
51361 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51362
51363         * modules/inline (License): Use 'unlimited', since there are only
51364         *.m4 files in this module.
51365
51366 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51367             Bruno Haible  <bruno@clisp.org>
51368
51369         Add support for HP C 7.1 on OpenVMS 8.3.
51370         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51371
51372 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51373
51374         Update VMS specifics.
51375         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51376
51377 2008-03-02  Jim Meyering  <meyering@redhat.com>
51378
51379         Remove the last dependency on the "free" module.
51380         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51381         Reported by Bob Proulx.
51382
51383         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51384
51385         Remove useless "if" tests before free.  Deprecate "free" module.
51386         * doc/posix-functions/free.texi: Mention that this
51387         module is no longer useful.
51388         * modules/free (Notice): Say this module is obsolete.
51389         * modules/readutmp (Depends-on): Remove free.
51390         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51391         * lib/putenv.c (putenv): Likewise.
51392         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51393         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51394         * tests/test-c-strcasestr.c (main): Likewise.
51395         * tests/test-c-strstr.c (main): Likewise.
51396         * tests/test-mbscasestr1.c (main): Likewise.
51397         * tests/test-mbscasestr2.c (main): Likewise.
51398         * tests/test-mbsstr1.c (main): Likewise.
51399         * tests/test-mbsstr2.c (main): Likewise.
51400         * tests/test-memmem.c (main): Likewise.
51401         * tests/test-strcasestr.c (main): Likewise.
51402         * tests/test-striconv.c (main): Likewise.
51403         * tests/test-striconveh.c (main): Likewise.
51404         * tests/test-striconveha.c (main): Likewise.
51405         * tests/test-strstr.c (main): Likewise.
51406
51407         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51408
51409         bootstrap: sync from coreutils again
51410         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51411
51412 2008-03-01  Jim Meyering  <meyering@redhat.com>
51413
51414         bootstrap: sync from coreutils
51415         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51416         also when the target doesn't exist.
51417
51418 2008-03-01  Eric Blake  <ebb9@byu.net>
51419
51420         Fix bugs in last patch.
51421         * lib/memchr2.c (memchr2): Fix typo.
51422         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51423         extension.
51424         Reported by Bruce Korb.
51425
51426         New module 'memchr2'.
51427         * modules/memchr2: New file.
51428         * modules/memchr2-tests: Likewise.
51429         * lib/memchr2.h: Likewise.
51430         * lib/memchr2.c: Likewise, based on memchr.c.
51431         * tests/test-memchr2.c: New test.
51432         * MODULES.html.sh (String handling): Add memchr2.
51433
51434 2008-02-29  Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/freadseek-tests: New file.
51437         * tests/test-freadseek.sh: New file.
51438         * tests/test-freadseek.c: New file.
51439
51440         New module 'freadseek'.
51441         * modules/freadseek: New file.
51442         * lib/freadseek.h: New file.
51443         * lib/freadseek.c: New file.
51444         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51445
51446 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51447
51448         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
51449         wydawca.
51450
51451         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
51452         program_invocation_name and program_invocation_short_name are
51453         present.
51454
51455 2008-02-28  Bruno Haible  <bruno@clisp.org>
51456
51457         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
51458         * tests/test-freadptr.sh: Also test non-seekable stdin.
51459
51460 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
51461
51462         * build-aux/bootstrap (source_base, m4_base)
51463         (doc_base, tests_base): New variables.
51464         (gnulib_tool_options): Do not hardcode base directories, use
51465         the above variables instead.
51466
51467 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
51468
51469         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
51470
51471 2008-02-28  Bruno Haible  <bruno@clisp.org>
51472
51473         * modules/freadptr-tests: New file.
51474         * tests/test-freadptr.sh: New file.
51475         * tests/test-freadptr.c: New file.
51476
51477         New module 'freadptr'.
51478         * modules/freadptr: New file.
51479         * lib/freadptr.h: New file.
51480         * lib/freadptr.c: New file.
51481         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
51482
51483 2008-02-26  Karl Berry  <karl@freefriends.org>
51484
51485         Sync from Libtool:
51486         * libltdl/argz.c (argz_add, argz_count): New functions.
51487         * libltdl/argz.in.h: Declare them.
51488         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
51489
51490 2008-02-22  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
51493         is a pointer type.  Needed for HP-UX 10.
51494         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
51495         * doc/posix-functions/gmtime_r.texi: Likewise.
51496         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51497
51498 2008-02-24  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/environ-tests: New file.
51501         * tests/test-environ.c: New file.
51502
51503         New module 'environ'.
51504         * modules/environ: New file.
51505         * lib/unistd.in.h (environ): New declaration.
51506         * m4/environ.m4: New file.
51507         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
51508         after use.
51509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
51510         HAVE_DECL_ENVIRON.
51511         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
51512         HAVE_DECL_ENVIRON.
51513         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
51514         wrong claim that 'environ' is missing on some systems.
51515         * modules/execute (Depends-on): Add environ.
51516         * lib/execute.c (environ): Remove fallback declaration.
51517         * modules/pipe (Depends-on): Add environ.
51518         * lib/pipe.c (environ): Remove fallback declaration.
51519         * modules/setenv (Depends-on): Add environ.
51520         * lib/setenv.c (environ): Remove fallback declaration.
51521         * modules/unsetenv (Depends-on): Add environ.
51522         * lib/unsetenv.c (environ): Remove fallback declaration.
51523         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
51524         m4/environ.m4.
51525         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
51526         (gl_PREREQ_UNSETENV): Likewise.
51527
51528 2008-02-24  Bruno Haible  <bruno@clisp.org>
51529
51530         * doc/posix-functions/environ.texi: Document the MacOS X problem.
51531
51532 2008-02-20  Bob Proulx  <bob@proulx.com>
51533
51534         Enable use of older two part flavor 'git describe'.
51535         * build-aux/git-version-gen: If using the older two part flavor of
51536         git version then recreate the third part now present in the
51537         newer three part flavor of git describe.
51538
51539 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
51540
51541         * lib/fts.c (fts_build): Typo correction to comment.
51542
51543 2008-02-17  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
51546         generating no-op conflicts.
51547
51548 2008-02-17  Bruno Haible  <bruno@clisp.org>
51549
51550         Speed up by 10%.
51551         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
51552         result_entries, rather than an index-based loop.
51553
51554 2008-02-17  Bruno Haible  <bruno@clisp.org>
51555
51556         Speed up by 25%.
51557         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
51558         'hashcode_cached'.
51559         (entry_create): New function.
51560         (entry_hashcode): Use the cached hashcode if possible.
51561         (read_changelog_file, try_split_merged_entry): Use entry_create.
51562
51563 2008-02-17  Bruno Haible  <bruno@clisp.org>
51564
51565         Speed up from O(n^2) to O(n) for long ChangeLog files.
51566         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
51567         (read_changelog_file): Change implementation of entries_reversed list
51568         to rbtreehash.
51569         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
51570
51571 2008-02-17  Bruno Haible  <bruno@clisp.org>
51572
51573         New option --split-merged-entry.
51574         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
51575         (find_paragraph_end, try_split_merged_entry): New functions.
51576         (long_options): Add option --split-merged-entry.
51577         (usage): Document option --split-merged-entry.
51578         (main): Implement option --split-merged-entry.
51579         Reported by Eric Blake.
51580
51581 2008-02-17  Bruno Haible  <bruno@clisp.org>
51582
51583         * lib/git-merge-changelog.c: Include c-strstr.h.
51584         (main): Support the "git pull --rebase" situation.
51585         * modules/git-merge-changelog (Depends-on): Add c-strstr.
51586         Reported by Eric Blake.
51587
51588 2008-02-16  Eric Blake  <ebb9@byu.net>
51589
51590         Avoid doubling \ in common case of "c-maybe" quoting style.
51591         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
51592         eliding outer quotes.
51593         * lib/quotearg.h: Document this.
51594         * tests/test-quotearg.c (result_strings, inputs, results_g)
51595         (flag_results, locale_results): Test it by adding a new string to
51596         each test group.
51597         (compare_strings): Test new string.
51598
51599 2008-02-13  Eric Blake  <ebb9@byu.net>
51600
51601         Avoid trigraph quoting in default output.
51602         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
51603         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
51604         unless explicitly requested.
51605         * tests/test-quotearg.c (flag_results, main): Add additional tests.
51606
51607 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
51608
51609         Don't rely on signed integer overflowing to negative value.
51610         * lib/getugroups.c (getugroups): Include <limits.h>.
51611         Instead, compare against INT_MAX, and increment only if the test passes.
51612
51613 2008-02-13  Jim Meyering  <meyering@redhat.com>
51614         and Eric Blake  <ebb9@byu.net>
51615
51616         Avoid shadowing warning and compile errors on Linux.
51617         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
51618         forwarding macros on Linux.
51619         (dcgettext): Define a stub, for Linux.
51620         (results_g, main): Avoid warnings.
51621
51622 2008-02-12  Eric Blake  <ebb9@byu.net>
51623
51624         Silence warning in last patch.
51625         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
51626
51627         Quotearg part 4: add tests, fix c-maybe colon quoting.
51628         * lib/quotearg.h: Improve documentation.
51629         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
51630         escapes when adding outer quotes.  When quoting trigraphs, use
51631         valid C notation.  When quoting NUL, omit extra characters if next
51632         character is not digit.  Alter prototype.
51633         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
51634         callers.
51635         * modules/quotearg-tests: New module.
51636         * tests/test-quotearg.c: New test.
51637
51638 2008-02-07  Eric Blake  <ebb9@byu.net>
51639
51640         Quotearg part 3: add flag to control outer quote elision.
51641         * lib/quotearg.h (c_maybe_quoting_style): New style.
51642         (enum quoting_flags): Better documentation of flags.
51643         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
51644         c-maybe style.
51645         (quotearg_buffer_restyled): Handle new flag to elide outer
51646         quotes.
51647
51648         Quotearg part 2: add flag that can control NUL elision.
51649         * lib/quotearg.h (set_quoting_flags): New prototype.
51650         * lib/quotearg.c (struct quoting_options): Add flag field.
51651         (set_quoting_flags): New function.
51652         (quotearg_buffer_restyled): Add flags parameter.
51653         (quotearg_alloc_mem): Set the flag if length cannot be returned.
51654         (quotearg_n_options): Set the flag, since length cannot be
51655         returned.
51656         (quoting_options_from_style): Default flags correctly.
51657
51658         Quotearg part 1: more wrappers, restore quotearg_char state.
51659         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
51660         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
51661         (quotearg_colon_mem): New wrappers.
51662         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
51663         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
51664         functions.
51665         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
51666         (quotearg_colon_mem): New functions.
51667
51668 2008-02-11  Bruno Haible  <bruno@clisp.org>
51669
51670         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
51671         library in the current directory: it does not work with parallel make.
51672         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51673
51674 2008-02-11  Bruno Haible  <bruno@clisp.org>
51675
51676         * .gitattributes: New file.
51677
51678 2008-02-11  Jim Meyering  <meyering@redhat.com>
51679
51680         useless-if-before-free: Fix reversed exit values.
51681         * build-aux/useless-if-before-free: Use correct values
51682         for EXIT_MATCH and EXIT_NO_MATCH.
51683
51684         * build-aux/useless-if-before-free: Close stdout carefully.
51685
51686 2008-02-10  Bruno Haible  <bruno@clisp.org>
51687
51688         New module 'git-merge-changelog'.
51689         * modules/git-merge-changelog: New file.
51690         * lib/git-merge-changelog.c: New file.
51691
51692 2008-02-10  Jim Meyering  <meyering@redhat.com>
51693
51694         useless-if-before-free: New option: --list (-l).
51695
51696         useless-if-before-free: Don't exit immediately upon open failure.
51697         * build-aux/useless-if-before-free: Exit 2 for errors.
51698         Upon failure to open a file, don't exit immediately.
51699         Rather, just warn and continue with any remaining files.
51700
51701 2008-02-10  Bruno Haible  <bruno@clisp.org>
51702
51703         New abstract list operation 'node_set_value'.
51704         * lib/gl_list.h (gl_list_node_set_value): New function.
51705         (struct gl_list_implementation): New field node_set_value.
51706         * lib/gl_list.c (gl_list_node_set_value): New function.
51707         * lib/gl_array_list.c (gl_array_node_set_value): New function.
51708         (gl_array_list_implementation): Update.
51709         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
51710         (gl_carray_list_implementation): Update.
51711         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
51712         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
51713         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
51714         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
51715         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
51716         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
51717         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
51718         Update.
51719         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
51720         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
51721         (gl_sublist_list_implementation): Update.
51722
51723 2008-02-10  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
51726         Needed when ELEMENT is #defined to 'some_type *'.
51727
51728 2008-02-10  Jim Meyering  <meyering@redhat.com>
51729
51730         New script and module: useless-if-before-free
51731         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
51732         * build-aux/useless-if-before-free: New file.
51733         * modules/useless-if-before-free: New file.
51734
51735         * build-aux/gitlog-to-changelog: Use committer date, not author date.
51736
51737         xstrtol_error: Fix typo.
51738         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
51739         s/exit_failure/exit_status/.
51740
51741 2008-02-09  Jim Meyering  <meyering@redhat.com>
51742
51743         New script and module: gitlog-to-changelog
51744         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
51745         * modules/gitlog-to-changelog: New file.
51746         * build-aux/gitlog-to-changelog: New file.
51747
51748 2008-02-08  Jim Meyering  <meyering@redhat.com>
51749
51750         Avoid two "parameter unused" warnings.
51751         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
51752         Mark "st" as used.
51753
51754         Use "git COMMAND", not "git-COMMAND".
51755         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
51756         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
51757         * build-aux/git-version-gen: Use "git status", not "git-status".
51758
51759 2008-02-07  Bruno Haible  <bruno@clisp.org>
51760
51761         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
51762         Avoids a crash on Windows Vista.
51763         Reported by Adam Strzelecki <ono@java.pl> via
51764         Simon Josefsson <simon@josefsson.org>.
51765
51766 2008-02-06  Bruno Haible  <bruno@clisp.org>
51767
51768         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
51769         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
51770         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
51771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
51772         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51774         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
51775         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
51776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51783         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
51784         left-adjust flag.
51785         * tests/test-snprintf-posix.h (test_function): Likewise.
51786         * tests/test-sprintf-posix.h (test_function): Likewise.
51787         * tests/test-vasprintf-posix.c (test_function): Likewise.
51788         * doc/posix-functions/fprintf.texi: Update.
51789         * doc/posix-functions/printf.texi: Update.
51790         * doc/posix-functions/snprintf.texi: Update.
51791         * doc/posix-functions/sprintf.texi: Update.
51792         * doc/posix-functions/vfprintf.texi: Update.
51793         * doc/posix-functions/vprintf.texi: Update.
51794         * doc/posix-functions/vsnprintf.texi: Update.
51795         * doc/posix-functions/vsprintf.texi: Update.
51796         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51797
51798 2008-02-06  Bruno Haible  <bruno@clisp.org>
51799
51800         Fix bug introduced on 2008-01-26.
51801         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
51802
51803 2008-02-06  Bruno Haible  <bruno@clisp.org>
51804
51805         Fix bug introduced on 2007-06-10.
51806         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
51807         !NEED_PRINTF_FLAG_ZERO.
51808
51809 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
51810
51811         getloadavg: use libperfstat on AIX5
51812         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
51813
51814 2008-02-03  Bruno Haible  <bruno@clisp.org>
51815
51816         * lib/diffseq.h: Add comments about required #includes.
51817         Reported by Michael Biggs <gnulib@doubleplum.net>.
51818
51819 2008-02-01  Bruno Haible  <bruno@clisp.org>
51820
51821         * users.txt: Add gnuit.
51822
51823 2008-01-31  Bruno Haible  <bruno@clisp.org>
51824
51825         * lib/md4.c (set_uint32): Mark as inline.
51826         * lib/md5.c (set_uint32): Likewise.
51827         * lib/sha1.c (set_uint32): Likewise.
51828         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
51829         * m4/md5.m4 (gl_MD5): Likewise.
51830         * m4/sha1.m4 (gl_SHA1): Likewise.
51831
51832 2008-01-31  Jim Meyering  <meyering@redhat.com>
51833
51834         Use "sizeof VAR", rather than a literal "4".
51835         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
51836         * lib/md4.c (md4_read_ctx): Likewise.
51837         * lib/sha1.c (sha1_read_ctx): Likewise.
51838
51839 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51840
51841         * tests/test-sha1.c: New file, based on test-md5.c.
51842
51843         * modules/crypto/sha1-tests: New file.
51844
51845 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51846
51847         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
51848
51849 2008-01-31  Jim Meyering  <meyering@redhat.com>
51850
51851         Prefer "sizeof v" over the equivalent "4".
51852         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
51853         * lib/md5.c (set_uint32): Likewise.
51854         * lib/sha1.c (set_uint32): Likewise.
51855
51856 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51857
51858         * lib/sha1.c (set_uint32): Mark function as static.
51859
51860 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51861
51862         md2: clarify comments to say that alignment is not required.
51863         * lib/md2.h: Remove warning about alignment in comment.
51864         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
51865         never been required.
51866
51867 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51868
51869         md4: adapt alignment constraint fix from sha1.
51870         * lib/md4.c (set_uint32): New function, from sha1.c
51871         (md4_read_ctx): Use it.
51872         (md4_finish_ctx): Doc fix.
51873         * lib/md4.h: Doc fix.
51874
51875 2008-01-31  Simon Josefsson  <simon@josefsson.org>
51876
51877         md5: adapt alignment constraint fix from sha1.
51878         * lib/md5.c (set_uint32): New function, from sha1.c
51879         (md5_read_ctx): Use it.
51880         (md5_finish_ctx): Doc fix.
51881         * lib/md5.h: Doc fix.
51882
51883 2008-01-30  Peter Palfrader  <weasel@debian.org>
51884
51885         sha1: remove the result buffer alignment constraint
51886         * lib/sha1.c (set_uint32): New function.
51887         (sha1_read_ctx): Rewrite to remove the result buffer alignment
51888         constraint.
51889         (sha1_finish_ctx): Remove comment warning about alignment constraint.
51890         * lib/sha1.h: Likewise.
51891
51892 2008-01-30  Andreas Schwab  <schwab@suse.de>
51893             Bruno Haible  <bruno@clisp.org>
51894
51895         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
51896         correct definition of LDBL_MIN_EXP.
51897
51898 2008-01-30  Karl Berry  <karl@gnu.org>
51899
51900         * config/srclist-update: try to preserve x bit on updates.
51901         * config/srclistvars.sh: update for karl.
51902
51903 2008-01-29  Jim Meyering  <meyering@redhat.com>
51904
51905         vasnprintf.c: Avoid warning about unused label
51906         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
51907         "overflow" label definition and associated code with the
51908         same cpp condition that guards the sole use of that label.
51909
51910 2008-01-26  Bruno Haible  <bruno@clisp.org>
51911
51912         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
51913         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
51914         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
51915         * lib/isnanl-nolibm.h (isnanl): Likewise.
51916         Reported by Paul Eggert <eggert@cs.ucla.edu>.
51917
51918 2008-01-26  Bruno Haible  <bruno@clisp.org>
51919
51920         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
51921         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
51922
51923 2008-01-26  Bruno Haible  <bruno@clisp.org>
51924
51925         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
51926         GCC >= 4.0 built-in.
51927         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
51928
51929 2008-01-26  Bruno Haible  <bruno@clisp.org>
51930
51931         Rename isnan, applicable to 'double' only, to isnand.
51932         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
51933         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
51934         (configure.ac): Update.
51935         (Include): Replace "isnan.h" with "isnand.h".
51936         * m4/isnand.m4: Renamed from m4/isnan.m4.
51937         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
51938         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
51939         instead of isnan.c.
51940         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
51941         instead of HAVE_ISNAN_IN_LIBC.
51942         (isnand): Renamed from isnan.
51943         * lib/isnand.c: New file.
51944         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
51945         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
51946         (Makefile.am): Update.
51947         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
51948         Include isnand.h instead of isnan.h.
51949         (main): Test isnand instead of isnan.
51950         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
51951         isnan-nolibm.
51952         * modules/frexp (Depends-on): Likewise.
51953         * modules/frexp-tests (Depends-on): Likewise.
51954         * modules/frexp-nolibm (Depends-on): Likewise.
51955         * modules/frexp-nolibm-tests (Depends-on): Likewise.
51956         * modules/isfinite (Depends-on): Likewise.
51957         * modules/round-tests (Depends-on): Likewise.
51958         * modules/signbit (Depends-on): Likewise.
51959         * modules/signbit-tests (Depends-on): Likewise.
51960         * modules/snprintf-posix (Depends-on): Likewise.
51961         * modules/sprintf-posix (Depends-on): Likewise.
51962         * modules/trunc-tests (Depends-on): Likewise.
51963         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51964         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51966         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51967         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51968         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51969         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51970         * modules/vasnprintf-posix (Depends-on): Likewise.
51971         * modules/vasprintf-posix (Depends-on): Likewise.
51972         * modules/vfprintf-posix (Depends-on): Likewise.
51973         * modules/vsnprintf-posix (Depends-on): Likewise.
51974         * modules/vsprintf-posix (Depends-on): Likewise.
51975         * lib/frexp.c: Include isnand.h instead of isnan.h.
51976         (ISNAN): Set to isnand instead of isnan.
51977         * lib/isfinite.c: Include isnand.h instead of isnan.h.
51978         (gl_isfinited): Use isnand instead of isnan.
51979         * lib/signbitd.c: Include isnand.h instead of isnan.h.
51980         (gl_signbitd): Use isnand instead of isnan.
51981         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
51982         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
51983         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
51984         (main): Use isnand instead of isnan.
51985         * tests/test-round1.c: Include isnand.h.
51986         (main): Use isnand instead of isnan.
51987         * tests/test-round2.c: Include isnand.h instead of isnan.h.
51988         (ISNAN): Set to isnand instead of isnan.
51989         * tests/test-trunc1.c: Include isnand.h.
51990         (main): Use isnand instead of isnan.
51991         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
51992         (equal): Use isnand instead of isnan.
51993         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
51994         isnand-nolibm.
51995         * NEWS: Mention the change.
51996
51997 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51998             Bruno Haible  <bruno@clisp.org>
51999
52000         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52001         the GCC builtins for signbits are present and set
52002         REPLACE_SIGNBIT_USING_GCC if so.
52003         * lib/math.in.h (signbit): Define using GCC builtins if
52004         REPLACE_SIGNBIT_USING_GCC is set.
52005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52006         REPLACE_SIGNBIT_USING_GCC.
52007         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52008
52009 2008-01-25  Jim Meyering  <meyering@redhat.com>
52010
52011         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52012         * lib/poll.c: Include <config.h>, not "config.h".
52013         * tests/test-getaddrinfo.c: Likewise.
52014
52015 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52016
52017         * modules/sockets-tests: New file.
52018
52019 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52020
52021         * modules/sockets: New module, can be used to call WSA_Startup and
52022         WSA_Cleanup when needed.
52023
52024         * lib/sockets.h, lib/sockets.c: New files.
52025
52026         * m4/sockets.m4: New file.
52027
52028         * tests/test-sockets.c: New file.
52029
52030 2008-01-19  Bruno Haible  <bruno@clisp.org>
52031
52032         * doc/posix-headers: Renamed from doc/headers.
52033         * doc/posix-functions: Renamed from doc/functions.
52034         * doc/gnulib.texi: Update.
52035
52036 2008-01-19  Bruno Haible  <bruno@clisp.org>
52037
52038         * doc/glibc-functions/strcasestr.texi: Include contents of
52039         doc/functions/strcasestr.texi, fixing the list of platforms.
52040         * doc/functions/strcasestr.texi: Remove file.
52041
52042 2008-01-19  Bruno Haible  <bruno@clisp.org>
52043
52044         * doc/glibc-functions/memmem.texi: Include contents of
52045         doc/functions/memmem.texi.
52046         * doc/functions/memmem.texi: Remove file.
52047
52048 2008-01-18  Bruno Haible  <bruno@clisp.org>
52049
52050         * doc/glibc-functions/*.texi: New files.
52051         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52052         to use the new files.
52053
52054 2008-01-17  Bruno Haible  <bruno@clisp.org>
52055
52056         * tests/test-gethostname.c (main): Fix printf statement.
52057
52058 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52059
52060         * modules/gethostname-tests: New file.
52061
52062         * tests/test-gethostname.c: New file.
52063
52064 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52065
52066         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52067         used by the UNAME case.  Reported by Bruno Haible
52068         <bruno@clisp.org>.
52069
52070 2008-01-17  Eric Blake  <ebb9@byu.net>
52071
52072         Convert c-strcasestr to be more efficient.
52073         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52074         (Depends-on): Add c-strcase, remove malloca, strnlen.
52075         * tests/test-c-strcasestr.c (main): Enhance test.
52076         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52077
52078 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52079
52080         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52081         Use it in creating po/Makevars.
52082
52083 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52084
52085         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52086         Applications that requires it should initialize libgcrypt
52087         manually.
52088
52089 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52090
52091         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52092
52093 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         Fix problem with getdate on mingw32 reported by Simon Josefsson
52096         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52097         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52098         tzname", when deciding whether to declare tzname.
52099         * lib/strftime.c (tzname): Likewise.
52100
52101 2008-01-15  Bruno Haible  <bruno@clisp.org>
52102
52103         Work around a MacOS X 10.5 bug in frexpl().
52104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52105         * doc/functions/frexpl.texi: Document the bug.
52106         Reported by Elias Pipping <pipping@gentoo.org>.
52107
52108 2008-01-14  Eric Blake  <ebb9@byu.net>
52109
52110         Touch up previous patch.
52111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52112         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52113
52114         Convert strcasestr module to use Two-Way algorithm.
52115         * modules/strcasestr-simple: New module, based on the old
52116         strcasestr, but with Two-Way rather than KMP.
52117         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52118         * lib/string.in.h (rpl_strcasestr): Declare.
52119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52120         performance.
52121         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52122         * modules/string (Makefile.am): Support strcasestr.
52123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52124         * modules/strcasestr-tests (Depends-on): Check for alarm.
52125         * tests/test-strcasestr.c: Augment test.
52126         * lib/str-two-way.h: Clean up stray macro.
52127         * NEWS: Document new module.
52128         * MODULES.html.sh (string handling): Likewise.
52129         * doc/functions/strcasestr.texi: New file.
52130         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52131         here, since it is not a POSIX function.
52132
52133 2008-01-14  Colin Watson  <cjwatson@debian.org>
52134             Bruno Haible  <bruno@clisp.org>
52135
52136         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52137         works fine; if not, set REPLACE_STRSIGNAL.
52138         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52140         REPLACE_STRSIGNAL.
52141         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52142         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52143         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52144
52145 2008-01-14  Bruno Haible  <bruno@clisp.org>
52146
52147         * modules/strsignal (Include): Change to <string.h>.
52148
52149 2008-01-14  Colin Watson  <cjwatson@debian.org>
52150
52151         * modules/argp (Notice): Add a notice recommending to change
52152         XGETTEXT_OPTIONS.
52153         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52154
52155 2008-01-13  Colin Watson  <cjwatson@debian.org>
52156
52157         * modules/strsignal-tests: New file.
52158         * tests/test-strsignal.c: New file.
52159
52160         * lib/strsignal.c: New file, from glibc with modifications.
52161         * lib/siglist.h: New file, from glibc with modifications.
52162         * lib/string.in.h (strsignal): New declaration.
52163         * m4/strsignal.m4: New file.
52164         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52165         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52166         * modules/strsignal: New file.
52167         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52168         HAVE_DECL_STRSIGNAL.
52169
52170 2008-01-13  Bruno Haible  <bruno@clisp.org>
52171
52172         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52173         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52174         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52175         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52176
52177 2008-01-13  Bruno Haible  <bruno@clisp.org>
52178
52179         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52180         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52181         * lib/argp.h (__attribute__): Likewise.
52182         * lib/c-stack.c (__attribute__): Likewise.
52183         * lib/error.h (__attribute__): Likewise.
52184         * lib/fts.c (__attribute__): Likewise.
52185         * lib/openat.h (__attribute__): Likewise.
52186         * lib/stdio.in.h (__attribute__): Likewise.
52187         * lib/string.in.h (__attribute__): Likewise.
52188         * lib/utimens.c (__attribute__): Likewise.
52189         * lib/vasnprintf.h (__attribute__): Likewise.
52190         * lib/xalloc.h (__attribute__): Likewise.
52191         * lib/xprintf.h (__attribute__): Likewise.
52192         * lib/xstrtol.h (__attribute__): Likewise.
52193         * lib/xvasprintf.h (__attribute__): Likewise.
52194
52195 2008-01-12  Bruno Haible  <bruno@clisp.org>
52196
52197         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52198         * doc/glibc-headers/a.out.texi: New file.
52199         * doc/glibc-headers/aliases.texi: New file.
52200         * doc/glibc-headers/alloca.texi: New file.
52201         * doc/glibc-headers/ar.texi: New file.
52202         * doc/glibc-headers/argp.texi: New file.
52203         * doc/glibc-headers/argz.texi: New file.
52204         * doc/glibc-headers/byteswap.texi: New file.
52205         * doc/glibc-headers/crypt.texi: New file.
52206         * doc/glibc-headers/endian.texi: New file.
52207         * doc/glibc-headers/envz.texi: New file.
52208         * doc/glibc-headers/err.texi: New file.
52209         * doc/glibc-headers/error.texi: New file.
52210         * doc/glibc-headers/execinfo.texi: New file.
52211         * doc/glibc-headers/fpu_control.texi: New file.
52212         * doc/glibc-headers/fstab.texi: New file.
52213         * doc/glibc-headers/fts.texi: New file.
52214         * doc/glibc-headers/getopt.texi: New file.
52215         * doc/glibc-headers/ieee754.texi: New file.
52216         * doc/glibc-headers/ifaddrs.texi: New file.
52217         * doc/glibc-headers/libintl.texi: New file.
52218         * doc/glibc-headers/mcheck.texi: New file.
52219         * doc/glibc-headers/mntent.texi: New file.
52220         * doc/glibc-headers/obstack.texi: New file.
52221         * doc/glibc-headers/paths.texi: New file.
52222         * doc/glibc-headers/printf.texi: New file.
52223         * doc/glibc-headers/pty.texi: New file.
52224         * doc/glibc-headers/resolv.texi: New file.
52225         * doc/glibc-headers/shadow.texi: New file.
52226         * doc/glibc-headers/sysexits.texi: New file.
52227         * doc/glibc-headers/ttyent.texi: New file.
52228
52229 2008-01-12  Jim Meyering  <meyering@redhat.com>
52230
52231         announce-gen: emit Gnulib's git-based version string.
52232         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52233         New option --gnulib-version=V, where V is expected to be
52234         the output of running git describe in the gnulib directory.
52235         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52236         not useful, and plan to stop publishing an xdelta file with each
52237         coreutils release.
52238
52239         * build-aux/announce-gen: Also check for lzma-compressed files.
52240
52241 2008-01-11  Bruno Haible  <bruno@clisp.org>
52242
52243         * tests/test-memmem.c (main): Increase maximum allowed time.
52244         * tests/test-strstr.c (main): Likewise.
52245
52246 2008-01-11  Bruno Haible  <bruno@clisp.org>
52247
52248         * doc/functions/memmem.texi: Add more precisions about platforms.
52249         * doc/functions/strstr.texi: Likewise.
52250
52251 2008-01-10  Eric Blake  <ebb9@byu.net>
52252
52253         * m4/strstr.m4: Delete cruft from copy-n-paste.
52254         Reported by Bruno Haible.
52255
52256 2008-01-10  Bruno Haible  <bruno@clisp.org>
52257
52258         Make c-strstr rely on strstr.
52259         * lib/c-strstr.c: Don't include str-kmp.h.
52260         (c_strstr): Define in terms of strstr.
52261         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52262         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52263
52264 2008-01-10  Bruno Haible  <bruno@clisp.org>
52265
52266         * doc/gnulib.texi (String Functions in C Locale): New section.
52267         * doc/c-ctype.texi: New file.
52268         * doc/c-strcase.texi: New file.
52269         * doc/c-strcaseeq.texi: New file.
52270         * doc/c-strcasestr.texi: New file.
52271         * doc/c-strstr.texi: New file.
52272         * doc/c-strtod.texi: New file.
52273         * doc/c-strtold.texi: New file.
52274
52275 2008-01-10  Eric Blake  <ebb9@byu.net>
52276
52277         * lib/relocatable.h: Fix a comment.
52278
52279 2008-01-10  Eric Blake  <ebb9@byu.net>
52280
52281         Share two-way algorithm.
52282         * lib/str-two-way.h: New file, merged from...
52283         * lib/memmem.c: ...here...
52284         * lib/strstr.c: ...and here.
52285         * modules/memmem (Files): Use it.
52286         * modules/strstr (Files): Likewise.
52287
52288         Avoid quadratic strstr implementations.
52289         * lib/strstr.c: New file.
52290         * m4/strstr.m4: Likewise.
52291         * modules/strstr: Likewise.
52292         * modules/strstr-tests: Likewise.
52293         * tests/test-strstr.c: Likewise.
52294         * lib/string.in.h (rpl_strstr): Declare.
52295         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52297         * modules/string (Makefile.am): Likewise.
52298         * MODULES.html.sh (string handling): Mention new module.
52299         * doc/functions/strstr.texi (strstr): Document the bug.
52300
52301 2008-01-10  Bruno Haible  <bruno@clisp.org>
52302
52303         * lib/relocatable.h (relocate): State whether result is freshly
52304         allocated or not.
52305         * lib/relocatable.c (relocate): Return a freshly allocated string
52306         instead of a pointer to a privately held string.
52307         Reported by Sylvain Beucler <beuc@gnu.org>.
52308
52309 2008-01-10  Colin Watson  <cjwatson@debian.org>
52310
52311         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52312         s/S_ISNLK/S_ISLNK/.
52313
52314 2008-01-09  Bruno Haible  <bruno@clisp.org>
52315
52316         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52317         and other files.
52318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52319         if it's only a guess.
52320         * modules/memmem: Simplify by depending on memmem-simple.
52321
52322 2008-01-09  Bruno Haible  <bruno@clisp.org>
52323
52324         Work around OpenBSD 4.0 tdelete() bug.
52325         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52326         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52327         macros and don't redefine the enum values.
52328         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52329         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52330         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52331
52332 2008-01-09  Bruno Haible  <bruno@clisp.org>
52333
52334         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52335         (main): Don't perform the tests if setlocale did not install a UTF-8
52336         locale. Needed on OpenBSD 4.0.
52337         * modules/wcwidth-tests (Depends-on): Add localcharset.
52338
52339 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52340
52341         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52342         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52343         * NEWS: announce this.
52344         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52345
52346 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52347         and Eric Blake  <ebb9@byu.net>
52348
52349         Add memmem-simple module.
52350         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52351         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52352         * modules/memmem-simple: New file.
52353         * modules/memmem (Description): Tweak.
52354         * MODULES.html.sh (string handling): Mention new module.
52355         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52356         addressed by memmem-simple.
52357         * NEWS: Document the difference.
52358
52359 2008-01-09  Eric Blake  <ebb9@byu.net>
52360
52361         Give gcc some memmem optimization hints.
52362         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52363         (strcasestr): Declare as pure.
52364         * modules/memmem (Maintainer): Claim my implementation.
52365
52366 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52367
52368         Support AIX 6.1 and higher.
52369         * build-aux/config.libpath: Likewise.
52370         * build-aux/config.rpath: Likewise.
52371
52372 2008-01-08  Jim Meyering  <meyering@redhat.com>
52373             Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52376         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52377         Reported by Peter Fales in
52378         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52379
52380 2008-01-08  Bruno Haible  <bruno@clisp.org>
52381
52382         * modules/unictype/category-of (Depends-on): Add
52383         unictype/category-none.
52384         * modules/unictype/category-and-tests (Depends-on): Add
52385         unictype/category-{L,N,Lu,Nd}.
52386         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52387         * modules/unictype/category-or-tests (Depends-on): Add
52388         unictype/category-{L,N}.
52389         * modules/unictype/category-name-tests (Depends-on): Add
52390         unictype/category-{Z,Nl}.
52391         Reported by Simon Josefsson.
52392
52393 2008-01-08  Bruno Haible  <bruno@clisp.org>
52394
52395         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52396         convention better.
52397         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52398         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52399         Reported by Peter Miller <millerp@canb.auug.org.au>.
52400
52401 2008-01-08  Eric Blake  <ebb9@byu.net>
52402
52403         Rewrite memmem to guarantee linear complexity without malloc.
52404         * lib/memmem.c (memmem): Use Two-Way rather than
52405         Knuth-Morris-Pratt, to allow O(1) space usage.
52406         (critical_factorization, two_way_short_needle)
52407         (two_way_long_needle): New functions.
52408         (knuth_morris_pratt): Delete.
52409         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52410         Add stdint.
52411         * tests/test-memmem.c (main): Add tests for periodic needle and
52412         sublinear performance.
52413         * doc/functions/memmem.texi (memmem): Document other deficiencies
52414         in cygwin and older glibc.
52415
52416 2008-01-08  Bruno Haible  <bruno@clisp.org>
52417
52418         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52419         augmentation.
52420
52421 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52422
52423         Add a configure time option: --disable-acl.
52424         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52425         AC_ARG_ENABLE(acl).
52426
52427 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52428
52429         * tests/test-localename.c: Don't include obsolete "setenv.h".
52430
52431         * modules/localename-tests (Depends-on): Need unsetenv.
52432
52433 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52434
52435         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52436
52437 2008-01-06  Colin Watson  <cjwatson@debian.org>
52438
52439         * users.txt: Add man-db.
52440
52441 2008-01-07  Bruno Haible  <bruno@clisp.org>
52442
52443         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52444         previous section name.
52445
52446 2008-01-07  Bruno Haible  <bruno@clisp.org>
52447
52448         * lib/progname.c (set_program_name): Don't strip off a leading
52449         "lt-" prefix outside a .libs directory.
52450         Suggested by Paul Eggert.
52451
52452 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
52453             Bruno Haible  <bruno@clisp.org>
52454
52455         Improve memory cleanup in 'relocatable' module.
52456         * lib/relocatable.h (compute_curr_prefix): Change return type to
52457         'char *'.
52458         * lib/relocatable.c (compute_curr_prefix): Change return type to
52459         'char *'. Free curr_installdir after use.
52460         (relocate): Free curr_prefix_better after use.
52461         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
52462
52463 2008-01-01  Bruno Haible  <bruno@clisp.org>
52464
52465         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
52466         failure on older glibc systems.
52467         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52468
52469 2008-01-05  Eric Blake  <ebb9@byu.net>
52470
52471         Avoid quadratic system memmem.
52472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
52473         Reported by Ralf Wildenhues.
52474
52475         Fix memmem test for mingw.
52476         * modules/memmem-tests (configure.ac): Check for alarm.
52477         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
52478         it.
52479         * doc/functions/memmem.texi: New file.
52480         * doc/gnulib.texi (Function Substitutes): Add memmem.
52481         Reported by Bruno Haible.
52482
52483 2008-01-04  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
52486         Require gl_HEADER_STRINGS_H_DEFAULTS, not
52487         gl_HEADER_STRING_H_DEFAULTS.
52488
52489 2008-01-04  Eric Blake  <ebb9@byu.net>
52490
52491         Shorten duration of memmem test.
52492         * tests/test-memmem.c (main): Use alarm to declare failure if test
52493         is taking too long.
52494         Reported by Ralf Wildenhues.
52495
52496 2007-12-21  Simon Josefsson  <simon@josefsson.org>
52497
52498         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
52499         string, needed by strerror.
52500
52501 2008-01-03  Colin Watson  <cjwatson@debian.org>
52502             Bruno Haible  <bruno@clisp.org>
52503
52504         * doc/gnulib-tool.texi (Localization): New section.
52505
52506 2008-01-02  Bruno Haible  <bruno@clisp.org>
52507
52508         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
52509         variables to 'unsigned char *' type.
52510         Reported by Paul Eggert.
52511
52512 2008-01-02  Jim Meyering  <jim@meyering.net>
52513
52514         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
52515
52516 2007-12-31  Jim Meyering  <jim@meyering.net>
52517
52518         Avoid use of private FTS type name.
52519         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
52520
52521 2007-12-30  Karl Berry  <karl@gnu.org>
52522
52523         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
52524         work around defect in Texinfo and/or the standalone Info browser.
52525
52526 2007-12-30  Bruno Haible  <bruno@clisp.org>
52527
52528         Unify 5 copies of the KMP code.
52529         * lib/str-kmp.h: New file.
52530         * lib/c-strcasestr.c: Include str-kmp.h.
52531         (knuth_morris_pratt): Remove function.
52532         (c_strcasestr): Update.
52533         * lib/c-strstr.c: Include str-kmp.h.
52534         (knuth_morris_pratt): Remove function.
52535         (c_strcasestr): Update.
52536         * lib/mbscasestr.c: Include str-kmp.h.
52537         (knuth_morris_pratt_unibyte): Remove function.
52538         * lib/mbsstr.c: Include str-kmp.h.
52539         (knuth_morris_pratt_unibyte): Remove function.
52540         * lib/strcasestr.c: Include str-kmp.h.
52541         (knuth_morris_pratt): Remove function.
52542         (strcasestr): Update.
52543         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
52544         * modules/c-strstr (Files): Likewise.
52545         * modules/mbscasestr (Files): Likewise.
52546         * modules/mbsstr (Files): Likewise.
52547         * modules/strcasestr (Files): Likewise.
52548         Suggested by Paul Eggert.
52549
52550 2007-12-30  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
52553         defined.
52554
52555 2007-12-30  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/xmalloca.h: Include xalloc.h.
52558         (xnmalloca): New macro.
52559
52560 2007-12-30  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/malloca.h (nmalloca): New macro.
52563         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
52564         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
52565         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
52566         knuth_morris_pratt_multibyte): Likewise.
52567         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
52568         knuth_morris_pratt_multibyte): Likewise.
52569         * lib/memmem.c (knuth_morris_pratt): Likewise.
52570         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
52571
52572 2007-12-25  Bruno Haible  <bruno@clisp.org>
52573
52574         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
52575         * lib/glob.c: Don't include openat.h.
52576         (link_exists2_p): Add back the code that deals with the
52577         !GLOB_ALTDIRFUNC case.
52578         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
52579         let it do the filename concatenation.
52580         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
52581         * modules/glob (Depends-on): Remove openat.
52582
52583 2007-12-31  Bruno Haible  <bruno@clisp.org>
52584
52585         * modules/dirfd (License): Change to LGPLv2+.
52586         Approved by Jim Meyering.
52587
52588 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
52589
52590         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
52591         when multiplying M by sizeof (size_t).
52592
52593 2007-12-10  Martin Lambers  <marlam@marlam.de>
52594
52595         Override getpagesize on mingw.
52596         * lib/getpagesize.c: New file.
52597         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
52598         * modules/getpagesize (Files): Add lib/getpagesize.c.
52599         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
52600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52601         REPLACE_GETPAGESIZE.
52602         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
52603
52604 2007-12-25  Bruno Haible  <bruno@clisp.org>
52605
52606         * modules/localcharset (Notice): New field.
52607         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
52608         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
52609
52610 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52611             Bruno Haible  <bruno@clisp.org>
52612
52613         Avoid using the syntax symbol() in formatted documentation.
52614         * MODULES.html.sh (func_module): When replacing symbol() with a
52615         hyperlink, remove the parentheses. Show an error if some remain.
52616         Recognize and render the '...' syntax.
52617         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
52618         Rework. Add paragraph about GCC's inlining.
52619         * doc/alloca.texi: Likewise.
52620         * doc/error.texi: Remove parentheses from symbol reference.
52621         * doc/gnulib-intro.texi: Likewise.
52622         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
52623         * modules/fnmatch (Description): Reword to say "the ... function".
52624         * modules/full-read (Description): Likewise.
52625         * modules/full-write (Description): Likewise.
52626         * modules/safe-read (Description): Likewise.
52627         * modules/safe-write (Description): Likewise.
52628         * modules/strchrnul (Description): Likewise.
52629         * modules/trim (Description): Likewise.
52630         * modules/error (Description): Remove parentheses from symbol
52631         references.
52632         * modules/verror (Description): Likewise.
52633         Reported by Karl Berry.
52634
52635 2007-12-25  Bruno Haible  <bruno@clisp.org>
52636
52637         Fixup after 2007-10-16 commit.
52638         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
52639
52640 2007-12-24  Bruno Haible  <bruno@clisp.org>
52641
52642         Make --enable-relocatable work with DESTDIR.
52643         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
52644         to compute installdir from destprog.
52645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
52646         also set the RELOC_DESTDIR variable.
52647         Reported by Левашев Иван <octagram@bluebottle.com>.
52648
52649 2007-12-24  Bruno Haible  <bruno@clisp.org>
52650
52651         Fix link error due to xalloc_die().
52652         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
52653         of xreadlink.
52654         * lib/relocwrapper.c: Update comments.
52655         * build-aux/install-reloc: Remove xreadlink.c from file list.
52656         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
52657         xreadlink.c.
52658         Reported by Левашев Иван <octagram@bluebottle.com>.
52659
52660 2007-12-24  Bruno Haible  <bruno@clisp.org>
52661
52662         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
52663         * lib/setenv.h: Remove file.
52664         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
52665         lib/setenv.h.
52666         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
52667         (Depends-on): Add stdlib.
52668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
52669         gl_FUNC_UNSETENV.
52670         (Include): Replace setenv.h with <stdlib.h>.
52671         * modules/unsetenv: New file.
52672         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
52673         * lib/unsetenv.c: Include <stdlib.h> first.
52674         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
52675         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
52676         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
52677         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
52678         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
52679         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
52681         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
52682         * doc/functions/unsetenv.texi: Update.
52683         * modules/xsetenv (Depends-on): Add unsetenv.
52684         * modules/getdate (Depends-on): Likewise.
52685         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
52686         * lib/xsetenv.c: Don't include setenv.h.
52687         * lib/getdate.y: Likewise.
52688         * lib/relocwrapper.c: Likewise.
52689         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
52690         (Depends-on): Add stdlib.
52691         * NEWS: Mention the changes.
52692         Reported by Левашев Иван <octagram@bluebottle.com>.
52693
52694 2007-12-23  Bruno Haible  <bruno@clisp.org>
52695
52696         * lib/memmem.c (memmem): Use lowercase variable names. Tab
52697         indentation.
52698
52699 2007-12-23  Bruno Haible  <bruno@clisp.org>
52700
52701         * lib/c-strcasestr.c: Add more comments.
52702         * lib/c-strstr.c: Likewise.
52703         * lib/mbscasestr.c: Likewise.
52704         * lib/mbsstr.c: Likewise.
52705         * lib/strcasestr.c: Likewise.
52706         * lib/memmem.c: Likewise.
52707
52708 2007-12-23  Bruno Haible  <bruno@clisp.org>
52709
52710         * tests/test-memmem.c: Include <string.h> first.
52711
52712 2007-12-22  Bruno Haible  <bruno@clisp.org>
52713
52714         * gnulib-tool (func_create_testdir): Change $auxdir while generating
52715         the contents of $testsbase.
52716         Reported by Ralf Wildenhues.
52717
52718 2007-12-22  Bruno Haible  <bruno@clisp.org>
52719
52720         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
52721         two variables local_ldadd_before, local_ldadd_last.
52722
52723 2007-12-20  Eric Blake  <ebb9@byu.net>
52724
52725         Work around circular library issue when cross-compiling.
52726         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
52727         that progname.o does not need to pull in rpl_memcmp.
52728
52729 2007-12-19  Eric Blake  <ebb9@byu.net>
52730
52731         Fix memmem to avoid O(n^2) worst-case complexity.
52732         * lib/memmem.c (knuth_morris_pratt): New function.
52733         (memmem): Use it if first few naive iterations fail.
52734         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
52735         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
52736         * modules/memchr (License): Likewise.
52737         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
52738         malloca.
52739         * tests/test-memmem.c: Rewrite, borrowing ideas from
52740         test-mbsstr1.c; the old version wouldn't even compile!
52741         * modules/memmem-tests: New file.
52742         * lib/string.in.h (rpl_memmem): Add declaration.
52743         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
52744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
52745         REPLACE_MEMMEM.
52746
52747 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52748
52749         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
52750         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
52751         before any system include files, and undef after them all.  This
52752         should fix a problem on VMS reported by John E. Malmberg in
52753         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
52754
52755 2007-12-17  Eric Blake  <ebb9@byu.net>
52756
52757         Revert addition of verify, for BSD/OS.
52758         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
52759         can't handle large files, for the sake of obsolete platforms.
52760         * modules/fseeko (Depends-on): Remove verify.
52761         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
52762         * doc/functions/ftello.texi (ftello): Likewise.
52763         * doc/functions/fgetpos.texi (fgetpos): Likewise.
52764         Reported by Larry Jones.
52765
52766 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
52767
52768         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
52769         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
52770
52771 2007-12-17  Jim Meyering  <meyering@redhat.com>
52772
52773         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
52774         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
52775         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
52776         * modules/getcwd (Depends-on): Add openat.
52777         Reported by Petr Salinger.
52778
52779 2007-12-17  Bruno Haible  <bruno@clisp.org>
52780
52781         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
52782         avoid a segmentation fault of the configure test on x86_64 systems.
52783
52784 2007-12-15  Jim Meyering  <meyering@redhat.com>
52785
52786         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
52787
52788 2007-12-13  Eric Blake  <ebb9@byu.net>
52789
52790         Another fseek test.
52791         * tests/test-fseek.c (main): Also test ungetc handling.
52792         * tests/test-fseeko.c (main): Likewise.
52793         * modules/fseeko (Depends-on): Add verify.
52794         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
52795         large.
52796         Reported by Larry Jones.
52797
52798         Fix fseeko on mingw.
52799         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
52800         seek.
52801
52802         Beef up fseek tests.
52803         * tests/test-fseek.c (main): Also test eof handling.
52804         * tests/test-fseeko.c (main): Likewise.
52805         Reported by Larry Jones.
52806
52807 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
52808
52809         Fix fseeko on BSD-based platforms.
52810         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
52811         successful seek.
52812
52813 2007-12-12  Eric Blake  <ebb9@byu.net>
52814
52815         Allow circular dependency of separate libtests.a
52816         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
52817         when use_libtests.
52818
52819 2007-12-11  Eric Blake  <ebb9@byu.net>
52820
52821         Fix bug with -0.0L in previous patch.
52822         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
52823         * tests/test-isnan.c (main): Also test on zeroes.
52824         * tests/test-isnanf.c (main): Likewise.
52825         * tests/test-isnanl.h (main): Likewise.
52826
52827         Detect pseudo-denormals on x86 even when cross-compiling.
52828         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
52829         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
52830         invalid bit patterns that happen to satisfy ==.
52831
52832         Avoid link failures with separate libtests.a.
52833         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
52834         last, to satisfy circular dependencies.
52835
52836 2007-12-11  Eric Blake  <ebb9@byu.net>
52837         and Bruno Haible  <bruno@clisp.org>
52838
52839         Fix OpenBSD 4.0 <float.h> handling of long double.
52840         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
52841         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
52842         * doc/headers/float.texi (float.h): Document OpenBSD bug.
52843
52844 2007-12-11  Jim Meyering  <meyering@redhat.com>
52845
52846         * users.txt: Add libvirt.
52847
52848         Support versions of autoconf prior to 2.59c.
52849         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
52850         if it is not already defined.
52851
52852 2007-12-09  Bruno Haible  <bruno@clisp.org>
52853
52854         Let 'gnulib-tool --import' collect sources needed for the tests in
52855         tests/ rather than in lib/.
52856         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
52857         argument. If true, add rules to generate libtests.a, and put libtests.a
52858         into $(LDADD). Consider source files in subdirectories and set
52859         uses_subdirs.
52860         (func_emit_initmacro_start, func_emit_initmacro_end,
52861         func_emit_initmacro_done): Pass all arguments explicitly.
52862         (func_import): Determine two module lists main_modules,
52863         testsrelated_modules. Determine use_libtests. Determine two variables
52864         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
52865         instead of just sed_transform_lib_file. Determine two variables
52866         main_files and testsrelated_files. Compute 'files' as the union of
52867         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
52868         func_add_or_update. In the generated gnulib-comp.m4, collect the
52869         object files for tests/ in different variables than those for lib/.
52870         Substitute LIBTESTS_LIBDEPS.
52871         (func_create_testdir): Combine the uses_subdirs results from
52872         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
52873
52874 2007-12-09  Bruno Haible  <bruno@clisp.org>
52875
52876         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
52877         the build-aux directory.
52878
52879 2007-12-09  Bruno Haible  <bruno@clisp.org>
52880
52881         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
52882         introduced on 2006-09-09.
52883
52884 2007-12-07  Jim Meyering  <meyering@redhat.com>
52885
52886         Let these macros work also with autoconf-2.59.
52887         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
52888         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
52889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52890
52891 2007-12-06  Jim Meyering  <meyering@redhat.com>
52892
52893         Avoid a configure-time syntax error in gl_FUNC_ACL.
52894         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
52895         function in each branch, before testing the cache variable.
52896
52897 2007-12-04  Eric Blake  <ebb9@byu.net>
52898
52899         Make scripts executable.
52900         * build-aux/config.guess: Add execute permissions.
52901         * build-aux/config.sub: Likewise.
52902         * build-aux/gendocs.sh: Likewise.
52903
52904         Fix frexp on mingw.
52905         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
52906         cross-compiling.
52907         * doc/functions/frexp.texi (frexp): Document the bug.
52908
52909         Make cygwin fseeko check more reliable.
52910         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
52911         version numbers, rather than unrelated feature check.
52912         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
52913         * doc/functions/ftello.texi (ftello): Likewise.
52914         Reported by Bruno Haible.
52915
52916         * m4/strerror.m4: Bump version number.
52917
52918 2007-12-03  Bruno Haible  <bruno@clisp.org>
52919
52920         * doc/functions/mprotect.texi: Mention the mingw problem.
52921
52922 2007-12-03  Eric Blake  <ebb9@byu.net>
52923
52924         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
52925         REPLACE_STRERROR is initialized before this macro.
52926
52927 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
52928
52929         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
52930         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
52931         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
52932         put -lsec in even for programs other than 'ls'.  This fixes a problem
52933         for gettext reported by Bruno Haible in
52934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
52935         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
52936         Add support for Solaris 10.  This isn't efficient, but should get the
52937         job done for now.
52938
52939 2007-12-03  James Youngman  <jay@gnu.org>
52940
52941         * doc/regexprops-generic.texi: change "an close-group" to "a
52942         close-group" and "illegal" to "not allowed".
52943
52944 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52945
52946         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
52947         pr_byname.h. Needed for the rare case when the maintainer has done
52948         "make maintainer-clean" in the source directory and then attempts a
52949         build outside the source directory.
52950         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
52951         scripts_byname.h.
52952
52953 2007-12-02  Martin Lambers <marlam@marlam.de>
52954             Bruno Haible  <bruno@clisp.org>
52955
52956         * lib/getpagesize.h: Remove file.
52957         * lib/unistd.in.h: Include declaration of getpagesize here.
52958         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
52959         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
52960         HAVE_SYS_PARAM_H.
52961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
52962         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52963         * modules/getpagesize (Files): Remove lib/getpagesize.h.
52964         (Depends-on): Add unistd.
52965         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52966         (Include): Use <unistd.h> instead of getpagesize.h.
52967         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
52968         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
52969         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
52970         gl_GETPAGESIZE invocation, already handled by module dependency.
52971         * lib/pagealign_alloc.c: Don't include getpagesize.h.
52972
52973 2007-12-02  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/strings-tests: New file.
52976         * tests/test-strings.c: New file.
52977
52978         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
52979         * lib/strings.in.h: New file.
52980         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
52981         * m4/strings_h.m4: New file.
52982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
52983         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
52984         * modules/strings: New file.
52985         * modules/string (Makefile.am): Update.
52986         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
52987         Reported by Karl Berry.
52988
52989 2007-12-01  Eric Blake  <ebb9@byu.net>
52990
52991         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
52992         accomodate fix in cygwin 1.5.25.
52993
52994 2007-12-01  Jim Meyering  <meyering@redhat.com>
52995
52996         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
52997         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
52998         that would inhibit utf8-optimization of a regexp containing line-
52999         or buffer-anchors, e.g., `^', `$'.
53000
53001 2007-11-30  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53004         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53005         glthread_recursive_lock_init.
53006         * lib/lock.c (glthread_recursive_lock_init)
53007         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53008         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53009
53010 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53011
53012         New function qset_acl, like set_acl but with syscall semantics.
53013         * lib/acl.h (qset_acl): New decl.
53014         * lib/acl.c (qset_acl): New function.
53015         (set_acl): Use new function.  Use more-consistent diagnostics.
53016
53017 2007-11-28  Jim Meyering  <meyering@redhat.com>
53018
53019         * modules/physmem (License): Change from GPL to LGPLv2+.
53020
53021 2007-11-26  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53024         'long double' type has excess precision.
53025         Reported by Jim Meyering in
53026         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53027
53028 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53029
53030         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53031         Sync from <http://gnu.org/licenses>.
53032         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53033         with license text from same location.
53034         * doc/maintain.texi, doc/standards.texi:  Sync from
53035         <http://savannah.gnu.org/projects/gnustandards>.
53036
53037 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53038         and Jim Meyering  <meyering@redhat.com>
53039
53040         Adjust getdate' grammar to accept a slightly more regular language.
53041         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53042         Before, the former was rejected.
53043         * lib/getdate.y (digits_to_date_time): New function, factored
53044         out of ...
53045         (number): ...here.  Just call digits_to_date_time.
53046         (hybrid): New non-terminal to handle an <unsigned number,
53047         signed relative offset> sequence consistently.
53048
53049 2007-11-18  Jim Meyering  <meyering@redhat.com>
53050
53051         Pull my changes from coreutils:
53052         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53053         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53054         use of $gnulib_tool_option_extras, so that it's separated from the
53055         preceding argument.
53056
53057         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53058         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53059         parent destination directories before copying a file into place.
53060
53061 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53062
53063         bootstrap: work also with 4-argument variant of AC_INIT
53064         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53065
53066 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         Port test-getaddrinfo to Solaris.
53069         Problem reported by Bruno Haible in
53070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53071         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53072         explanation of setting 'hints'.
53073         Don't reject an implementation merely because it returns EAI_SERVICE.
53074         (EAI_SERVICE): Define to 0 if not defined.
53075
53076 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53077
53078         The license of gnu-make and posix-shell is now "GPLed build tool".
53079         * modules/gnu-make (License): Likewise.
53080         * modules/posix-shell (License): Likewise.
53081
53082         New module posix-shell, for determining a POSIX shell
53083         or perhaps something that is close enough to a POSIX shell.
53084         * m4/posix-shell.m4: New file.
53085         * modules/posix-shell: New file.
53086
53087         * MODULES.html.sh: Mention new module.
53088
53089         New module gnu-make, for determining whether we're using GNU Make.
53090         * m4/gnu-make.m4: New file.
53091         * modules/gnu-make: New file.
53092         * MODULES.html.sh: Mention new module.
53093
53094 2007-11-14  Jim Meyering  <meyering@redhat.com>
53095
53096         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53097         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53098         use this macro to create a function _definition_.
53099         Remove useless "#undef ARGMATCH_DIE".
53100
53101 2007-11-14  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/config.charset: Update for OpenBSD 4.1.
53104         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53105
53106 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53107
53108         Document 64-bit #if problems in stdint.texi.
53109         * doc/headers/stdint.texi (stdint.h): Mention problems with
53110         64-bit-#if, and how to work around them.
53111
53112         Don't insist on 'long long int' support in the preprocessor.  It
53113         breaks too many things.  For example, PRIdMAX still uses a 'long
53114         long int' format with the latest Sun compiler, even though
53115         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53116         preprocessor problem.  This causes the latest coreutils to dump
53117         core on Solaris 10 sparc with the Sun C compiler.
53118         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53119         the troublesome expressions at configure-time, not at #if-time.
53120         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53121         preprocessor.
53122         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53123         compile-time C checks, done at 'configure'-time.
53124         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53125         * modules/inttypes (Makefile): Substitute the new symbols that
53126         gl_INTTYPES_H now generates.
53127         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53128
53129 2007-11-12  Bruno Haible  <bruno@clisp.org>
53130
53131         Tests for Unicode character classification functions.
53132
53133         * modules/unictype/bidicategory-byname-tests: New file.
53134         * modules/unictype/bidicategory-name-tests: New file.
53135         * modules/unictype/bidicategory-of-tests: New file.
53136         * modules/unictype/bidicategory-test-tests: New file.
53137         * modules/unictype/block-list-tests: New file.
53138         * modules/unictype/block-of-tests: New file.
53139         * modules/unictype/block-test-tests: New file.
53140         * modules/unictype/category-C-tests: New file.
53141         * modules/unictype/category-Cc-tests: New file.
53142         * modules/unictype/category-Cf-tests: New file.
53143         * modules/unictype/category-Cn-tests: New file.
53144         * modules/unictype/category-Co-tests: New file.
53145         * modules/unictype/category-Cs-tests: New file.
53146         * modules/unictype/category-L-tests: New file.
53147         * modules/unictype/category-Ll-tests: New file.
53148         * modules/unictype/category-Lm-tests: New file.
53149         * modules/unictype/category-Lo-tests: New file.
53150         * modules/unictype/category-Lt-tests: New file.
53151         * modules/unictype/category-Lu-tests: New file.
53152         * modules/unictype/category-M-tests: New file.
53153         * modules/unictype/category-Mc-tests: New file.
53154         * modules/unictype/category-Me-tests: New file.
53155         * modules/unictype/category-Mn-tests: New file.
53156         * modules/unictype/category-N-tests: New file.
53157         * modules/unictype/category-Nd-tests: New file.
53158         * modules/unictype/category-Nl-tests: New file.
53159         * modules/unictype/category-No-tests: New file.
53160         * modules/unictype/category-P-tests: New file.
53161         * modules/unictype/category-Pc-tests: New file.
53162         * modules/unictype/category-Pd-tests: New file.
53163         * modules/unictype/category-Pe-tests: New file.
53164         * modules/unictype/category-Pf-tests: New file.
53165         * modules/unictype/category-Pi-tests: New file.
53166         * modules/unictype/category-Po-tests: New file.
53167         * modules/unictype/category-Ps-tests: New file.
53168         * modules/unictype/category-S-tests: New file.
53169         * modules/unictype/category-Sc-tests: New file.
53170         * modules/unictype/category-Sk-tests: New file.
53171         * modules/unictype/category-Sm-tests: New file.
53172         * modules/unictype/category-So-tests: New file.
53173         * modules/unictype/category-Z-tests: New file.
53174         * modules/unictype/category-Zl-tests: New file.
53175         * modules/unictype/category-Zp-tests: New file.
53176         * modules/unictype/category-Zs-tests: New file.
53177         * modules/unictype/category-and-not-tests: New file.
53178         * modules/unictype/category-and-tests: New file.
53179         * modules/unictype/category-byname-tests: New file.
53180         * modules/unictype/category-name-tests: New file.
53181         * modules/unictype/category-none-tests: New file.
53182         * modules/unictype/category-of-tests: New file.
53183         * modules/unictype/category-or-tests: New file.
53184         * modules/unictype/category-test-withtable-tests: New file.
53185         * modules/unictype/combining-class-tests: New file.
53186         * modules/unictype/ctype-alnum-tests: New file.
53187         * modules/unictype/ctype-alpha-tests: New file.
53188         * modules/unictype/ctype-blank-tests: New file.
53189         * modules/unictype/ctype-cntrl-tests: New file.
53190         * modules/unictype/ctype-digit-tests: New file.
53191         * modules/unictype/ctype-graph-tests: New file.
53192         * modules/unictype/ctype-lower-tests: New file.
53193         * modules/unictype/ctype-print-tests: New file.
53194         * modules/unictype/ctype-punct-tests: New file.
53195         * modules/unictype/ctype-space-tests: New file.
53196         * modules/unictype/ctype-upper-tests: New file.
53197         * modules/unictype/ctype-xdigit-tests: New file.
53198         * modules/unictype/decimal-digit-tests: New file.
53199         * modules/unictype/digit-tests: New file.
53200         * modules/unictype/mirror-tests: New file.
53201         * modules/unictype/numeric-tests: New file.
53202         * modules/unictype/property-alphabetic-tests: New file.
53203         * modules/unictype/property-ascii-hex-digit-tests: New file.
53204         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53205         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53206         * modules/unictype/property-bidi-block-separator-tests: New file.
53207         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53208         * modules/unictype/property-bidi-common-separator-tests: New file.
53209         * modules/unictype/property-bidi-control-tests: New file.
53210         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53211         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53212         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53213         * modules/unictype/property-bidi-european-digit-tests: New file.
53214         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53215         * modules/unictype/property-bidi-left-to-right-tests: New file.
53216         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53217         * modules/unictype/property-bidi-other-neutral-tests: New file.
53218         * modules/unictype/property-bidi-pdf-tests: New file.
53219         * modules/unictype/property-bidi-segment-separator-tests: New file.
53220         * modules/unictype/property-bidi-whitespace-tests: New file.
53221         * modules/unictype/property-byname-tests: New file.
53222         * modules/unictype/property-combining-tests: New file.
53223         * modules/unictype/property-composite-tests: New file.
53224         * modules/unictype/property-currency-symbol-tests: New file.
53225         * modules/unictype/property-dash-tests: New file.
53226         * modules/unictype/property-decimal-digit-tests: New file.
53227         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53228         * modules/unictype/property-deprecated-tests: New file.
53229         * modules/unictype/property-diacritic-tests: New file.
53230         * modules/unictype/property-extender-tests: New file.
53231         * modules/unictype/property-format-control-tests: New file.
53232         * modules/unictype/property-grapheme-base-tests: New file.
53233         * modules/unictype/property-grapheme-extend-tests: New file.
53234         * modules/unictype/property-grapheme-link-tests: New file.
53235         * modules/unictype/property-hex-digit-tests: New file.
53236         * modules/unictype/property-hyphen-tests: New file.
53237         * modules/unictype/property-id-continue-tests: New file.
53238         * modules/unictype/property-id-start-tests: New file.
53239         * modules/unictype/property-ideographic-tests: New file.
53240         * modules/unictype/property-ids-binary-operator-tests: New file.
53241         * modules/unictype/property-ids-trinary-operator-tests: New file.
53242         * modules/unictype/property-ignorable-control-tests: New file.
53243         * modules/unictype/property-iso-control-tests: New file.
53244         * modules/unictype/property-join-control-tests: New file.
53245         * modules/unictype/property-left-of-pair-tests: New file.
53246         * modules/unictype/property-line-separator-tests: New file.
53247         * modules/unictype/property-logical-order-exception-tests: New file.
53248         * modules/unictype/property-lowercase-tests: New file.
53249         * modules/unictype/property-math-tests: New file.
53250         * modules/unictype/property-non-break-tests: New file.
53251         * modules/unictype/property-not-a-character-tests: New file.
53252         * modules/unictype/property-numeric-tests: New file.
53253         * modules/unictype/property-other-alphabetic-tests: New file.
53254         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53255         * modules/unictype/property-other-grapheme-extend-tests: New file.
53256         * modules/unictype/property-other-id-continue-tests: New file.
53257         * modules/unictype/property-other-id-start-tests: New file.
53258         * modules/unictype/property-other-lowercase-tests: New file.
53259         * modules/unictype/property-other-math-tests: New file.
53260         * modules/unictype/property-other-uppercase-tests: New file.
53261         * modules/unictype/property-paired-punctuation-tests: New file.
53262         * modules/unictype/property-paragraph-separator-tests: New file.
53263         * modules/unictype/property-pattern-syntax-tests: New file.
53264         * modules/unictype/property-pattern-white-space-tests: New file.
53265         * modules/unictype/property-private-use-tests: New file.
53266         * modules/unictype/property-punctuation-tests: New file.
53267         * modules/unictype/property-quotation-mark-tests: New file.
53268         * modules/unictype/property-radical-tests: New file.
53269         * modules/unictype/property-sentence-terminal-tests: New file.
53270         * modules/unictype/property-soft-dotted-tests: New file.
53271         * modules/unictype/property-space-tests: New file.
53272         * modules/unictype/property-terminal-punctuation-tests: New file.
53273         * modules/unictype/property-test-tests: New file.
53274         * modules/unictype/property-titlecase-tests: New file.
53275         * modules/unictype/property-unassigned-code-value-tests: New file.
53276         * modules/unictype/property-unified-ideograph-tests: New file.
53277         * modules/unictype/property-uppercase-tests: New file.
53278         * modules/unictype/property-variation-selector-tests: New file.
53279         * modules/unictype/property-white-space-tests: New file.
53280         * modules/unictype/property-xid-continue-tests: New file.
53281         * modules/unictype/property-xid-start-tests: New file.
53282         * modules/unictype/property-zero-width-tests: New file.
53283         * modules/unictype/scripts-tests: New file.
53284         * modules/unictype/syntax-c-ident-tests: New file.
53285         * modules/unictype/syntax-c-whitespace-tests: New file.
53286         * modules/unictype/syntax-java-ident-tests: New file.
53287         * modules/unictype/syntax-java-whitespace-tests: New file.
53288         * tests/unictype/test-bidi_byname.c: New file.
53289         * tests/unictype/test-bidi_name.c: New file.
53290         * tests/unictype/test-bidi_of.c: New file.
53291         * tests/unictype/test-bidi_test.c: New file.
53292         * tests/unictype/test-block_list.c: New file.
53293         * tests/unictype/test-block_of.c: New file.
53294         * tests/unictype/test-block_test.c: New file.
53295         * tests/unictype/test-categ_and.c: New file.
53296         * tests/unictype/test-categ_and_not.c: New file.
53297         * tests/unictype/test-categ_byname.c: New file.
53298         * tests/unictype/test-categ_name.c: New file.
53299         * tests/unictype/test-categ_none.c: New file.
53300         * tests/unictype/test-categ_of.c: New file.
53301         * tests/unictype/test-categ_or.c: New file.
53302         * tests/unictype/test-categ_test_withtable.c: New file.
53303         * tests/unictype/test-combining.c: New file.
53304         * tests/unictype/test-decdigit.c: New file.
53305         * tests/unictype/test-digit.c: New file.
53306         * tests/unictype/test-mirror.c: New file.
53307         * tests/unictype/test-numeric.c: New file.
53308         * tests/unictype/test-pr_byname.c: New file.
53309         * tests/unictype/test-pr_test.c: New file.
53310         * tests/unictype/test-predicate-part1.h: New file.
53311         * tests/unictype/test-predicate-part2.h: New file.
53312         * tests/unictype/test-scripts.c: New file.
53313         * tests/unictype/test-sy_c_ident.c: New file.
53314         * tests/unictype/test-sy_java_ident.c: New file.
53315
53316         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53317         for Unicode 5.0.0.
53318         * tests/unictype/test-categ_Cc.c: Likewise.
53319         * tests/unictype/test-categ_Cf.c: Likewise.
53320         * tests/unictype/test-categ_Cn.c: Likewise.
53321         * tests/unictype/test-categ_Co.c: Likewise.
53322         * tests/unictype/test-categ_Cs.c: Likewise.
53323         * tests/unictype/test-categ_L.c: Likewise.
53324         * tests/unictype/test-categ_Ll.c: Likewise.
53325         * tests/unictype/test-categ_Lm.c: Likewise.
53326         * tests/unictype/test-categ_Lo.c: Likewise.
53327         * tests/unictype/test-categ_Lt.c: Likewise.
53328         * tests/unictype/test-categ_Lu.c: Likewise.
53329         * tests/unictype/test-categ_M.c: Likewise.
53330         * tests/unictype/test-categ_Mc.c: Likewise.
53331         * tests/unictype/test-categ_Me.c: Likewise.
53332         * tests/unictype/test-categ_Mn.c: Likewise.
53333         * tests/unictype/test-categ_N.c: Likewise.
53334         * tests/unictype/test-categ_Nd.c: Likewise.
53335         * tests/unictype/test-categ_Nl.c: Likewise.
53336         * tests/unictype/test-categ_No.c: Likewise.
53337         * tests/unictype/test-categ_P.c: Likewise.
53338         * tests/unictype/test-categ_Pc.c: Likewise.
53339         * tests/unictype/test-categ_Pd.c: Likewise.
53340         * tests/unictype/test-categ_Pe.c: Likewise.
53341         * tests/unictype/test-categ_Pf.c: Likewise.
53342         * tests/unictype/test-categ_Pi.c: Likewise.
53343         * tests/unictype/test-categ_Po.c: Likewise.
53344         * tests/unictype/test-categ_Ps.c: Likewise.
53345         * tests/unictype/test-categ_S.c: Likewise.
53346         * tests/unictype/test-categ_Sc.c: Likewise.
53347         * tests/unictype/test-categ_Sk.c: Likewise.
53348         * tests/unictype/test-categ_Sm.c: Likewise.
53349         * tests/unictype/test-categ_So.c: Likewise.
53350         * tests/unictype/test-categ_Z.c: Likewise.
53351         * tests/unictype/test-categ_Zl.c: Likewise.
53352         * tests/unictype/test-categ_Zp.c: Likewise.
53353         * tests/unictype/test-categ_Zs.c: Likewise.
53354         * tests/unictype/test-ctype_alnum.c: Likewise.
53355         * tests/unictype/test-ctype_alpha.c: Likewise.
53356         * tests/unictype/test-ctype_blank.c: Likewise.
53357         * tests/unictype/test-ctype_cntrl.c: Likewise.
53358         * tests/unictype/test-ctype_digit.c: Likewise.
53359         * tests/unictype/test-ctype_graph.c: Likewise.
53360         * tests/unictype/test-ctype_lower.c: Likewise.
53361         * tests/unictype/test-ctype_print.c: Likewise.
53362         * tests/unictype/test-ctype_punct.c: Likewise.
53363         * tests/unictype/test-ctype_space.c: Likewise.
53364         * tests/unictype/test-ctype_upper.c: Likewise.
53365         * tests/unictype/test-ctype_xdigit.c: Likewise.
53366         * tests/unictype/test-decdigit.h: Likewise.
53367         * tests/unictype/test-digit.h: Likewise.
53368         * tests/unictype/test-numeric.h: Likewise.
53369         * tests/unictype/test-pr_alphabetic.c: Likewise.
53370         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53371         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53372         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53373         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53374         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53375         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53376         * tests/unictype/test-pr_bidi_control.c: Likewise.
53377         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53378         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53379         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53380         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53381         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53382         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53383         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53384         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53385         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53386         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53387         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53388         * tests/unictype/test-pr_combining.c: Likewise.
53389         * tests/unictype/test-pr_composite.c: Likewise.
53390         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53391         * tests/unictype/test-pr_dash.c: Likewise.
53392         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53393         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53394         * tests/unictype/test-pr_deprecated.c: Likewise.
53395         * tests/unictype/test-pr_diacritic.c: Likewise.
53396         * tests/unictype/test-pr_extender.c: Likewise.
53397         * tests/unictype/test-pr_format_control.c: Likewise.
53398         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53399         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53400         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53401         * tests/unictype/test-pr_hex_digit.c: Likewise.
53402         * tests/unictype/test-pr_hyphen.c: Likewise.
53403         * tests/unictype/test-pr_id_continue.c: Likewise.
53404         * tests/unictype/test-pr_id_start.c: Likewise.
53405         * tests/unictype/test-pr_ideographic.c: Likewise.
53406         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53407         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53408         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53409         * tests/unictype/test-pr_iso_control.c: Likewise.
53410         * tests/unictype/test-pr_join_control.c: Likewise.
53411         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53412         * tests/unictype/test-pr_line_separator.c: Likewise.
53413         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53414         * tests/unictype/test-pr_lowercase.c: Likewise.
53415         * tests/unictype/test-pr_math.c: Likewise.
53416         * tests/unictype/test-pr_non_break.c: Likewise.
53417         * tests/unictype/test-pr_not_a_character.c: Likewise.
53418         * tests/unictype/test-pr_numeric.c: Likewise.
53419         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53420         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53421         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53422         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53423         * tests/unictype/test-pr_other_id_start.c: Likewise.
53424         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53425         * tests/unictype/test-pr_other_math.c: Likewise.
53426         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53427         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53428         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53429         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53430         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53431         * tests/unictype/test-pr_private_use.c: Likewise.
53432         * tests/unictype/test-pr_punctuation.c: Likewise.
53433         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53434         * tests/unictype/test-pr_radical.c: Likewise.
53435         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53436         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53437         * tests/unictype/test-pr_space.c: Likewise.
53438         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53439         * tests/unictype/test-pr_titlecase.c: Likewise.
53440         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53441         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53442         * tests/unictype/test-pr_uppercase.c: Likewise.
53443         * tests/unictype/test-pr_variation_selector.c: Likewise.
53444         * tests/unictype/test-pr_white_space.c: Likewise.
53445         * tests/unictype/test-pr_xid_continue.c: Likewise.
53446         * tests/unictype/test-pr_xid_start.c: Likewise.
53447         * tests/unictype/test-pr_zero_width.c: Likewise.
53448         * tests/unictype/test-sy_c_whitespace.c: Likewise.
53449         * tests/unictype/test-sy_java_whitespace.c: Likewise.
53450
53451 2007-11-12  Bruno Haible  <bruno@clisp.org>
53452
53453         Unicode character classification functions.
53454         * lib/unictype.h: New file.
53455         * modules/unictype/base: New file.
53456         * modules/unictype/category-L: New file.
53457         * modules/unictype/category-Lu: New file.
53458         * modules/unictype/category-Ll: New file.
53459         * modules/unictype/category-Lt: New file.
53460         * modules/unictype/category-Lm: New file.
53461         * modules/unictype/category-Lo: New file.
53462         * modules/unictype/category-M: New file.
53463         * modules/unictype/category-Mn: New file.
53464         * modules/unictype/category-Mc: New file.
53465         * modules/unictype/category-Me: New file.
53466         * modules/unictype/category-N: New file.
53467         * modules/unictype/category-Nd: New file.
53468         * modules/unictype/category-Nl: New file.
53469         * modules/unictype/category-No: New file.
53470         * modules/unictype/category-P: New file.
53471         * modules/unictype/category-Pc: New file.
53472         * modules/unictype/category-Pd: New file.
53473         * modules/unictype/category-Ps: New file.
53474         * modules/unictype/category-Pe: New file.
53475         * modules/unictype/category-Pi: New file.
53476         * modules/unictype/category-Pf: New file.
53477         * modules/unictype/category-Po: New file.
53478         * modules/unictype/category-S: New file.
53479         * modules/unictype/category-Sm: New file.
53480         * modules/unictype/category-Sc: New file.
53481         * modules/unictype/category-Sk: New file.
53482         * modules/unictype/category-So: New file.
53483         * modules/unictype/category-Z: New file.
53484         * modules/unictype/category-Zs: New file.
53485         * modules/unictype/category-Zl: New file.
53486         * modules/unictype/category-Zp: New file.
53487         * modules/unictype/category-C: New file.
53488         * modules/unictype/category-Cc: New file.
53489         * modules/unictype/category-Cf: New file.
53490         * modules/unictype/category-Cs: New file.
53491         * modules/unictype/category-Co: New file.
53492         * modules/unictype/category-Cn: New file.
53493         * modules/unictype/category-or: New file.
53494         * modules/unictype/category-of: New file.
53495         * modules/unictype/category-test: New file.
53496         * modules/unictype/category-test-withtable: New file.
53497         * modules/unictype/category-byname: New file.
53498         * modules/unictype/category-none: New file.
53499         * modules/unictype/category-and: New file.
53500         * modules/unictype/category-and-not: New file.
53501         * modules/unictype/category-name: New file.
53502         * modules/unictype/combining-class: New file.
53503         * modules/unictype/category-all: New file.
53504         * modules/unictype/bidicategory-all: New file.
53505         * modules/unictype/bidicategory-byname: New file.
53506         * modules/unictype/bidicategory-name: New file.
53507         * modules/unictype/bidicategory-of: New file.
53508         * modules/unictype/bidicategory-test: New file.
53509         * modules/unictype/decimal-digit: New file.
53510         * modules/unictype/digit: New file.
53511         * modules/unictype/numeric: New file.
53512         * modules/unictype/mirror: New file.
53513         * modules/unictype/property-white-space: New file.
53514         * modules/unictype/property-alphabetic: New file.
53515         * modules/unictype/property-other-alphabetic: New file.
53516         * modules/unictype/property-not-a-character: New file.
53517         * modules/unictype/property-default-ignorable-code-point: New file.
53518         * modules/unictype/property-other-default-ignorable-code-point: New
53519         file.
53520         * modules/unictype/property-deprecated: New file.
53521         * modules/unictype/property-logical-order-exception: New file.
53522         * modules/unictype/property-variation-selector: New file.
53523         * modules/unictype/property-private-use: New file.
53524         * modules/unictype/property-unassigned-code-value: New file.
53525         * modules/unictype/property-uppercase: New file.
53526         * modules/unictype/property-other-uppercase: New file.
53527         * modules/unictype/property-lowercase: New file.
53528         * modules/unictype/property-other-lowercase: New file.
53529         * modules/unictype/property-titlecase: New file.
53530         * modules/unictype/property-soft-dotted: New file.
53531         * modules/unictype/property-id-start: New file.
53532         * modules/unictype/property-other-id-start: New file.
53533         * modules/unictype/property-id-continue: New file.
53534         * modules/unictype/property-other-id-continue: New file.
53535         * modules/unictype/property-xid-start: New file.
53536         * modules/unictype/property-xid-continue: New file.
53537         * modules/unictype/property-pattern-white-space: New file.
53538         * modules/unictype/property-pattern-syntax: New file.
53539         * modules/unictype/property-join-control: New file.
53540         * modules/unictype/property-grapheme-base: New file.
53541         * modules/unictype/property-grapheme-extend: New file.
53542         * modules/unictype/property-other-grapheme-extend: New file.
53543         * modules/unictype/property-grapheme-link: New file.
53544         * modules/unictype/property-bidi-control: New file.
53545         * modules/unictype/property-bidi-left-to-right: New file.
53546         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
53547         * modules/unictype/property-bidi-arabic-right-to-left: New file.
53548         * modules/unictype/property-bidi-european-digit: New file.
53549         * modules/unictype/property-bidi-eur-num-separator: New file.
53550         * modules/unictype/property-bidi-eur-num-terminator: New file.
53551         * modules/unictype/property-bidi-arabic-digit: New file.
53552         * modules/unictype/property-bidi-common-separator: New file.
53553         * modules/unictype/property-bidi-block-separator: New file.
53554         * modules/unictype/property-bidi-segment-separator: New file.
53555         * modules/unictype/property-bidi-whitespace: New file.
53556         * modules/unictype/property-bidi-non-spacing-mark: New file.
53557         * modules/unictype/property-bidi-boundary-neutral: New file.
53558         * modules/unictype/property-bidi-pdf: New file.
53559         * modules/unictype/property-bidi-embedding-or-override: New file.
53560         * modules/unictype/property-bidi-other-neutral: New file.
53561         * modules/unictype/property-hex-digit: New file.
53562         * modules/unictype/property-ascii-hex-digit: New file.
53563         * modules/unictype/property-ideographic: New file.
53564         * modules/unictype/property-unified-ideograph: New file.
53565         * modules/unictype/property-radical: New file.
53566         * modules/unictype/property-ids-binary-operator: New file.
53567         * modules/unictype/property-ids-trinary-operator: New file.
53568         * modules/unictype/property-zero-width: New file.
53569         * modules/unictype/property-space: New file.
53570         * modules/unictype/property-non-break: New file.
53571         * modules/unictype/property-iso-control: New file.
53572         * modules/unictype/property-format-control: New file.
53573         * modules/unictype/property-dash: New file.
53574         * modules/unictype/property-hyphen: New file.
53575         * modules/unictype/property-punctuation: New file.
53576         * modules/unictype/property-line-separator: New file.
53577         * modules/unictype/property-paragraph-separator: New file.
53578         * modules/unictype/property-quotation-mark: New file.
53579         * modules/unictype/property-sentence-terminal: New file.
53580         * modules/unictype/property-terminal-punctuation: New file.
53581         * modules/unictype/property-currency-symbol: New file.
53582         * modules/unictype/property-math: New file.
53583         * modules/unictype/property-other-math: New file.
53584         * modules/unictype/property-paired-punctuation: New file.
53585         * modules/unictype/property-left-of-pair: New file.
53586         * modules/unictype/property-combining: New file.
53587         * modules/unictype/property-composite: New file.
53588         * modules/unictype/property-decimal-digit: New file.
53589         * modules/unictype/property-numeric: New file.
53590         * modules/unictype/property-diacritic: New file.
53591         * modules/unictype/property-extender: New file.
53592         * modules/unictype/property-ignorable-control: New file.
53593         * modules/unictype/property-test: New file.
53594         * modules/unictype/property-byname: New file.
53595         * modules/unictype/property-all: New file.
53596         * modules/unictype/scripts: New file.
53597         * modules/unictype/scripts-all: New file.
53598         * modules/unictype/block-of: New file.
53599         * modules/unictype/block-test: New file.
53600         * modules/unictype/block-list: New file.
53601         * modules/unictype/block-all: New file.
53602         * modules/unictype/syntax-c-whitespace: New file.
53603         * modules/unictype/syntax-java-whitespace: New file.
53604         * modules/unictype/syntax-c-ident: New file.
53605         * modules/unictype/syntax-java-ident: New file.
53606         * modules/unictype/ctype-alnum: New file.
53607         * modules/unictype/ctype-alpha: New file.
53608         * modules/unictype/ctype-cntrl: New file.
53609         * modules/unictype/ctype-digit: New file.
53610         * modules/unictype/ctype-graph: New file.
53611         * modules/unictype/ctype-lower: New file.
53612         * modules/unictype/ctype-print: New file.
53613         * modules/unictype/ctype-punct: New file.
53614         * modules/unictype/ctype-space: New file.
53615         * modules/unictype/ctype-upper: New file.
53616         * modules/unictype/ctype-xdigit: New file.
53617         * modules/unictype/ctype-blank: New file.
53618         * lib/unictype/bidi_byname.c: New file.
53619         * lib/unictype/bidi_name.c: New file.
53620         * lib/unictype/bidi_of.c: New file.
53621         * lib/unictype/bidi_test.c: New file.
53622         * lib/unictype/bitmap.h: New file.
53623         * lib/unictype/block_test.c: New file.
53624         * lib/unictype/blocks.c: New file.
53625         * lib/unictype/categ_C.c: New file.
53626         * lib/unictype/categ_Cc.c: New file.
53627         * lib/unictype/categ_Cf.c: New file.
53628         * lib/unictype/categ_Cn.c: New file.
53629         * lib/unictype/categ_Co.c: New file.
53630         * lib/unictype/categ_Cs.c: New file.
53631         * lib/unictype/categ_L.c: New file.
53632         * lib/unictype/categ_Ll.c: New file.
53633         * lib/unictype/categ_Lm.c: New file.
53634         * lib/unictype/categ_Lo.c: New file.
53635         * lib/unictype/categ_Lt.c: New file.
53636         * lib/unictype/categ_Lu.c: New file.
53637         * lib/unictype/categ_M.c: New file.
53638         * lib/unictype/categ_Mc.c: New file.
53639         * lib/unictype/categ_Me.c: New file.
53640         * lib/unictype/categ_Mn.c: New file.
53641         * lib/unictype/categ_N.c: New file.
53642         * lib/unictype/categ_Nd.c: New file.
53643         * lib/unictype/categ_Nl.c: New file.
53644         * lib/unictype/categ_No.c: New file.
53645         * lib/unictype/categ_P.c: New file.
53646         * lib/unictype/categ_Pc.c: New file.
53647         * lib/unictype/categ_Pd.c: New file.
53648         * lib/unictype/categ_Pe.c: New file.
53649         * lib/unictype/categ_Pf.c: New file.
53650         * lib/unictype/categ_Pi.c: New file.
53651         * lib/unictype/categ_Po.c: New file.
53652         * lib/unictype/categ_Ps.c: New file.
53653         * lib/unictype/categ_S.c: New file.
53654         * lib/unictype/categ_Sc.c: New file.
53655         * lib/unictype/categ_Sk.c: New file.
53656         * lib/unictype/categ_Sm.c: New file.
53657         * lib/unictype/categ_So.c: New file.
53658         * lib/unictype/categ_Z.c: New file.
53659         * lib/unictype/categ_Zl.c: New file.
53660         * lib/unictype/categ_Zp.c: New file.
53661         * lib/unictype/categ_Zs.c: New file.
53662         * lib/unictype/categ_and.c: New file.
53663         * lib/unictype/categ_and_not.c: New file.
53664         * lib/unictype/categ_byname.c: New file.
53665         * lib/unictype/categ_name.c: New file.
53666         * lib/unictype/categ_none.c: New file.
53667         * lib/unictype/categ_of.c: New file.
53668         * lib/unictype/categ_or.c: New file.
53669         * lib/unictype/categ_test.c: New file.
53670         * lib/unictype/combining.c: New file.
53671         * lib/unictype/ctype_alnum.c: New file.
53672         * lib/unictype/ctype_alpha.c: New file.
53673         * lib/unictype/ctype_blank.c: New file.
53674         * lib/unictype/ctype_cntrl.c: New file.
53675         * lib/unictype/ctype_digit.c: New file.
53676         * lib/unictype/ctype_graph.c: New file.
53677         * lib/unictype/ctype_lower.c: New file.
53678         * lib/unictype/ctype_print.c: New file.
53679         * lib/unictype/ctype_punct.c: New file.
53680         * lib/unictype/ctype_space.c: New file.
53681         * lib/unictype/ctype_upper.c: New file.
53682         * lib/unictype/ctype_xdigit.c: New file.
53683         * lib/unictype/decdigit.c: New file.
53684         * lib/unictype/digit.c: New file.
53685         * lib/unictype/identsyntaxmap.h: New file.
53686         * lib/unictype/mirror.c: New file.
53687         * lib/unictype/numeric.c: New file.
53688         * lib/unictype/pr_alphabetic.c: New file.
53689         * lib/unictype/pr_ascii_hex_digit.c: New file.
53690         * lib/unictype/pr_bidi_arabic_digit.c: New file.
53691         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
53692         * lib/unictype/pr_bidi_block_separator.c: New file.
53693         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
53694         * lib/unictype/pr_bidi_common_separator.c: New file.
53695         * lib/unictype/pr_bidi_control.c: New file.
53696         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
53697         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
53698         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
53699         * lib/unictype/pr_bidi_european_digit.c: New file.
53700         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
53701         * lib/unictype/pr_bidi_left_to_right.c: New file.
53702         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
53703         * lib/unictype/pr_bidi_other_neutral.c: New file.
53704         * lib/unictype/pr_bidi_pdf.c: New file.
53705         * lib/unictype/pr_bidi_segment_separator.c: New file.
53706         * lib/unictype/pr_bidi_whitespace.c: New file.
53707         * lib/unictype/pr_byname.c: New file.
53708         * lib/unictype/pr_byname.gperf: New file.
53709         * lib/unictype/pr_combining.c: New file.
53710         * lib/unictype/pr_composite.c: New file.
53711         * lib/unictype/pr_currency_symbol.c: New file.
53712         * lib/unictype/pr_dash.c: New file.
53713         * lib/unictype/pr_decimal_digit.c: New file.
53714         * lib/unictype/pr_default_ignorable_code_point.c: New file.
53715         * lib/unictype/pr_deprecated.c: New file.
53716         * lib/unictype/pr_diacritic.c: New file.
53717         * lib/unictype/pr_extender.c: New file.
53718         * lib/unictype/pr_format_control.c: New file.
53719         * lib/unictype/pr_grapheme_base.c: New file.
53720         * lib/unictype/pr_grapheme_extend.c: New file.
53721         * lib/unictype/pr_grapheme_link.c: New file.
53722         * lib/unictype/pr_hex_digit.c: New file.
53723         * lib/unictype/pr_hyphen.c: New file.
53724         * lib/unictype/pr_id_continue.c: New file.
53725         * lib/unictype/pr_id_start.c: New file.
53726         * lib/unictype/pr_ideographic.c: New file.
53727         * lib/unictype/pr_ids_binary_operator.c: New file.
53728         * lib/unictype/pr_ids_trinary_operator.c: New file.
53729         * lib/unictype/pr_ignorable_control.c: New file.
53730         * lib/unictype/pr_iso_control.c: New file.
53731         * lib/unictype/pr_join_control.c: New file.
53732         * lib/unictype/pr_left_of_pair.c: New file.
53733         * lib/unictype/pr_line_separator.c: New file.
53734         * lib/unictype/pr_logical_order_exception.c: New file.
53735         * lib/unictype/pr_lowercase.c: New file.
53736         * lib/unictype/pr_math.c: New file.
53737         * lib/unictype/pr_non_break.c: New file.
53738         * lib/unictype/pr_not_a_character.c: New file.
53739         * lib/unictype/pr_numeric.c: New file.
53740         * lib/unictype/pr_other_alphabetic.c: New file.
53741         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
53742         * lib/unictype/pr_other_grapheme_extend.c: New file.
53743         * lib/unictype/pr_other_id_continue.c: New file.
53744         * lib/unictype/pr_other_id_start.c: New file.
53745         * lib/unictype/pr_other_lowercase.c: New file.
53746         * lib/unictype/pr_other_math.c: New file.
53747         * lib/unictype/pr_other_uppercase.c: New file.
53748         * lib/unictype/pr_paired_punctuation.c: New file.
53749         * lib/unictype/pr_paragraph_separator.c: New file.
53750         * lib/unictype/pr_pattern_syntax.c: New file.
53751         * lib/unictype/pr_pattern_white_space.c: New file.
53752         * lib/unictype/pr_private_use.c: New file.
53753         * lib/unictype/pr_punctuation.c: New file.
53754         * lib/unictype/pr_quotation_mark.c: New file.
53755         * lib/unictype/pr_radical.c: New file.
53756         * lib/unictype/pr_sentence_terminal.c: New file.
53757         * lib/unictype/pr_soft_dotted.c: New file.
53758         * lib/unictype/pr_space.c: New file.
53759         * lib/unictype/pr_terminal_punctuation.c: New file.
53760         * lib/unictype/pr_test.c: New file.
53761         * lib/unictype/pr_titlecase.c: New file.
53762         * lib/unictype/pr_unassigned_code_value.c: New file.
53763         * lib/unictype/pr_unified_ideograph.c: New file.
53764         * lib/unictype/pr_uppercase.c: New file.
53765         * lib/unictype/pr_variation_selector.c: New file.
53766         * lib/unictype/pr_white_space.c: New file.
53767         * lib/unictype/pr_xid_continue.c: New file.
53768         * lib/unictype/pr_xid_start.c: New file.
53769         * lib/unictype/pr_zero_width.c: New file.
53770         * lib/unictype/scripts.c: New file.
53771         * lib/unictype/sy_c_ident.c: New file.
53772         * lib/unictype/sy_c_whitespace.c: New file.
53773         * lib/unictype/sy_java_ident.c: New file.
53774         * lib/unictype/sy_java_whitespace.c: New file.
53775
53776         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
53777         Unicode 5.0.0.
53778         * lib/unictype/blocks.h: Likewise.
53779         * lib/unictype/categ_C.h: Likewise.
53780         * lib/unictype/categ_Cc.h: Likewise.
53781         * lib/unictype/categ_Cf.h: Likewise.
53782         * lib/unictype/categ_Cn.h: Likewise.
53783         * lib/unictype/categ_Co.h: Likewise.
53784         * lib/unictype/categ_Cs.h: Likewise.
53785         * lib/unictype/categ_L.h: Likewise.
53786         * lib/unictype/categ_Ll.h: Likewise.
53787         * lib/unictype/categ_Lm.h: Likewise.
53788         * lib/unictype/categ_Lo.h: Likewise.
53789         * lib/unictype/categ_Lt.h: Likewise.
53790         * lib/unictype/categ_Lu.h: Likewise.
53791         * lib/unictype/categ_M.h: Likewise.
53792         * lib/unictype/categ_Mc.h: Likewise.
53793         * lib/unictype/categ_Me.h: Likewise.
53794         * lib/unictype/categ_Mn.h: Likewise.
53795         * lib/unictype/categ_N.h: Likewise.
53796         * lib/unictype/categ_Nd.h: Likewise.
53797         * lib/unictype/categ_Nl.h: Likewise.
53798         * lib/unictype/categ_No.h: Likewise.
53799         * lib/unictype/categ_P.h: Likewise.
53800         * lib/unictype/categ_Pc.h: Likewise.
53801         * lib/unictype/categ_Pd.h: Likewise.
53802         * lib/unictype/categ_Pe.h: Likewise.
53803         * lib/unictype/categ_Pf.h: Likewise.
53804         * lib/unictype/categ_Pi.h: Likewise.
53805         * lib/unictype/categ_Po.h: Likewise.
53806         * lib/unictype/categ_Ps.h: Likewise.
53807         * lib/unictype/categ_S.h: Likewise.
53808         * lib/unictype/categ_Sc.h: Likewise.
53809         * lib/unictype/categ_Sk.h: Likewise.
53810         * lib/unictype/categ_Sm.h: Likewise.
53811         * lib/unictype/categ_So.h: Likewise.
53812         * lib/unictype/categ_Z.h: Likewise.
53813         * lib/unictype/categ_Zl.h: Likewise.
53814         * lib/unictype/categ_Zp.h: Likewise.
53815         * lib/unictype/categ_Zs.h: Likewise.
53816         * lib/unictype/categ_of.h: Likewise.
53817         * lib/unictype/combining.h: Likewise.
53818         * lib/unictype/ctype_alnum.h: Likewise.
53819         * lib/unictype/ctype_alpha.h: Likewise.
53820         * lib/unictype/ctype_blank.h: Likewise.
53821         * lib/unictype/ctype_cntrl.h: Likewise.
53822         * lib/unictype/ctype_digit.h: Likewise.
53823         * lib/unictype/ctype_graph.h: Likewise.
53824         * lib/unictype/ctype_lower.h: Likewise.
53825         * lib/unictype/ctype_print.h: Likewise.
53826         * lib/unictype/ctype_punct.h: Likewise.
53827         * lib/unictype/ctype_space.h: Likewise.
53828         * lib/unictype/ctype_upper.h: Likewise.
53829         * lib/unictype/ctype_xdigit.h: Likewise.
53830         * lib/unictype/decdigit.h: Likewise.
53831         * lib/unictype/digit.h: Likewise.
53832         * lib/unictype/mirror.h: Likewise.
53833         * lib/unictype/numeric.h: Likewise.
53834         * lib/unictype/pr_alphabetic.h: Likewise.
53835         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
53836         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
53837         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
53838         * lib/unictype/pr_bidi_block_separator.h: Likewise.
53839         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
53840         * lib/unictype/pr_bidi_common_separator.h: Likewise.
53841         * lib/unictype/pr_bidi_control.h: Likewise.
53842         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
53843         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
53844         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
53845         * lib/unictype/pr_bidi_european_digit.h: Likewise.
53846         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
53847         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
53848         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
53849         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
53850         * lib/unictype/pr_bidi_pdf.h: Likewise.
53851         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
53852         * lib/unictype/pr_bidi_whitespace.h: Likewise.
53853         * lib/unictype/pr_combining.h: Likewise.
53854         * lib/unictype/pr_composite.h: Likewise.
53855         * lib/unictype/pr_currency_symbol.h: Likewise.
53856         * lib/unictype/pr_dash.h: Likewise.
53857         * lib/unictype/pr_decimal_digit.h: Likewise.
53858         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
53859         * lib/unictype/pr_deprecated.h: Likewise.
53860         * lib/unictype/pr_diacritic.h: Likewise.
53861         * lib/unictype/pr_extender.h: Likewise.
53862         * lib/unictype/pr_format_control.h: Likewise.
53863         * lib/unictype/pr_grapheme_base.h: Likewise.
53864         * lib/unictype/pr_grapheme_extend.h: Likewise.
53865         * lib/unictype/pr_grapheme_link.h: Likewise.
53866         * lib/unictype/pr_hex_digit.h: Likewise.
53867         * lib/unictype/pr_hyphen.h: Likewise.
53868         * lib/unictype/pr_id_continue.h: Likewise.
53869         * lib/unictype/pr_id_start.h: Likewise.
53870         * lib/unictype/pr_ideographic.h: Likewise.
53871         * lib/unictype/pr_ids_binary_operator.h: Likewise.
53872         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
53873         * lib/unictype/pr_ignorable_control.h: Likewise.
53874         * lib/unictype/pr_iso_control.h: Likewise.
53875         * lib/unictype/pr_join_control.h: Likewise.
53876         * lib/unictype/pr_left_of_pair.h: Likewise.
53877         * lib/unictype/pr_line_separator.h: Likewise.
53878         * lib/unictype/pr_logical_order_exception.h: Likewise.
53879         * lib/unictype/pr_lowercase.h: Likewise.
53880         * lib/unictype/pr_math.h: Likewise.
53881         * lib/unictype/pr_non_break.h: Likewise.
53882         * lib/unictype/pr_not_a_character.h: Likewise.
53883         * lib/unictype/pr_numeric.h: Likewise.
53884         * lib/unictype/pr_other_alphabetic.h: Likewise.
53885         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
53886         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
53887         * lib/unictype/pr_other_id_continue.h: Likewise.
53888         * lib/unictype/pr_other_id_start.h: Likewise.
53889         * lib/unictype/pr_other_lowercase.h: Likewise.
53890         * lib/unictype/pr_other_math.h: Likewise.
53891         * lib/unictype/pr_other_uppercase.h: Likewise.
53892         * lib/unictype/pr_paired_punctuation.h: Likewise.
53893         * lib/unictype/pr_paragraph_separator.h: Likewise.
53894         * lib/unictype/pr_pattern_syntax.h: Likewise.
53895         * lib/unictype/pr_pattern_white_space.h: Likewise.
53896         * lib/unictype/pr_private_use.h: Likewise.
53897         * lib/unictype/pr_punctuation.h: Likewise.
53898         * lib/unictype/pr_quotation_mark.h: Likewise.
53899         * lib/unictype/pr_radical.h: Likewise.
53900         * lib/unictype/pr_sentence_terminal.h: Likewise.
53901         * lib/unictype/pr_soft_dotted.h: Likewise.
53902         * lib/unictype/pr_space.h: Likewise.
53903         * lib/unictype/pr_terminal_punctuation.h: Likewise.
53904         * lib/unictype/pr_titlecase.h: Likewise.
53905         * lib/unictype/pr_unassigned_code_value.h: Likewise.
53906         * lib/unictype/pr_unified_ideograph.h: Likewise.
53907         * lib/unictype/pr_uppercase.h: Likewise.
53908         * lib/unictype/pr_variation_selector.h: Likewise.
53909         * lib/unictype/pr_white_space.h: Likewise.
53910         * lib/unictype/pr_xid_continue.h: Likewise.
53911         * lib/unictype/pr_xid_start.h: Likewise.
53912         * lib/unictype/pr_zero_width.h: Likewise.
53913         * lib/unictype/scripts.h: Likewise.
53914         * lib/unictype/scripts_byname.gperf: Likewise.
53915         * lib/unictype/sy_c_ident.h: Likewise.
53916         * lib/unictype/sy_c_whitespace.h: Likewise.
53917         * lib/unictype/sy_java_ident.h: Likewise.
53918         * lib/unictype/sy_java_whitespace.h: Likewise.
53919
53920         * lib/unictype/Makefile: New file.
53921         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
53922         glibc.
53923         * lib/unictype/3level.h: New file, copied from glibc.
53924         * lib/unictype/3levelbit.h: New file.
53925
53926 2007-11-11  Bruno Haible  <bruno@clisp.org>
53927
53928         * modules/gperf: New file.
53929         * modules/iconv_open (Depends-on): Add it.
53930         (Makefile.am): Remove the GPERF definition.
53931
53932 2007-11-11  Bruno Haible  <bruno@clisp.org>
53933
53934         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
53935         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
53936
53937 2007-11-11  Bruno Haible  <bruno@clisp.org>
53938
53939         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
53940         (usage): Remove function.
53941
53942 2007-11-11  Bruno Haible  <bruno@clisp.org>
53943
53944         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
53945         gl_FUNC_CEILF_LIBS.
53946         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
53947         gl_FUNC_CEIL_LIBS.
53948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
53949         gl_FUNC_CEILL_LIBS.
53950         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
53951         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
53952         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
53953
53954 2007-11-11  Bruno Haible  <bruno@clisp.org>
53955
53956         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
53957         roundf were declared but do not exist on functions.
53958         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
53959         roundl were declared but do not exist on functions.
53960         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
53961         HAVE_FLOORL_AND_CEILL, respectively.
53962         Needed for Sun C on Solaris 10.
53963
53964 2007-11-11  Bruno Haible  <bruno@clisp.org>
53965
53966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
53967         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
53968         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
53969         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
53970         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
53971         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
53972         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
53973         HAVE_DECL_ROUNDF.
53974         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
53975         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
53976         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
53977         of HAVE_DECL_ROUND*.
53978         * modules/math (Makefile.am): Update.
53979
53980 2007-11-10  Bruno Haible  <bruno@clisp.org>
53981
53982         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
53983         ptrdiff_t as m4/intl.m4.
53984
53985 2007-11-10  Jim Meyering  <meyering@redhat.com>
53986
53987         Avoid link failure for the argmatch test.
53988         * tests/test-argmatch.c (usage): Define function to avoid a link
53989         failure: argmatch_die requires a usage function.
53990
53991 2007-11-09  Bruno Haible  <bruno@clisp.org>
53992
53993         * doc/functions/snprintf.texi: Mention BeOS deficiency.
53994         * doc/functions/vsnprintf.texi: Likewise.
53995         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
53996         with a size argument < 2.
53997
53998 2007-11-09  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54001         buffer. Fixes an inefficiency introduced on 2007-11-03.
54002
54003 2007-11-09  Bruno Haible  <bruno@clisp.org>
54004
54005         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54006         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54007
54008 2007-11-08  Jim Meyering  <meyering@redhat.com>
54009
54010         Change cache variable name prefix "jm_" to "gl_" everywhere.
54011         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54012         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54013         * m4/uptime.m4: s/gl_/jm_/
54014
54015 2007-11-07  Bruno Haible  <bruno@clisp.org>
54016
54017         Update to GNU gettext 0.17.
54018         * m4/intl.m4: Update to GNU gettext 0.17.
54019         * m4/po.m4: Likewise.
54020         * modules/gettext (Files): Remove m4/ulonglong.m4.
54021         (configure.ac): Require gettext infrastructure from version 0.17.
54022
54023 2007-11-06  Bruno Haible  <bruno@clisp.org>
54024
54025         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54026         symbolic values are not defined in a public header.
54027         * lib/freadable.c (freadable) [QNX]: Likewise.
54028         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54029         * lib/freading.c (freading) [QNX]: Likewise.
54030         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54031         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54032         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54033         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54034         Reported by Alain Magloire.
54035
54036         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54037
54038 2007-11-05  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54041         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54042         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54043         Reported by Eric Blake.
54044
54045 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54046             Bruno Haible  <bruno@clisp.org>
54047
54048         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54049         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54050         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54051         (malloc): Undefine also before including <stdlib.h>.
54052         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54053         Needed on OSF/1 4.0.
54054
54055 2007-11-05  Jim Meyering  <meyering@redhat.com>
54056
54057         git-version-gen: sync from coreutils.
54058         * build-aux/git-version-gen: Add comments.
54059         Change the first '-' to '.' in the snapshot version string,
54060         e.g., 6.9-377-08144 -> 6.9.377-08144
54061         Remove first parameter.
54062         Don't declare a version "-dirty" merely because a time
54063         stamp has changed.
54064
54065 2007-11-04  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/lock.h: Protect all macro definitions containing an 'if'
54068         statement through a "do { ... } while (0)".
54069         * lib/tls.h: Likewise.
54070
54071 2007-11-04  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54074
54075 2007-11-04  Bruno Haible  <bruno@clisp.org>
54076
54077         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54078         * modules/fprintf-posix (Depends-on): Add nocrash.
54079         * modules/snprintf-posix (Depends-on): Likewise.
54080         * modules/sprintf-posix (Depends-on): Likewise.
54081         * modules/vasnprintf-posix (Depends-on): Likewise.
54082         * modules/vasprintf-posix (Depends-on): Likewise.
54083         * modules/vfprintf-posix (Depends-on): Likewise.
54084         * modules/vsnprintf-posix (Depends-on): Likewise.
54085         * modules/vsprintf-posix (Depends-on): Likewise.
54086         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54087         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54088         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54089         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54090         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54091         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54092         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54093
54094 2007-11-04  Bruno Haible  <bruno@clisp.org>
54095
54096         * modules/nocrash: New file.
54097         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54098         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54099
54100 2007-11-04  Bruno Haible  <bruno@clisp.org>
54101
54102         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54103         precision handling.
54104         * tests/test-vasprintf-posix.c (test_function): Likewise.
54105         * tests/test-snprintf-posix.h (test_function): Likewise.
54106         * tests/test-sprintf-posix.h (test_function): Likewise.
54107
54108         Fix *printf behaviour for large precisions on mingw and BeOS.
54109         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54110         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54112         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54113         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54114         gl_PRINTF_PRECISION and test its result. Invoke
54115         gl_PREREQ_VASNPRINTF_PRECISION.
54116         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54119         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54120         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54121         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54122         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54123         * doc/functions/fprintf.texi: Update.
54124         * doc/functions/printf.texi: Update.
54125         * doc/functions/snprintf.texi: Update.
54126         * doc/functions/sprintf.texi: Update.
54127         * doc/functions/vfprintf.texi: Update.
54128         * doc/functions/vprintf.texi: Update.
54129         * doc/functions/vsnprintf.texi: Update.
54130         * doc/functions/vsprintf.texi: Update.
54131
54132 2007-11-04  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54135
54136 2007-11-04  Bruno Haible  <bruno@clisp.org>
54137
54138         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54139         Reported by Sylvain Beucler <beuc@gnu.org>.
54140
54141 2007-11-03  Bruno Haible  <bruno@clisp.org>
54142
54143         * tests/test-fprintf-posix2.sh: New file.
54144         * tests/test-fprintf-posix2.c: New file.
54145         * modules/fprintf-posix-tests (Files): Add them.
54146         (TESTS): Add test-fprintf-posix2.sh.
54147         (configure.ac): Check for getrlimit and setrlimit.
54148         (check_PROGRAMS): Add test-fprintf-posix2.
54149
54150         * tests/test-printf-posix2.sh: New file.
54151         * tests/test-printf-posix2.c: New file.
54152         * modules/printf-posix-tests (Files): Add them.
54153         (TESTS): Add test-printf-posix2.sh.
54154         (configure.ac): Check for getrlimit and setrlimit.
54155         (check_PROGRAMS): Add test-printf-posix2.
54156
54157         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54158         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54159         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54160         (decode_double): New function, copied from decode_long_double.
54161         (scale10_round_decimal_decoded): New function, extracted from
54162         scale10_round_decimal_long_double.
54163         (scale10_round_decimal_long_double): Use it.
54164         (scale10_round_decimal_double): New function.
54165         (floorlog10): New function.
54166         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54167         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54168         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54169         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54170         gl_PRINTF_ENOMEM and test its result. Invoke
54171         gl_PREREQ_VASNPRINTF_ENOMEM.
54172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54173         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54179         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54180         * modules/snprintf-posix (Depends-on): Likewise.
54181         * modules/sprintf-posix (Depends-on): Likewise.
54182         * modules/vasnprintf-posix (Depends-on): Likewise.
54183         * modules/vasprintf-posix (Depends-on): Likewise.
54184         * modules/vfprintf-posix (Depends-on): Likewise.
54185         * modules/vsnprintf-posix (Depends-on): Likewise.
54186         * modules/vsprintf-posix (Depends-on): Likewise.
54187         * doc/functions/fprintf.texi: Update.
54188         * doc/functions/printf.texi: Update.
54189         * doc/functions/snprintf.texi: Update.
54190         * doc/functions/sprintf.texi: Update.
54191         * doc/functions/vfprintf.texi: Update.
54192         * doc/functions/vprintf.texi: Update.
54193         * doc/functions/vsnprintf.texi: Update.
54194         * doc/functions/vsprintf.texi: Update.
54195
54196 2007-11-03  Bruno Haible  <bruno@clisp.org>
54197
54198         * modules/frexp-nolibm-tests: New file.
54199
54200         * modules/frexp-nolibm: New file.
54201         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54202
54203 2007-11-03  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54206         value is C99 compliant.
54207         Needed for OSF/1 5.1.
54208
54209 2007-11-03  Bruno Haible  <bruno@clisp.org>
54210
54211         Fix out-of-memory handling of vasnprintf.
54212         * lib/printf-parse.c: Include <errno.h>.
54213         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54214         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54215         is already set.
54216
54217 2007-11-02  Eric Blake  <ebb9@byu.net>
54218
54219         Fix tests on cygwin.
54220         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54221
54222 2007-11-01  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54225         warning.
54226         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54227         needed for POSIX compatibility.
54228
54229 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54230
54231         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54232         for compatibility with GNU.
54233
54234 2007-11-01  Bruno Haible  <bruno@clisp.org>
54235
54236         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54237         (putenv): Renamed from rpl_putenv. Change argument type from
54238         'const char *' to 'char *'.
54239         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54240         of defining putenv in config.h, just set REPLACE_PUTENV.
54241         * modules/putenv (Depends-on): Add stdlib.
54242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54243         (Include): Use <stdlib.h>.
54244         * lib/stdlib.in.h (putenv): New declaration.
54245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54246         REPLACE_PUTENV.
54247         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54248         REPLACE_PUTENV.
54249         Needed for MacOS X 10.5.0.
54250         Reported by Peter O'Gorman <peter@pogma.com>.
54251
54252 2007-11-01  Jim Meyering  <meyering@redhat.com>
54253
54254         Treat an empty date string exactly like "0".
54255         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54256         if the remaining date string (to be parsed) is empty, use "0".
54257         Reported by Mischa Molhoek and discussed in this thread:
54258         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54259
54260 2007-10-31  Bruno Haible  <bruno@clisp.org>
54261
54262         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54263         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54264         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54265         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54266         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54267         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54268
54269 2007-10-31  Bruno Haible  <bruno@clisp.org>
54270
54271         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54272         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54273         (AC_TYPE_LONG_LONG_INT): Use it.
54274         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54275         it as well.
54276         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54277         to m4/longlong.m4.
54278         * modules/stdint (Files): Remove m4/ulonglong.m4.
54279         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54280         m4/ulonglong.m4.
54281         * modules/strtoumax (Files): Likewise.
54282
54283 2007-10-30  Bruno Haible  <bruno@clisp.org>
54284
54285         * modules/xvasprintf-posix: New file.
54286         Suggested by Eric Blake.
54287
54288 2007-10-30  Bruno Haible  <bruno@clisp.org>
54289
54290         * modules/xprintf-posix-tests: New file.
54291         * tests/test-xprintf-posix.sh: New file.
54292         * tests/test-xprintf-posix.c: New file.
54293         * tests/test-xfprintf-posix.c: New file.
54294
54295         * modules/xprintf-posix: New file.
54296
54297 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54298
54299         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54300         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54301         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54302
54303 2007-10-29  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54306         contain the special marker '_cv_'.
54307         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54308         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54309         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54310         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54311         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54312         Reported by Ralf Wildenhues.
54313
54314 2007-10-29  Bruno Haible  <bruno@clisp.org>
54315
54316         * gnulib-tool (func_import): When --lgpl is not specified, set
54317         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54318         GPLv3.
54319         Reported by Simon Josefsson.
54320
54321 2007-10-28  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54324         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54325         HAVE_DECL_ISFINITE.
54326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54327         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54328         HAVE_DECL_ISFINITE.
54329
54330 2007-10-28  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54333         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54334
54335 2007-10-28  Bruno Haible  <bruno@clisp.org>
54336
54337         Fix link errors with Sun C 5.0 on Solaris 10.
54338         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54339         function is declared but not present in the compiler's libm.
54340         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54341         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54342         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54343         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54344         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54345         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54346         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54348         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54349         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54350         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54351         HAVE_DECL_FLOORL.
54352
54353 2007-10-28  Bruno Haible  <bruno@clisp.org>
54354
54355         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54356         gl_FUNC_FLOORL. Cache the result.
54357         (gl_FUNC_FLOORL): Use it.
54358         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54359         gl_FUNC_CEILL. Cache the result.
54360         (gl_FUNC_CEILL): Use it.
54361
54362         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54363         gl_FUNC_FLOOR. Cache the result.
54364         (gl_FUNC_FLOOR): Use it.
54365         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54366         gl_FUNC_CEIL. Cache the result.
54367         (gl_FUNC_CEIL): Use it.
54368
54369         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54370         gl_FUNC_FLOORF. Cache the result.
54371         (gl_FUNC_FLOORF): Use it.
54372         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54373         gl_FUNC_CEILF. Cache the result.
54374         (gl_FUNC_CEILF): Use it.
54375
54376 2007-10-28  Bruno Haible  <bruno@clisp.org>
54377
54378         * gnulib-tool: Allow specifying the LGPL version number through
54379         --lgpl=2 or --lgpl=3.
54380         (func_usage): Document --lgpl with argument.
54381         Handle --lgpl=... arguments.
54382         (func_import): Recognize also gl_LGPL calls with an argument. When
54383         --lgpl=2 is used and the module's license is just LGPL, report an
54384         error. Set sed_transform_lib_file according to the lgpl variable. In
54385         the generated files, use --lgpl or gl_LGPL invocations with argument,
54386         if necessary.
54387         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54388         an LGPv2+ license.
54389         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54390         gl_LGPL macro.
54391
54392 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54393             Bruno Haible  <bruno@clisp.org>
54394
54395         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54396         (u16_uctomb_aux): Likewise.
54397         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54398         !HAVE_INLINE.
54399         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54400
54401 2007-10-28  Bruno Haible  <bruno@clisp.org>
54402
54403         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54404         Invoke AM_GETTEXT_OPTION if it exists.
54405         * modules/vasprintf: Likewise.
54406         * modules/verror: Likewise.
54407         * modules/xprintf: Likewise.
54408         * modules/xvasprintf: Likewise.
54409
54410 2007-10-27  Ben Pfaff  <blp@gnu.org>
54411
54412         * lib/math.in.h: Define isfinite macro and prototypes for
54413         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54414         implementations.
54415         * m4/math_h.m4: New substitutions for isfinite module.
54416         * lib/isfinite.c: New file.
54417         * m4/isfinite.m4: New file.
54418         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54419         * modules/isfinite: New file.
54420         * modules/isfinite-tests: New file.
54421         * tests/tests-isfinite.c: New file.
54422         * doc/functions/isfinite.texi: Mention isfinite module.
54423         * MODULES.html.sh: Mention new module.
54424
54425 2007-10-27  Ben Pfaff  <blp@gnu.org>
54426
54427         Ralf Wildenhues reported that Tru64 4.0D declares the round
54428         functions but does not have definitions.
54429         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54430         cannot be found in any library, set the output variable to
54431         "missing" instead of "".
54432         * m4/round.m4: Also use our substitute if we cannot find round in
54433         any library, even if it is declared.
54434         * m4/roundf.m4: Likewise for roundf.
54435         * m4/roundl.m4: Likewise for roundl.
54436         * lib/math.in.h: Undefine roundf, round, roundl before defining
54437         their replacements, to allow for hypothetical systems where these
54438         may be defined as macros but not available in libraries.
54439
54440 2007-10-27  Bruno Haible  <bruno@clisp.org>
54441
54442         * doc/gnulib.texi: Invoke @firstparagraphindent.
54443         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54444         changes in gnulib.
54445         (Source changes): New section.
54446
54447 2007-10-26  Bruno Haible  <bruno@clisp.org>
54448
54449         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
54450         borrowed from autoconf.
54451
54452 2007-10-26  Bruno Haible  <bruno@clisp.org>
54453
54454         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
54455         strerror returned the empty string. Needed on HP-UX 11.00.
54456
54457 2007-10-24  Micah Cowan  <micah@cowan.name>
54458
54459         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
54460         * build-aux/bootstrap: Remove support for now-unnecessary option,
54461         --cvs-user, and envvars CVS_USER, CVS_RSH.
54462
54463 2007-10-24  Jim Meyering  <meyering@redhat.com>
54464
54465         Avoid diagnostics from sha1sum when there is no cached checksum.
54466         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
54467         if the po.s1 file hasn't been created yet.
54468
54469         * build-aux/bootstrap: Sync from coreutils:
54470         2007-10-24  Jim Meyering  <meyering@redhat.com>
54471         Get gnulib from the git repository, not from an obsolete cvs one.
54472         * build-aux/bootstrap: Suggestion from Micah Cowan.
54473         2007-10-04  Jim Meyering  <jim@meyering.net>
54474         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
54475         (update_po_files): Work also when there are no .po files in po/.
54476
54477 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * README: Append ".git" to git and cg examples.
54480         Problem reported by Benoit Sigoure.
54481
54482 2007-10-23  Micah Cowan  <micah@cowan.name>
54483
54484         * users.txt: Add wget.
54485
54486 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54487
54488         Fix linking of some unistdio tests on FreeBSD.
54489         * modules/unistdio/u16-vsnprintf-tests
54490         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
54491         * modules/unistdio/u16-vsprintf-tests
54492         (test_u16_vsnprintf1_LDADD): Likewise.
54493         * modules/unistdio/u32-vsnprintf-tests
54494         (test_u32_vsnprintf1_LDADD): Likewise.
54495         * modules/unistdio/u32-vsprintf-tests
54496         (test_u32_vsprintf1_LDADD): Likewise.
54497         * modules/unistdio/u8-vsnprintf-tests
54498         (test_u8_vsnprintf1_LDADD): Likewise.
54499         * modules/unistdio/u8-vsprintf-tests
54500         (test_u8_vsprintf1_LDADD): Likewise.
54501         * modules/unistdio/ulc-vsnprintf-tests
54502         (test_ulc_vsnprintf1_LDADD): Likewise.
54503         * modules/unistdio/ulc-vsprintf-tests
54504         (test_ulc_vsprintf1_LDADD): Likewise.
54505
54506         Fix linking of some uniconv tests on FreeBSD.
54507         * modules/uniconv/u16-conv-from-enc-tests
54508         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
54509         * modules/uniconv/u16-conv-to-enc-tests
54510         (test_u16_conv_to_enc_LDADD): Likewise.
54511         * modules/uniconv/u16-strconv-from-enc-tests
54512         (test_u16_strconv_from_enc_LDADD): Likewise.
54513         * modules/uniconv/u16-strconv-to-enc-tests
54514         (test_u16_strconv_to_enc_LDADD): Likewise.
54515         * modules/uniconv/u32-conv-from-enc-tests
54516         (test_u32_conv_from_enc_LDADD): Likewise.
54517         * modules/uniconv/u32-conv-to-enc-tests
54518         (test_u32_conv_to_enc_LDADD): Likewise.
54519         * modules/uniconv/u32-strconv-from-enc-tests
54520         (test_u32_strconv_from_enc_LDADD): Likewise.
54521         * modules/uniconv/u32-strconv-to-enc-tests
54522         (test_u32_strconv_to_enc_LDADD): Likewise.
54523         * modules/uniconv/u8-conv-from-enc-tests
54524         (test_u8_conv_from_enc_LDADD): Likewise.
54525         * modules/uniconv/u8-conv-to-enc-tests
54526         (test_u8_conv_to_enc_LDADD): Likewise.
54527         * modules/uniconv/u8-strconv-from-enc-tests
54528         (test_u8_strconv_from_enc_LDADD): Likewise.
54529         * modules/uniconv/u8-strconv-to-enc-tests
54530         (test_u8_strconv_to_enc_LDADD): Likewise.
54531
54532 2007-10-22  Bruno Haible  <bruno@clisp.org>
54533
54534         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
54535         size.
54536
54537 2007-10-22  Eric Blake  <ebb9@byu.net>
54538
54539         Tweak x*printf documentation.
54540         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
54541         variable name and comments.
54542         Suggested by Bruno Haible.
54543
54544 2007-10-22  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/acl.c (copy_acl): Fix file name in comment.
54547
54548 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54549
54550         Fix Tru64 problem with stdbool.h.
54551         * lib/stdbool.in.h (false, true):
54552         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
54553         Don't declare as an enum in this situation; it runs afoul of Tru64.
54554         Problem reported by Steven M. Schweda in
54555         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
54556
54557 2007-10-22  Eric Blake  <ebb9@byu.net>
54558
54559         Also wrap vf?printf.
54560         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
54561         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
54562         (xvprintf, xvfprintf): New functions.
54563
54564 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54565
54566         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
54567         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
54568
54569         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
54570         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
54571
54572 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
54573
54574         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
54575         by Bruno Haible.
54576
54577 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54578
54579         * lib/getloadavg.c
54580         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
54581         Undef `sys' after including sys/table.h, for Tru64 4.0D.
54582
54583         * tests/test-i-ring.c: Work for C89.
54584
54585 2007-10-22  Bruno Haible  <bruno@clisp.org>
54586
54587         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
54588         -1u, in preprocessor expression, so that we don't test for the bug
54589         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
54590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
54591
54592 2007-10-22  Eric Blake  <ebb9@byu.net>
54593
54594         * tests/test-yesno.sh: Silence stderr during test.
54595
54596 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54597
54598         * modules/crypto/gc-camellia: New file.
54599
54600         * m4/gc-camellia.m4: New file.
54601
54602         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
54603
54604         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
54605
54606 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54607
54608         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
54609         --help to stdout.  Reported by sms@antinode.org (Steven
54610         M. Schweda).
54611
54612 2007-10-22  Simon Josefsson  <simon@josefsson.org>
54613
54614         * users.txt: Fix link to libksba.
54615
54616 2007-10-21  Ben Pfaff  <blp@gnu.org>
54617
54618         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
54619         round.c roundf implementation that depends on floorf and ceilf to
54620         be tested unconditionally.
54621
54622 2007-10-21  Ben Pfaff  <blp@gnu.org>
54623
54624         * m4/check-libm-func.m4: Removed.
54625         * m4/check-math-lib.m4: New file.
54626         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
54627         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
54628         definition and lack of AC_LIBOBJ([roundf]).
54629         * m4/roundl.m4: Ditto, and similarly for roundl.
54630         * modules/round: Reference new m4 file.
54631         * modules/roundf: Ditto.
54632         * modules/roundl: Ditto.
54633         * tests/test-round2.c (main): Use ROUND instead of round.
54634         Bug report from Bruno Haible.
54635
54636 2007-10-21  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
54639         context.
54640
54641 2007-10-21  Bruno Haible  <bruno@clisp.org>
54642
54643         * tests/test-wcwidth.c (main): Allow negative result for some control
54644         characters.
54645
54646         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
54647         Needed on OSF/1 5.1.
54648
54649 2007-10-21  Bruno Haible  <bruno@clisp.org>
54650
54651         * tests/test-floorf1.c: Include isnanf.h.
54652         (main): Use isnanf() instead of isnan().
54653         * tests/test-ceilf1.c: Include isnanf.h.
54654         (main): Use isnanf() instead of isnan().
54655         * tests/test-truncf1.c: Include isnanf.h.
54656         (main): Use isnanf() instead of isnan().
54657         * tests/test-roundf1.c: Include isnanf.h.
54658         (main): Use isnanf() instead of isnan().
54659
54660 2007-10-21  Eric Blake  <ebb9@byu.net>
54661
54662         * users.txt: Update URL for m4.
54663
54664 2007-10-21  Bruno Haible  <bruno@clisp.org>
54665
54666         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
54667
54668 2007-10-21  Bruno Haible  <bruno@clisp.org>
54669
54670         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
54671         Git's management files if the CVS files are not present.
54672
54673 2007-10-20  Bruno Haible  <bruno@clisp.org>
54674
54675         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
54676         gcc-3.4.x.
54677
54678 2007-10-20  Ben Pfaff  <blp@gnu.org>
54679
54680         * lib/math.in.h: Declare round, roundf, roundl if we are providing
54681         implementations.
54682         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
54683         * lib/round.c: New file.
54684         * lib/roundf.c: New file.
54685         * lib/roundl.c: New file.
54686         * m4/round.m4: New file.
54687         * m4/roundf.m4: New file.
54688         * m4/roundl.m4: New file.
54689         * m4/check-libm-func-m4: New file.
54690         * modules/math: Replace round, roundf, roundl related @VARS@ in
54691         math.in.h.
54692         * modules/round: New file.
54693         * modules/round-tests: New file.
54694         * modules/roundf: New file.
54695         * modules/roundf-tests: New file.
54696         * modules/roundl: New file.
54697         * modules/roundl-tests: New file.
54698         * tests/test-round1.c: New file.
54699         * tests/test-round2.c: New file.
54700         * tests/test-roundf1.c: New file.
54701         * tests/test-roundf2.c: New file.
54702         * tests/test-roundl.c: New file.
54703         * doc/functions/round.texi: Mention round module.
54704         * doc/functions/roundf.texi: Mention roundf module.
54705         * doc/functions/roundl.texi: Mention roundl module.
54706         * MODULES.html.sh: Mention new modules.
54707         Thanks to Bruno Haible for suggestions.
54708
54709 2007-10-20  Jim Meyering  <meyering@redhat.com>
54710
54711         * lib/xprintf.c: Include <config.h> unconditionally.
54712
54713         Change xprintf's license to GPL.
54714         * modules/xprintf (License): s/LGPL/GPL/, since this module
54715         depends on modules (exit and exitfail) which are GPL.
54716         Suggestion from Bruno Haible.
54717
54718         xprintf fixes.
54719         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
54720         Use a clearer diagnostic.
54721         Patch from Bruno Haible.
54722
54723 2007-10-20  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
54726         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
54727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54728
54729 2007-10-20  Bruno Haible  <bruno@clisp.org>
54730
54731         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
54732         precision in the comparison result > x - 1 or similar.
54733         * tests/test-ceilf2.c (correct_result_p): Likewise.
54734         * tests/test-truncf2.c (correct_result_p): Likewise.
54735         * tests/test-trunc2.c (correct_result_p): Likewise.
54736         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54737
54738 2007-10-20  Bruno Haible  <bruno@clisp.org>
54739
54740         * modules/ceil: New file.
54741         * m4/ceil.m4: New file.
54742         * doc/functions/ceil.texi: Mention the 'ceil' module.
54743
54744 2007-10-20  Bruno Haible  <bruno@clisp.org>
54745
54746         * modules/floor: New file.
54747         * m4/floor.m4: New file.
54748         * doc/functions/floor.texi: Mention the 'floor' module.
54749
54750 2007-10-20  Bruno Haible  <bruno@clisp.org>
54751
54752         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
54753         of %a.
54754         * modules/floorf-tests (Depends-on): Likewise.
54755         * modules/truncf-tests (Depends-on): Likewise.
54756         * modules/trunc-tests (Depends-on): Likewise.
54757         Reported by Ben Pfaff.
54758
54759 2007-10-19  Jim Meyering  <meyering@redhat.com>
54760
54761         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
54762         Don't bother testing specific errno values.  Just test ferror.
54763
54764         New module: xprintf
54765         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
54766
54767 2007-10-19  Bruno Haible  <bruno@clisp.org>
54768
54769         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
54770         syntax.
54771         * modules/javaexec (Makefile.am): Likewise.
54772         * modules/relocatable-prog (Makefile.am): Likewise.
54773         Suggested by Jim Meyering.
54774
54775 2007-10-18  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
54778         Reported by Jim Meyering.
54779
54780 2007-10-18  Eric Blake  <ebb9@byu.net>
54781
54782         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
54783
54784 2007-10-18  Bruno Haible  <bruno@clisp.org>
54785
54786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
54787         the format string into writable memory. Needed in Fortify conditions.
54788
54789 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
54790             Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
54793         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
54794         * modules/trim (Depends-on): Add mbchar.
54795         (configure.ac): Add gl_FUNC_MBRTOWC.
54796         (Makefile.am): Augment lib_SOURCES.
54797
54798 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         Modify glob.c to use fstatat and dirfd, to simplify it.
54801         Suggested by Eric Blake.
54802         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
54803         Don't include <stdbool.h>; not used.
54804         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
54805         (link_exists_p): Simplify implementation, since we can now assume
54806         dirfd and fstatat.
54807         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
54808
54809 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54810
54811         * gnulib-tool (func_get_dependencies): Fix sed script to
54812         match only tests.
54813
54814 2007-10-17  Bruno Haible  <bruno@clisp.org>
54815
54816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
54817         allow locale names without encoding suffix.
54818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54819         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54820
54821 2007-10-16  Bruno Haible  <bruno@clisp.org>
54822
54823         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
54824         * lib/getgroups.c (getgroups): Likewise.
54825         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
54826
54827 2007-10-16  Bruno Haible  <bruno@clisp.org>
54828
54829         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
54830         * modules/malloc-posix (License): Likewise.
54831         * modules/realloc-posix (License): Likewise.
54832         * modules/calloc-posix (License): Likewise.
54833         * modules/intprops (License): Change from GPL to LGPL, with
54834         Paul Eggert's approval.
54835
54836 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54837
54838         Merge glibc changes into lib/glob.c.
54839
54840         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
54841         2007-10-15 04:59:03 UTC.  Here are the changes:
54842
54843         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
54844
54845         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
54846
54847         * lib/glob.c: Add some branch prediction throughout.
54848
54849         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
54850
54851         [BZ #5103]
54852         * lib/glob.c (glob): Recognize patterns starting \/.
54853
54854         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
54855
54856         [BZ #3996]
54857         * lib/glob.c (attribute_hidden): Define if not defined.
54858         (glob): Unescape dirname, filename or username when needed and not
54859         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
54860         is NULL.  Handle unescaped [ in pattern without closing ].
54861         Don't pass GLOB_CHECK down to recursive glob for directories.
54862         (__glob_pattern_type): New function.
54863         (__glob_pattern_p): Implement using __glob_pattern_type.
54864         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
54865         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
54866         Remove unreachable code.
54867
54868         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
54869
54870         * lib/glob.c (glob_in_dir): Add some comments and asserts to
54871         explain why there are no leaks.
54872
54873         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
54874
54875         [BZ #3253]
54876         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
54877         time, rather allocate increasingly bigger arrays of pointers, if
54878         possible with alloca, if too large with malloc.
54879
54880 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54881
54882         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
54883         Problem reported by H.Merijn Brand in
54884         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
54885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
54886         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54887
54888 2007-10-15  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
54891         with explicit rpl_ prefix.
54892         * lib/fopen.c (fopen): Likewise.
54893         * lib/freopen.c (freopen): Likewise.
54894         * lib/iconv.c (iconv): Likewise.
54895         * lib/iconv_close.c (iconv_close): Likewise.
54896
54897 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54898
54899         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
54900
54901 2007-10-15  Bruno Haible  <bruno@clisp.org>
54902
54903         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
54904         <stddef.h> instead of <stdlib.h> since we only need NULL.
54905         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54906
54907 2007-10-15  Bruno Haible  <bruno@clisp.org>
54908
54909         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
54910         Replace paragraph talking about LIBOBJS.
54911         Reported by Colin Watson <cjwatson@debian.org>.
54912
54913 2007-10-15  Bruno Haible  <bruno@clisp.org>
54914
54915         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
54916         <stdlib.h> before using NULL.
54917
54918 2007-10-15  Simon Josefsson  <simon@josefsson.org>
54919
54920         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
54921         Reported by Albert Chin <china@thewrittenword.com>.
54922
54923 2007-10-14  Bruno Haible  <bruno@clisp.org>
54924
54925         * modules/iconv_open-utf-tests: New file.
54926         * tests/test-iconv-utf.c: New file.
54927
54928         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
54929         * modules/iconv_open-utf: New file.
54930         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
54931         (iconv, iconv_close): New declarations.
54932         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
54933         be defined.
54934         (iconv_open): Add special handling of conversion between UTF-8 and
54935         UTF-{16,32}{BE,LE}.
54936         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
54937         * lib/iconv_close.c: New file.
54938         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
54939         gl_FUNC_ICONV_OPEN.
54940         (gl_FUNC_ICONV_OPEN): Use it.
54941         (gl_FUNC_ICONV_OPEN_UTF): New macro.
54942         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
54943         and REPLACE_ICONV_UTF.
54944         * modules/iconv_open (Depends-on): Add c-strcase.
54945         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
54946         ICONV_CONST.
54947         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
54948
54949 2007-10-13  Albert Chin  <china@thewrittenword.com>
54950             Bruno Haible  <bruno@clisp.org>
54951
54952         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
54953         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
54954
54955 2007-10-13  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
54958         defined, use the ISO C99 inline semantics.
54959         * lib/argp.h (ARGP_EI): Likewise.
54960
54961 2007-10-13  Bruno Haible  <bruno@clisp.org>
54962
54963         Handle 'inline' change in gcc 4.3.0.
54964         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
54965         argp_fmtstream_write, argp_fmtstream_set_lmargin,
54966         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
54967         argp_fmtstream_point): Disable 'extern' declaration if the function
54968         definition is going to be provided inline.
54969         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
54970         semantics, not the ISO C99 inline semantics.
54971         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
54972         'extern' declaration if the function definition is going to be provided
54973         inline.
54974         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
54975         the GNU C inline semantics, not the ISO C99 inline semantics. With
54976         GCC 4.2, avoid a warning.
54977
54978 2007-10-13  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/freading.h (freading): Enable the use of __freading for
54981         glibc >= 2.7.
54982         * lib/freading.c (freading): Likewise.
54983
54984 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
54987         "warning: C99 inline functions are not supported; using GNU89".
54988
54989 2007-10-12  Bruno Haible  <bruno@clisp.org>
54990
54991         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
54992         of 2.
54993         * tests/test-ceilf2.c: New file.
54994         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
54995
54996         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
54997         * modules/ceilf-tests: Update.
54998
54999 2007-10-12  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55002         of 2.
55003         * tests/test-floorf2.c: New file.
55004         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55005
55006         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55007         * modules/floorf-tests: Update.
55008
55009 2007-10-12  Bruno Haible  <bruno@clisp.org>
55010
55011         * tests/test-trunc2.c: New file.
55012         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55013
55014         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55015         * modules/trunc-tests: Update.
55016
55017 2007-10-12  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55020         of 2.
55021         * tests/test-truncf2.c: New file.
55022         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55023
55024         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55025         * modules/truncf-tests: Update.
55026
55027 2007-10-11  Eric Blake  <ebb9@byu.net>
55028
55029         Don't claim strerror is broken on Interix.
55030         * doc/functions/strerror.texi (strerror): Known broken systems are
55031         now Solaris 8, and not Interix.
55032         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55033         Interix on cross-compile.
55034         Reported by Martin Koeppe in
55035         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55036
55037 2007-10-11  Bruno Haible  <bruno@clisp.org>
55038
55039         * modules/i-ring-tests: New file.
55040         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55041         instead of assert.
55042
55043 2007-10-11  Bruno Haible  <bruno@clisp.org>
55044
55045         * modules/filenamecat-tests: New file.
55046         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55047         * lib/filenamecat.c: Remove test code.
55048
55049 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55050
55051         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55052
55053         * lib/strerror.c: Include <string.h> always, to test interface,
55054         and to remove the need for the dummy.
55055         Include intprops.h to compute width instead of doing it ourselves
55056         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55057         (strerror): Define it to return NULL if there's no system strerror.
55058         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55059         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55060         ancient pre-strerror Unix systems well any more.  Saying "unknown
55061         system error" is enough.
55062         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55063         simpler strerror.c implementation.
55064         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55065         Simplify the tests to reflect the simpler strerror implementation.
55066         * modules/strerror (Depends-on): Add intprops.
55067
55068 2007-10-09  Eric Blake  <ebb9@byu.net>
55069
55070         Silence test-fpending.
55071         * modules/fpending-tests (Files): Add wrapper script.
55072         * tests/test-fpending.sh: New file.
55073
55074 2007-10-09  Bruno Haible  <bruno@clisp.org>
55075
55076         * MODULES.html.sh (func_module): Don't create a hyperlink for
55077         function names like 'printf_frexp'.
55078         (Misc): Add crc, memxor.
55079         (Characteristics of floating types): New section.
55080         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55081         isnanf-nolibm, signbit, trunc, truncf, truncl.
55082         (Enhancements for ISO C 99 functions): New subsection Input/output.
55083         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55084         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55085         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55086         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55087         (Enhancements for POSIX:2001 functions): Add chdir-long.
55088         (File system functions): Add areadlink, chdir-safer, read-file.
55089         Remove cycle-check.
55090         (File system as inode set): New section.
55091         (Date and time): Add gethrxtime.
55092         (Multithreading): Add openmp.
55093         (Internationalization functions): Add localename.
55094         (Unicode string functions): Add unistr/u*-mbsnlen.
55095         (Support for maintaining and releasing projects): Add git-version-gen.
55096         (Lone files): Remove directories.
55097
55098 2007-10-08  Ben Pfaff  <blp@gnu.org>
55099
55100         * lib/xmalloca.h: Fix typo in comment.
55101
55102 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55103
55104         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55105         when avoiding problems with integer overflow.  Use a portable test
55106         instead.
55107
55108 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55109
55110         * modules/dummy (License): Change to LGPLv2+.
55111         * modules/float (License): Likewise
55112         * modules/realloc (License): Likewise
55113         * modules/stdlib (License): Likewise
55114
55115 2007-10-07  Bruno Haible  <bruno@clisp.org>
55116
55117         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55118         * floor.c (TWO_MANT_DIG): Likewise.
55119         * ceil.c (TWO_MANT_DIG): Likewise.
55120         Reported by Ben Pfaff.
55121
55122 2007-10-07  Bruno Haible  <bruno@clisp.org>
55123
55124         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55125         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55126         * lib/frexp.c (FUNC): Likewise.
55127         * lib/printf-frexp.h (printf_frexp): Likewise.
55128         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55129         * lib/printf-frexp.c (FUNC): Likewise.
55130         Suggested by Jim Meyering.
55131
55132 2007-10-07  Jim Meyering  <meyering@redhat.com>
55133
55134         Make xnanosleep's integer overflow test more robust.
55135         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55136         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55137
55138 2007-10-07  Bruno Haible  <bruno@clisp.org>
55139
55140         * NEWS: Mention the license change.
55141
55142         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55143         abbreviations in the modules files.
55144
55145         Change copyright notice from GPLv2+ to GPLv3+.
55146         * README: Change copyright notice.
55147         * MODULES.html.sh: Likewise.
55148         * build-aux/bootstrap.conf: Likewise.
55149         * build-aux/config.libpath: Likewise.
55150         * build-aux/csharpcomp.sh.in: Likewise.
55151         * build-aux/csharpexec.sh.in: Likewise.
55152         * build-aux/install-reloc: Likewise.
55153         * build-aux/javacomp.sh.in: Likewise.
55154         * build-aux/javaexec.sh.in: Likewise.
55155         * build-aux/ldd.sh.in: Likewise.
55156         * build-aux/reloc-ldflags: Likewise.
55157         * build-aux/relocatable.sh.in: Likewise.
55158         * build-aux/x-to-1.in: Likewise.
55159         * check-module: Likewise.
55160         * config/srclistvars.sh: Likewise.
55161         * gnulib-tool: Likewise.
55162         * lib/acl-internal.h: Likewise.
55163         * lib/acl.c: Likewise.
55164         * lib/acl.h: Likewise.
55165         * lib/acl_entries.c: Likewise.
55166         * lib/areadlink-with-size.c: Likewise.
55167         * lib/areadlink.c: Likewise.
55168         * lib/areadlink.h: Likewise.
55169         * lib/argmatch.c: Likewise.
55170         * lib/argmatch.h: Likewise.
55171         * lib/argp-ba.c: Likewise.
55172         * lib/argp-eexst.c: Likewise.
55173         * lib/argp-fmtstream.c: Likewise.
55174         * lib/argp-fmtstream.h: Likewise.
55175         * lib/argp-fs-xinl.c: Likewise.
55176         * lib/argp-help.c: Likewise.
55177         * lib/argp-namefrob.h: Likewise.
55178         * lib/argp-parse.c: Likewise.
55179         * lib/argp-pin.c: Likewise.
55180         * lib/argp-pv.c: Likewise.
55181         * lib/argp-pvh.c: Likewise.
55182         * lib/argp-xinl.c: Likewise.
55183         * lib/argp.h: Likewise.
55184         * lib/at-func.c: Likewise.
55185         * lib/atanl.c: Likewise.
55186         * lib/backupfile.c: Likewise.
55187         * lib/backupfile.h: Likewise.
55188         * lib/basename.c: Likewise.
55189         * lib/binary-io.h: Likewise.
55190         * lib/byteswap.in.h: Likewise.
55191         * lib/c-stack.c: Likewise.
55192         * lib/c-stack.h: Likewise.
55193         * lib/c-strcasestr.c: Likewise.
55194         * lib/c-strcasestr.h: Likewise.
55195         * lib/c-strstr.c: Likewise.
55196         * lib/c-strstr.h: Likewise.
55197         * lib/c-strtod.c: Likewise.
55198         * lib/calloc.c: Likewise.
55199         * lib/canon-host.c: Likewise.
55200         * lib/canon-host.h: Likewise.
55201         * lib/canonicalize-lgpl.c: Likewise.
55202         * lib/canonicalize.c: Likewise.
55203         * lib/canonicalize.h: Likewise.
55204         * lib/ceil.c: Likewise.
55205         * lib/ceilf.c: Likewise.
55206         * lib/ceill.c: Likewise.
55207         * lib/chdir-long.c: Likewise.
55208         * lib/chdir-long.h: Likewise.
55209         * lib/chdir-safer.c: Likewise.
55210         * lib/chdir-safer.h: Likewise.
55211         * lib/chown.c: Likewise.
55212         * lib/classpath.c: Likewise.
55213         * lib/classpath.h: Likewise.
55214         * lib/clean-temp.c: Likewise.
55215         * lib/clean-temp.h: Likewise.
55216         * lib/cloexec.c: Likewise.
55217         * lib/close-stream.c: Likewise.
55218         * lib/closein.c: Likewise.
55219         * lib/closein.h: Likewise.
55220         * lib/closeout.c: Likewise.
55221         * lib/closeout.h: Likewise.
55222         * lib/concat-filename.c: Likewise.
55223         * lib/copy-file.c: Likewise.
55224         * lib/copy-file.h: Likewise.
55225         * lib/count-one-bits.h: Likewise.
55226         * lib/crc.c: Likewise.
55227         * lib/crc.h: Likewise.
55228         * lib/creat-safer.c: Likewise.
55229         * lib/csharpcomp.c: Likewise.
55230         * lib/csharpcomp.h: Likewise.
55231         * lib/csharpexec.c: Likewise.
55232         * lib/csharpexec.h: Likewise.
55233         * lib/cycle-check.c: Likewise.
55234         * lib/cycle-check.h: Likewise.
55235         * lib/diacrit.c: Likewise.
55236         * lib/diacrit.h: Likewise.
55237         * lib/diffseq.h: Likewise.
55238         * lib/dirchownmod.c: Likewise.
55239         * lib/dirent.in.h: Likewise.
55240         * lib/dirfd.c: Likewise.
55241         * lib/dirfd.h: Likewise.
55242         * lib/dirname.c: Likewise.
55243         * lib/dirname.h: Likewise.
55244         * lib/dummy.c: Likewise.
55245         * lib/dup-safer.c: Likewise.
55246         * lib/dup2.c: Likewise.
55247         * lib/eealloc.h: Likewise.
55248         * lib/error.c: Likewise.
55249         * lib/error.h: Likewise.
55250         * lib/euidaccess.c: Likewise.
55251         * lib/exclude.c: Likewise.
55252         * lib/exclude.h: Likewise.
55253         * lib/execute.c: Likewise.
55254         * lib/execute.h: Likewise.
55255         * lib/exitfail.c: Likewise.
55256         * lib/exitfail.h: Likewise.
55257         * lib/expl.c: Likewise.
55258         * lib/fatal-signal.c: Likewise.
55259         * lib/fatal-signal.h: Likewise.
55260         * lib/fbufmode.c: Likewise.
55261         * lib/fbufmode.h: Likewise.
55262         * lib/fchdir.c: Likewise.
55263         * lib/fchmodat.c: Likewise.
55264         * lib/fchownat.c: Likewise.
55265         * lib/fcntl--.h: Likewise.
55266         * lib/fcntl-safer.h: Likewise.
55267         * lib/fcntl.in.h: Likewise.
55268         * lib/fd-safer.c: Likewise.
55269         * lib/fflush.c: Likewise.
55270         * lib/file-has-acl.c: Likewise.
55271         * lib/file-set.c: Likewise.
55272         * lib/file-type.c: Likewise.
55273         * lib/file-type.h: Likewise.
55274         * lib/fileblocks.c: Likewise.
55275         * lib/filemode.c: Likewise.
55276         * lib/filemode.h: Likewise.
55277         * lib/filename.h: Likewise.
55278         * lib/filenamecat.c: Likewise.
55279         * lib/filenamecat.h: Likewise.
55280         * lib/findprog.c: Likewise.
55281         * lib/findprog.h: Likewise.
55282         * lib/float.in.h: Likewise.
55283         * lib/floor.c: Likewise.
55284         * lib/floorf.c: Likewise.
55285         * lib/floorl.c: Likewise.
55286         * lib/fopen-safer.c: Likewise.
55287         * lib/fopen.c: Likewise.
55288         * lib/fpending.c: Likewise.
55289         * lib/fpending.h: Likewise.
55290         * lib/fprintf.c: Likewise.
55291         * lib/fprintftime.h: Likewise.
55292         * lib/fpucw.h: Likewise.
55293         * lib/fpurge.c: Likewise.
55294         * lib/fpurge.h: Likewise.
55295         * lib/freadable.c: Likewise.
55296         * lib/freadable.h: Likewise.
55297         * lib/freadahead.c: Likewise.
55298         * lib/freadahead.h: Likewise.
55299         * lib/freading.c: Likewise.
55300         * lib/freading.h: Likewise.
55301         * lib/free.c: Likewise.
55302         * lib/freopen.c: Likewise.
55303         * lib/frexp.c: Likewise.
55304         * lib/frexpl.c: Likewise.
55305         * lib/fseek.c: Likewise.
55306         * lib/fseterr.c: Likewise.
55307         * lib/fseterr.h: Likewise.
55308         * lib/fstatat.c: Likewise.
55309         * lib/fstrcmp.c: Likewise.
55310         * lib/fstrcmp.h: Likewise.
55311         * lib/fsusage.c: Likewise.
55312         * lib/fsusage.h: Likewise.
55313         * lib/ftell.c: Likewise.
55314         * lib/ftello.c: Likewise.
55315         * lib/fts-cycle.c: Likewise.
55316         * lib/fts.c: Likewise.
55317         * lib/fts_.h: Likewise.
55318         * lib/full-read.c: Likewise.
55319         * lib/full-read.h: Likewise.
55320         * lib/full-write.c: Likewise.
55321         * lib/full-write.h: Likewise.
55322         * lib/fwritable.c: Likewise.
55323         * lib/fwritable.h: Likewise.
55324         * lib/fwriteerror.c: Likewise.
55325         * lib/fwriteerror.h: Likewise.
55326         * lib/fwriting.c: Likewise.
55327         * lib/fwriting.h: Likewise.
55328         * lib/gcd.c: Likewise.
55329         * lib/gcd.h: Likewise.
55330         * lib/getcwd.c: Likewise.
55331         * lib/getdate.h: Likewise.
55332         * lib/getdate.y: Likewise.
55333         * lib/getdomainname.c: Likewise.
55334         * lib/getdomainname.h: Likewise.
55335         * lib/getgroups.c: Likewise.
55336         * lib/gethostname.c: Likewise.
55337         * lib/gethrxtime.c: Likewise.
55338         * lib/gethrxtime.h: Likewise.
55339         * lib/getloadavg.c: Likewise.
55340         * lib/getndelim2.c: Likewise.
55341         * lib/getndelim2.h: Likewise.
55342         * lib/getnline.c: Likewise.
55343         * lib/getnline.h: Likewise.
55344         * lib/getopt.c: Likewise.
55345         * lib/getopt.in.h: Likewise.
55346         * lib/getopt1.c: Likewise.
55347         * lib/getopt_int.h: Likewise.
55348         * lib/getpagesize.h: Likewise.
55349         * lib/getsubopt.c: Likewise.
55350         * lib/gettime.c: Likewise.
55351         * lib/getugroups.c: Likewise.
55352         * lib/getugroups.h: Likewise.
55353         * lib/getusershell.c: Likewise.
55354         * lib/gl_anyavltree_list1.h: Likewise.
55355         * lib/gl_anyavltree_list2.h: Likewise.
55356         * lib/gl_anyhash_list1.h: Likewise.
55357         * lib/gl_anyhash_list2.h: Likewise.
55358         * lib/gl_anylinked_list1.h: Likewise.
55359         * lib/gl_anylinked_list2.h: Likewise.
55360         * lib/gl_anyrbtree_list1.h: Likewise.
55361         * lib/gl_anyrbtree_list2.h: Likewise.
55362         * lib/gl_anytree_list1.h: Likewise.
55363         * lib/gl_anytree_list2.h: Likewise.
55364         * lib/gl_anytree_oset.h: Likewise.
55365         * lib/gl_anytreehash_list1.h: Likewise.
55366         * lib/gl_anytreehash_list2.h: Likewise.
55367         * lib/gl_array_list.c: Likewise.
55368         * lib/gl_array_list.h: Likewise.
55369         * lib/gl_array_oset.c: Likewise.
55370         * lib/gl_array_oset.h: Likewise.
55371         * lib/gl_avltree_list.c: Likewise.
55372         * lib/gl_avltree_list.h: Likewise.
55373         * lib/gl_avltree_oset.c: Likewise.
55374         * lib/gl_avltree_oset.h: Likewise.
55375         * lib/gl_avltreehash_list.c: Likewise.
55376         * lib/gl_avltreehash_list.h: Likewise.
55377         * lib/gl_carray_list.c: Likewise.
55378         * lib/gl_carray_list.h: Likewise.
55379         * lib/gl_linked_list.c: Likewise.
55380         * lib/gl_linked_list.h: Likewise.
55381         * lib/gl_linkedhash_list.c: Likewise.
55382         * lib/gl_linkedhash_list.h: Likewise.
55383         * lib/gl_list.c: Likewise.
55384         * lib/gl_list.h: Likewise.
55385         * lib/gl_oset.c: Likewise.
55386         * lib/gl_oset.h: Likewise.
55387         * lib/gl_rbtree_list.c: Likewise.
55388         * lib/gl_rbtree_list.h: Likewise.
55389         * lib/gl_rbtree_oset.c: Likewise.
55390         * lib/gl_rbtree_oset.h: Likewise.
55391         * lib/gl_rbtreehash_list.c: Likewise.
55392         * lib/gl_rbtreehash_list.h: Likewise.
55393         * lib/gl_sublist.c: Likewise.
55394         * lib/gl_sublist.h: Likewise.
55395         * lib/group-member.c: Likewise.
55396         * lib/group-member.h: Likewise.
55397         * lib/hard-locale.c: Likewise.
55398         * lib/hard-locale.h: Likewise.
55399         * lib/hash-pjw.c: Likewise.
55400         * lib/hash-pjw.h: Likewise.
55401         * lib/hash-triple.c: Likewise.
55402         * lib/hash.c: Likewise.
55403         * lib/hash.h: Likewise.
55404         * lib/human.c: Likewise.
55405         * lib/human.h: Likewise.
55406         * lib/i-ring.c: Likewise.
55407         * lib/i-ring.h: Likewise.
55408         * lib/idcache.c: Likewise.
55409         * lib/imaxabs.c: Likewise.
55410         * lib/imaxdiv.c: Likewise.
55411         * lib/inet_pton.c: Likewise.
55412         * lib/inet_pton.h: Likewise.
55413         * lib/intprops.h: Likewise.
55414         * lib/inttostr.c: Likewise.
55415         * lib/inttostr.h: Likewise.
55416         * lib/inttypes.in.h: Likewise.
55417         * lib/isapipe.c: Likewise.
55418         * lib/isdir.c: Likewise.
55419         * lib/isnan.c: Likewise.
55420         * lib/isnan.h: Likewise.
55421         * lib/isnanf.c: Likewise.
55422         * lib/isnanf.h: Likewise.
55423         * lib/isnanl-nolibm.h: Likewise.
55424         * lib/isnanl.c: Likewise.
55425         * lib/isnanl.h: Likewise.
55426         * lib/javacomp.c: Likewise.
55427         * lib/javacomp.h: Likewise.
55428         * lib/javaexec.c: Likewise.
55429         * lib/javaexec.h: Likewise.
55430         * lib/javaversion.c: Likewise.
55431         * lib/javaversion.h: Likewise.
55432         * lib/javaversion.java: Likewise.
55433         * lib/lbrkprop.h: Likewise.
55434         * lib/lchmod.h: Likewise.
55435         * lib/lchown.c: Likewise.
55436         * lib/ldexpl.c: Likewise.
55437         * lib/linebreak.c: Likewise.
55438         * lib/linebreak.h: Likewise.
55439         * lib/linebuffer.c: Likewise.
55440         * lib/linebuffer.h: Likewise.
55441         * lib/locale.in.h: Likewise.
55442         * lib/logl.c: Likewise.
55443         * lib/long-options.c: Likewise.
55444         * lib/long-options.h: Likewise.
55445         * lib/lstat.c: Likewise.
55446         * lib/lstat.h: Likewise.
55447         * lib/math.in.h: Likewise.
55448         * lib/mbchar.c: Likewise.
55449         * lib/mbchar.h: Likewise.
55450         * lib/mbfile.h: Likewise.
55451         * lib/mbiter.h: Likewise.
55452         * lib/mbscasecmp.c: Likewise.
55453         * lib/mbscasestr.c: Likewise.
55454         * lib/mbschr.c: Likewise.
55455         * lib/mbscspn.c: Likewise.
55456         * lib/mbslen.c: Likewise.
55457         * lib/mbsncasecmp.c: Likewise.
55458         * lib/mbsnlen.c: Likewise.
55459         * lib/mbspbrk.c: Likewise.
55460         * lib/mbspcasecmp.c: Likewise.
55461         * lib/mbsrchr.c: Likewise.
55462         * lib/mbssep.c: Likewise.
55463         * lib/mbsspn.c: Likewise.
55464         * lib/mbsstr.c: Likewise.
55465         * lib/mbstok_r.c: Likewise.
55466         * lib/mbswidth.c: Likewise.
55467         * lib/mbswidth.h: Likewise.
55468         * lib/mbuiter.h: Likewise.
55469         * lib/memcasecmp.c: Likewise.
55470         * lib/memcasecmp.h: Likewise.
55471         * lib/memchr.c: Likewise.
55472         * lib/memcmp.c: Likewise.
55473         * lib/memcoll.c: Likewise.
55474         * lib/memcoll.h: Likewise.
55475         * lib/memcpy.c: Likewise.
55476         * lib/memrchr.c: Likewise.
55477         * lib/mkancesdirs.c: Likewise.
55478         * lib/mkdir-p.c: Likewise.
55479         * lib/mkdir-p.h: Likewise.
55480         * lib/mkdir.c: Likewise.
55481         * lib/mkdirat.c: Likewise.
55482         * lib/mkdtemp.c: Likewise.
55483         * lib/mkstemp-safer.c: Likewise.
55484         * lib/mkstemp.c: Likewise.
55485         * lib/modechange.c: Likewise.
55486         * lib/modechange.h: Likewise.
55487         * lib/mountlist.c: Likewise.
55488         * lib/mountlist.h: Likewise.
55489         * lib/mpsort.c: Likewise.
55490         * lib/nanosleep.c: Likewise.
55491         * lib/obstack.c: Likewise.
55492         * lib/obstack.h: Likewise.
55493         * lib/open-safer.c: Likewise.
55494         * lib/open.c: Likewise.
55495         * lib/openat-die.c: Likewise.
55496         * lib/openat-priv.h: Likewise.
55497         * lib/openat-proc.c: Likewise.
55498         * lib/openat.c: Likewise.
55499         * lib/openat.h: Likewise.
55500         * lib/pagealign_alloc.c: Likewise.
55501         * lib/pagealign_alloc.h: Likewise.
55502         * lib/physmem.c: Likewise.
55503         * lib/physmem.h: Likewise.
55504         * lib/pipe-safer.c: Likewise.
55505         * lib/pipe.c: Likewise.
55506         * lib/pipe.h: Likewise.
55507         * lib/posixtm.c: Likewise.
55508         * lib/posixtm.h: Likewise.
55509         * lib/posixver.c: Likewise.
55510         * lib/printf-frexp.c: Likewise.
55511         * lib/printf-frexp.h: Likewise.
55512         * lib/printf-frexpl.c: Likewise.
55513         * lib/printf-frexpl.h: Likewise.
55514         * lib/printf.c: Likewise.
55515         * lib/progname.c: Likewise.
55516         * lib/progname.h: Likewise.
55517         * lib/progreloc.c: Likewise.
55518         * lib/putenv.c: Likewise.
55519         * lib/quote.c: Likewise.
55520         * lib/quote.h: Likewise.
55521         * lib/quotearg.c: Likewise.
55522         * lib/quotearg.h: Likewise.
55523         * lib/raise.c: Likewise.
55524         * lib/readline.c: Likewise.
55525         * lib/readline.h: Likewise.
55526         * lib/readlink.c: Likewise.
55527         * lib/readtokens.c: Likewise.
55528         * lib/readtokens.h: Likewise.
55529         * lib/readtokens0.c: Likewise.
55530         * lib/readtokens0.h: Likewise.
55531         * lib/readutmp.c: Likewise.
55532         * lib/readutmp.h: Likewise.
55533         * lib/realloc.c: Likewise.
55534         * lib/relocwrapper.c: Likewise.
55535         * lib/rename-dest-slash.c: Likewise.
55536         * lib/rename.c: Likewise.
55537         * lib/rmdir.c: Likewise.
55538         * lib/rpmatch.c: Likewise.
55539         * lib/safe-read.c: Likewise.
55540         * lib/safe-read.h: Likewise.
55541         * lib/safe-write.c: Likewise.
55542         * lib/safe-write.h: Likewise.
55543         * lib/same-inode.h: Likewise.
55544         * lib/same.c: Likewise.
55545         * lib/same.h: Likewise.
55546         * lib/save-cwd.c: Likewise.
55547         * lib/save-cwd.h: Likewise.
55548         * lib/savedir.c: Likewise.
55549         * lib/savedir.h: Likewise.
55550         * lib/savewd.c: Likewise.
55551         * lib/savewd.h: Likewise.
55552         * lib/search.in.h: Likewise.
55553         * lib/setenv.c: Likewise.
55554         * lib/setenv.h: Likewise.
55555         * lib/settime.c: Likewise.
55556         * lib/sh-quote.c: Likewise.
55557         * lib/sh-quote.h: Likewise.
55558         * lib/sig2str.c: Likewise.
55559         * lib/sig2str.h: Likewise.
55560         * lib/signal.in.h: Likewise.
55561         * lib/signbitd.c: Likewise.
55562         * lib/signbitf.c: Likewise.
55563         * lib/signbitl.c: Likewise.
55564         * lib/sigprocmask.c: Likewise.
55565         * lib/sincosl.c: Likewise.
55566         * lib/sleep.c: Likewise.
55567         * lib/sprintf.c: Likewise.
55568         * lib/sqrtl.c: Likewise.
55569         * lib/stat-time.h: Likewise.
55570         * lib/stdio--.h: Likewise.
55571         * lib/stdio-safer.h: Likewise.
55572         * lib/stdlib--.h: Likewise.
55573         * lib/stdlib-safer.h: Likewise.
55574         * lib/stdlib.in.h: Likewise.
55575         * lib/stpcpy.c: Likewise.
55576         * lib/stpncpy.c: Likewise.
55577         * lib/strchrnul.c: Likewise.
55578         * lib/strcspn.c: Likewise.
55579         * lib/strerror.c: Likewise.
55580         * lib/strftime.c: Likewise.
55581         * lib/strftime.h: Likewise.
55582         * lib/striconveh.c: Likewise.
55583         * lib/striconveh.h: Likewise.
55584         * lib/striconveha.c: Likewise.
55585         * lib/striconveha.h: Likewise.
55586         * lib/stripslash.c: Likewise.
55587         * lib/strnlen1.c: Likewise.
55588         * lib/strnlen1.h: Likewise.
55589         * lib/strtod.c: Likewise.
55590         * lib/strtoimax.c: Likewise.
55591         * lib/strtok_r.c: Likewise.
55592         * lib/strtol.c: Likewise.
55593         * lib/strtoll.c: Likewise.
55594         * lib/strtoul.c: Likewise.
55595         * lib/strtoull.c: Likewise.
55596         * lib/sysexits.in.h: Likewise.
55597         * lib/tempname.c: Likewise.
55598         * lib/tempname.h: Likewise.
55599         * lib/timespec.h: Likewise.
55600         * lib/tls.c: Likewise.
55601         * lib/tls.h: Likewise.
55602         * lib/tmpdir.c: Likewise.
55603         * lib/tmpdir.h: Likewise.
55604         * lib/tmpfile-safer.c: Likewise.
55605         * lib/tmpfile.c: Likewise.
55606         * lib/trigl.c: Likewise.
55607         * lib/trigl.h: Likewise.
55608         * lib/trim.c: Likewise.
55609         * lib/trim.h: Likewise.
55610         * lib/trunc.c: Likewise.
55611         * lib/truncf.c: Likewise.
55612         * lib/truncl.c: Likewise.
55613         * lib/tsearch.c: Likewise.
55614         * lib/unicodeio.c: Likewise.
55615         * lib/unicodeio.h: Likewise.
55616         * lib/unistd--.h: Likewise.
55617         * lib/unistd-safer.h: Likewise.
55618         * lib/unistdio/ulc-fprintf.c: Likewise.
55619         * lib/unistdio/ulc-vfprintf.c: Likewise.
55620         * lib/unlinkdir.c: Likewise.
55621         * lib/unlinkdir.h: Likewise.
55622         * lib/unlocked-io.h: Likewise.
55623         * lib/unsetenv.c: Likewise.
55624         * lib/userspec.c: Likewise.
55625         * lib/utime.c: Likewise.
55626         * lib/utimecmp.c: Likewise.
55627         * lib/utimecmp.h: Likewise.
55628         * lib/utimens.c: Likewise.
55629         * lib/verify.h: Likewise.
55630         * lib/verror.c: Likewise.
55631         * lib/verror.h: Likewise.
55632         * lib/version-etc-fsf.c: Likewise.
55633         * lib/version-etc.c: Likewise.
55634         * lib/version-etc.h: Likewise.
55635         * lib/vfprintf.c: Likewise.
55636         * lib/vprintf.c: Likewise.
55637         * lib/vsprintf.c: Likewise.
55638         * lib/w32spawn.h: Likewise.
55639         * lib/wait-process.c: Likewise.
55640         * lib/wait-process.h: Likewise.
55641         * lib/wcwidth.c: Likewise.
55642         * lib/write-any-file.c: Likewise.
55643         * lib/xalloc-die.c: Likewise.
55644         * lib/xalloc.h: Likewise.
55645         * lib/xasprintf.c: Likewise.
55646         * lib/xgetcwd.c: Likewise.
55647         * lib/xgetcwd.h: Likewise.
55648         * lib/xgetdomainname.c: Likewise.
55649         * lib/xgetdomainname.h: Likewise.
55650         * lib/xgethostname.c: Likewise.
55651         * lib/xmalloc.c: Likewise.
55652         * lib/xmalloca.c: Likewise.
55653         * lib/xmalloca.h: Likewise.
55654         * lib/xmemcoll.c: Likewise.
55655         * lib/xnanosleep.c: Likewise.
55656         * lib/xreadlink.c: Likewise.
55657         * lib/xreadlink.h: Likewise.
55658         * lib/xsetenv.c: Likewise.
55659         * lib/xsetenv.h: Likewise.
55660         * lib/xstriconv.c: Likewise.
55661         * lib/xstriconv.h: Likewise.
55662         * lib/xstrndup.c: Likewise.
55663         * lib/xstrndup.h: Likewise.
55664         * lib/xstrtod.c: Likewise.
55665         * lib/xstrtod.h: Likewise.
55666         * lib/xstrtol-error.c: Likewise.
55667         * lib/xstrtol.c: Likewise.
55668         * lib/xstrtol.h: Likewise.
55669         * lib/xtime.h: Likewise.
55670         * lib/xvasprintf.c: Likewise.
55671         * lib/xvasprintf.h: Likewise.
55672         * lib/yesno.c: Likewise.
55673         * lib/yesno.h: Likewise.
55674         * posix-modules: Likewise.
55675         * tests/test-alloca-opt.c: Likewise.
55676         * tests/test-arcfour.c: Likewise.
55677         * tests/test-arctwo.c: Likewise.
55678         * tests/test-argmatch.c: Likewise.
55679         * tests/test-argp-2.sh: Likewise.
55680         * tests/test-argp.c: Likewise.
55681         * tests/test-arpa_inet.c: Likewise.
55682         * tests/test-array_list.c: Likewise.
55683         * tests/test-array_oset.c: Likewise.
55684         * tests/test-atexit.c: Likewise.
55685         * tests/test-avltree_list.c: Likewise.
55686         * tests/test-avltree_oset.c: Likewise.
55687         * tests/test-avltreehash_list.c: Likewise.
55688         * tests/test-base64.c: Likewise.
55689         * tests/test-binary-io.c: Likewise.
55690         * tests/test-byteswap.c: Likewise.
55691         * tests/test-c-ctype.c: Likewise.
55692         * tests/test-c-strcasecmp.c: Likewise.
55693         * tests/test-c-strcasestr.c: Likewise.
55694         * tests/test-c-strncasecmp.c: Likewise.
55695         * tests/test-c-strstr.c: Likewise.
55696         * tests/test-canonicalize-lgpl.c: Likewise.
55697         * tests/test-canonicalize.c: Likewise.
55698         * tests/test-carray_list.c: Likewise.
55699         * tests/test-ceilf.c: Likewise.
55700         * tests/test-ceill.c: Likewise.
55701         * tests/test-count-one-bits.c: Likewise.
55702         * tests/test-crc.c: Likewise.
55703         * tests/test-dirname.c: Likewise.
55704         * tests/test-fbufmode.c: Likewise.
55705         * tests/test-fcntl.c: Likewise.
55706         * tests/test-fflush.c: Likewise.
55707         * tests/test-floorf.c: Likewise.
55708         * tests/test-floorl.c: Likewise.
55709         * tests/test-fopen.c: Likewise.
55710         * tests/test-fprintf-posix.c: Likewise.
55711         * tests/test-fprintf-posix.h: Likewise.
55712         * tests/test-fpurge.c: Likewise.
55713         * tests/test-freadable.c: Likewise.
55714         * tests/test-freadahead.c: Likewise.
55715         * tests/test-freading.c: Likewise.
55716         * tests/test-freopen.c: Likewise.
55717         * tests/test-frexp.c: Likewise.
55718         * tests/test-frexpl.c: Likewise.
55719         * tests/test-fseek.c: Likewise.
55720         * tests/test-fseeko.c: Likewise.
55721         * tests/test-fseterr.c: Likewise.
55722         * tests/test-fstrcmp.c: Likewise.
55723         * tests/test-ftell.c: Likewise.
55724         * tests/test-ftello.c: Likewise.
55725         * tests/test-fwritable.c: Likewise.
55726         * tests/test-fwriting.c: Likewise.
55727         * tests/test-getaddrinfo.c: Likewise.
55728         * tests/test-getpass.c: Likewise.
55729         * tests/test-gettimeofday.c: Likewise.
55730         * tests/test-hmac-md5.c: Likewise.
55731         * tests/test-hmac-sha1.c: Likewise.
55732         * tests/test-iconv.c: Likewise.
55733         * tests/test-iconvme.c: Likewise.
55734         * tests/test-inttypes.c: Likewise.
55735         * tests/test-isnan.c: Likewise.
55736         * tests/test-isnanf.c: Likewise.
55737         * tests/test-isnanl-nolibm.c: Likewise.
55738         * tests/test-isnanl.c: Likewise.
55739         * tests/test-isnanl.h: Likewise.
55740         * tests/test-ldexpl.c: Likewise.
55741         * tests/test-linked_list.c: Likewise.
55742         * tests/test-linkedhash_list.c: Likewise.
55743         * tests/test-locale.c: Likewise.
55744         * tests/test-localename.c: Likewise.
55745         * tests/test-lock.c: Likewise.
55746         * tests/test-lseek.c: Likewise.
55747         * tests/test-malloca.c: Likewise.
55748         * tests/test-math.c: Likewise.
55749         * tests/test-mbscasecmp.c: Likewise.
55750         * tests/test-mbscasestr1.c: Likewise.
55751         * tests/test-mbscasestr2.c: Likewise.
55752         * tests/test-mbscasestr3.c: Likewise.
55753         * tests/test-mbscasestr4.c: Likewise.
55754         * tests/test-mbschr.c: Likewise.
55755         * tests/test-mbscspn.c: Likewise.
55756         * tests/test-mbsncasecmp.c: Likewise.
55757         * tests/test-mbspbrk.c: Likewise.
55758         * tests/test-mbspcasecmp.c: Likewise.
55759         * tests/test-mbsrchr.c: Likewise.
55760         * tests/test-mbsspn.c: Likewise.
55761         * tests/test-mbsstr1.c: Likewise.
55762         * tests/test-mbsstr2.c: Likewise.
55763         * tests/test-mbsstr3.c: Likewise.
55764         * tests/test-md5.c: Likewise.
55765         * tests/test-memmem.c: Likewise.
55766         * tests/test-netinet_in.c: Likewise.
55767         * tests/test-open.c: Likewise.
55768         * tests/test-printf-frexp.c: Likewise.
55769         * tests/test-printf-frexpl.c: Likewise.
55770         * tests/test-printf-posix.c: Likewise.
55771         * tests/test-printf-posix.h: Likewise.
55772         * tests/test-rbtree_list.c: Likewise.
55773         * tests/test-rbtree_oset.c: Likewise.
55774         * tests/test-rbtreehash_list.c: Likewise.
55775         * tests/test-read-file.c: Likewise.
55776         * tests/test-rijndael.c: Likewise.
55777         * tests/test-search.c: Likewise.
55778         * tests/test-signbit.c: Likewise.
55779         * tests/test-sleep.c: Likewise.
55780         * tests/test-snprintf-posix.c: Likewise.
55781         * tests/test-snprintf-posix.h: Likewise.
55782         * tests/test-snprintf.c: Likewise.
55783         * tests/test-sprintf-posix.c: Likewise.
55784         * tests/test-sprintf-posix.h: Likewise.
55785         * tests/test-stat-time.c: Likewise.
55786         * tests/test-stdbool.c: Likewise.
55787         * tests/test-stdint.c: Likewise.
55788         * tests/test-stdio.c: Likewise.
55789         * tests/test-stdlib.c: Likewise.
55790         * tests/test-stpncpy.c: Likewise.
55791         * tests/test-strcasestr.c: Likewise.
55792         * tests/test-striconv.c: Likewise.
55793         * tests/test-striconveh.c: Likewise.
55794         * tests/test-striconveha.c: Likewise.
55795         * tests/test-string.c: Likewise.
55796         * tests/test-sys_select.c: Likewise.
55797         * tests/test-sys_socket.c: Likewise.
55798         * tests/test-sys_stat.c: Likewise.
55799         * tests/test-sys_time.c: Likewise.
55800         * tests/test-sysexits.c: Likewise.
55801         * tests/test-time.c: Likewise.
55802         * tests/test-tls.c: Likewise.
55803         * tests/test-trunc.c: Likewise.
55804         * tests/test-truncf.c: Likewise.
55805         * tests/test-truncl.c: Likewise.
55806         * tests/test-unistd.c: Likewise.
55807         * tests/test-vasnprintf-posix.c: Likewise.
55808         * tests/test-vasnprintf-posix2.c: Likewise.
55809         * tests/test-vasnprintf.c: Likewise.
55810         * tests/test-vasprintf-posix.c: Likewise.
55811         * tests/test-vasprintf.c: Likewise.
55812         * tests/test-verify.c: Likewise.
55813         * tests/test-vfprintf-posix.c: Likewise.
55814         * tests/test-vprintf-posix.c: Likewise.
55815         * tests/test-vsnprintf-posix.c: Likewise.
55816         * tests/test-vsnprintf.c: Likewise.
55817         * tests/test-vsprintf-posix.c: Likewise.
55818         * tests/test-wchar.c: Likewise.
55819         * tests/test-wctype.c: Likewise.
55820         * tests/test-wcwidth.c: Likewise.
55821         * tests/test-xstrtol.c: Likewise.
55822         * tests/test-xvasprintf.c: Likewise.
55823         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
55824         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
55825         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55826         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55827         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55828         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
55829         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55830         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55831         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55832         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
55833         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55834         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55835         * tests/uniname/test-uninames.c: Likewise.
55836         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
55837         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
55838         * tests/unistdio/test-u16-printf1.h: Likewise.
55839         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
55840         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
55841         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
55842         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
55843         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
55844         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
55845         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
55846         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
55847         * tests/unistdio/test-u32-printf1.h: Likewise.
55848         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
55849         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
55850         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
55851         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
55852         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
55853         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
55854         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
55855         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
55856         * tests/unistdio/test-u8-printf1.h: Likewise.
55857         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
55858         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
55859         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
55860         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
55861         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
55862         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
55863         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
55864         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
55865         * tests/unistdio/test-ulc-printf1.h: Likewise.
55866         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
55867         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
55868         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
55869         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
55870         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
55871         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
55872         * tests/uniwidth/test-u16-strwidth.c: Likewise.
55873         * tests/uniwidth/test-u16-width.c: Likewise.
55874         * tests/uniwidth/test-u32-strwidth.c: Likewise.
55875         * tests/uniwidth/test-u32-width.c: Likewise.
55876         * tests/uniwidth/test-u8-strwidth.c: Likewise.
55877         * tests/uniwidth/test-u8-width.c: Likewise.
55878         * tests/uniwidth/test-uc_width.c: Likewise.
55879         * config/srclist-update: Likewise.
55880         (fixlicense): Update to GPLv3+.
55881
55882         Change copyright notice from LGPLv2.1+ to LGPLv3+.
55883         * tests/test-tsearch.c: Change copyright notice.
55884
55885         Change copyright notice from LGPLv2.0+ to LGPLv3+.
55886         * lib/c-strcaseeq.h: Change copyright notice.
55887         * lib/streq.h: Likewise.
55888         * lib/uniconv.h: Likewise.
55889         * lib/uniconv/u-conv-from-enc.h: Likewise.
55890         * lib/uniconv/u-conv-to-enc.h: Likewise.
55891         * lib/uniconv/u-strconv-from-enc.h: Likewise.
55892         * lib/uniconv/u-strconv-to-enc.h: Likewise.
55893         * lib/uniconv/u16-conv-from-enc.c: Likewise.
55894         * lib/uniconv/u16-conv-to-enc.c: Likewise.
55895         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
55896         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
55897         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
55898         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
55899         * lib/uniconv/u32-conv-from-enc.c: Likewise.
55900         * lib/uniconv/u32-conv-to-enc.c: Likewise.
55901         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
55902         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
55903         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
55904         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
55905         * lib/uniconv/u8-conv-from-enc.c: Likewise.
55906         * lib/uniconv/u8-conv-to-enc.c: Likewise.
55907         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
55908         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
55909         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
55910         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
55911         * lib/uniname.h: Likewise.
55912         * lib/uniname/uniname.c: Likewise.
55913         * lib/unistdio.h: Likewise.
55914         * lib/unistdio/u-asnprintf.h: Likewise.
55915         * lib/unistdio/u-asprintf.h: Likewise.
55916         * lib/unistdio/u-printf-args.c: Likewise.
55917         * lib/unistdio/u-printf-args.h: Likewise.
55918         * lib/unistdio/u-printf-parse.h: Likewise.
55919         * lib/unistdio/u-snprintf.h: Likewise.
55920         * lib/unistdio/u-sprintf.h: Likewise.
55921         * lib/unistdio/u-vasprintf.h: Likewise.
55922         * lib/unistdio/u-vsnprintf.h: Likewise.
55923         * lib/unistdio/u-vsprintf.h: Likewise.
55924         * lib/unistdio/u16-asnprintf.c: Likewise.
55925         * lib/unistdio/u16-asprintf.c: Likewise.
55926         * lib/unistdio/u16-printf-parse.c: Likewise.
55927         * lib/unistdio/u16-snprintf.c: Likewise.
55928         * lib/unistdio/u16-sprintf.c: Likewise.
55929         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
55930         * lib/unistdio/u16-u16-asprintf.c: Likewise.
55931         * lib/unistdio/u16-u16-snprintf.c: Likewise.
55932         * lib/unistdio/u16-u16-sprintf.c: Likewise.
55933         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
55934         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
55935         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
55936         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
55937         * lib/unistdio/u16-vasnprintf.c: Likewise.
55938         * lib/unistdio/u16-vasprintf.c: Likewise.
55939         * lib/unistdio/u16-vsnprintf.c: Likewise.
55940         * lib/unistdio/u16-vsprintf.c: Likewise.
55941         * lib/unistdio/u32-asnprintf.c: Likewise.
55942         * lib/unistdio/u32-asprintf.c: Likewise.
55943         * lib/unistdio/u32-printf-parse.c: Likewise.
55944         * lib/unistdio/u32-snprintf.c: Likewise.
55945         * lib/unistdio/u32-sprintf.c: Likewise.
55946         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
55947         * lib/unistdio/u32-u32-asprintf.c: Likewise.
55948         * lib/unistdio/u32-u32-snprintf.c: Likewise.
55949         * lib/unistdio/u32-u32-sprintf.c: Likewise.
55950         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
55951         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
55952         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
55953         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
55954         * lib/unistdio/u32-vasnprintf.c: Likewise.
55955         * lib/unistdio/u32-vasprintf.c: Likewise.
55956         * lib/unistdio/u32-vsnprintf.c: Likewise.
55957         * lib/unistdio/u32-vsprintf.c: Likewise.
55958         * lib/unistdio/u8-asnprintf.c: Likewise.
55959         * lib/unistdio/u8-asprintf.c: Likewise.
55960         * lib/unistdio/u8-printf-parse.c: Likewise.
55961         * lib/unistdio/u8-snprintf.c: Likewise.
55962         * lib/unistdio/u8-sprintf.c: Likewise.
55963         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
55964         * lib/unistdio/u8-u8-asprintf.c: Likewise.
55965         * lib/unistdio/u8-u8-snprintf.c: Likewise.
55966         * lib/unistdio/u8-u8-sprintf.c: Likewise.
55967         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
55968         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
55969         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
55970         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
55971         * lib/unistdio/u8-vasnprintf.c: Likewise.
55972         * lib/unistdio/u8-vasprintf.c: Likewise.
55973         * lib/unistdio/u8-vsnprintf.c: Likewise.
55974         * lib/unistdio/u8-vsprintf.c: Likewise.
55975         * lib/unistdio/ulc-asnprintf.c: Likewise.
55976         * lib/unistdio/ulc-asprintf.c: Likewise.
55977         * lib/unistdio/ulc-printf-parse.c: Likewise.
55978         * lib/unistdio/ulc-snprintf.c: Likewise.
55979         * lib/unistdio/ulc-sprintf.c: Likewise.
55980         * lib/unistdio/ulc-vasnprintf.c: Likewise.
55981         * lib/unistdio/ulc-vasprintf.c: Likewise.
55982         * lib/unistdio/ulc-vsnprintf.c: Likewise.
55983         * lib/unistdio/ulc-vsprintf.c: Likewise.
55984         * lib/unistr.h: Likewise.
55985         * lib/unistr/u-cpy-alloc.h: Likewise.
55986         * lib/unistr/u-cpy.h: Likewise.
55987         * lib/unistr/u-endswith.h: Likewise.
55988         * lib/unistr/u-move.h: Likewise.
55989         * lib/unistr/u-set.h: Likewise.
55990         * lib/unistr/u-startswith.h: Likewise.
55991         * lib/unistr/u-stpcpy.h: Likewise.
55992         * lib/unistr/u-stpncpy.h: Likewise.
55993         * lib/unistr/u-strcat.h: Likewise.
55994         * lib/unistr/u-strcpy.h: Likewise.
55995         * lib/unistr/u-strcspn.h: Likewise.
55996         * lib/unistr/u-strdup.h: Likewise.
55997         * lib/unistr/u-strlen.h: Likewise.
55998         * lib/unistr/u-strncat.h: Likewise.
55999         * lib/unistr/u-strncpy.h: Likewise.
56000         * lib/unistr/u-strnlen.h: Likewise.
56001         * lib/unistr/u-strpbrk.h: Likewise.
56002         * lib/unistr/u-strspn.h: Likewise.
56003         * lib/unistr/u-strstr.h: Likewise.
56004         * lib/unistr/u-strtok.h: Likewise.
56005         * lib/unistr/u16-check.c: Likewise.
56006         * lib/unistr/u16-chr.c: Likewise.
56007         * lib/unistr/u16-cmp.c: Likewise.
56008         * lib/unistr/u16-cpy-alloc.c: Likewise.
56009         * lib/unistr/u16-cpy.c: Likewise.
56010         * lib/unistr/u16-endswith.c: Likewise.
56011         * lib/unistr/u16-mblen.c: Likewise.
56012         * lib/unistr/u16-mbsnlen.c: Likewise.
56013         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56014         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56015         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56016         * lib/unistr/u16-mbtouc.c: Likewise.
56017         * lib/unistr/u16-mbtoucr.c: Likewise.
56018         * lib/unistr/u16-move.c: Likewise.
56019         * lib/unistr/u16-next.c: Likewise.
56020         * lib/unistr/u16-prev.c: Likewise.
56021         * lib/unistr/u16-set.c: Likewise.
56022         * lib/unistr/u16-startswith.c: Likewise.
56023         * lib/unistr/u16-stpcpy.c: Likewise.
56024         * lib/unistr/u16-stpncpy.c: Likewise.
56025         * lib/unistr/u16-strcat.c: Likewise.
56026         * lib/unistr/u16-strchr.c: Likewise.
56027         * lib/unistr/u16-strcmp.c: Likewise.
56028         * lib/unistr/u16-strcpy.c: Likewise.
56029         * lib/unistr/u16-strcspn.c: Likewise.
56030         * lib/unistr/u16-strdup.c: Likewise.
56031         * lib/unistr/u16-strlen.c: Likewise.
56032         * lib/unistr/u16-strmblen.c: Likewise.
56033         * lib/unistr/u16-strmbtouc.c: Likewise.
56034         * lib/unistr/u16-strncat.c: Likewise.
56035         * lib/unistr/u16-strncmp.c: Likewise.
56036         * lib/unistr/u16-strncpy.c: Likewise.
56037         * lib/unistr/u16-strnlen.c: Likewise.
56038         * lib/unistr/u16-strpbrk.c: Likewise.
56039         * lib/unistr/u16-strrchr.c: Likewise.
56040         * lib/unistr/u16-strspn.c: Likewise.
56041         * lib/unistr/u16-strstr.c: Likewise.
56042         * lib/unistr/u16-strtok.c: Likewise.
56043         * lib/unistr/u16-to-u32.c: Likewise.
56044         * lib/unistr/u16-to-u8.c: Likewise.
56045         * lib/unistr/u16-uctomb-aux.c: Likewise.
56046         * lib/unistr/u16-uctomb.c: Likewise.
56047         * lib/unistr/u32-check.c: Likewise.
56048         * lib/unistr/u32-chr.c: Likewise.
56049         * lib/unistr/u32-cmp.c: Likewise.
56050         * lib/unistr/u32-cpy-alloc.c: Likewise.
56051         * lib/unistr/u32-cpy.c: Likewise.
56052         * lib/unistr/u32-endswith.c: Likewise.
56053         * lib/unistr/u32-mblen.c: Likewise.
56054         * lib/unistr/u32-mbsnlen.c: Likewise.
56055         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56056         * lib/unistr/u32-mbtouc.c: Likewise.
56057         * lib/unistr/u32-mbtoucr.c: Likewise.
56058         * lib/unistr/u32-move.c: Likewise.
56059         * lib/unistr/u32-next.c: Likewise.
56060         * lib/unistr/u32-prev.c: Likewise.
56061         * lib/unistr/u32-set.c: Likewise.
56062         * lib/unistr/u32-startswith.c: Likewise.
56063         * lib/unistr/u32-stpcpy.c: Likewise.
56064         * lib/unistr/u32-stpncpy.c: Likewise.
56065         * lib/unistr/u32-strcat.c: Likewise.
56066         * lib/unistr/u32-strchr.c: Likewise.
56067         * lib/unistr/u32-strcmp.c: Likewise.
56068         * lib/unistr/u32-strcpy.c: Likewise.
56069         * lib/unistr/u32-strcspn.c: Likewise.
56070         * lib/unistr/u32-strdup.c: Likewise.
56071         * lib/unistr/u32-strlen.c: Likewise.
56072         * lib/unistr/u32-strmblen.c: Likewise.
56073         * lib/unistr/u32-strmbtouc.c: Likewise.
56074         * lib/unistr/u32-strncat.c: Likewise.
56075         * lib/unistr/u32-strncmp.c: Likewise.
56076         * lib/unistr/u32-strncpy.c: Likewise.
56077         * lib/unistr/u32-strnlen.c: Likewise.
56078         * lib/unistr/u32-strpbrk.c: Likewise.
56079         * lib/unistr/u32-strrchr.c: Likewise.
56080         * lib/unistr/u32-strspn.c: Likewise.
56081         * lib/unistr/u32-strstr.c: Likewise.
56082         * lib/unistr/u32-strtok.c: Likewise.
56083         * lib/unistr/u32-to-u16.c: Likewise.
56084         * lib/unistr/u32-to-u8.c: Likewise.
56085         * lib/unistr/u32-uctomb.c: Likewise.
56086         * lib/unistr/u8-check.c: Likewise.
56087         * lib/unistr/u8-chr.c: Likewise.
56088         * lib/unistr/u8-cmp.c: Likewise.
56089         * lib/unistr/u8-cpy-alloc.c: Likewise.
56090         * lib/unistr/u8-cpy.c: Likewise.
56091         * lib/unistr/u8-endswith.c: Likewise.
56092         * lib/unistr/u8-mblen.c: Likewise.
56093         * lib/unistr/u8-mbsnlen.c: Likewise.
56094         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56095         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56096         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56097         * lib/unistr/u8-mbtouc.c: Likewise.
56098         * lib/unistr/u8-mbtoucr.c: Likewise.
56099         * lib/unistr/u8-move.c: Likewise.
56100         * lib/unistr/u8-next.c: Likewise.
56101         * lib/unistr/u8-prev.c: Likewise.
56102         * lib/unistr/u8-set.c: Likewise.
56103         * lib/unistr/u8-startswith.c: Likewise.
56104         * lib/unistr/u8-stpcpy.c: Likewise.
56105         * lib/unistr/u8-stpncpy.c: Likewise.
56106         * lib/unistr/u8-strcat.c: Likewise.
56107         * lib/unistr/u8-strchr.c: Likewise.
56108         * lib/unistr/u8-strcmp.c: Likewise.
56109         * lib/unistr/u8-strcpy.c: Likewise.
56110         * lib/unistr/u8-strcspn.c: Likewise.
56111         * lib/unistr/u8-strdup.c: Likewise.
56112         * lib/unistr/u8-strlen.c: Likewise.
56113         * lib/unistr/u8-strmblen.c: Likewise.
56114         * lib/unistr/u8-strmbtouc.c: Likewise.
56115         * lib/unistr/u8-strncat.c: Likewise.
56116         * lib/unistr/u8-strncmp.c: Likewise.
56117         * lib/unistr/u8-strncpy.c: Likewise.
56118         * lib/unistr/u8-strnlen.c: Likewise.
56119         * lib/unistr/u8-strpbrk.c: Likewise.
56120         * lib/unistr/u8-strrchr.c: Likewise.
56121         * lib/unistr/u8-strspn.c: Likewise.
56122         * lib/unistr/u8-strstr.c: Likewise.
56123         * lib/unistr/u8-strtok.c: Likewise.
56124         * lib/unistr/u8-to-u16.c: Likewise.
56125         * lib/unistr/u8-to-u32.c: Likewise.
56126         * lib/unistr/u8-uctomb-aux.c: Likewise.
56127         * lib/unistr/u8-uctomb.c: Likewise.
56128         * lib/unitypes.h: Likewise.
56129         * lib/uniwidth.h: Likewise.
56130         * lib/uniwidth/cjk.h: Likewise.
56131         * lib/uniwidth/u16-strwidth.c: Likewise.
56132         * lib/uniwidth/u16-width.c: Likewise.
56133         * lib/uniwidth/u32-strwidth.c: Likewise.
56134         * lib/uniwidth/u32-width.c: Likewise.
56135         * lib/uniwidth/u8-strwidth.c: Likewise.
56136         * lib/uniwidth/u8-width.c: Likewise.
56137         * lib/uniwidth/width.c: Likewise.
56138
56139 2007-10-07  Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56142         The file is still under LGPL (see modules/inttypes).
56143
56144 2007-10-06  Bruno Haible  <bruno@clisp.org>
56145
56146         * modules/trunc (Dependencies): Add 'extensions'.
56147         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56148         Reported by Ben Pfaff <blp@gnu.org>.
56149
56150 2007-10-06  Bruno Haible  <bruno@clisp.org>
56151
56152         * modules/freopen-tests: New file.
56153         * tests/test-freopen.c: New file.
56154
56155         * modules/fopen-tests: New file.
56156         * tests/test-fopen.c: New file.
56157
56158         * modules/fopen: New file.
56159         * lib/fopen.c: New file.
56160         * m4/fopen.m4: New file.
56161         * modules/freopen: New file.
56162         * lib/freopen.c: New file.
56163         * m4/freopen.m4: New file.
56164         * lib/stdio.in.h (fopen, freopen): New declarations.
56165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56166         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56167         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56168         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56169         * doc/functions/fopen.texi: Mention the 'fopen' module.
56170         * doc/functions/freopen.texi: Mention the 'freopen' module.
56171
56172 2007-10-06  Bruno Haible  <bruno@clisp.org>
56173
56174         * modules/open-tests: New file.
56175         * tests/test-open.c: New file.
56176
56177         * modules/open: New file.
56178         * lib/open.c: New file.
56179         * m4/open.m4: New file.
56180         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56181         lib/open.c does.
56182         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56183         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56184         macros.
56185         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56186         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56187         REPLACE_OPEN.
56188         * doc/functions/open.texi: Mention the 'open' module.
56189
56190 2007-10-04  Bruno Haible  <bruno@clisp.org>
56191
56192         * modules/ceill-tests: New file.
56193         * tests/test-ceill.c: New file.
56194
56195         * modules/ceill: New file.
56196         * lib/ceill.c: Replace entire file.
56197         * m4/ceill.m4: New file.
56198         * lib/math.in.h (ceill): Replace declaration.
56199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56200         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56201         * doc/functions/ceill.texi: Mention the 'ceill' module.
56202         * modules/mathl (Files): Remove lib/ceill.c.
56203         (Depends-on): Add ceill.
56204
56205 2007-10-04  Bruno Haible  <bruno@clisp.org>
56206
56207         * modules/ceilf-tests: New file.
56208         * tests/test-ceilf.c: New file.
56209
56210         * modules/ceilf: New file.
56211         * lib/ceil.c: New file.
56212         * lib/ceilf.c: New file.
56213         * m4/ceilf.m4: New file.
56214         * lib/math.in.h (ceilf): New declaration.
56215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56216         HAVE_DECL_CEILF.
56217         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56218         HAVE_DECL_CEILF.
56219         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56220
56221 2007-10-04  Bruno Haible  <bruno@clisp.org>
56222
56223         * modules/floorl-tests: New file.
56224         * tests/test-floorl.c: New file.
56225
56226         * modules/floorl: New file.
56227         * lib/floorl.c: Replace entire file.
56228         * m4/floorl.m4: New file.
56229         * lib/math.in.h (floorl): Replace declaration.
56230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56231         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56232         * doc/functions/floorl.texi: Mention the 'floorl' module.
56233         * modules/mathl (Files): Remove lib/floorl.c.
56234         (Depends-on): Add floorl.
56235
56236 2007-10-04  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/floorf-tests: New file.
56239         * tests/test-floorf.c: New file.
56240
56241         * modules/floorf: New file.
56242         * lib/floor.c: New file.
56243         * lib/floorf.c: New file.
56244         * m4/floorf.m4: New file.
56245         * lib/math.in.h (floorf): New declaration.
56246         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56247         HAVE_DECL_FLOORF.
56248         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56249         HAVE_DECL_FLOORF.
56250         * doc/functions/floorf.texi: Mention the 'floorf' module.
56251
56252 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56253             Bruno Haible  <bruno@clisp.org>
56254
56255         Advertise for the Git server instead of the CVS server.
56256         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56257         repository instead of the CVS one.
56258         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56259         about all VCS systems generically.
56260         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56261
56262 2007-10-04  Bruno Haible  <bruno@clisp.org>
56263
56264         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56265         means.
56266         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56267
56268 2007-10-04  Bruno Haible  <bruno@clisp.org>
56269
56270         * modules/truncl-tests: New file.
56271         * tests/test-truncl.c: New file.
56272
56273         * modules/truncl: New file.
56274         * lib/truncl.c: New file.
56275         * m4/truncl.m4: New file.
56276         * lib/math.in.h (truncl): New declaration.
56277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56278         HAVE_DECL_TRUNCL.
56279         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56280         HAVE_DECL_TRUNCL.
56281         * doc/functions/truncl.texi: Mention the 'truncl' module.
56282
56283 2007-10-04  Bruno Haible  <bruno@clisp.org>
56284
56285         * modules/truncf-tests: New file.
56286         * tests/test-truncf.c: New file.
56287
56288         * modules/truncf: New file.
56289         * lib/trunc.c: Make paramerizable through USE_* macros.
56290         * lib/truncf.c: New file.
56291         * m4/truncf.m4: New file.
56292         * lib/math.in.h (truncf): New declaration.
56293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56294         HAVE_DECL_TRUNCF.
56295         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56296         HAVE_DECL_TRUNCF.
56297         * doc/functions/truncf.texi: Mention the 'truncf' module.
56298
56299 2007-10-03  Bruno Haible  <bruno@clisp.org>
56300
56301         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56302         augmentation also for tests modules.
56303         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56304         * modules/atexit-tests (Makefile.am): Likewise.
56305         * modules/binary-io-tests (Makefile.am): Likewise.
56306         * modules/c-strcase-tests (Makefile.am): Likewise.
56307         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56308         * modules/canonicalize-tests (Makefile.am): Likewise.
56309         * modules/closein-tests (Makefile.am): Likewise.
56310         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56311         * modules/freadahead-tests (Makefile.am): Likewise.
56312         * modules/fseek-tests (Makefile.am): Likewise.
56313         * modules/fseeko-tests (Makefile.am): Likewise.
56314         * modules/ftell-tests (Makefile.am): Likewise.
56315         * modules/ftello-tests (Makefile.am): Likewise.
56316         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56317         * modules/isnanl-tests (Makefile.am): Likewise.
56318         * modules/lseek-tests (Makefile.am): Likewise.
56319         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56320         * modules/mbscasestr-tests (Makefile.am): Likewise.
56321         * modules/mbschr-tests (Makefile.am): Likewise.
56322         * modules/mbscspn-tests (Makefile.am): Likewise.
56323         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56324         * modules/mbspbrk-tests (Makefile.am): Likewise.
56325         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56326         * modules/mbsrchr-tests (Makefile.am): Likewise.
56327         * modules/mbsspn-tests (Makefile.am): Likewise.
56328         * modules/mbsstr-tests (Makefile.am): Likewise.
56329         * modules/printf-posix-tests (Makefile.am): Likewise.
56330         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56331         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56332         * modules/tsearch-tests (Makefile.am): Likewise.
56333         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56334         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56335         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56336         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56337         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56338         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56339         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56340         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56341         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56342         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56343         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56344         * modules/xstrtol-tests (Makefile.am): Likewise.
56345         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56346         * modules/yesno-tests (Makefile.am): Likewise.
56347
56348 2007-10-03  Bruno Haible  <bruno@clisp.org>
56349
56350         * modules/trunc-tests: New file.
56351         * tests/test-trunc.c: New file.
56352
56353         * modules/trunc: New file.
56354         * lib/trunc.c: New file.
56355         * m4/trunc.m4: New file.
56356         * lib/math.in.h (trunc): New declaration.
56357         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56358         HAVE_DECL_TRUNC.
56359         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56360         HAVE_DECL_TRUNC.
56361         * doc/functions/trunc.texi: Mention the 'trunc' module.
56362
56363 2007-10-03  Bruno Haible  <bruno@clisp.org>
56364
56365         * tests/test-fpending.c: New file, mostly copied
56366         from coreutils/lib/t-fpending.c.
56367         * modules/fpending-tests: New file.
56368
56369 2007-10-03  Bruno Haible  <bruno@clisp.org>
56370
56371         Port the stdio extensions to QNX (untested).
56372         * lib/fseterr.c (fseterr): Add support for QNX.
56373         * lib/fbufmode.c (fbufmode): Likewise.
56374         * lib/freadable.c (freadable): Likewise.
56375         * lib/fwritable.c (fwritable): Likewise.
56376         * lib/freading.c (freading): Likewise.
56377         * lib/fwriting.c (fwriting): Likewise.
56378         * lib/freadahead.c (freadahed): Likewise.
56379         * lib/fpurge.c (fpurge): Likewise.
56380         * lib/fseeko.c (rpl_fseeko): Likewise.
56381
56382 2007-10-03  Bruno Haible  <bruno@clisp.org>
56383             Jim Meyering  <jim@meyering.net>
56384             Eric Blake  <ebb9@byu.net>
56385
56386         * doc/relocatable.texi: Use @command instead of @program.
56387
56388 2007-10-02  Jim Meyering  <jim@meyering.net>
56389
56390         Perform one more "_.h" -> ".in.h" substitution.
56391         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56392         instead of unistd_.h here, too.
56393
56394 2007-10-01  Bruno Haible  <bruno@clisp.org>
56395
56396         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56397         Needed for the alloca-opt module.
56398
56399 2007-09-30  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56402         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56403         alloca_.h.
56404         * lib/argz.in.h: Renamed from lib/argz_.h.
56405         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56406         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56407         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56408         byteswap_.h.
56409         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56410         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56411         dirent_.h.
56412         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56413         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56414         fcntl_.h.
56415         * lib/float.in.h: Renamed from lib/float_.h.
56416         * modules/float (Files, Makefile.am): Use float.in.h instead of
56417         float_.h.
56418         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56419         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56420         fnmatch_.h.
56421         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56422         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56423         getopt_.h.
56424         * lib/glob.in.h: Renamed from lib/glob_.h.
56425         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56426         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56427         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56428         iconv_.h.
56429         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56430         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56431         inttypes_.h.
56432         * lib/locale.in.h: Renamed from lib/locale_.h.
56433         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56434         locale_.h.
56435         * lib/math.in.h: Renamed from lib/math_.h.
56436         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56437         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56438         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56439         of netinet_in_.h. Add dependency.
56440         * lib/poll.in.h: Renamed from lib/poll_.h.
56441         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56442         * lib/search.in.h: Renamed from lib/search_.h.
56443         * modules/search (Files, Makefile.am): Use search.in.h instead of
56444         search_.h.
56445         * lib/signal.in.h: Renamed from lib/signal_.h.
56446         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
56447         _signal.h.
56448         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
56449         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
56450         stdbool_.h.
56451         * lib/stdint.in.h: Renamed from lib/stdint_.h.
56452         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
56453         stdint_.h.
56454         * lib/stdio.in.h: Renamed from lib/stdio_.h.
56455         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
56456         stdio_.h.
56457         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
56458         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
56459         stdlib_.h.
56460         * lib/string.in.h: Renamed from lib/string_.h.
56461         * modules/string (Files, Makefile.am): Use string.in.h instead of
56462         string_.h.
56463         * doc/gnulib-tool.texi (Initial import): Update.
56464         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
56465         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
56466         of sys_select_.h. Add dependency.
56467         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
56468         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
56469         of sys_socket_.h.
56470         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
56471         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
56472         sys_stat_.h.
56473         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
56474         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
56475         sys_time_.h.
56476         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
56477         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
56478         sysexits_.h.
56479         * lib/time.in.h: Renamed from lib/time_.h.
56480         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
56481         * lib/unistd.in.h: Renamed from lib/unistd_.h.
56482         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
56483         unistd_.h.
56484         * lib/wchar.in.h: Renamed from lib/wchar_.h.
56485         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
56486         wchar_.h.
56487         * lib/wctype.in.h: Renamed from lib/wctype_.h.
56488         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
56489         wctype_.h.
56490         * build-aux/bootstrap (slurp): Update.
56491         * lib/.cppi-disable: Update.
56492
56493 2007-09-30  Bruno Haible  <bruno@clisp.org>
56494
56495         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
56496         Needed on BeOS.
56497
56498 2007-09-30  Bruno Haible  <bruno@clisp.org>
56499
56500         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
56501
56502 2007-09-29  Bruno Haible  <bruno@clisp.org>
56503
56504         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
56505
56506 2007-09-29  Bruno Haible  <bruno@clisp.org>
56507
56508         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
56509         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
56510         * build-aux/install-reloc: Compile also areadlink.c.
56511         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
56512
56513 2007-09-29  Bruno Haible  <bruno@clisp.org>
56514
56515         * gnulib-tool (func_emit_initmacro_done): Indentation.
56516
56517 2007-09-29  Bruno Haible  <bruno@clisp.org>
56518
56519         * README: Add CVS checkout update instructions.
56520         Info from Bob Proulx <bob@proulx.com>.
56521
56522 2007-09-28  Eric Blake  <ebb9@byu.net>
56523
56524         Provide move-if-change.
56525         * build-aux/move-if-change: New file, based on best practice
56526         rather than any canonical upstream location.
56527
56528 2007-09-28  Jim Meyering  <jim@meyering.net>
56529
56530         Fix canonicalize loop-detection corner case.
56531         Do not attempt to stat the symlink values stored via seen_triple.
56532         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
56533         on linux-2.6.18, (but not 2.6.22).
56534         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
56535         triple_compare.  The former compares dev,ino,filename, while the latter
56536         would actually stat dirname(filename) when dev and ino were equal.
56537         * lib/hash-triple.c: Install <string.h>.
56538         (STREQ): Define.
56539         (triple_compare_ino_str): New function.
56540         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
56541
56542 2007-09-28  Eric Blake  <ebb9@byu.net>
56543
56544         Enforce that AC_REPLACE_FUNCS files exist.
56545         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
56546         override check for typos.
56547
56548         Fix test-closein on Solaris 10.
56549         * tests/test-closein.c (main): Don't assume stdin can be inherited
56550         closed on all systems.
56551         * tests/test-closein.sh: Likewise.
56552         Reported by Piotr Tarnowski.
56553
56554 2007-09-28  Jim Meyering  <jim@meyering.net>
56555
56556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
56557
56558 2007-09-27  Jim Meyering  <jim@meyering.net>
56559
56560         canonicalize: Avoid a false-positive cycle failure.
56561         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
56562         Sort.  Remove cycle-check.
56563         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
56564         not cycle-check.h.
56565         (seen_triple): New function.
56566         (canonicalize_filename_mode): Use it instead of cycle-check.
56567         * tests/test-canonicalize.c: Add a test for this bug.
56568         * tests/test-canonicalize.sh: Set up and run the test.
56569
56570         New module, file-set, from coreutils.
56571         * modules/file-set: Define it.
56572         * lib/file-set.c, lib/file-set.h: Implement.
56573
56574         New module, hash-triple, from coreutils.
56575         * modules/hash-triple: Define it.
56576         * lib/hash-triple.c, lib/hash-triple.h: Implement.
56577
56578 2007-09-25  Eric Blake  <ebb9@byu.net>
56579
56580         Fix strerror on Interix.
56581         * lib/string_.h (strerror): Declare replacement.
56582         * doc/functions/strerror.texi (strerror): Document the Interix
56583         shortcoming.
56584         * modules/string (Makefile.am): Support new hooks.
56585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
56586         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
56587         gl_FUNC_STRERROR_SEPARATE.
56588         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
56589         * lib/strerror.c (rpl_strerror): Provide replacement.
56590         * modules/strerror (Depends-on): Add string.
56591         (configure.ac): Detect use of module.
56592         * tests/test-strerror.c: New file.
56593         * modules/strerror-tests: New test module.
56594         * modules/argp (Depends-on): Add strerror.
56595         * modules/error (Depends-on): Likewise.
56596         Reported by Martin Koeppe.
56597
56598 2007-09-24  Bruno Haible  <bruno@clisp.org>
56599
56600         * README: Update git instructions.
56601
56602 2007-09-24  Eric Blake  <ebb9@byu.net>
56603
56604         Revert fpending breakage from 2007-09-08.
56605         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
56606         __fpending.c.
56607
56608 2007-09-24  Jim Meyering  <jim@meyering.net>
56609
56610         filenamecat.c: Add a test.
56611         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
56612         showing how the function works when DIR is the empty string.
56613
56614 2007-09-21  Simon Josefsson  <simon@josefsson.org>
56615
56616         * tests/test-canonicalize.sh: Turn on executable bit.
56617
56618 2007-09-19  Eric Blake  <ebb9@byu.net>
56619
56620         * README: Update CVS instructions.
56621
56622 2007-09-18  Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/areadlink: New file.
56625         * lib/areadlink.h (areadlink): New declaration.
56626         * lib/areadlink.c: New file, based on lib/xreadlink.c.
56627
56628 2007-09-17  Jim Meyering  <jim@meyering.net>
56629
56630         * lib/savewd.c (ESTALE) [!defined]: Define.
56631         Reported to be required on Interix by Martin Koeppe.
56632
56633 2007-09-17  Bruno Haible  <bruno@clisp.org>
56634
56635         * gnulib-tool (func_version): Use $version.
56636
56637 2007-09-16  Bruno Haible  <bruno@clisp.org>
56638
56639         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
56640         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
56641         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
56642         Reported by Greg Schafer <gschafer@zip.com.au>.
56643
56644 2007-09-15  Bruno Haible  <bruno@clisp.org>
56645
56646         * gnulib-tool (sed): Try a little harder to make bash understand the
56647         alias.
56648         Reported by Bruce Korb <bruce.korb@gmail.com>.
56649
56650 2007-09-13  Eric Blake  <ebb9@byu.net>
56651
56652         * ChangeLog: Remove conflict markers.
56653
56654 2007-09-13  Simon Josefsson  <simon@josefsson.org>
56655
56656         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
56657         Reported by Bruno Haible <bruno@clisp.org>.
56658
56659 2007-09-12  Bruno Haible  <bruno@clisp.org>
56660
56661         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
56662         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
56663         is not defined.
56664
56665 2007-09-12  Eric Blake  <ebb9@byu.net>
56666
56667         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
56668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
56669         Autoconf definition.
56670         * modules/euidaccess (Depends-on): Add extensions, for
56671         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
56672         * modules/fnmatch (Depends-on): Likewise.
56673         * modules/getaddrinfo (Depends-on): Likewise.
56674         * modules/getdelim (Depends-on): Likewise.
56675         * modules/getline (Depends-on): Likewise.
56676         * modules/getsubopt (Depends-on): Likewise.
56677         * modules/gettext (Depends-on): Likewise.
56678         * modules/group-member (Depends-on): Likewise.
56679         * modules/mbchar (Depends-on): Likewise.
56680         * modules/memmem (Depends-on): Likewise.
56681         * modules/mempcpy (Depends-on): Likewise.
56682         * modules/memrchr (Depends-on): Likewise.
56683         * modules/pagealign_alloc (Depends-on): Likewise.
56684         * modules/readutmp (Depends-on): Likewise.
56685         * modules/stpcpy (Depends-on): Likewise.
56686         * modules/stpncpy (Depends-on): Likewise.
56687         * modules/strchrnul (Depends-on): Likewise.
56688         * modules/strndup (Depends-on): Likewise.
56689         * modules/strsep (Depends-on): Likewise.
56690         * modules/strverscmp (Depends-on): Likewise.
56691         * modules/vasprintf (Depends-on): Likewise.
56692         * modules/wcwidth (Depends-on): Likewise.
56693         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
56694         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
56695         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
56696         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
56697         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
56698         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
56699         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
56700         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
56701         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
56702         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56704         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
56705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
56706         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
56707         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
56708         * m4/readutmp.m4 (gl_READUTMP): Likewise.
56709         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56710         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
56711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56712         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
56713         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56714         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
56715         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
56716         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
56717         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
56718         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56719         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
56720         so that lock.m4 can be used in gettext without extensions module.
56721
56722 2007-09-11  Bruno Haible  <bruno@clisp.org>
56723
56724         * m4/isc-posix.m4: Remove file.
56725         Suggested by Eric Blake.
56726
56727 2007-09-11  Eric Blake  <ebb9@byu.net>
56728
56729         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
56730
56731 2007-09-10  Bruno Haible  <bruno@clisp.org>
56732
56733         * posix-modules: Fix typo in error message.
56734         Reported by Matt <mkraai@beckman.com>.
56735
56736 2007-09-09  Bruno Haible  <bruno@clisp.org>
56737
56738         * doc/functions/getdelim.texi: Update list of platforms lacking the
56739         function.
56740         * doc/functions/getline.texi: Likewise.
56741
56742 2007-09-09  Jim Meyering  <jim@meyering.net>
56743
56744         * lib/hash.c (hash_initialize): Detect calloc failure.
56745         Reported by Bruno Haible.
56746
56747 2007-09-09  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
56750         malloc or realloc fails.
56751
56752 2007-09-09  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/getcwd (Depends-on): Add malloc-posix.
56755         * modules/glob (Depends-on): Likewise.
56756         * modules/putenv (Depends-on): Likewise.
56757         * modules/strdup (Depends-on): Likewise.
56758         * modules/getdelim (Depends-on): Add realloc-posix.
56759         * modules/read-file (Depends-on): Likewise.
56760
56761 2007-09-09  Bruno Haible  <bruno@clisp.org>
56762
56763         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
56764         (gl_FUNC_MALLOC_POSIX): Require it.
56765         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
56766         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
56767         * modules/realloc (Files): Add m4/malloc.m4.
56768         * modules/calloc (Files): Likewise.
56769
56770 2007-09-09  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/malloc-posix: New file.
56773         * modules/malloc (Depends-on): Add malloc-posix.
56774         * lib/malloc.c: Include errno.h.
56775         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
56776         and a POSIX-compatible malloc into a single function. Set ENOMEM
56777         when returning NULL.
56778         * m4/malloc.m4: New file.
56779         * doc/functions/malloc.texi: Mention the malloc-posix module.
56780         * lib/stdlib_.h (malloc): New declaration.
56781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56782         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
56783         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
56784         and HAVE_MALLOC_POSIX.
56785
56786 2007-09-09  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/realloc-posix: New file.
56789         * modules/realloc (Depends-on): Add realloc-posix.
56790         * lib/realloc.c: Include errno.h.
56791         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
56792         and a POSIX-compatible realloc into a single function. Set ENOMEM
56793         when returning NULL.
56794         * m4/realloc.m4: New file.
56795         * doc/functions/realloc.texi: Mention the realloc-posix module.
56796         * lib/stdlib_.h (realloc): New declaration.
56797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56798         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
56799         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
56800         and HAVE_REALLOC_POSIX.
56801
56802 2007-09-09  Bruno Haible  <bruno@clisp.org>
56803
56804         * modules/calloc-posix: New file.
56805         * modules/calloc (Depends-on): Add calloc-posix.
56806         * lib/calloc.c: Include errno.h.
56807         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
56808         and a POSIX-compatible calloc into a single function. Set ENOMEM
56809         when returning NULL.
56810         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
56811         * doc/functions/calloc.texi: Mention the calloc-posix module.
56812         * lib/stdlib_.h (calloc): New declaration.
56813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
56814         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
56815         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
56816         and HAVE_CALLOC_POSIX.
56817
56818 2007-09-09  Bruno Haible  <bruno@clisp.org>
56819
56820         Allow for modules to show an arbitrary notice.
56821         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
56822         * gnulib-tool: New option --extract-notice.
56823         (func_usage): Document it.
56824         (sed_extract_prog): Update.
56825         (func_get_notice): New function.
56826         (func_modules_notice): New function.
56827         (func_import, func_create_testdir): Invoke it.
56828         Suggested by Jim Meyering.
56829
56830 2007-09-09  Bruno Haible  <bruno@clisp.org>
56831
56832         * gnulib-tool: New options --verbose, --quiet.
56833         (func_usage): Document them.
56834         (verbose): New variable.
56835         (func_execute_command): New function.
56836         (func_import): Don't show the module list and the file list if
56837         $verbose < 0.
56838         (func_create_testdir): Likewise. Use func_execute_command.
56839         (func_create_megatestdir): Use func_execute_command.
56840
56841 2007-09-08  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (func_import): Prefer rsync over wget when available,
56844         for fetching the PO files.
56845
56846 2007-09-08  Bruno Haible  <bruno@clisp.org>
56847
56848         * posix-modules: New file. Portions copied from gnulib-tool.
56849         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
56850
56851 2007-09-08  Jim Meyering  <jim@meyering.net>
56852
56853         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
56854         * lib/fpending.h: Rename from __fpending.h.
56855         * lib/fpending.c: Rename from __fpending.c.
56856         Include "fpending.h", not "__fpending.h".
56857         * lib/__fpending.h, lib/__fpending.c: Remove files.
56858         * modules/fpending (Files): Reflect new file names.
56859         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
56860
56861 2007-09-08  Bruno Haible  <bruno@clisp.org>
56862
56863         * m4/inttypes-h.m4: Remove stub file.
56864
56865 2007-09-07  Simon Josefsson  <simon@josefsson.org>
56866
56867         * doc/headers/stdint.texi: Discuss #include_next issue.
56868
56869 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56870
56871         * build-aux/bootstrap: Remove obsolete comment about wget --help.
56872
56873 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56874
56875         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
56876         in variable name.
56877
56878 2007-09-03  Jim Meyering  <jim@meyering.net>
56879
56880         New module: git-version-gen.
56881         * modules/git-version-gen: New file.
56882
56883         Import changes from coreutils for bootstrap script.
56884
56885         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
56886
56887         bootstrap: uses rsync to download the .po files
56888         * build-aux/bootstrap (po_download_command_format): New global.
56889         (download_po_files): Use rsync.
56890         (update_po_files): Don't remove .po files after download,
56891         so future rsync runs can take advantage of the copies.
56892
56893         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
56894
56895         Solve the unnecessary-.po-file-regeneration problem once and for all.
56896         * build-aux/bootstrap (download_po_files): New function, renamed from
56897         get_translations.  Now, downloads, but doesn't update LINGUAS.
56898         (update_po_files): New function.
56899
56900         bootstrap: Ignore more.
56901         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
56902         uniwidth to e.g., lib/.gitignore.
56903         (slurp): Handle the sys_stat_.h -> sys mapping, too.
56904
56905         * build-aux/bootstrap: New setting: vc_ignore.
56906         (insert_sorted_if_absent): Create $file if absent.
56907         Adapt to new, possibly empty, list: $vc_ignore.
56908
56909         bootstrap: generate more ignorable names
56910         * build-aux/bootstrap (slurp): When generating ignorable names,
56911         also map .sin to .sed, .gperf to .c, and .y to .c.
56912
56913 2007-09-03  Jim Meyering  <jim@meyering.net>
56914
56915         * build-aux/git-version-gen: New file, from coreutils.  For details, see
56916         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
56917
56918 2007-09-02  Bruno Haible  <bruno@clisp.org>
56919
56920         Fix mis-recognition of 'mcs' on QNX 6.
56921         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
56922         output contains the string "Mono".
56923         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
56924         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
56925
56926 2007-09-01  Bruno Haible  <bruno@clisp.org>
56927
56928         Fix collision between uniwidth/* and linebreak modules.
56929         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
56930         u32_width): Remove declarations.
56931         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
56932         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
56933         streq3, streq2, streq1, streq0): Remove functions.
56934         (STREQ): Remove macro.
56935         (is_cjk_encoding): Remove function.
56936         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
56937         (uc_width, u8_width, u16_width, u32_width): Remove functions.
56938         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
56939         * NEWS: Document the change.
56940
56941 2007-09-01  Bruno Haible  <bruno@clisp.org>
56942
56943         * lib/streq.h: Add double-inclusion guard.
56944
56945 2007-09-01  Karl Berry  <karl@gnu.org>
56946
56947         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
56948
56949 2007-08-28  Jim Meyering  <jim@meyering.net>
56950
56951         Rename mreadlink_with_size to areadlink_with_size.
56952         * NEWS: Document the change.
56953         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
56954         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
56955         * lib/mreadlink.h: Rename this to...
56956         * lib/areadlink.h: ...this.
56957         * modules/mreadlink-with-size: Rename this to...
56958         * modules/areadlink-with-size: ...this.
56959         * lib/canonicalize.c: Reflect the renaming.
56960         * modules/canonicalize: Likewise.
56961
56962 2007-08-26  Bruno Haible  <bruno@clisp.org>
56963
56964         * gnulib-tool (func_import): When deciding which files to remove,
56965         consider also dangling symbolic links.
56966         Reported by Eric Blake.
56967
56968 2007-08-26  Bruno Haible  <bruno@clisp.org>
56969
56970         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
56971
56972 2007-08-23  Simon Josefsson  <simon@josefsson.org>
56973
56974         * lib/readline.c: Don't include getline.h, the prototype is now
56975         found in stdio.h.
56976
56977 2007-08-23  Jim Meyering  <jim@meyering.net>
56978
56979         Getdelim touchup.
56980         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
56981         around the funlockfile call, since funlockfile never sets errno.
56982         Don't set errno upon failed realloc.
56983
56984 2007-08-22  Eric Blake  <ebb9@byu.net>
56985
56986         Getline touchups.
56987         * lib/getdelim.c (getdelim): Revert regression that required *n to
56988         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
56989         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
56990         getdelim, rather than whether implementation is missing.
56991         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
56992         * lib/stdio_.h (getline): Also declare if replacement is
56993         required.
56994         * doc/functions/getdelim.texi: New file.
56995         * doc/functions/getline.texi: Likewise.
56996         * doc/gnulib.texi (Function Substitutes): Add new files.
56997         Reported by Bruno Haible.
56998
56999 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57000
57001         * users.txt: Add Guile.
57002
57003 2007-08-22  Eric Blake  <ebb9@byu.net>
57004
57005         * tests/test-getdelim.c (main): Use remove, not unlink.
57006         * tests/test-getline.c (main): Likewise.
57007
57008         Move getline and getdelim into stdio.h, per POSIX 200x.
57009         * modules/getline (Files): Remove getline.h.
57010         (Depends-on): Add stdio.
57011         (configure.ac): Add module indicator.
57012         * modules/getdelim (Files): Remove getdelim.h.
57013         (Depends-on): Add stdio.
57014         (configure.ac): Add module indicator.
57015         * modules/stdio (Makefile.am): Work with new indicators.
57016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57017         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57018         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57019         * lib/getdelim.h: Delete.
57020         * lib/getline.h: Delete.
57021         * lib/stdio_.h (getdelim, getline): Declare.
57022         * modules/getdelim-tests: New module.
57023         * modules/getline-tests: Likewise.
57024         * tests/test-getdelim.c: New file.
57025         * tests/test-getline.c: Likewise.
57026         * NEWS: Document the change.
57027         * lib/getline.c: Update choice of header.
57028         * lib/csharpcomp.c: Likewise.
57029         * lib/getpass.c: Likewise.
57030         * lib/javacomp.c: Likewise.
57031         * lib/javaversion.c: Likewise.
57032         * lib/yesno.c: Likewise.
57033         * lib/getdelim.c: Likewise.
57034         (getdelim): Set errno on failure, and avoid memory leak.
57035
57036 2007-08-19  Bruno Haible  <bruno@clisp.org>
57037
57038         * modules/closein (Depends-on): Add freadahead.
57039         * lib/closein.c: Include freadahead.h.
57040         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57041         is zero.
57042
57043 2007-08-19  Bruno Haible  <bruno@clisp.org>
57044
57045         * modules/freadahead-tests: New file.
57046         * tests/test-freadahead.sh: New file.
57047         * tests/test-freadahead.c: New file.
57048
57049         * modules/freadahead: New file.
57050         * lib/freadahead.h: New file.
57051         * lib/freadahead.c: New file.
57052         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57053         fbufmode, fpurge, freadable, fwritable.
57054
57055 2007-08-19  Eric Blake  <ebb9@byu.net>
57056
57057         Test yesno in combination with closein.
57058         * lib/yesno.c (yesno): Document use of stdin.
57059         * modules/yesno-tests (Files): New module.
57060         * tests/test-yesno.c (main): New file.
57061         * tests/test-yesno.sh: Likewise.
57062
57063 2007-08-19  Bruno Haible  <bruno@clisp.org>
57064
57065         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57066         * lib/fseeko.c (rpl_fseeko): Likewise.
57067         * lib/fseterr.c (fseterr): Likewise.
57068
57069 2007-08-19  Bruno Haible  <bruno@clisp.org>
57070
57071         * tests/test-lseek.c (main): Disable a test for BeOS.
57072         * doc/functions/lseek.texi: Document the BeOS bug.
57073
57074 2007-08-19  Bruno Haible  <bruno@clisp.org>
57075             Eric Blake  <ebb9@byu.net>
57076
57077         * lib/lseek.c: Include <sys/stat.h>.
57078         (rpl_lseek): Add workaround code also for Unix platforms.
57079         Needed for BeOS.
57080         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57081         * doc/functions/lseek.texi: Document BeOS definiency.
57082
57083 2007-08-18  Bruno Haible  <bruno@clisp.org>
57084
57085         * modules/fstrcmp-tests: New file.
57086         * tests/test-fstrcmp.c: New file.
57087
57088 2007-08-18  Bruno Haible  <bruno@clisp.org>
57089
57090         * modules/fstrcmp: New file, from GNU gettext with modifications.
57091         * lib/fstrcmp.h: New file, from GNU gettext.
57092         * lib/fstrcmp.c: New file, from GNU gettext.
57093         * MODULES.html.sh (String handling): Add fstrcmp.
57094
57095 2007-08-18  Bruno Haible  <bruno@clisp.org>
57096
57097         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57098         'bool'.
57099         (diag, compareseq): Remove const from the ctxt argument.
57100         (USE_HEURISTIC): Undefine at the end.
57101
57102 2007-08-18  Jim Meyering  <jim@meyering.net>
57103
57104         New file: lib/idcache.h
57105         * NEWS: Mention the addition.
57106         * modules/idcache (Files): Add lib/idcache.h
57107         * lib/idcache.c: Include "idcache.h".
57108         Don't include <sys/types.h>.
57109         Add a FIXME comment.
57110         Move file-scoped "static" declarations to the top.
57111         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57112
57113 2007-08-17  Bruno Haible  <bruno@clisp.org>
57114         and Paul Eggert  <eggert@cs.ucla.edu>
57115
57116         * MODULES.html.sh: Add diffseq.
57117         * modules/diffseq: New file.
57118         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57119         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57120
57121 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         Import changes from coreutils for bootstrap script.
57124
57125         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57126
57127         * build-aux/bootstrap (slurp): Work even in environments where
57128         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57129         current code does not slurp files whose names start with ".", and
57130         this looks like it might be a troublesome area.
57131
57132         2007-07-11  Jim Meyering  <jim@meyering.net>
57133
57134         If there's a GPL vN copyright comment, require that N == 3.
57135
57136         2007-07-08  Jim Meyering  <jim@meyering.net>
57137
57138         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57139         * build-aux/bootstrap (mam_template): Move definition out of loop.
57140
57141         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57142
57143         * build-aux/bootstrap (symlink_to_dir): Rename function from
57144         symlink_to_gnulib.  Add a directory parameter.  Update all
57145         callers.
57146         (cp_mark_as_generated): Also check for -- and link to -- files in
57147         gl/.
57148
57149         2007-07-08  Jim Meyering  <jim@meyering.net>
57150
57151         Adapt to deeper hierarchy in gnulib.
57152         * build-aux/bootstrap (symlink_to_dir): If the destination
57153         directory doesn't exist, create it. This is required at least for
57154         "lib/uniwidth/cjk.h".
57155
57156         2007-05-15  Jim Meyering  <jim@meyering.net>
57157
57158         * build-aux/bootstrap: Now that generated Makefile.am files
57159         are no longer under version control, they must be created at
57160         bootstrap time.
57161
57162 2007-08-14  Ben Pfaff  <blp@gnu.org>
57163
57164         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57165
57166 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57167
57168         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57169         given the changes below.
57170         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57171         even on hosts that have padding bits beyond the supported 64.
57172
57173 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57174
57175         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57176         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57177         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57178         depends on it.
57179         (xstrtol_error): Remove.
57180         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57181         but with a different signature.
57182         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57183         * lib/xstrtol-error.c: Include exitfail.h.
57184         (xstrtol_fatal): New function, with a different signature from the
57185         old xstrtol_error, so that the caller need not worry about passing
57186         in an exit status, or about storage management of the option argument.
57187         (xstrtol_error): Now a static function.  Redo signature to
57188         implement xstrtol_fatal.  Output the correct number of hyphens in
57189         front of the option so that the caller need not worry about
57190         storage management.
57191         (N_): New macro.
57192         (_): Remove; not used now.
57193         * modules/xstrtol: Depend on getopt.
57194         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57195         of old STRTOL_FATAL_ERROR macro.
57196         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57197         of test program.
57198         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57199         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57200
57201 2007-08-08  Eric Blake  <ebb9@byu.net>
57202
57203         * lib/xstrtol-error.c: Add missing include.
57204
57205         Move xstrtol messages into gnulib domain, when --pobase is used.
57206         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57207         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57208         * modules/xstrtol (Files): Distribute new file.
57209         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57210         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57211         * tests/test-xstrtol.c: ...into new file.
57212         * tests/test-xstrtoul.c: Also test xstrtoul.
57213         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57214         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57215         * tests/test-xstrtol.sh: Drive the tests.
57216         * tests/test-xstrtoimax.sh: Likewise.
57217         * tests/test-xstrtoumax.sh: Likewise.
57218         * modules/xstrtol-tests: New module.
57219         * modules/xstrtoimax-tests: Likewise.
57220         * modules/xstrtoumax-tests: Likewise.
57221
57222 2007-08-08  Jim Meyering  <jim@meyering.net>
57223
57224         New function: mfile_name_concat.
57225         * lib/filenamecat.c (mfile_name_concat): New function, just like
57226         file_name_concat, but return NULL upon failure rather than exiting
57227         with a diagnostic.
57228         * lib/filenamecat.h: Declare it.
57229
57230 2007-08-07  Bruno Haible  <bruno@clisp.org>
57231
57232         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57233         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57234         warning from gcc.
57235         Reported by Eric Blake.
57236
57237 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57238
57239         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57240         * modules/crypto/arcfour (License): Likewise.
57241         * modules/crypto/des-tests (License): Likewise.
57242         * modules/crypto/gc-arctwo-tests (License): Likewise.
57243         * modules/crypto/gc-des-tests (License): Likewise.
57244         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57245         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57246         * modules/crypto/gc-md2-tests (License): Likewise.
57247         * modules/crypto/gc-md4-tests (License): Likewise.
57248         * modules/crypto/gc-md5-tests (License): Likewise.
57249         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57250         * modules/crypto/gc-rijndael-tests (License): Likewise.
57251         * modules/crypto/gc-sha1-tests (License): Likewise.
57252         * modules/crypto/gc-tests (License): Likewise.
57253         * modules/crypto/hmac-md5 (License): Likewise.
57254         * modules/crypto/hmac-sha1 (License): Likewise.
57255         * modules/crypto/md2-tests (License): Likewise.
57256         * modules/crypto/md4-tests (License): Likewise.
57257         * modules/crypto/md5 (License): Likewise.
57258         * modules/crypto/rijndael (License): Likewise.
57259         * modules/crypto/sha1 (License): Likewise.
57260         * modules/memxor (License): Likewise.
57261
57262 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57263         and Bruno Haible  <bruno@clisp.org>
57264
57265         * NEWS: Describe interface changes to human, xstrtol.
57266         * lib/human.h: Include <xstrtol.h>.
57267         (human_options): Return enum strtol_error, not int.  Remove
57268         bool arg; take int * instead.
57269         * lib/human.c: Don't include "gettext.h".
57270         (_): Remove; no longer used.
57271         Don't include <xstrtol.h>, since human.h does it.
57272         (human_options): Adjust to abovementioned interface changes.
57273         Do not report error to stderr; that's now the caller's
57274         responsibility.
57275         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57276         interface change.
57277         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57278         Str, Argument_type_string.  All uses changed.  Put " argument"
57279         in diagnostics to make them clearer.  Change wording of suffix
57280         message for clarity.
57281         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57282         Argument_type_string.
57283         (STRTOL_FATAL_WARN): Remove; no longer used.
57284         * modules/human (Depends-on): Remove gettext-h.
57285
57286 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57287
57288         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57289
57290 2007-07-31  Bruno Haible  <bruno@clisp.org>
57291
57292         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57293         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57294         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57295
57296 2007-07-31  Bruno Haible  <bruno@clisp.org>
57297
57298         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57299         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57300
57301 2007-07-30  Bruno Haible  <bruno@clisp.org>
57302
57303         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57304         * modules/c-ctype (License): Likewise.
57305         * modules/c-strcase (License): Likewise.
57306         * modules/check-version (License): Likewise.
57307         * modules/iconv (License): Likewise.
57308         * modules/iconv_open (License): Likewise.
57309         * modules/read-file (License): Likewise.
57310         * modules/striconv (License): Likewise.
57311         * modules/strverscmp (License): Likewise.
57312         * modules/vasprintf (License): Likewise.
57313         * modules/crypto/des (License): Likewise.
57314         * modules/crypto/gc (License): Likewise.
57315         * modules/crypto/gc-arcfour (License): Likewise.
57316         * modules/crypto/gc-arctwo (License): Likewise.
57317         * modules/crypto/gc-des (License): Likewise.
57318         * modules/crypto/gc-hmac-md5 (License): Likewise.
57319         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57320         * modules/crypto/gc-md2 (License): Likewise.
57321         * modules/crypto/gc-md4 (License): Likewise.
57322         * modules/crypto/gc-md5 (License): Likewise.
57323         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57324         * modules/crypto/gc-random (License): Likewise.
57325         * modules/crypto/gc-rijndael (License): Likewise.
57326         * modules/crypto/gc-sha1 (License): Likewise.
57327         * modules/crypto/md2 (License): Likewise.
57328         * modules/crypto/md4 (License): Likewise.
57329
57330 2007-07-30  Jim Meyering  <jim@meyering.net>
57331
57332         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57333         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57334         it has valid stat data.  This bug would cause du not to count the
57335         sizes of inaccessible directories.
57336         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57337         in <http://bugzilla.redhat.com/250077>.
57338
57339 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57340             Bruno Haible  <bruno@clisp.org>
57341
57342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57343         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57344         #include_next, gives a diagnostic about it, but reports no error in
57345         the exit code.
57346         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57347
57348 2007-07-24  Ben Pfaff  <blp@gnu.org>
57349
57350         Improve name: "count-one-bits" is better than "popcount".
57351         * MODULES.html.sh: Update name.
57352         * lib/popcount.h: Renamed lib/count-one-bits.h.
57353         (popcount): Renamed count_one_bits.
57354         (popcountl): Renamed count_one_bits_l.
57355         (popcountll): Renamed count_one_bits_ll.
57356         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57357         * modules/popcount: Renamed module/count-one-bits.
57358         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57359         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57360
57361 2007-07-23  Ben Pfaff  <blp@gnu.org>
57362
57363         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57364         better code generation, and add U to large constants to avoid
57365         warnings, in non-GCC case.
57366         Suggested by Bruno Haible.
57367
57368 2007-07-23  Ben Pfaff  <blp@gnu.org>
57369
57370         * lib/popcount.h: Use verify_true instead of if...abort.
57371         * modules/popcount: Depend on verify module.
57372         Suggested by Jim Meyering.
57373
57374 2007-07-23  Bruno Haible  <bruno@clisp.org>
57375
57376         * gnulib-tool (func_import): Create a .cvsignore file also when the
57377         directory is not yet in CVS but the toplevel directory is. When
57378         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57379         Reported by Karl Berry.
57380
57381 2007-07-22  Ben Pfaff  <blp@gnu.org>
57382
57383         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57384         case.
57385         Suggested by Eric Blake.
57386
57387 2007-07-22  Ben Pfaff  <blp@gnu.org>
57388
57389         New module: popcount.
57390         * MODULES.html.sh: Add popcount.
57391         * modules/popcount: New file.
57392         * modules/popcount-tests: New file.
57393         * tests/test-popcount.c: New file.
57394         * lib/popcount.h: New file.
57395         * m4/popcount.m4: New file.
57396
57397 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57398
57399         * build-aux/announce-gen: Update to GPLv3.
57400
57401         * build-aux/config.guess: Update from config.
57402
57403 2007-07-21  Bruno Haible  <bruno@clisp.org>
57404
57405         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57406         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57407
57408 2007-07-20  Jim Meyering  <jim@meyering.net>
57409
57410         * check-module: Diagnose a self-dependency.
57411
57412 2007-07-19  Bruno Haible  <bruno@clisp.org>
57413
57414         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57415         empty.
57416         Reported by Eric Blake.
57417
57418 2007-07-18  Bruno Haible  <bruno@clisp.org>
57419
57420         * gnulib-tool: New options --po-base, --po-domain.
57421         (func_usage): Document them.
57422         (pobase, po_domain): New variables.
57423         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57424         DEFAULT_TEXT_DOMAIN.
57425         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57426         (func_import): Consider pobase and po_domain. Create a po/ directory.
57427         (func_create_testdir): Set pobase and po_domain to empty.
57428         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57429         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57430
57431 2007-07-18  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57434         EXTRA_DIST augmentation for files in build-aux/.
57435
57436 2007-07-16  Bruno Haible  <bruno@clisp.org>
57437
57438         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57439         * modules/getdelim (License): Likewise.
57440
57441 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57442
57443         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57444         * modules/d-type (License): Likewise.
57445         * modules/extensions (License): Likewise.
57446         * modules/fnmatch (License): Likewise.
57447         * modules/fseeko (License): Likewise.
57448         * modules/getaddrinfo (License): Likewise.
57449         * modules/getline (License): Likewise.
57450         * modules/getlogin_r (License): Likewise.
57451         * modules/getpass (License): Likewise.
57452         * modules/gettimeofday (License): Likewise.
57453         * modules/glob (License): Likewise.
57454         * modules/inet_ntop (License): Likewise.
57455         * modules/malloc (License): Likewise.
57456         * modules/malloca (License): Likewise.
57457         * modules/memmem (License): Likewise.
57458         * modules/mempcpy (License): Likewise.
57459         * modules/memset (License): Likewise.
57460         * modules/minmax (License): Likewise.
57461         * modules/mktime (License): Likewise.
57462         * modules/netinet_in (License): Likewise.
57463         * modules/pathmax (License): Likewise.
57464         * modules/poll (License): Likewise.
57465         * modules/regex (License): Likewise.
57466         * modules/snprintf (License): Likewise.
57467         * modules/stdbool (License): Likewise.
57468         * modules/stdint (License): Likewise.
57469         * modules/stdio (License): Likewise.
57470         * modules/strcase (License): Likewise.
57471         * modules/strcasestr (License): Likewise.
57472         * modules/strdup (License): Likewise.
57473         * modules/string (License): Likewise.
57474         * modules/strndup (License): Likewise.
57475         * modules/strnlen (License): Likewise.
57476         * modules/strpbrk (License): Likewise.
57477         * modules/strptime (License): Likewise.
57478         * modules/strsep (License): Likewise.
57479         * modules/sys_select (License): Likewise.
57480         * modules/sys_socket (License): Likewise.
57481         * modules/sys_stat (License): Likewise.
57482         * modules/sys_time (License): Likewise.
57483         * modules/time (License): Likewise.
57484         * modules/time_r (License): Likewise.
57485         * modules/timegm (License): Likewise.
57486         * modules/unistd (License): Likewise.
57487         * modules/vsnprintf (License): Likewise.
57488         * modules/wctype (License): Likewise.
57489
57490 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57491
57492         * modules/argz (License): LGPLv2+.
57493
57494 2007-07-15  Karl Berry  <karl@gnu.org>
57495
57496         * doc/gnulib.texi: revise node structure per new fdl.texi.
57497
57498 2007-07-14  Bruno Haible  <bruno@clisp.org>
57499
57500         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
57501         the output file.
57502         * lib/uniname/uninames.h: Regenerated.
57503
57504 2007-07-14  Karl Berry  <karl@gnu.org>
57505
57506         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
57507         omitting sectioning and index commands.
57508
57509 2007-07-13  Bruno Haible  <bruno@clisp.org>
57510
57511         New gnulib-tool option --more-symlinks.
57512         * gnulib-tool (func_usage): Document --more-symlinks.
57513         (do_copyrights): New variable.
57514         Recognize option --more-symlinks.
57515         (func_import): Don't add a copyright notice transform to
57516         sed_transform_lib_file if do_copyrights is empty.
57517
57518 2007-07-13  Bruno Haible  <bruno@clisp.org>
57519
57520         * lib/vasnprintf.c (decimal_point_char): Define also if
57521         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
57522         && !NEED_PRINTF_DIRECTIVE_A.
57523         Reported by Clemens Koller <clemens.koller@anagramm.de> via
57524         Gary V. Vaughan <gary@gnu.org>.
57525
57526 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
57527
57528         * lib/inttypes_.h: Undo previous change, since it was fixed
57529         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
57530
57531 2007-07-13  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
57534         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
57535
57536 2007-07-13  Jim Meyering  <jim@meyering.net>
57537
57538         df: Don't fail for Tru64's "file-on-file mount".
57539         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
57540         so we fall through and use statfs instead.  Details here:
57541         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
57542         Reported by Albert Chin.
57543
57544 2007-07-13  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
57547         * modules/configmake (License): Likewise.
57548         * modules/gettext (License): Likewise.
57549         * modules/gettext-h (License): Likewise.
57550         * modules/include_next (License): Likewise.
57551         * modules/link-warning (License): Likewise.
57552         * modules/localcharset (License): Likewise.
57553         * modules/localename (License): Likewise.
57554         * modules/lock (License): Likewise.
57555         * modules/relocatable-lib-lgpl (License): Likewise.
57556         * modules/size_max (License): Likewise.
57557         * modules/vasnprintf (License): Likewise.
57558         * modules/wchar (License): Likewise.
57559         * modules/xsize (License): Likewise.
57560
57561 2007-07-13  Bruno Haible  <bruno@clisp.org>
57562
57563         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
57564         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
57565
57566 2007-07-12  Bruno Haible  <bruno@clisp.org>
57567
57568         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
57569         in the modules files.
57570
57571 2007-07-11  Karl Berry  <karl@gnu.org>
57572
57573         * MODULES.html.sh (func_module): use
57574          sed -e '\|^'"${includefile}"'$|d'
57575          instead of /.../d, to avoid errors on $includefile's containing /.
57576
57577 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
57578
57579         * gnulib-tool (func_import): Avoid duplication of --avoid
57580         statements
57581         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
57582         names to `_' in variable names.
57583
57584 2007-07-10  Eric Blake  <ebb9@byu.net>
57585
57586         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
57587         * NEWS: Document this change.
57588
57589 2007-07-08  Bruno Haible  <bruno@clisp.org>
57590
57591         Update to Unicode 5.0.
57592         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
57593         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
57594         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
57595         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
57596         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
57597         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
57598         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
57599         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
57600         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
57601         U+10A3F, U+1D242..U+1D244.
57602         (nonspacing_table_ind): Update.
57603         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
57604         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
57605
57606 2007-07-08  Bruno Haible  <bruno@clisp.org>
57607
57608         Update to Unicode 5.0.
57609         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
57610         code transform. Extend the name index field of unicode_name_to_code and
57611         unicode_code_to_name from 16 to 24 bits.
57612         * lib/uniname/uniname.c (unicode_character_name,
57613         unicode_name_character): Add the range 0x12xxx to the code transform.
57614         * lib/uniname/uninames.h: Regenerated.
57615         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
57616
57617 2007-07-07  Bruno Haible  <bruno@clisp.org>
57618
57619         * modules/wcwidth-tests: New file.
57620         * tests/test-wcwidth.c: New file.
57621
57622         Work around MacOS X wcwidth() bug.
57623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
57624         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
57625         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
57626         original wcwidth in non-UTF-8 locales.
57627         * modules/wcwidth (Depends-on): Add localcharset, streq,
57628         uniwidth/width.
57629         * doc/functions/wcwidth.texi: Update.
57630
57631 2007-07-07  Bruno Haible  <bruno@clisp.org>
57632
57633         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
57634         (wcwidth): New declaration.
57635         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
57636         macros.
57637         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
57638         here. Prepare for creating <wchar.h> unconditionally.
57639         * modules/wchar (Depends-on): Add link-warning.
57640         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
57641         REPLACE_WCWIDTH, and GL_LINK_WARNING.
57642         * lib/wcwidth.h: Remove file.
57643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
57644         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
57645         * modules/wcwidth (Files): Remove lib/wcwidth.h.
57646         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
57647         (Include): Replace wcwidth.h with <wchar.h>.
57648         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
57649         * lib/mbchar.h: Don't include wcwidth.h.
57650         * lib/mbswidth.c: Likewise.
57651         * NEWS: Mention the change.
57652
57653 2007-07-07  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
57656         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
57657         definition with an external declaration.
57658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
57659         defined as a function. Remove AC_C_INLINE requirement.
57660         * modules/wcwidth (Files): Add lib/wcwidth.c.
57661         (Makefile.am): Remove redundant statement.
57662
57663 2007-07-07  Bruno Haible  <bruno@clisp.org>
57664
57665         * MODULES.html.sh (Unicode string functions): Add the new modules.
57666
57667         * tests/uniwidth/test-u32-strwidth.c: New file.
57668         * modules/uniwidth/u32-strwidth-tests: New file.
57669
57670         * lib/uniwidth/u32-strwidth.c: New file.
57671         * modules/uniwidth/u32-strwidth: New file.
57672
57673         * tests/uniwidth/test-u16-strwidth.c: New file.
57674         * modules/uniwidth/u16-strwidth-tests: New file.
57675
57676         * lib/uniwidth/u16-strwidth.c: New file.
57677         * modules/uniwidth/u16-strwidth: New file.
57678
57679         * tests/uniwidth/test-u8-strwidth.c: New file.
57680         * modules/uniwidth/u8-strwidth-tests: New file.
57681
57682         * lib/uniwidth/u8-strwidth.c: New file.
57683         * modules/uniwidth/u8-strwidth: New file.
57684
57685         * tests/uniwidth/test-u32-width.c: New file.
57686         * modules/uniwidth/u32-width-tests: New file.
57687
57688         * lib/uniwidth/u32-width.c: New file.
57689         * modules/uniwidth/u32-width: New file.
57690
57691         * tests/uniwidth/test-u16-width.c: New file.
57692         * modules/uniwidth/u16-width-tests: New file.
57693
57694         * lib/uniwidth/u16-width.c: New file.
57695         * modules/uniwidth/u16-width: New file.
57696
57697         * tests/uniwidth/test-u8-width.c: New file.
57698         * modules/uniwidth/u8-width-tests: New file.
57699
57700         * lib/uniwidth/u8-width.c: New file.
57701         * modules/uniwidth/u8-width: New file.
57702
57703         * tests/uniwidth/test-uc_width.c: New file.
57704         * modules/uniwidth/width-tests: New file.
57705
57706         * lib/uniwidth/width.c: New file, from GNU libiconv.
57707         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
57708         * modules/uniwidth/width: New file.
57709
57710         * lib/uniwidth.h: New file, from GNU libiconv.
57711         * modules/uniwidth/base: New file.
57712
57713 2007-07-07  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/uniname.h: New file, from GNU gettext.
57716         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
57717         * lib/uniname/uninames.h: New file, from GNU gettext.
57718         * lib/uniname/uniname.c: New file, from GNU gettext.
57719         * tests/uniname/test-uninames.sh: New file.
57720         * tests/uniname/test-uninames.c: New file, from GNU gettext.
57721         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
57722         * modules/uniname/base: New file.
57723         * modules/uniname/uniname: New file.
57724         * modules/uniname/uniname-tests: New file.
57725         * MODULES.html.sh (Unicode string functions): Add the new modules.
57726
57727 2007-07-06  Bruno Haible  <bruno@clisp.org>
57728
57729         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
57730
57731 2007-07-06  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
57734         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
57735         includes <cygwin/sys_time.h> which includes <sys/select.h> which
57736         include <sys/time.h>.
57737         Reported by Eric Blake.
57738
57739 2007-07-06  Eric Blake  <ebb9@byu.net>
57740
57741         Fix testing canonicalize on cygwin.
57742         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
57743         Revert patch from 2007-06-19.
57744         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
57745         canonicalize module is also in use.
57746         * tests/test-canonicalize.c: New file.
57747         * tests/test-canonicalize.sh: Likewise.
57748         * modules/canonicalize-tests: Likewise.
57749
57750 2007-07-06  Jim Meyering  <jim@meyering.net>
57751
57752         * lib/getugroups.c (getugroups): Detect getgrent failure.
57753         Adjust comment to reflect reality: this function may return -1.
57754
57755 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
57756
57757         * build-aux/bootstrap (TP_URL,get_translations): Update to use
57758         the new TP address.
57759         (usage): Fix typo
57760         (gnulib_mk): New variable.
57761
57762 2007-07-05  Jim Meyering  <jim@meyering.net>
57763
57764         Don't let endgrent clobber errno, no matter how improbable.
57765         * lib/getugroups.c (getugroups): Save and restore errno around
57766         endgrent call.
57767
57768         Close the group DB even when failing with 2^31 or more members.
57769         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
57770
57771 2007-07-04  Jim Meyering  <jim@meyering.net>
57772
57773         * lib/getugroups.h: New file.
57774         * lib/getugroups.c: Include "getugroups.h".
57775         Remove uses of "register" keyword.
57776         Move local variable, "cp", down into scope where used.
57777         Give "username" parameter the "const" attribute.
57778         * modules/getugroups (Files): Add lib/getugroups.h
57779
57780 2007-07-04  Karl Berry  <karl@gnu.org>
57781
57782         * MODULES.html.sh (func_all_modules): Complete rename of
57783         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
57784
57785 2007-07-02  Bruno Haible  <bruno@clisp.org>
57786
57787         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
57788         mode, when inttypes.h comes from gnulib.
57789         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57790
57791 2007-07-02  Simon Josefsson  <simon@josefsson.org>
57792
57793         * NEWS: Mention lgpl module name change.
57794
57795         * modules/lgpl-2.1: Renamed from lgpl.
57796
57797         * NEWS: Mention gpl module name change.
57798
57799         * modules/gpl-3.0: New file, based on gpl-2.0.
57800
57801         * modules/gpl-2.0: Renamed from gpl.
57802
57803         * modules/gpl: Fix filename, doc/gpl.texi is now found at
57804         doc/gpl-2.0.texi.
57805
57806 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
57807
57808         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
57809         #define __STDC_LIMIT_MACROS temporarily while including
57810         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
57811         Problem reported by Joel E. Denny in
57812         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
57813
57814 2007-07-01  Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/unistdio.h: New file.
57817         * lib/unistdio/u-asnprintf.h: New file.
57818         * lib/unistdio/u-asprintf.h: New file.
57819         * lib/unistdio/u-printf-args.c: New file.
57820         * lib/unistdio/u-printf-args.h: New file.
57821         * lib/unistdio/u-printf-parse.h: New file.
57822         * lib/unistdio/u-snprintf.h: New file.
57823         * lib/unistdio/u-sprintf.h: New file.
57824         * lib/unistdio/u-vasprintf.h: New file.
57825         * lib/unistdio/u-vsnprintf.h: New file.
57826         * lib/unistdio/u-vsprintf.h: New file.
57827         * lib/unistdio/ulc-asnprintf.c: New file.
57828         * lib/unistdio/ulc-asprintf.c: New file.
57829         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
57830         * lib/unistdio/ulc-printf-parse.c: New file.
57831         * lib/unistdio/ulc-snprintf.c: New file.
57832         * lib/unistdio/ulc-sprintf.c: New file.
57833         * lib/unistdio/ulc-vasnprintf.c: New file.
57834         * lib/unistdio/ulc-vasprintf.c: New file.
57835         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
57836         * lib/unistdio/ulc-vsnprintf.c: New file.
57837         * lib/unistdio/ulc-vsprintf.c: New file.
57838         * lib/unistdio/u8-asnprintf.c: New file.
57839         * lib/unistdio/u8-asprintf.c: New file.
57840         * lib/unistdio/u8-printf-parse.c: New file.
57841         * lib/unistdio/u8-snprintf.c: New file.
57842         * lib/unistdio/u8-sprintf.c: New file.
57843         * lib/unistdio/u8-vasnprintf.c: New file.
57844         * lib/unistdio/u8-vasprintf.c: New file.
57845         * lib/unistdio/u8-vsnprintf.c: New file.
57846         * lib/unistdio/u8-vsprintf.c: New file.
57847         * lib/unistdio/u8-u8-asnprintf.c: New file.
57848         * lib/unistdio/u8-u8-asprintf.c: New file.
57849         * lib/unistdio/u8-u8-snprintf.c: New file.
57850         * lib/unistdio/u8-u8-sprintf.c: New file.
57851         * lib/unistdio/u8-u8-vasnprintf.c: New file.
57852         * lib/unistdio/u8-u8-vasprintf.c: New file.
57853         * lib/unistdio/u8-u8-vsnprintf.c: New file.
57854         * lib/unistdio/u8-u8-vsprintf.c: New file.
57855         * lib/unistdio/u16-asnprintf.c: New file.
57856         * lib/unistdio/u16-asprintf.c: New file.
57857         * lib/unistdio/u16-printf-parse.c: New file.
57858         * lib/unistdio/u16-snprintf.c: New file.
57859         * lib/unistdio/u16-sprintf.c: New file.
57860         * lib/unistdio/u16-vasnprintf.c: New file.
57861         * lib/unistdio/u16-vasprintf.c: New file.
57862         * lib/unistdio/u16-vsnprintf.c: New file.
57863         * lib/unistdio/u16-vsprintf.c: New file.
57864         * lib/unistdio/u16-u16-asnprintf.c: New file.
57865         * lib/unistdio/u16-u16-asprintf.c: New file.
57866         * lib/unistdio/u16-u16-snprintf.c: New file.
57867         * lib/unistdio/u16-u16-sprintf.c: New file.
57868         * lib/unistdio/u16-u16-vasnprintf.c: New file.
57869         * lib/unistdio/u16-u16-vasprintf.c: New file.
57870         * lib/unistdio/u16-u16-vsnprintf.c: New file.
57871         * lib/unistdio/u16-u16-vsprintf.c: New file.
57872         * lib/unistdio/u32-asnprintf.c: New file.
57873         * lib/unistdio/u32-asprintf.c: New file.
57874         * lib/unistdio/u32-printf-parse.c: New file.
57875         * lib/unistdio/u32-snprintf.c: New file.
57876         * lib/unistdio/u32-sprintf.c: New file.
57877         * lib/unistdio/u32-vasnprintf.c: New file.
57878         * lib/unistdio/u32-vasprintf.c: New file.
57879         * lib/unistdio/u32-vsnprintf.c: New file.
57880         * lib/unistdio/u32-vsprintf.c: New file.
57881         * lib/unistdio/u32-u32-asnprintf.c: New file.
57882         * lib/unistdio/u32-u32-asprintf.c: New file.
57883         * lib/unistdio/u32-u32-snprintf.c: New file.
57884         * lib/unistdio/u32-u32-sprintf.c: New file.
57885         * lib/unistdio/u32-u32-vasnprintf.c: New file.
57886         * lib/unistdio/u32-u32-vasprintf.c: New file.
57887         * lib/unistdio/u32-u32-vsnprintf.c: New file.
57888         * lib/unistdio/u32-u32-vsprintf.c: New file.
57889         * tests/unistdio/test-ulc-asnprintf1.c: New file.
57890         * tests/unistdio/test-ulc-asnprintf1.h: New file.
57891         * tests/unistdio/test-ulc-printf1.h: New file.
57892         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
57893         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
57894         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
57895         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
57896         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
57897         * tests/unistdio/test-ulc-vasprintf1.c: New file.
57898         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
57899         * tests/unistdio/test-ulc-vsprintf1.c: New file.
57900         * tests/unistdio/test-u8-asnprintf1.c: New file.
57901         * tests/unistdio/test-u8-asnprintf1.h: New file.
57902         * tests/unistdio/test-u8-printf1.h: New file.
57903         * tests/unistdio/test-u8-vasnprintf1.c: New file.
57904         * tests/unistdio/test-u8-vasnprintf2.c: New file.
57905         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
57906         * tests/unistdio/test-u8-vasnprintf3.c: New file.
57907         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
57908         * tests/unistdio/test-u8-vasprintf1.c: New file.
57909         * tests/unistdio/test-u8-vsnprintf1.c: New file.
57910         * tests/unistdio/test-u8-vsprintf1.c: New file.
57911         * tests/unistdio/test-u16-asnprintf1.c: New file.
57912         * tests/unistdio/test-u16-asnprintf1.h: New file.
57913         * tests/unistdio/test-u16-printf1.h: New file.
57914         * tests/unistdio/test-u16-vasnprintf1.c: New file.
57915         * tests/unistdio/test-u16-vasnprintf2.c: New file.
57916         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
57917         * tests/unistdio/test-u16-vasnprintf3.c: New file.
57918         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
57919         * tests/unistdio/test-u16-vasprintf1.c: New file.
57920         * tests/unistdio/test-u16-vsnprintf1.c: New file.
57921         * tests/unistdio/test-u16-vsprintf1.c: New file.
57922         * tests/unistdio/test-u32-asnprintf1.c: New file.
57923         * tests/unistdio/test-u32-asnprintf1.h: New file.
57924         * tests/unistdio/test-u32-printf1.h: New file.
57925         * tests/unistdio/test-u32-vasnprintf1.c: New file.
57926         * tests/unistdio/test-u32-vasnprintf2.c: New file.
57927         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
57928         * tests/unistdio/test-u32-vasnprintf3.c: New file.
57929         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
57930         * tests/unistdio/test-u32-vasprintf1.c: New file.
57931         * tests/unistdio/test-u32-vsnprintf1.c: New file.
57932         * tests/unistdio/test-u32-vsprintf1.c: New file.
57933         * modules/unistdio/base: New file.
57934         * modules/unistdio/u-printf-args: New file.
57935         * modules/unistdio/ulc-asnprintf: New file.
57936         * modules/unistdio/ulc-asprintf: New file.
57937         * modules/unistdio/ulc-fprintf: New file.
57938         * modules/unistdio/ulc-printf-parse: New file.
57939         * modules/unistdio/ulc-snprintf: New file.
57940         * modules/unistdio/ulc-sprintf: New file.
57941         * modules/unistdio/ulc-vasnprintf: New file.
57942         * modules/unistdio/ulc-vasprintf: New file.
57943         * modules/unistdio/ulc-vfprintf: New file.
57944         * modules/unistdio/ulc-vsnprintf: New file.
57945         * modules/unistdio/ulc-vsprintf: New file.
57946         * modules/unistdio/u8-asnprintf: New file.
57947         * modules/unistdio/u8-asprintf: New file.
57948         * modules/unistdio/u8-printf-parse: New file.
57949         * modules/unistdio/u8-snprintf: New file.
57950         * modules/unistdio/u8-sprintf: New file.
57951         * modules/unistdio/u8-vasnprintf: New file.
57952         * modules/unistdio/u8-vasprintf: New file.
57953         * modules/unistdio/u8-vsnprintf: New file.
57954         * modules/unistdio/u8-vsprintf: New file.
57955         * modules/unistdio/u8-u8-asnprintf: New file.
57956         * modules/unistdio/u8-u8-asprintf: New file.
57957         * modules/unistdio/u8-u8-snprintf: New file.
57958         * modules/unistdio/u8-u8-sprintf: New file.
57959         * modules/unistdio/u8-u8-vasnprintf: New file.
57960         * modules/unistdio/u8-u8-vasprintf: New file.
57961         * modules/unistdio/u8-u8-vsnprintf: New file.
57962         * modules/unistdio/u8-u8-vsprintf: New file.
57963         * modules/unistdio/u16-asnprintf: New file.
57964         * modules/unistdio/u16-asprintf: New file.
57965         * modules/unistdio/u16-printf-parse: New file.
57966         * modules/unistdio/u16-snprintf: New file.
57967         * modules/unistdio/u16-sprintf: New file.
57968         * modules/unistdio/u16-vasnprintf: New file.
57969         * modules/unistdio/u16-vasprintf: New file.
57970         * modules/unistdio/u16-vsnprintf: New file.
57971         * modules/unistdio/u16-vsprintf: New file.
57972         * modules/unistdio/u16-u16-asnprintf: New file.
57973         * modules/unistdio/u16-u16-asprintf: New file.
57974         * modules/unistdio/u16-u16-snprintf: New file.
57975         * modules/unistdio/u16-u16-sprintf: New file.
57976         * modules/unistdio/u16-u16-vasnprintf: New file.
57977         * modules/unistdio/u16-u16-vasprintf: New file.
57978         * modules/unistdio/u16-u16-vsnprintf: New file.
57979         * modules/unistdio/u16-u16-vsprintf: New file.
57980         * modules/unistdio/u32-asnprintf: New file.
57981         * modules/unistdio/u32-asprintf: New file.
57982         * modules/unistdio/u32-printf-parse: New file.
57983         * modules/unistdio/u32-snprintf: New file.
57984         * modules/unistdio/u32-sprintf: New file.
57985         * modules/unistdio/u32-vasnprintf: New file.
57986         * modules/unistdio/u32-vasprintf: New file.
57987         * modules/unistdio/u32-vsnprintf: New file.
57988         * modules/unistdio/u32-vsprintf: New file.
57989         * modules/unistdio/u32-u32-asnprintf: New file.
57990         * modules/unistdio/u32-u32-asprintf: New file.
57991         * modules/unistdio/u32-u32-snprintf: New file.
57992         * modules/unistdio/u32-u32-sprintf: New file.
57993         * modules/unistdio/u32-u32-vasnprintf: New file.
57994         * modules/unistdio/u32-u32-vasprintf: New file.
57995         * modules/unistdio/u32-u32-vsnprintf: New file.
57996         * modules/unistdio/u32-u32-vsprintf: New file.
57997         * modules/unistdio/ulc-asnprintf-tests: New file.
57998         * modules/unistdio/ulc-vasnprintf-tests: New file.
57999         * modules/unistdio/ulc-vasprintf-tests: New file.
58000         * modules/unistdio/ulc-vsnprintf-tests: New file.
58001         * modules/unistdio/ulc-vsprintf-tests: New file.
58002         * modules/unistdio/u8-asnprintf-tests: New file.
58003         * modules/unistdio/u8-vasnprintf-tests: New file.
58004         * modules/unistdio/u8-vasprintf-tests: New file.
58005         * modules/unistdio/u8-vsnprintf-tests: New file.
58006         * modules/unistdio/u8-vsprintf-tests: New file.
58007         * modules/unistdio/u16-asnprintf-tests: New file.
58008         * modules/unistdio/u16-vasnprintf-tests: New file.
58009         * modules/unistdio/u16-vasprintf-tests: New file.
58010         * modules/unistdio/u16-vsnprintf-tests: New file.
58011         * modules/unistdio/u16-vsprintf-tests: New file.
58012         * modules/unistdio/u32-asnprintf-tests: New file.
58013         * modules/unistdio/u32-vasnprintf-tests: New file.
58014         * modules/unistdio/u32-vasprintf-tests: New file.
58015         * modules/unistdio/u32-vsnprintf-tests: New file.
58016         * modules/unistdio/u32-vsprintf-tests: New file.
58017         * MODULES.html.sh (Unicode string functions): Add the new modules.
58018
58019 2007-07-01  Bruno Haible  <bruno@clisp.org>
58020
58021         * lib/sprintf.c (sprintf): Limit the available length estimation,
58022         to avoid address wraparound.
58023         * lib/vsprintf.c (vsprintf): Likewise.
58024         * modules/sprintf-posix (Dependencies): Add stdint.
58025         * modules/vsprintf-posix (Dependencies): Likewise.
58026
58027 2007-07-01  Bruno Haible  <bruno@clisp.org>
58028
58029         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58030         Windows PATH as well. Conservative double-quoting. Comments.
58031
58032 2007-07-01  Bruno Haible  <bruno@clisp.org>
58033             Eric Blake  <ebb9@byu.net>
58034             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58035
58036         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58037         empty components in $PATH, denoting '.'.
58038
58039 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58040
58041         * gnulib-tool: Fix indentation.
58042         (func_create_megatestdir): Likewise.
58043         Report by Bruno Haible.
58044
58045 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58046
58047         Sync from Automake.
58048         * build-aux/gnupload: Fix shell portability issues with for loops.
58049         Report by Karl Berry.
58050
58051 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58052
58053         * build-aux/maint.mk (POURL): Use translationproject.org.
58054
58055 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58056             Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58059         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58060         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58061         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58062         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58063
58064 2007-06-27  Bruno Haible  <bruno@clisp.org>
58065
58066         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58067         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58068
58069 2007-06-26  Karl Berry  <karl@gnu.org>
58070
58071         * MODULES.html.sh: remove xreadlink-with-size.
58072
58073 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58074
58075         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58076         method that I hope also handles the double-include problem noted
58077         by Bruno Haible in
58078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58079
58080 2007-06-23  Bruno Haible  <bruno@clisp.org>
58081
58082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58083         Don't let the 'mostlyclean' target fail if the last subdirectory could
58084         not be removed.
58085         Reported by Karl Berry.
58086
58087 2007-06-23  Bruno Haible  <bruno@clisp.org>
58088
58089         * gnulib-tool (echo): Add a speedier workaround for ksh.
58090         * tests/test-echo.sh: Likewise.
58091
58092 2007-06-23  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58095         * tests/test-echo.sh: Likewise.
58096
58097 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58098
58099         * gnulib-tool (IFS): Initialize early, so we don't set it to
58100         empty later.
58101         (self_abspathname): Rewrite algorithm to set it, reindent.
58102         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58103         (func_create_megatestdir): Merge some sed scripts.
58104
58105 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58106
58107         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58108         exposed by Sun Studio 11 cc on Solaris 8.
58109
58110 2007-06-22  Bruno Haible  <bruno@clisp.org>
58111
58112         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58113         backslashes.
58114         * tests/test-echo.sh: New file.
58115
58116 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58117
58118         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58119         simplify `sed_replace_build_aux' scripts, they are portable but
58120         echoing them with `echo' is not.
58121         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58122
58123 2007-06-21  Karl Berry  <karl@gnu.org>
58124
58125         * config/srclist.txt: guess we can't handle the licenses via
58126         srclist at the moment.
58127
58128 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * MODULES.html.sh: Add include_next.
58131         * modules/include_next: New file.
58132
58133 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58136         INCLUDE_NEXT.
58137         (gl_CHECK_NEXT_HEADERS): New macro.
58138         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58139         the obsolescent gl_ABSOLUTE_HEADER.
58140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58141         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58142         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58143         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58144         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58145         * m4/math_h.m4 (gl_MATH_H): Likewise.
58146         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58147         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58148         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58149         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58150         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58151         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58152         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58153         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58156         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58157         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58158         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58159         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58160         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58161         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58162         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58163         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58164         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58165         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58166         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58167         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58168         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58169         * lib/float_.h: Likewise.
58170         * lib/inttypes_.h: Likewise.
58171         * lib/math_.h: Likewise.
58172         * lib/search_.h: Likewise.
58173         * lib/signal_.h: Likewise.
58174         * lib/stdint_.h: Likewise.
58175         * lib/stdio_.h: Likewise.
58176         * lib/stdlib_.h: Likewise.
58177         * lib/string_.h: Likewise.
58178         * lib/sys_stat_.h: Likewise.
58179         * lib/sys_time_.h: Likewise.
58180         * lib/time_.h: Likewise.
58181         * lib/unistd_.h: Likewise.
58182         * lib/wchar_.h: Likewise.
58183         * lib/wctype_.h: Likewise.
58184         * lib/dirent_.h: Likewise.
58185         * lib/iconv_.h: Likewise.
58186         * lib/locale_.h: Likewise.
58187         * lib/netinet_in_.h: Likewise.
58188         * lib/sys_select_.h: Likewise.
58189         * lib/sys_socket_.h: Likewise.
58190         * lib/sysexits_.h: Likewise.
58191         * modules/fcntl (Depends-on): Depend on include_next, not
58192         absolute_header.
58193         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58194         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58195         * modules/fchdir: Likewise.
58196         * modules/float: Likewise.
58197         * modules/iconv_open: Likewise.
58198         * modules/inttypes: Likewise.
58199         * modules/locale: Likewise.
58200         * modules/math: Likewise.
58201         * modules/netinet_in: Likewise.
58202         * modules/search: Likewise.
58203         * modules/signal: Likewise.
58204         * modules/stdint: Likewise.
58205         * modules/stdio: Likewise.
58206         * modules/stdlib: Likewise.
58207         * modules/string: Likewise.
58208         * modules/sys_select: Likewise.
58209         * modules/sys_socket: Likewise.
58210         * modules/sys_stat: Likewise.
58211         * modules/sys_time: Likewise.
58212         * modules/sysexits: Likewise.
58213         * modules/time: Likewise.
58214         * modules/unistd: Likewise.
58215         * modules/wchar: Likewise.
58216         * modules/wctype: Likewise.
58217         * modules/sys_stat: Change maintainer to "all".
58218         * modules/unistd: Likewise.
58219
58220 2007-06-20  Karl Berry  <karl@gnu.org>
58221
58222         * config/srclist.txt: track www changes in license files.
58223
58224 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58225
58226         * build-aux/bootstrap: Remove stray dot.
58227         Make sure build_aux settings are honored when linking
58228         gnulib_extra_files.
58229
58230 2007-06-19  Eric Blake  <ebb9@byu.net>
58231
58232         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58233         Allow compilation on cygwin.
58234
58235 2007-06-19  Jim Meyering  <jim@meyering.net>
58236
58237         xreadlink-with-size: Remove module.  No longer used.
58238         Ex-callers now use xreadlink or mreadlink-with-size.
58239         * modules/xreadlink-with-size: Remove module.
58240         * lib/xreadlink-with-size.c: Remove file.
58241         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58242         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58243         just before the function definition *is* accurate.
58244
58245         Eliminate one way canonicalize_filename_mode could exit.
58246         * lib/canonicalize.c (canonicalize_filename_mode):
58247         Use mreadlink_with_size, not xreadlink_with_size.
58248
58249 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58250
58251         Detect porting problems to FreeBSD/arm, which has time_t wider than
58252         long int.  Original problem reported for GNU diff by Xin Li in
58253         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58254         * modules/getdate (Depends-on): Add intprops, verify.
58255         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58256         is an integer type no wider than long int.
58257
58258 2007-06-18  Jim Meyering  <jim@meyering.net>
58259
58260         New module: mreadlink-with-size.
58261         * MODULES.html.sh: Add mreadlink-with-size.
58262         * modules/mreadlink-with-size: New module
58263         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58264         not xreadlink-with-size.
58265         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58266
58267 2007-06-16  Bruno Haible  <bruno@clisp.org>
58268
58269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58270         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58271         Reported by Gary V. Vaughan <gary@gnu.org>.
58272
58273 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58274
58275         Revamp lchown so that it lives in unistd.h where it belongs.
58276         * lib/lchown.h: Remove.
58277         * lib/dirchownmod.c: Don't include lib/lchown.h.
58278         * lib/fchownat.c: Likewise.
58279         * lib/openat.c: Likewise.
58280         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58281         does not follow symlinks.
58282         (EOPNOTSUPP): Define if not defined.
58283         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58284         is defined to 0.
58285         (lchown): New decl.
58286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58287         Do not check for lchown decl.
58288         Set REPLACE_LCHOWN.
58289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58290         REPLACE_LCHOWN.
58291         * modules/chown: Make it clear it follows symlinks.
58292         * modules/lchown: Make it clear it doesn't follow symlinks.
58293         (Files): Remove lib/lchown.h
58294         (Depends-on): Add unistd.
58295         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58296         (Include): Include <unistd.h>, not "lchown.h".
58297         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58298         REPLACE_LCHOWN.
58299
58300 2007-06-15  Jim Meyering  <jim@meyering.net>
58301
58302         Change license (GPL to LGPL) of fsusage and dependents.
58303         * modules/fsusage (License): Change to LGPL.
58304         * modules/full-read (License): Likewise.
58305         * modules/full-write (License): Likewise.
58306         * modules/safe-read (License): Likewise.
58307         * modules/safe-write (License): Likewise.
58308
58309 2007-06-14  Ben Pfaff  <blp@gnu.org>
58310
58311         Missing part of allocsa -> malloca transition.
58312         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58313         gl_MALLOCA.
58314
58315 2007-06-12  Bruno Haible  <bruno@clisp.org>
58316
58317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58318         to ia64, x86_64, i386.
58319         Reported by Eric Blake.
58320
58321 2007-06-12  Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58324         cross-compiling to x86_64.
58325
58326 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58327
58328         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58329         glitch reported by Ralf Wildenhues in
58330         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58331
58332         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58333         Vin Shelton.
58334
58335 2007-06-11  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58338         replacement string.
58339         Reported by Eric Blake.
58340
58341 2007-06-10  Bruno Haible  <bruno@clisp.org>
58342
58343         Prepare vasnprintf code for use with Unicode strings.
58344         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58345         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58346         TYPE_U32_STRING.
58347         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58348         a_u32_string variants.
58349         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58350         * lib/printf-args.c: Don't include config.h and the specification
58351         header if PRINTF_FETCHARGS is already defined.
58352         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58353         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58354         TYPE_U16_STRING, TYPE_U32_STRING.
58355         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58356         u16_directive, u16_directives, u32_directive, u32_directives): New
58357         types.
58358         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58359         New declarations.
58360         * lib/printf-parse.c: Don't include config.h and the specification
58361         header if PRINTF_PARSE is already defined. Eliminate the set of
58362         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58363         them now. Include c-ctype.h.
58364         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58365         directive and CHAR_T_ONLY_ASCII.
58366         * lib/vasnprintf.c: Don't include config.h and the specification header
58367         if VASNPRINTF is already defined.
58368         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58369         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58370         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58371         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58372         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58373         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58374         code accordingly.
58375         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58376         pad_ourselves also in this case, with the 'c' and 's' directives, and
58377         with a different notion of "width".
58378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58379
58380 2007-06-10  Bruno Haible  <bruno@clisp.org>
58381
58382         * modules/unistr/u32-mbsnlen: New file.
58383         * lib/unistr/u32-mbsnlen.c: New file.
58384
58385         * modules/unistr/u16-mbsnlen: New file.
58386         * lib/unistr/u16-mbsnlen.c: New file.
58387
58388         * modules/unistr/u8-mbsnlen: New file.
58389         * lib/unistr/u8-mbsnlen.c: New file.
58390
58391         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58392         declarations.
58393
58394 2007-06-10  Bruno Haible  <bruno@clisp.org>
58395
58396         * lib/string_.h (mbsnlen): New declaration.
58397         * lib/mbsnlen.c: New file.
58398         * m4/mbsnlen.m4: New file.
58399         * modules/mbsnlen: New file.
58400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58401         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58402         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58403
58404 2007-06-10  Bruno Haible  <bruno@clisp.org>
58405
58406         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58407
58408 2007-06-10  Bruno Haible  <bruno@clisp.org>
58409
58410         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58411         * lib/mbuiter.h: Likewise.
58412
58413 2007-06-10  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58416         declaration.
58417
58418 2007-06-10  Karl Berry  <karl@gnu.org>
58419
58420         * config/srclist.txt: remove gettext entries, Bruno prefers
58421         to update individually.
58422
58423 2007-06-10  Bruno Haible  <bruno@clisp.org>
58424
58425         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58426         'maxlen'. Ensure only length + width bytes are allocated, not
58427         length + 1 + width.
58428
58429 2007-06-09  Bruno Haible  <bruno@clisp.org>
58430
58431         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58432         (CHAR_T): Remove macro.
58433         (VASNPRINTF): Update.
58434
58435 2007-06-09  Bruno Haible  <bruno@clisp.org>
58436
58437         * MODULES.html.sh (Unicode string functions): Add the new modules.
58438
58439         * modules/uniconv/u32-conv-to-enc: New file.
58440         * lib/uniconv/u32-conv-to-enc.c: New file.
58441         * modules/uniconv/u32-conv-to-enc-tests: New file.
58442         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58443
58444         * modules/uniconv/u16-conv-to-enc: New file.
58445         * lib/uniconv/u16-conv-to-enc.c: New file.
58446         * lib/uniconv/u-conv-to-enc.h: New file.
58447         * modules/uniconv/u16-conv-to-enc-tests: New file.
58448         * tests/uniconv/test-u16-conv-to-enc.c: New file.
58449
58450         * modules/uniconv/u8-conv-to-enc: New file.
58451         * lib/uniconv/u8-conv-to-enc.c: New file.
58452         * modules/uniconv/u8-conv-to-enc-tests: New file.
58453         * tests/uniconv/test-u8-conv-to-enc.c: New file.
58454
58455         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
58456         u32_conv_to_encoding): New declarations.
58457
58458 2007-06-09  Bruno Haible  <bruno@clisp.org>
58459
58460         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
58461
58462 2007-06-09  Bruno Haible  <bruno@clisp.org>
58463
58464         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
58465         * modules/malloca: Renamed from modules/allocsa, updated.
58466         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
58467         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
58468         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
58469         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
58470         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
58471         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
58472         * modules/xmalloca: Renamed from modules/xallocsa, updated.
58473         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
58474         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
58475         * modules/c-strcasestr (Depends-on): Update.
58476         * lib/c-strcasestr.c: Update.
58477         * modules/c-strstr (Depends-on): Update.
58478         * lib/c-strstr.c: Update.
58479         * modules/canonicalize-lgpl (Depends-on): Update.
58480         * lib/canonicalize-lgpl.c: Update.
58481         * modules/clean-temp (Depends-on): Update.
58482         * lib/clean-temp.c: Update.
58483         * modules/csharpcomp (Depends-on): Update.
58484         * lib/csharpcomp.c: Update.
58485         * modules/csharpexec (Depends-on): Update.
58486         * lib/csharpexec.c: Update.
58487         * modules/javacomp (Depends-on): Update.
58488         * lib/javacomp.c: Update.
58489         * modules/javaexec (Depends-on): Update.
58490         * lib/javaexec.c: Update.
58491         * modules/mbscasestr (Depends-on): Update.
58492         * lib/mbscasestr.c: Update.
58493         * modules/mbsstr (Depends-on): Update.
58494         * lib/mbsstr.c: Update.
58495         * modules/setenv (Depends-on): Update.
58496         * lib/setenv.c: Update.
58497         * modules/strcasestr (Depends-on): Update.
58498         * lib/strcasestr.c: Update.
58499         * modules/striconveha (Depends-on): Update.
58500         * lib/striconveha.c: Update.
58501         * modules/relocatable-prog-wrapper (Files): Update.
58502         * lib/relocwrapper.c: Update.
58503         * build-aux/install-reloc: Update.
58504         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
58505
58506 2007-06-08  Bruno Haible  <bruno@clisp.org>
58507
58508         Port to uClibc.
58509         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
58510         * lib/fpurge.c (fpurge): Likewise.
58511         * lib/freading.c (freading): Likewise.
58512         * lib/fseeko.c (rpl_fseeko): Likewise.
58513         * lib/fseterr.c (fseterr): Likewise.
58514         * lib/fwriting.c (fwriting): Likewise.
58515         * tests/test-fflush.c (main): Avoid a failure on uClibc.
58516
58517 2007-06-08  Bruno Haible  <bruno@clisp.org>
58518
58519         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
58520         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
58521         * modules/gettext (Files): Add m4/intlmacosx.m4.
58522
58523 2007-06-07  Bruno Haible  <bruno@clisp.org>
58524
58525         * modules/localename-tests: New file.
58526         * tests/test-localename.c: New file.
58527
58528         New module 'localename'.
58529         * lib/localename.h: New file.
58530         * lib/localename.c: New file, from GNU gettext.
58531         * m4/localename.m4: New file.
58532         * modules/localename: New file.
58533
58534 2007-06-07  Bruno Haible  <bruno@clisp.org>
58535
58536         Work around the lack of <wchar.h> on some builds of uClibc.
58537         * doc/headers/wchar.texi: Update.
58538         * lib/wchar_.h: Include <wchar.h> only if it exists.
58539         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
58540         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
58541         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
58542         doesn't exist.
58543         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
58544         * modules/mbfile (Depends-on): Add wchar.
58545         * modules/mbiter (Depends-on): Likewise.
58546         * modules/mbuiter (Depends-on): Likewise.
58547         Reported by Simon Josefsson.
58548
58549 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58550
58551         Work around problem reported by Steven M. Schweda in
58552         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
58553         Tru64 5.1B with the Compaq compiler environment installed declares
58554         an 'isblank' function but does not define it in the C library.
58555         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
58556         * lib/regex_internal.h (isblank): Likewise.
58557         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
58558         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58559
58560 2007-06-05  Bruno Haible  <bruno@clisp.org>
58561
58562         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
58563         ia64.
58564         * modules/printf-safe: New file.
58565         * modules/fprintf-posix (Depends-on): Add printf-safe.
58566         * modules/printf-posix (Depends-on): Likewise.
58567         * modules/snprintf-posix (Depends-on): Likewise.
58568         * modules/sprintf-posix (Depends-on): Likewise.
58569         * modules/vasnprintf-posix (Depends-on): Likewise.
58570         * modules/vasprintf-posix (Depends-on): Likewise.
58571         * modules/vfprintf-posix (Depends-on): Likewise.
58572         * modules/vprintf-posix (Depends-on): Likewise.
58573         * modules/vsnprintf-posix (Depends-on): Likewise.
58574         * modules/vsprintf-posix (Depends-on): Likewise.
58575         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
58576         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
58577         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
58578         "no" on i386, x86_64, ia64.
58579         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
58580         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58581         on i386, x86_64, ia64.
58582         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
58583         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58584         on i386, x86_64, ia64.
58585         * tests/test-vasnprintf-posix.c: Include float.h.
58586         (LDBL80_WORDS): New macro.
58587         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
58588         on i386, x86_64, ia64.
58589         * tests/test-vasprintf-posix.c: Include float.h.
58590         (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-snprintf-posix.c: Include float.h.
58594         * tests/test-sprintf-posix.c: Likewise.
58595         * tests/test-vsnprintf-posix.c: Likewise.
58596         * tests/test-vsprintf-posix.c: Likewise.
58597
58598 2007-06-05  Bruno Haible  <bruno@clisp.org>
58599
58600         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
58601         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
58602         non-IEEE numbers on i386, x86_64, ia64.
58603         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
58604         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
58605         * tests/test-isnanl.h: Include float.h.
58606         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
58607
58608 2007-06-05  Bruno Haible  <bruno@clisp.org>
58609
58610         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
58611         also the %a / %A. Handle the %a / %A code before this extra handling.
58612
58613 2007-06-05  Bruno Haible  <bruno@clisp.org>
58614
58615         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
58616         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
58617
58618 2007-06-05  Bruno Haible  <bruno@clisp.org>
58619
58620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
58621         typo in variable name.
58622
58623 2007-06-05  Eric Blake  <ebb9@byu.net>
58624
58625         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
58626         Reported by Simon Josefsson.
58627
58628 2007-06-04  Bruno Haible  <bruno@clisp.org>
58629
58630         Avoid test failures on some PowerPC platforms.
58631         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
58632         Define differently for PowerPC.
58633         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
58634         Reported by Gary V. Vaughan <gary@gnu.org>.
58635
58636 2007-06-02  Bruno Haible  <bruno@clisp.org>
58637
58638         Fix test-stdint failure on FreeBSD/ia64.
58639         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
58640         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
58641         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
58642         * doc/headers/stdint.texi: Update.
58643
58644 2007-06-01  Bruno Haible  <bruno@clisp.org>
58645
58646         * tests/test-binary-io.c (main): Pass a third argument to open().
58647         Reported by Gary V. Vaughan <gary@gnu.org>.
58648
58649 2007-06-01  Bruno Haible  <bruno@clisp.org>
58650
58651         * doc/functions/frexpl.texi: Update for mingw.
58652
58653 2007-06-01  Bruno Haible  <bruno@clisp.org>
58654
58655         * tests/test-lseek.c (main): Disable test of errno for invalid third
58656         argument.
58657         * doc/functions/lseek.texi: Update.
58658         Reported by Gary V. Vaughan <gary@gnu.org>.
58659
58660 2007-05-28  Bruno Haible  <bruno@clisp.org>
58661
58662         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
58663
58664 2007-05-31  Eric Blake  <ebb9@byu.net>
58665
58666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
58667         cross compiling.
58668
58669 2007-05-30  Eric Blake  <ebb9@byu.net>
58670         and Bruno Haible  <bruno@clisp.org>
58671
58672         Work around mingw test failures exposed by m4-1.4.9b.
58673         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
58674         * tests/test-unistd.c: Disable uid_t and git_t tests for the
58675         moment.
58676
58677 2007-05-30  Bruno Haible  <bruno@clisp.org>
58678
58679         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
58680         assuming that they are closed. Needed on HP-UX 11.
58681
58682 2007-05-29  Bruno Haible  <bruno@clisp.org>
58683
58684         Fix a problem with #include_next.
58685         * lib/dirent_.h: Split the double-inclusion guard.
58686         * lib/fcntl_.h: Likewise.
58687         * lib/float_.h: Likewise.
58688         * lib/iconv_.h: Likewise.
58689         * lib/inttypes_.h: Likewise.
58690         * lib/locale_.h: Likewise.
58691         * lib/math_.h: Likewise.
58692         * lib/netinet_in_.h: Likewise.
58693         * lib/search_.h: Likewise.
58694         * lib/signal_.h: Likewise.
58695         * lib/stdint_.h: Likewise.
58696         * lib/stdio_.h: Likewise.
58697         * lib/stdlib_.h: Likewise.
58698         * lib/string_.h: Likewise.
58699         * lib/sys_select_.h: Likewise.
58700         * lib/sys_socket_.h: Likewise.
58701         * lib/sys_stat_.h: Likewise.
58702         * lib/sys_time_.h: Likewise.
58703         * lib/sysexits_.h: Likewise.
58704         * lib/time_.h: Likewise.
58705         * lib/unistd_.h: Likewise.
58706         * lib/wchar_.h: Likewise.
58707         * lib/wctype_.h: Likewise.
58708
58709 2007-05-29  Bruno Haible  <bruno@clisp.org>
58710
58711         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
58712         for the moment.
58713
58714 2007-05-29  Bruno Haible  <bruno@clisp.org>
58715
58716         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
58717         invocation.
58718         Reported by Eric Blake.
58719
58720 2007-05-29  Bruno Haible  <bruno@clisp.org>
58721
58722         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
58723         compiling case.
58724
58725 2007-05-29  Eric Blake  <ebb9@byu.net>
58726             Bruno Haible  <bruno@clisp.org>
58727
58728         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
58729         cross compiles.
58730
58731 2007-05-28  Eric Blake  <ebb9@byu.net>
58732
58733         * modules/closein-tests (test_closein_LDADD): Support test on
58734         cygwin with libtool.
58735
58736 2007-05-28  Bruno Haible  <bruno@clisp.org>
58737
58738         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
58739         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58740         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58741         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58742         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58743         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58744         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58745         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58746         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58747
58748 2007-05-28  Eric Blake  <ebb9@byu.net>
58749
58750         Unconditionally include <config.h> in unit tests.
58751         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
58752         * tests/test-allocsa.c, tests/test-arcfour.c,
58753         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
58754         tests/test-array_list.c, tests/test-array_oset.c,
58755         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
58756         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
58757         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
58758         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
58759         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
58760         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
58761         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
58762         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
58763         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
58764         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
58765         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
58766         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
58767         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
58768         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
58769         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
58770         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
58771         test-md5.c, test-memmem.c, test-printf-posix.c,
58772         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
58773         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
58774         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
58775         test-strcasestr.c, test-striconv.c, test-striconveh.c,
58776         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
58777         test-vasnprintf-posix2.c, test-vasnprintf.c,
58778         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
58779         test-vfprintf-posix.c, test-vprintf-posix.c,
58780         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
58781         test-xvasprintf.c: Likewise.
58782
58783 2007-05-28  Bruno Haible  <bruno@clisp.org>
58784
58785         * gnulib-tool (func_import): Remember the --with-tests command-line
58786         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
58787         Reported by Eric Blake.
58788
58789 2007-05-28  Bruno Haible  <bruno@clisp.org>
58790
58791         * modules/ftell-tests: New file.
58792         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
58793         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
58794
58795         * lib/ftell.c: New file.
58796         * modules/ftell: New file.
58797         * m4/ftell.m4: New file.
58798         * doc/functions/ftell.texi: Update.
58799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
58800         REPLACE_FTELL.
58801         * lib/stdio_.h (rpl_ftell): New declaration.
58802         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
58803         REPLACE_FTELL.
58804
58805 2007-05-28  Eric Blake  <ebb9@byu.net>
58806
58807         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
58808
58809 2007-05-28  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/fseek-tests: New file.
58812         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
58813         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
58814
58815         * lib/fseek.c: New file.
58816         * modules/fseek: New file.
58817         * m4/fseek.m4: New file.
58818         * doc/functions/fseek.texi: Update.
58819         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
58820         REPLACE_FSEEK.
58821         * lib/stdio_.h (rpl_fseek): New declaration.
58822         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
58823         REPLACE_FSEEK.
58824
58825 2007-05-28  Bruno Haible  <bruno@clisp.org>
58826
58827         * lib/stdio_.h (fflush): More comments.
58828
58829 2007-05-28  Bruno Haible  <bruno@clisp.org>
58830
58831         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
58832         runtime test.
58833
58834 2007-05-28  Eric Blake  <ebb9@byu.net>
58835
58836         Improve lseek module.
58837         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
58838         * lib/unistd_.h (lseek): Scale back link warning message.
58839         * tests/test-lseek.c: Beef up test.
58840         * tests/test-lseek.sh: Exercise more facets of lseek.
58841         Reported by Bruno Haible.
58842
58843 2007-05-28  Bruno Haible  <bruno@clisp.org>
58844
58845         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
58846         to define.
58847
58848 2007-05-27  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
58851
58852 2007-05-27  Bruno Haible  <bruno@clisp.org>
58853
58854         * modules/openmp: New file.
58855         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
58856         Noah Misch.
58857
58858 2007-05-26  Bruno Haible  <bruno@clisp.org>
58859
58860         * modules/chdir-long (Depends-on): Add fchdir.
58861         * modules/chdir-safer (Depends-on): Likewise.
58862         * modules/fts (Depends-on): Likewise.
58863         * modules/fts-lgpl (Depends-on): Likewise.
58864         * modules/openat (Depends-on): Likewise.
58865         * modules/savewd (Depends-on): Likewise.
58866
58867 2007-05-24  Eric Blake  <ebb9@byu.net>
58868
58869         Fix lseek on mingw.
58870         * modules/lseek: New module.
58871         * m4/lseek.m4: New file.
58872         * lib/lseek.c: New file.
58873         * modules/lseek-tests: New file.
58874         * tests/test-lseek.c: New file.
58875         * tests/test-lseek.sh: New file.
58876         * MODULES.html.sh: Document lseek module.
58877         * modules/fflush (Depends-on): Add lseek, fseeko.
58878         * modules/fseeko (Depends-on): Likewise.
58879         * modules/ftello (Depends-on): Likewise.
58880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
58881         broken.
58882         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
58883         broken.
58884         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
58885         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
58886         * lib/ftello.c (rpl_ftello): Likewise.
58887         * tests/test-fseeko.c (main): Test this.
58888         * tests/test-fseeko.sh: Likewise.
58889         * tests/test-ftello.c (main): Likewise.
58890         * tests/test-ftello.sh: Likewise.
58891         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
58892         implies replacing fseek.
58893         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
58894         HAVE_FTELLO.
58895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
58896         * modules/unistd (Makefile.am): Likewise.
58897         * lib/unistd_.h (lseek): Declare a replacement.
58898         * doc/functions/lseek.texi (lseek): Document this fix.
58899         * doc/functions/fseek.texi (fseek): Likewise.
58900         * doc/functions/ftell.texi (ftell): Likewise.
58901
58902 2007-05-24  Bruno Haible  <bruno@clisp.org>
58903
58904         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
58905         in the printed representation of a NaN.
58906         * tests/test-vasprintf-posix.c (test_function): Likewise.
58907         * tests/test-snprintf-posix.h (test_function): Likewise.
58908         * tests/test-sprintf-posix.h (test_function): Likewise.
58909         Reported by Eric Blake.
58910
58911 2007-05-23  Eric Blake  <ebb9@byu.net>
58912
58913         Fix fseeko/ftello on cygwin 1.5.24.
58914         * doc/functions/fseeko.texi (fseeko): Document the fix.
58915         * doc/functions/ftello.texi (ftello): Document the fix.
58916         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
58917         * doc/functions/stdout.text (stdout): New file.
58918         * doc/functions/stderr.text (stderr): New file.
58919         * doc/gnulib.texi (Function Substitutes): Use new files.
58920         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
58921         prior to 1.7.0.
58922         * tests/test-ftello.c (main): Likewise for ftello.
58923         * tests/test-fseeko.sh: New file.
58924         * tests/test-ftello.sh: New file.
58925         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
58926         with seekable stdin.
58927         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
58928         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
58929         (gl_REPLACE_FSEEKO): New macro.
58930         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
58931         * modules/fseeko (Files): Distribute fseeko.c.
58932         * modules/ftello (Files): Distribute ftello.c.
58933         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
58934         mode.
58935         * lib/ftello.c (rpl_ftello): New file.
58936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
58937         fseeko, ftello.
58938         (gl_STDIN_LARGE_OFFSET): New macro.
58939         * modules/stdio (Makefile.am): Perform the replacement.
58940         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
58941
58942 2007-05-23  Bruno Haible  <bruno@clisp.org>
58943
58944         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
58945         GNULIB_POSIXCHECK is defined.
58946
58947 2007-05-21  Bruno Haible  <bruno@clisp.org>
58948
58949         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
58950         Check also the output for NaN arguments. When cross-compiling, guess
58951         no on IRIX.
58952         * lib/vasnprintf.c: Update comments.
58953         * tests/test-vasnprintf-posix.c (strisnan): New function.
58954         (test_function): Use it.
58955         * tests/test-vasprintf-posix.c (strisnan): New function.
58956         (test_function): Use it.
58957         * tests/test-snprintf-posix.h (strisnan): New function.
58958         (test_function): Use it.
58959         * tests/test-sprintf-posix.h (strisnan): New function.
58960         (test_function): Use it.
58961         Reported by Eric Blake.
58962
58963 2007-05-20  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
58966         numbers that fails on BeOS.
58967         * doc/functions/frexpl.texi: Update.
58968
58969 2007-05-20  Jim Meyering  <jim@meyering.net>
58970
58971         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
58972         forced upon us by glibc-2.6.
58973
58974 2007-05-20  Bruno Haible  <bruno@clisp.org>
58975
58976         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
58977         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
58978         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
58979         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
58980         NEED_PRINTF_INFINITE.
58981         (is_infinitel): New function.
58982         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
58983         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
58984         gl_PREREQ_VASNPRINTF_INFINITE.
58985         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
58986         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58987         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
58988         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
58989         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
58990         gl_PREREQ_VASNPRINTF_INFINITE.
58991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58992         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58993         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58994         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58995         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58996         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58997         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58998         * doc/functions/fprintf.texi: Update.
58999         * doc/functions/printf.texi: Update.
59000         * doc/functions/snprintf.texi: Update.
59001         * doc/functions/sprintf.texi: Update.
59002         * doc/functions/vfprintf.texi: Update.
59003         * doc/functions/vprintf.texi: Update.
59004         * doc/functions/vsnprintf.texi: Update.
59005         * doc/functions/vsprintf.texi: Update.
59006
59007 2007-05-20  Bruno Haible  <bruno@clisp.org>
59008
59009         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59010         was not found in libc.
59011         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59012
59013 2007-05-20  Bruno Haible  <bruno@clisp.org>
59014
59015         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59016         printed as "-nan" instead of "nan".
59017         * tests/test-vasprintf-posix.c (test_function): Likewise.
59018         * tests/test-snprintf-posix.h (test_function): Likewise.
59019         * tests/test-sprintf-posix.h (test_function): Likewise.
59020         Needed for HP-UX 11.
59021
59022 2007-05-20  Jim Meyering  <jim@meyering.net>
59023
59024         Fix buggy test for the fchownat-deref bug.
59025         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59026         symlink required for the run-test.  Without it, this test would
59027         always declare that fchownat doesn't work, and client code would
59028         unnecessarily use the replacement function with fixed libc.
59029         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59030         Reported by Greg Schafer.
59031
59032 2007-05-19  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59035         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59036         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59037         Needed for IRIX 6.5 and Solaris 2.5.1.
59038
59039 2007-05-19  Bruno Haible  <bruno@clisp.org>
59040
59041         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59042         (test_function): Skip tests involving -0.0 on platforms where
59043         -0.0 = 0.0.
59044         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59045         (test_function): Skip tests involving -0.0 on platforms where
59046         -0.0 = 0.0.
59047         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59048         (test_function): Skip tests involving -0.0 on platforms where
59049         -0.0 = 0.0.
59050         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59051         (test_function): Skip tests involving -0.0 on platforms where
59052         -0.0 = 0.0.
59053         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59054         tests.
59055         * tests/test-printf-posix.h (test_function): Likewise.
59056         * tests/test-printf-posix.output: Remove all -0.0 related results.
59057         Needed for IRIX 6.5.
59058
59059 2007-05-19  Bruno Haible  <bruno@clisp.org>
59060
59061         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59062         printed as "nan0x7fffffff" instead of "nan".
59063         * tests/test-vasprintf-posix.c (test_function): Likewise.
59064         * tests/test-snprintf-posix.h (test_function): Likewise.
59065         * tests/test-sprintf-posix.h (test_function): Likewise.
59066         * tests/test-fprintf-posix.h (NaN): Remove macro.
59067         (test_function): Remove all NaN related tests.
59068         * tests/test-printf-posix.h (NaN): Remove macro.
59069         (test_function): Remove all NaN related tests.
59070         * tests/test-printf-posix.output: Remove all NaN related results.
59071         Needed for IRIX 6.5.
59072
59073 2007-05-19  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59076         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59077
59078 2007-05-19  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/float_.h: New file.
59081         * m4/float_h.m4: New file.
59082         * modules/float: New file.
59083         * modules/isnanl (Dependencies): Add float.
59084         * modules/isnanl-nolibm (Dependencies): Likewise.
59085         * modules/mathl (Dependencies): Likewise.
59086         * modules/printf-frexpl (Dependencies): Likewise.
59087         * modules/signbit (Dependencies): Likewise.
59088         * modules/vasnprintf (Dependencies): Likewise.
59089         * doc/headers/float.texi: Update.
59090
59091 2007-05-19  Jim Meyering  <jim@meyering.net>
59092
59093         * lib/utimens.c (gl_futimens): Rename from futimens,
59094         now that glibc-2.6 declares futimens.
59095         * lib/utimens.h: Likewise.
59096
59097 2007-05-19  Bruno Haible  <bruno@clisp.org>
59098
59099         Avoid test failures on mingw.
59100         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59101         * tests/test-printf-posix.sh: Likewise.
59102         * tests/test-vfprintf-posix.sh: Likewise.
59103         * tests/test-vprintf-posix.sh: Likewise.
59104
59105 2007-05-19  Bruno Haible  <bruno@clisp.org>
59106
59107         Fix *printf result for NaN, Inf, -0.0 on mingw.
59108         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59109         * lib/vasnprintf.c: Include math.h and isnan.h.
59110         (is_infinite_or_zero): New function.
59111         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59112         values in the %f, %F, %e, %E, %g, %G directives.
59113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59115         gl_PRINTF_INFINITE and test its result. Invoke
59116         gl_PREREQ_VASNPRINTF_INFINITE.
59117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59124         * doc/functions/fprintf.texi: Update.
59125         * doc/functions/printf.texi: Update.
59126         * doc/functions/snprintf.texi: Update.
59127         * doc/functions/sprintf.texi: Update.
59128         * doc/functions/vfprintf.texi: Update.
59129         * doc/functions/vprintf.texi: Update.
59130         * doc/functions/vsnprintf.texi: Update.
59131         * doc/functions/vsprintf.texi: Update.
59132
59133 2007-05-19  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59136         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59137         Instead of multiplying with 10^k, set extra_zeroes to k.
59138         (scale10_round_long_double): Remove function.
59139
59140 2007-05-18  Bruno Haible  <bruno@clisp.org>
59141
59142         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59143         introduced on 2007-05-06.
59144
59145 2007-05-18  Bruno Haible  <bruno@clisp.org>
59146
59147         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59148         %g directives.
59149         * tests/test-vasprintf-posix.c (test_function): Likewise.
59150         * tests/test-snprintf-posix.h (test_function): Likewise.
59151         * tests/test-sprintf-posix.h (test_function): Likewise.
59152
59153 2007-05-18  Bruno Haible  <bruno@clisp.org>
59154
59155         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59156         (strmatch): New function.
59157         (test_function): Test the %f directive on numbers of various exponents.
59158         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59159         (strmatch): New function.
59160         (test_function): Test the %f directive on numbers of various exponents.
59161         * tests/test-snprintf-posix.h (strmatch): New function.
59162         (test_function): Test the %f directive on numbers of various exponents.
59163         * tests/test-sprintf-posix.h (strmatch): New function.
59164         (test_function): Test the %f directive on numbers of various exponents.
59165         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59166         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59167         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59168         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59169
59170 2007-05-18  Bruno Haible  <bruno@clisp.org>
59171
59172         Add support for 'long double' number output.
59173         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59174         * lib/vasnprintf.c: Include math.h and float+.h.
59175         (mp_limb_t): New type.
59176         (GMP_LIMB_BITS): New macro.
59177         (mp_twolimb_t): New type.
59178         (GMP_TWOLIMB_BITS): New macro.
59179         (mpn_t): New type.
59180         (multiply, divide, convert_to_decimal, decode_long_double,
59181         scale10_round_long_double, scale10_round_decimal_long_double,
59182         floorlog10l): New functions.
59183         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59184         for the %f, %F, %e, %E, %g, %G directives.
59185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59186         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59187         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59188         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59196         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59197         * modules/snprintf-posix (Depends-on): Likewise.
59198         * modules/sprintf-posix (Depends-on): Likewise.
59199         * modules/vasnprintf-posix (Depends-on): Likewise.
59200         * modules/vasprintf-posix (Depends-on): Likewise.
59201         * modules/vfprintf-posix (Depends-on): Likewise.
59202         * modules/vsnprintf-posix (Depends-on): Likewise.
59203         * modules/vsprintf-posix (Depends-on): Likewise.
59204         * modules/vasnprintf (Files): Add lib/float+.h.
59205         * doc/functions/fprintf.texi: Update.
59206         * doc/functions/printf.texi: Update.
59207         * doc/functions/snprintf.texi: Update.
59208         * doc/functions/sprintf.texi: Update.
59209         * doc/functions/vfprintf.texi: Update.
59210         * doc/functions/vprintf.texi: Update.
59211         * doc/functions/vsnprintf.texi: Update.
59212         * doc/functions/vsprintf.texi: Update.
59213
59214 2007-05-18  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59217
59218 2007-05-18  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59221         for printing 64-bit integers. Needed for mingw.
59222
59223 2007-05-18  Bruno Haible  <bruno@clisp.org>
59224
59225         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59226         gl_FUNC_FREXPL_WORKS.
59227         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59228
59229 2007-05-18  Bruno Haible  <bruno@clisp.org>
59230
59231         * modules/frexpl-nolibm-tests: New file.
59232
59233         * modules/frexpl-nolibm: New file.
59234         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59235
59236 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59237
59238         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59239         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59240         GCC 4.2, which otherwise issues a lot of warnings.
59241         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59242         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59243         Likewise.
59244         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59245         * modules/iconv_open (iconv.h): Likewise.
59246         * modules/locale (locale.h): Likewise.
59247         * modules/netinet_in (netinet/in.h): Likewise.
59248         * modules/sys_select (sys_select.h): Likewise.
59249         * modules/sys_socket (sys/socket.h): Likewise.
59250         * modules/sys_stat (sys/stat.h): Likewise.
59251         * modules/sysexits (sysexits.h): Likewise.
59252         * modules/unistd (unistd.h): Likewise.
59253
59254 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59255
59256         * modules/closein-tests (Makefile.am): Distribute
59257         `test-closein.sh'.
59258
59259 2007-05-17  Bruno Haible  <bruno@clisp.org>
59260
59261         * tests/test-printf-posix.output: Renamed from
59262         tests/test-fprintf-posix.out.
59263         * modules/fprintf-posix-tests: Update.
59264         * modules/printf-posix-tests: Update.
59265         * modules/vfprintf-posix-tests: Update.
59266         * modules/vprintf-posix-tests: Update.
59267         * tests/test-fprintf-posix.sh: Update.
59268         * tests/test-printf-posix.sh: Update.
59269         * tests/test-vfprintf-posix.sh: Update.
59270         * tests/test-vprintf-posix.sh: Update.
59271         Reported by Ralf Wildenhues.
59272
59273 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59276         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59277         GCC 4.2, which otherwise issues a lot of warnings.
59278         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59279         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59280         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59281         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59282         it should no longer be needed.
59283         * lib/string_.h: Likewise.
59284         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59285         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59286         * modules/inttypes (inttypes.h): Likewise.
59287         * modules/math (math.h): Likewise.
59288         * modules/search (search.h): Likewise.
59289         * modules/signal (signal.h): Likewise.
59290         * modules/stdint (stdint.h): Likewise.
59291         * modules/stdio (stdio.h): Likewise.
59292         * modules/stdlib (stdlib.h): Likewise.
59293         * modules/string (string.h): Likewise.
59294         * modules/sys_time (sys/time.h): Likewise.
59295         * modules/time (time.h): Likewise.
59296         * modules/wchar (wchar.h): Likewise.
59297         * modules/wctype (wtype.h): Likewise.
59298
59299 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59300
59301         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59302
59303 2007-05-13  Bruno Haible  <bruno@clisp.org>
59304
59305         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59306         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59307         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59308         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59309         (gl_PREREQ_STRTOK_R): Don't require it here.
59310
59311 2007-05-13  Bruno Haible  <bruno@clisp.org>
59312
59313         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59314         when used in C++ mode.
59315
59316 2007-05-12  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/linebuffer.h: Tweak doc.
59319         * lib/linebuffer.c: Likewise.
59320
59321 2007-05-12  James Youngman  <jay@gnu.org>
59322
59323         * lib/linebuffer.c (readlinebuffer_delim): New function,
59324         like readlinebuffer, but use a caller-specified delimiter.
59325         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59326         as the delimiter.
59327         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59328
59329 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59330
59331         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59332         * modules/openat (Files): Remove openat-die.c.
59333         (Depends-on): Add openat-die.
59334         * modules/openat-die: New module.
59335
59336 2007-05-06  Bruno Haible  <bruno@clisp.org>
59337
59338         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59339         Update with info about Cygwin.
59340         * doc/functions/fprintf.texi: Update.
59341         * doc/functions/printf.texi: Update.
59342         * doc/functions/snprintf.texi: Update.
59343         * doc/functions/sprintf.texi: Update.
59344         * doc/functions/vfprintf.texi: Update.
59345         * doc/functions/vprintf.texi: Update.
59346         * doc/functions/vsnprintf.texi: Update.
59347         * doc/functions/vsprintf.texi: Update.
59348         Reported by Eric Blake.
59349
59350 2007-05-06  Bruno Haible  <bruno@clisp.org>
59351
59352         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59353         padding ourselves for the floating-point directives.
59354         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59355         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59357         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59358         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59360         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59366         * tests/test-snprintf-posix.h (test_function): Also check the width
59367         and some flags in the %f directive.
59368         * tests/test-sprintf-posix.h (test_function): Likewise.
59369         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59370         * tests/test-vasprintf-posix.c (test_function): Likewise.
59371         * doc/functions/fprintf.texi: Update.
59372         * doc/functions/printf.texi: Update.
59373         * doc/functions/snprintf.texi: Update.
59374         * doc/functions/sprintf.texi: Update.
59375         * doc/functions/vfprintf.texi: Update.
59376         * doc/functions/vprintf.texi: Update.
59377         * doc/functions/vsnprintf.texi: Update.
59378         * doc/functions/vsprintf.texi: Update.
59379
59380 2007-05-06  Bruno Haible  <bruno@clisp.org>
59381
59382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59383         pass the ' flag character to sprintf or snprintf.
59384         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59385         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59387         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59388         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59390         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59393         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59394         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59395         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59396         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59397         flag.
59398         * tests/test-sprintf-posix.h (test_function): Likewise.
59399         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59400         * tests/test-vasprintf-posix.c (test_function): Likewise.
59401         * doc/functions/fprintf.texi: Update.
59402         * doc/functions/printf.texi: Update.
59403         * doc/functions/snprintf.texi: Update.
59404         * doc/functions/sprintf.texi: Update.
59405         * doc/functions/vfprintf.texi: Update.
59406         * doc/functions/vprintf.texi: Update.
59407         * doc/functions/vsnprintf.texi: Update.
59408         * doc/functions/vsprintf.texi: Update.
59409
59410 2007-05-01  Bruno Haible  <bruno@clisp.org>
59411
59412         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59413
59414 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59417         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59418
59419 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59422         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59424
59425 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59426
59427         * lib/argp-help.c (struct hol_entry): New member `ord'.
59428         (HOL_ENTRY_PTRCMP): Use ord for comparison
59429         (hol_sort): Initialize ord.
59430
59431 2007-05-01  Bruno Haible  <bruno@clisp.org>
59432
59433         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59434         Reported by Eric Blake.
59435         * doc/gnulib.texi (Function Substitutes): Update.
59436
59437 2007-05-01  Bruno Haible  <bruno@clisp.org>
59438
59439         * doc/functions.texi: Remove file, now redundant through
59440         doc/functions/*.texi.
59441
59442 2007-05-01  Bruno Haible  <bruno@clisp.org>
59443
59444         * modules/argp (Depends-on): Add sleep.
59445
59446 2007-05-01  Bruno Haible  <bruno@clisp.org>
59447
59448         * modules/sleep-tests: New file.
59449         * tests/test-sleep.c: New file.
59450
59451         * modules/sleep: New file.
59452         * lib/sleep.c: New file.
59453         * m4/sleep.m4: New file.
59454         * lib/unistd_.h (sleep): New declaration.
59455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
59456         HAVE_SLEEP.
59457         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
59458         * doc/functions/sleep.texi: Document the sleep module.
59459
59460 2007-05-01  Bruno Haible  <bruno@clisp.org>
59461
59462         * lib/sigprocmask.h: Remove file.
59463         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
59464         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
59465         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
59466         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
59467         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
59468         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
59469         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
59470         HAVE_SIGSET_T as a shell variable.
59471         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
59472         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
59473         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
59474         (Depends-on): Add signal. Remove verify.
59475         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
59476         (Include): Mention <signal.h> instead of sigprocmask.h.
59477         * NEWS: Mention the change.
59478         * lib/fatal-signal.c: Don't include sigprocmask.h.
59479
59480 2007-05-01  Bruno Haible  <bruno@clisp.org>
59481
59482         * modules/signal: New file.
59483         * lib/signal_.h: New file.
59484         * m4/signal_h.m4: New file.
59485
59486 2007-05-01  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
59489         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
59490         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
59491         HAVE_WCTYPE_CTMP_BUG into wctype.h.
59492
59493 2007-05-01  Bruno Haible  <bruno@clisp.org>
59494
59495         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
59496         configure time.
59497         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
59498         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
59499         * modules/sys_stat (Makefile.am): Substitute their values into
59500         sys/stat.h.
59501
59502 2007-05-01  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
59505         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
59506         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
59507
59508 2007-05-01  Bruno Haible  <bruno@clisp.org>
59509
59510         * doc/header/assert.texi: Undo last change: don't mention the gnulib
59511         'assert' module here.
59512
59513 2007-05-01  Bruno Haible  <bruno@clisp.org>
59514
59515         * doc/functions/*.texi: New files.
59516         * doc/functions/google-ranking.txt: New file.
59517         * doc/gnulib.texi (Function Substitutes): New chapter.
59518         (ctime, inet_ntoa): Remove sections.
59519         * doc/ctime.texi: Remove file.
59520         * doc/inet_ntoa.texi: Remove file.
59521         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
59522         dependencies.
59523         (%.info): New rule, specifying a --reference-limit.
59524
59525 2007-05-01  Bruno Haible  <bruno@clisp.org>
59526
59527         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
59528
59529 2007-05-01  Bruno Haible  <bruno@clisp.org>
59530
59531         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
59532         the portability of 'mkdir' to mingw systems.
59533
59534 2007-05-01  Bruno Haible  <bruno@clisp.org>
59535
59536         * doc/headers/google-ranking.txt: New file.
59537
59538 2007-04-30  Eric Blake  <ebb9@byu.net>
59539
59540         Prefer fseeko to fseek.
59541         * modules/getpass (Depends-on): Add fseeko.
59542         * lib/getpass.c (getpass): Use fseeko, not fseek.
59543
59544 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
59545
59546         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
59547         assumes the sorting is stable, while most qsort implementations
59548         are not.  Use argument addresses to ensure they never compare as
59549         equal.
59550
59551         * tests/test-argp-2.sh (usage-indent test): Fix output
59552         (func_compare): Restore diff options
59553         * tests/test-argp.c: Restore #include "progname.h"
59554
59555 2007-04-29  Bruno Haible  <bruno@clisp.org>
59556
59557         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
59558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59559         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
59560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59561         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
59562         (configure.ac): Define CHECK_SNPRINTF_POSIX.
59563         (TESTS, check_PROGRAMS): Add test-snprintf.
59564         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
59565         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
59566         (TESTS, check_PROGRAMS): Add test-vsnprintf.
59567         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
59568         assertions that fail on HP-UX, OSF/1, or IRIX.
59569         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
59570
59571 2007-04-29  Bruno Haible  <bruno@clisp.org>
59572
59573         * MODULES.html.sh (posix_functions): Remove 'contents'.
59574
59575 2007-04-29  Karl Berry  <karl@gnu.org>
59576
59577         * config/srclist.txt (gendocs_template_min): new entry.
59578
59579 2007-04-29  Bruno Haible  <bruno@clisp.org>
59580
59581         Work around fpurge bug on BSD systems.
59582         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
59583         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
59584         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
59585         fpurge to rpl_fpurge if the system already has this function.
59586         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
59587         the case where the system already has this function. Correct invariants
59588         on BSD systems.
59589         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
59590         BSD systems.
59591
59592 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59593
59594         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
59595         proposed by Sven Verdoolaege.
59596
59597         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
59598         options.
59599         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
59600         (usage and help tests): Update
59601
59602 2007-04-29  Bruno Haible  <bruno@clisp.org>
59603
59604         * tests/test-fflush.c (main): Use a file of size 17, not 10.
59605         Print more information in case of failure. Disable a test on BeOS.
59606
59607 2007-04-29  Bruno Haible  <bruno@clisp.org>
59608
59609         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
59610         This helps debugging on systems on which no gdb is available.
59611
59612 2007-04-29  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/freading.h: Improve comments.
59615         * lib/fwriting.h: Likewise.
59616         * tests/test-freading.c (main): Don't check freading immediately after
59617         repositioning. Needed for glibc.
59618
59619 2007-04-29  Bruno Haible  <bruno@clisp.org>
59620
59621         * lib/freading.c (freading): Trivial simplification.
59622
59623 2007-04-28  Bruno Haible  <bruno@clisp.org>
59624
59625         * tests/test-fwriting.c (main): Also test the interaction between
59626         fflush and fwriting.
59627         * modules/fwriting-tests (Depends-on): Add fflush.
59628
59629         * tests/test-freading.c (main): Also test the interaction between
59630         fflush and freading.
59631         * modules/freading-tests (Depends-on): Add fflush.
59632
59633 2007-04-28  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
59636         fseeko and ftello.
59637         Suggested by Eric Blake.
59638
59639 2007-04-28  Jim Meyering  <jim@meyering.net>
59640
59641         Avoid false-negative in gl_STDINT_H's C99 conformance test.
59642         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
59643         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
59644
59645 2007-04-27  Eric Blake  <ebb9@byu.net>
59646
59647         * doc/headers/assert.texi (assert.h): Document assert module use.
59648
59649 2007-04-27  Bruno Haible  <bruno@clisp.org>
59650
59651         * doc/headers/*.texi: New files.
59652         * doc/gnulib.texi (Header File Substitutes): New chapter.
59653         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
59654         dependencies.
59655         (standards.info ,standards.html, standards.dvi): Update dependencies.
59656         (mostlyclean, clean): New targets.
59657
59658 2007-04-27  Bruno Haible  <bruno@clisp.org>
59659
59660         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
59661         * modules/sysexits (Files, Makefile.am): Update.
59662
59663         * lib/sys_socket_.h: Renamed from lib/socket_.h.
59664         * modules/sys_socket (Files, Makefile.am): Update.
59665
59666         * lib/sys_stat_.h: Renamed from lib/stat_.h.
59667         * modules/sys_stat (Files, Makefile.am): Update.
59668
59669 2007-04-27  Eric Blake  <ebb9@byu.net>
59670
59671         * lib/freading.h: Improve comments.
59672         * lib/fwriting.h: Likewise.
59673         * lib/fflush.c: Likewise.
59674
59675         Fix closein for mingw.
59676         * modules/closein-tests: Add tests for closein.
59677         * tests/test-closein.c: New file.
59678         * tests/test-closein.sh: Likewise.
59679         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
59680         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
59681
59682 2007-04-27  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
59685         version is < 6.
59686         * lib/math_.h [__DECC]: Likewise.
59687         * lib/stdio_.h [__DECC]: Likewise.
59688         * lib/stdlib_.h [__DECC]: Likewise.
59689         * lib/string_.h [__DECC]: Likewise.
59690         * lib/time_.h [__DECC]: Likewise.
59691         * lib/wchar_.h [__DECC]: Likewise.
59692         * lib/wctype_.h [__DECC]: Likewise.
59693
59694 2007-04-27  Bruno Haible  <bruno@clisp.org>
59695
59696         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
59697
59698 2007-04-27  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/fflush.c: Add comments.
59701         * modules/fpurge-tests (Depends-on): Add fflush.
59702         * modules/freadable-tests (Depends-on): Likewise.
59703         * modules/fwritable-tests (Depends-on): Likewise.
59704
59705 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
59706
59707         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
59708         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
59709         Report by Bruno Haible <bruno@clisp.org>.
59710
59711 2007-04-26  Eric Blake  <ebb9@byu.net>
59712
59713         Fix fflush on mingw.
59714         * modules/fflush (Depends-on): Add freading.
59715         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
59716         but unread data.
59717
59718 2007-04-26  Eric Blake  <ebb9@byu.net>
59719         and Bruno Haible  <bruno@clisp.org>
59720
59721         Implement freading and fwriting.
59722         * lib/freading.c: New file.
59723         * lib/freading.h: Likewise.
59724         * m4/freading.m4: Likewise.
59725         * modules/freading: Likewise.
59726         * modules/freading-tests: Likewise.
59727         * tests/test-freading.c: Likewise.
59728         * lib/fwriting.c: New file.
59729         * lib/fwriting.h: Likewise.
59730         * m4/fwriting.m4: Likewise.
59731         * modules/fwriting: Likewise.
59732         * modules/fwriting-tests: Likewise.
59733         * tests/test-fwriting.c: Likewise.
59734         * MODULES.html.sh (File stream based Input/Output): Mention them.
59735
59736 2007-04-26  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
59739         'long' when we assume it.
59740         Suggested by Eric Blake.
59741
59742 2007-04-26  Bruno Haible  <bruno@clisp.org>
59743
59744         Ensure fseeko, ftello are declared on glibc systems.
59745         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
59746         * modules/fseeko (configure.ac-early): Likewise.
59747         * modules/ftello (configure.ac-early): Likewise.
59748         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
59749         AC_FUNC_FSEEKO for this.
59750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
59751         (gl_CHECK_FSEEKO): Remove macro.
59752
59753 2007-04-26  Bruno Haible  <bruno@clisp.org>
59754
59755         * tests/test-fflush.c (main): Also check the ftell result after
59756         fflush and fseek/fseeko.
59757         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
59758         file descriptor position cache in the stream.
59759         * lib/fseeko.c (rpl_fseeko): Likewise.
59760
59761 2007-04-26  Bruno Haible  <bruno@clisp.org>
59762
59763         * modules/fflush-tests (Depends-on): Add fseeko.
59764
59765 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
59766             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59767
59768         * lib/argz_.h: ensure error_t definition is obtained in same
59769         mechanism system argz.h would have.
59770         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
59771         argz facilities are known bad.  Err on the side of caution if
59772         cross-compiling.
59773
59774 2007-04-25  Eric Blake  <ebb9@byu.net>
59775
59776         * lib/fpurge.c (includes): Use stdlib.h for free.
59777         * tests/test-fflush.c (main): Also test fflush-fseeko.
59778
59779 2007-04-25  Bruno Haible  <bruno@clisp.org>
59780
59781         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
59782         * lib/fseeko.c: New file.
59783         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
59784         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
59785         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
59786         gl_FUNC_FSEEKO.
59787         (gl_FUNC_FSEEKO): Invoke it.
59788         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
59789         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
59790         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
59791
59792 2007-04-25  Bruno Haible  <bruno@clisp.org>
59793
59794         * modules/fflush (Depends-on): Add ftello.
59795
59796 2007-04-25  Bruno Haible  <bruno@clisp.org>
59797
59798         * modules/ftello-tests: New file.
59799         * tests/test-ftello.c: New file.
59800
59801         * modules/ftello: New file.
59802         * m4/ftello.m4: New file.
59803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
59804         HAVE_FTELLO.
59805         * lib/stdio_.h (ftello): New declaration.
59806         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
59807         HAVE_FTELLO.
59808
59809 2007-04-25  Bruno Haible  <bruno@clisp.org>
59810
59811         * modules/fseeko-tests: New file.
59812         * tests/test-fseeko.c: New file.
59813
59814         * modules/fseeko: New file.
59815         * m4/fseeko.m4: New file.
59816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
59817         HAVE_FSEEKO.
59818         * lib/stdio_.h (fseeko): New declaration.
59819         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
59820         HAVE_FSEEKO.
59821
59822 2007-04-25  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
59825
59826 2007-04-25  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
59829         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
59830         * tests/test-unistd.c: Likewise.
59831         * tests/test-fcntl.c: Likewise.
59832
59833 2007-04-23  Eric Blake  <ebb9@byu.net>
59834
59835         * lib/fflush.c: Fix missing include.
59836         Reported by Bruno Haible.
59837
59838 2007-04-23  Bruno Haible  <bruno@clisp.org>
59839
59840         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
59841         Reported by Eric Blake.
59842
59843 2007-04-23  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
59846
59847 2007-04-23  Bruno Haible  <bruno@clisp.org>
59848
59849         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
59850
59851 2007-04-23  Bruno Haible  <bruno@clisp.org>
59852
59853         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
59854         Needed on HP-UX 11.
59855
59856 2007-04-16  Eric Blake  <ebb9@byu.net>
59857
59858         Make fflush rely on fpurge.
59859         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
59860         open coding all variants.
59861         * modules/fflush (Depends-on): Add fpurge and unistd.
59862         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
59863         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
59864
59865         Fix --with-tests compilation on cygwin.
59866         * modules/argmatch-tests (Makefile.am): List gnulib library first
59867         in LDADD.
59868         * modules/argp-tests (Makefile.am): Likewise.
59869         * modules/array-list-tests (Makefile.am): Likewise.
59870         * modules/array-oset-tests (Makefile.am): Likewise.
59871         * modules/avltree-list-tests (Makefile.am): Likewise.
59872         * modules/avltree-oset-tests (Makefile.am): Likewise.
59873         * modules/avltreehash-list-tests (Makefile.am): Likewise.
59874         * modules/carray-list-tests (Makefile.am): Likewise.
59875         * modules/dirname-tests (Makefile.am): Likewise.
59876         * modules/frexp-tests (Makefile.am): Likewise.
59877         * modules/isnanl-tests (Makefile.am): Likewise.
59878         * modules/linked-list-tests (Makefile.am): Likewise.
59879         * modules/linkedhash-list-tests (Makefile.am): Likewise.
59880         * modules/lock-tests (Makefile.am): Likewise.
59881         * modules/rbtree-list-tests (Makefile.am): Likewise.
59882         * modules/rbtree-oset-tests (Makefile.am): Likewise.
59883         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
59884         * modules/tls-tests (Makefile.am): Likewise.
59885         * modules/tsearch-tests (Makefile.am): Likewise.
59886         * modules/xvasprintf-tests (Makefile.am): Likewise.
59887
59888         Fix fpurge for cygwin.
59889         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
59890         value.
59891         * modules/fpurge-tests (Depends-on): Clean up trash.
59892
59893 2007-04-16  Simon Josefsson  <simon@josefsson.org>
59894
59895         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
59896
59897         * m4/autobuild.m4: Re-indent.
59898
59899 2007-04-13  Bruno Haible  <bruno@clisp.org>
59900
59901         * modules/fpurge-tests: New file.
59902         * tests/test-fpurge.c: New file.
59903
59904         * modules/fpurge: New file.
59905         * lib/fpurge.h: New file.
59906         * lib/fpurge.c: New file.
59907         * m4/fpurge.m4: New file.
59908
59909 2007-04-13  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/fbufmode-tests: New file.
59912         * tests/test-fbufmode.c: New file.
59913
59914         * modules/fbufmode: New file.
59915         * lib/fbufmode.h: New file.
59916         * lib/fbufmode.c: New file.
59917         * m4/fbufmode.m4: New file.
59918
59919 2007-04-13  Bruno Haible  <bruno@clisp.org>
59920
59921         * modules/fwritable-tests: New file.
59922         * tests/test-fwritable.c: New file.
59923
59924         * modules/fwritable: New file.
59925         * lib/fwritable.h: New file.
59926         * lib/fwritable.c: New file.
59927         * m4/fwritable.m4: New file.
59928
59929 2007-04-13  Bruno Haible  <bruno@clisp.org>
59930
59931         * modules/freadable-tests: New file.
59932         * tests/test-freadable.c: New file.
59933
59934         * modules/freadable: New file.
59935         * lib/freadable.h: New file.
59936         * lib/freadable.c: New file.
59937         * m4/freadable.m4: New file.
59938
59939 2007-04-13  Bruno Haible  <bruno@clisp.org>
59940
59941         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
59942         MOSTLYCLEANFILES.
59943
59944 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59945
59946         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
59947         gzip bootstrap.conf to avoid dragging in i18n machinery.
59948         (gnulib_tool_option): Use it.
59949
59950 2007-04-13  Bruno Haible  <bruno@clisp.org>
59951
59952         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
59953         %F directives.
59954         * tests/test-vasprintf-posix.c (test_function): Likewise.
59955         * tests/test-snprintf-posix.h (test_function): Likewise.
59956         * tests/test-sprintf-posix.h (test_function): Likewise.
59957         * tests/test-fprintf-posix.h (test_function): Likewise.
59958         * tests/test-printf-posix.h (test_function): Likewise.
59959         * tests/test-fprintf-posix.out: Likewise.
59960
59961 2007-04-13  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
59964         * modules/tls-tests (configure.ac): Likewise.
59965         Reported by Arto C. Nirkko <anirkko@insel.ch>.
59966
59967 2007-04-13  Bruno Haible  <bruno@clisp.org>
59968
59969         * lib/tls.c (glthread_tls_get): Fix return type.
59970         Patch by Arto C. Nirkko <anirkko@insel.ch>.
59971
59972 2007-04-12  Eric Blake  <ebb9@byu.net>
59973
59974         * modules/gettime (Depends-on): Remove gettime.
59975         Reported by Dmitry V. Levin.
59976
59977 2007-04-12  Bruno Haible  <bruno@clisp.org>
59978
59979         * modules/fflush (Include): Mention <stdio.h>.
59980         * modules/strtoimax (Include): Mention <inttypes.h>.
59981         * modules/strtoumax (Include): Likewise.
59982
59983 2007-04-12  Eric Blake  <ebb9@byu.net>
59984
59985         * .cvsignore: New file.
59986         * .gitignore: Likewise.
59987
59988 2007-04-12  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
59991         not before, since $(LDADD) often contains libgnu.a.
59992         * modules/striconv-tests (test_striconv_LDADD): Likewise.
59993         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
59994         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
59995         Needed on Cygwin.
59996
59997 2007-04-12  Eric Blake  <ebb9@byu.net>
59998
59999         Work around glibc's failure to flush stdin on fclose.
60000         * lib/closein.c (close_stdin): Flush stdin before closing.
60001
60002         Work around glibc's failure to reset seekable stdin on exit.
60003         * modules/closein: New module.
60004         * lib/closein.c: New file.
60005         * lib/closein.h: Likewise.
60006         * m4/closein.m4: Likewise.
60007         * MODULES.html.sh (File stream based Input/Output): Document it.
60008
60009 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60010
60011         * gnulib-tool: Rename generated 'autobuild' script to
60012         'do-autobuild' in --create-megatestdir output.
60013
60014         * doc/gnulib.texi (Build robot for gnulib): Fix.
60015
60016 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60017
60018         * modules/sysexits (Depends-on): Add absolute-header.
60019
60020 2007-04-12  Eric Blake  <ebb9@byu.net>
60021
60022         No need to preserve errno on success.
60023         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60024         Reported by Bruno Haible.
60025
60026 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60027
60028         * MODULES.html.sh (Support for maintaining and releasing
60029         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60030
60031 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60032
60033         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60034
60035 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60036
60037         * modules/autobuild: New module.
60038
60039         * m4/autobuild.m4: New file.
60040
60041 2007-04-11  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60044         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60045         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60046         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60047         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60048         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60049         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60050         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60051         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60052         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60054         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60055         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60057         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60058         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60060         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60061         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60062         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60063         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60064         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60066         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60067         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60068         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60069         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60070         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60071         Reported by Eric Blake.
60072
60073 2007-04-11  Bruno Haible  <bruno@clisp.org>
60074
60075         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60076
60077 2007-04-10  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60080         for NaN and Infinity. Needed on FreeBSD 6.1.
60081         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60082         regarding results for "%010a" of Infinity and NaN.
60083         * tests/test-vasprintf-posix.c (test_function): Likewise.
60084         * tests/test-snprintf-posix.h (test_function): Likewise.
60085         * tests/test-sprintf-posix.h (test_function): Likewise.
60086         * tests/test-fprintf-posix.h (test_function): Likewise.
60087         * tests/test-printf-posix.h (test_function): Likewise.
60088         * tests/test-fprintf-posix.out: Likewise.
60089
60090 2007-04-10  Bruno Haible  <bruno@clisp.org>
60091
60092         * modules/locale-tests: New file.
60093         * tests/test-locale.c: New file.
60094
60095         * modules/locale: New file.
60096         * lib/locale_.h: New file.
60097         * m4/locale_h.m4: New file.
60098
60099 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60100             Bruno Haible  <bruno@clisp.org>
60101
60102         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60103         be determined, test for availability of the copysignf, copysign,
60104         copysignl functions.
60105         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60106         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60107         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60108
60109 2007-04-09  Eric Blake  <ebb9@byu.net>
60110
60111         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60112         * modules/stdio (Makefile.am): Support fflush.
60113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60114         * modules/fflush: New file.
60115         * lib/fflush.c: Likewise.
60116         * m4/fflush.m4: Likewise.
60117         * modules/fflush-tests: New test.
60118         * tests/test-fflush.c: Likewise.
60119         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60120
60121 2007-04-06  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60124         (VASNPRINTF): Use signbit for faster determination whether to print a
60125         minus sign.
60126         * modules/vasnprintf (Files): Remove lib/float+.h.
60127         * modules/fprintf-posix (Depends-on): Add signbit.
60128         * modules/snprintf-posix (Depends-on): Likewise.
60129         * modules/sprintf-posix (Depends-on): Likewise.
60130         * modules/vasnprintf-posix (Depends-on): Likewise.
60131         * modules/vasprintf-posix (Depends-on): Likewise.
60132         * modules/vfprintf-posix (Depends-on): Likewise.
60133         * modules/vsnprintf-posix (Depends-on): Likewise.
60134         * modules/vsprintf-posix (Depends-on): Likewise.
60135
60136 2007-04-06  Bruno Haible  <bruno@clisp.org>
60137
60138         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60139         * tests/test-frexpl.c (main): Likewise.
60140         * tests/test-ldexpl.c (main): Likewise.
60141         * modules/frexp-tests (Depends-on): Add signbit.
60142         * modules/frexpl-tests (Depdends-on): Likewise.
60143         * modules/ldexpl-tests (Depdends-on): Likewise.
60144
60145 2007-04-06  Bruno Haible  <bruno@clisp.org>
60146
60147         * modules/signbit-tests: New file.
60148         * tests/test-signbit.c: New file.
60149
60150         * modules/signbit: New file.
60151         * lib/signbitf.c: New file.
60152         * lib/signbitd.c: New file.
60153         * lib/signbitl.c: New file.
60154         * m4/signbit.m4: New file.
60155         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60156         (signbit): New macro.
60157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60158         REPLACE_SIGNBIT.
60159         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60160         REPLACE_FREXPL into math.h.
60161
60162 2007-04-06  Bruno Haible  <bruno@clisp.org>
60163
60164         * modules/isnanf-nolibm-tests: New file.
60165         * tests/test-isnanf.c: New file.
60166
60167         * modules/isnanf-nolibm: New file.
60168         * lib/isnanf.h: New file.
60169         * lib/isnanf.c: New file.
60170         * lib/isnan.c: Consider the USE_FLOAT macro.
60171         * m4/isnanf.m4: New file.
60172
60173 2007-04-06  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60176         (Link): New section.
60177
60178         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60179
60180 2007-04-06  Bruno Haible  <bruno@clisp.org>
60181
60182         Assume the 'long double' type.
60183         * m4/longdouble.m4: Remove file.
60184         * config/srclist.txt: Don't mention longdouble.m4.
60185         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60186         * lib/float+.h: Likewise.
60187         * lib/frexp.c: Likewise.
60188         * lib/printf-args.h: Likewise.
60189         * lib/printf-args.c: Likewise.
60190         * lib/printf-frexp.c: Likewise.
60191         * lib/printf-parse.c: Likewise.
60192         * lib/vasnprintf.c: Likewise.
60193         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60194         * m4/intl.m4: Likewise.
60195         * m4/isnanl.m4: Likewise.
60196         * m4/printf.m4: Likewise.
60197         * m4/printf-frexpl.m4: Likewise.
60198         * m4/vasnprintf.m4: Likewise.
60199         * modules/allocsa (Files): Remove m4/longdouble.m4.
60200         * modules/gettext (Files): Likewise.
60201         * modules/relocatable-prog-wrapper (Files): Likewise.
60202         * modules/vasnprintf (Files): Likewise.
60203         * modules/isnanl (Files): Likewise.
60204         (Include): Simplify.
60205         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60206         (Include): Simplify.
60207         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60208         (Include): Simplify.
60209         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60210         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60211         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60212         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60213         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60214         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60215         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60216         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60217         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60218         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60219         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60220         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60221         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60222         * tests/test-isnanl.c: Likewise.
60223         * tests/test-snprintf-posix.h: Likewise.
60224         * tests/test-sprintf-posix.h: Likewise.
60225         * tests/test-vasnprintf-posix.c: Likewise.
60226         * tests/test-vasnprintf-posix2.c: Likewise.
60227         * tests/test-vasprintf-posix.c: Likewise.
60228
60229 2007-04-06  Bruno Haible  <bruno@clisp.org>
60230
60231         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60232         * lib/math_.h [__DECC]: Include the overridden include file through
60233         #include_next, outside the double-inclusion guard.
60234         * lib/stdio_.h [__DECC]: Likewise.
60235         * lib/stdlib_.h [__DECC]: Likewise.
60236         * lib/string_.h [__DECC]: Likewise.
60237         * lib/time_.h [__DECC]: Likewise.
60238         * lib/wchar_.h [__DECC]: Likewise.
60239         * lib/wctype_.h [__DECC]: Likewise.
60240         * lib/inttypes_.h [__DECC]: Likewise.
60241         Reported by Albert Chin <china@thewrittenword.com> in
60242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60243
60244 2007-04-04  Eric Blake  <ebb9@byu.net>
60245
60246         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60247         1.5.x.
60248
60249 2007-04-04  Bruno Haible  <bruno@clisp.org>
60250
60251         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60252         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60253
60254 2007-04-04  Bruno Haible  <bruno@clisp.org>
60255
60256         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60257         results for "%010a" of Infinity and NaN.
60258         * tests/test-vasprintf-posix.c (test_function): Likewise.
60259         * tests/test-snprintf-posix.h (test_function): Likewise.
60260         * tests/test-sprintf-posix.h (test_function): Likewise.
60261         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60262         * tests/test-printf-posix.h (test_function): Likewise.
60263         * tests/test-fprintf-posix.out: Update.
60264         Needed for FreeBSD 6.1.
60265
60266 2007-04-04  Bruno Haible  <bruno@clisp.org>
60267
60268         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60269         directly used by the gnulib modules nor by gnulib-tool.
60270
60271 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60272
60273         * DEPENDENCIES: Give overall description of version dependency
60274         desirability.  Use more-typical names for apps.
60275         Add shell, coreutils, diffutils, grep, tar, gzip.
60276
60277 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60278
60279         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60280
60281 2007-04-04  Karl Berry  <karl@gnu.org>
60282
60283         * MODULES.html.sh (func_module): missing '.
60284
60285 2007-04-03  Bruno Haible  <bruno@clisp.org>
60286
60287         * modules/argmatch-tests (Makefile.am): New variable
60288         test_argmatch_LDADD.
60289         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60290         * modules/array-list-tests (Makefile.am): New variable
60291         test_array_list_LDADD.
60292         * modules/array-oset-tests (Makefile.am): New variable
60293         test_array_oset_LDADD.
60294         * modules/avltree-list-tests (Makefile.am): New variable
60295         test_avltree_list_LDADD.
60296         * modules/avltree-oset-tests (Makefile.am): New variable
60297         test_avltree_oset_LDADD.
60298         * modules/avltreehash-list-tests (Makefile.am): New variable
60299         test_avltreehash_list_LDADD.
60300         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60301         test_canonicalize_lgpl_LDADD.
60302         * modules/carray-list-tests (Makefile.am): New variable
60303         test_carray_list_LDADD.
60304         * modules/dirname-tests (Makefile.am): New variable
60305         test_dirname_LDADD.
60306         * modules/linked-list-tests (Makefile.am): New variable
60307         test_linked_list_LDADD.
60308         * modules/linkedhash-list-tests (Makefile.am): New variable
60309         test_linkedhash_list_LDADD.
60310         * modules/rbtree-list-tests (Makefile.am): New variable
60311         test_rbtree_list_LDADD.
60312         * modules/rbtree-oset-tests (Makefile.am): New variable
60313         test_rbtree_oset_LDADD.
60314         * modules/rbtreehash-list-tests (Makefile.am): New variable
60315         test_rbtreehash_list_LDADD.
60316         * modules/xvasprintf-tests (Makefile.am): New variable
60317         test_xvasprintf_LDADD.
60318         Reported by Eric Blake.
60319
60320 2007-04-03  Eric Blake  <ebb9@byu.net>
60321
60322         * DEPENDENCIES: Weaken m4 requirements.
60323
60324 2007-04-03  Bruno Haible  <bruno@clisp.org>
60325
60326         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60327         * modules/isnanl-tests (configure.ac): Likewise.
60328
60329 2007-04-03  Ben Pfaff  <blp@gnu.org>
60330
60331         * modules/iconv_open: Add $(srcdir)/ to source directory
60332         references in Makefile fragments that call gperf, to fix VPATH
60333         builds.
60334
60335 2007-04-03  Bruno Haible  <bruno@clisp.org>
60336
60337         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60338         * lib/ldexpl.c: Undo last change.
60339
60340 2007-04-03  Bruno Haible  <bruno@clisp.org>
60341
60342         * modules/printf-frexpl (Depends-on): Undo last change.
60343         (Files): Add m4/ldexpl.m4.
60344
60345 2007-04-03  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60348         * modules/isnanl (Link): New section.
60349
60350         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60351         * modules/frexp (Link): New section.
60352
60353         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60354         * modules/frexpl (Link): New section.
60355
60356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60357         * modules/ldexpl (Link): New section.
60358
60359 2007-04-03  Bruno Haible  <bruno@clisp.org>
60360
60361         * modules/TEMPLATE-EXTENDED: New file.
60362         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60363
60364 2007-04-03  Bruno Haible  <bruno@clisp.org>
60365
60366         * DEPENDENCIES: New file.
60367         Suggested by Simon Josefsson.
60368
60369 2007-04-03  Bruno Haible  <bruno@clisp.org>
60370
60371         * doc/gnulib.texi: Escape @.
60372
60373 2007-04-03  James Youngman  <jay@gnu.org>
60374         and Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60377         birthtime on all systems that have birthtime, not just those which
60378         use st_birthtimensec rather than st_birthtim.  Putting zero in
60379         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60380         that the birth time is not available for files on an NFS mount.
60381
60382 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60383
60384         * modules/memxor: Move back from crypto/, suggested by Bruno.
60385         * modules/crypto/hmac-sha1: Fix memxor dependency.
60386
60387         * modules/crypto/gc: Moved from ../.
60388
60389 2007-04-02  Eric Blake  <ebb9@byu.net>
60390
60391         * lib/ldexpl.c (includes): Avoid libm.
60392
60393         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60394
60395 2007-04-02  Bruno Haible  <bruno@clisp.org>
60396
60397         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60398         on IRIX.
60399
60400 2007-04-02  Bruno Haible  <bruno@clisp.org>
60401
60402         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60403         x86 or x86_64 platforms running MacOS X.
60404         Reported by Ryan Schmidt <@ryandesign.com>.
60405
60406 2007-04-02  Bruno Haible  <bruno@clisp.org>
60407
60408         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60409         i386.
60410
60411 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60412
60413         * modules/crypto/arcfour: Moved from ../.
60414         * modules/crypto/arcfour-tests: Moved from ../.
60415         * modules/crypto/arctwo: Moved from ../.
60416         * modules/crypto/arctwo-tests: Moved from ../.
60417         * modules/crypto/des: Moved from ../.
60418         * modules/crypto/des-tests: Moved from ../.
60419         * modules/crypto/gc-arcfour: Moved from ../.
60420         * modules/crypto/gc-arcfour-tests: Moved from ../.
60421         * modules/crypto/gc-arctwo: Moved from ../.
60422         * modules/crypto/gc-arctwo-tests: Moved from ../.
60423         * modules/crypto/gc-des: Moved from ../.
60424         * modules/crypto/gc-des-tests: Moved from ../.
60425         * modules/crypto/gc-hmac-md5: Moved from ../.
60426         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60427         * modules/crypto/gc-hmac-sha1: Moved from ../.
60428         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60429         * modules/crypto/gc-md2: Moved from ../.
60430         * modules/crypto/gc-md2-tests: Moved from ../.
60431         * modules/crypto/gc-md4: Moved from ../.
60432         * modules/crypto/gc-md4-tests: Moved from ../.
60433         * modules/crypto/gc-md5: Moved from ../.
60434         * modules/crypto/gc-md5-tests: Moved from ../.
60435         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60436         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60437         * modules/crypto/gc-random: Moved from ../.
60438         * modules/crypto/gc-rijndael: Moved from ../.
60439         * modules/crypto/gc-rijndael-tests: Moved from ../.
60440         * modules/crypto/gc-sha1: Moved from ../.
60441         * modules/crypto/gc-sha1-tests: Moved from ../.
60442         * modules/crypto/gc-tests: Moved from ../.
60443         * modules/crypto/hmac-md5: Moved from ../.
60444         * modules/crypto/hmac-md5-tests: Moved from ../.
60445         * modules/crypto/hmac-sha1: Moved from ../.
60446         * modules/crypto/hmac-sha1-tests: Moved from ../.
60447         * modules/crypto/md2: Moved from ../.
60448         * modules/crypto/md2-tests: Moved from ../.
60449         * modules/crypto/md4: Moved from ../.
60450         * modules/crypto/md4-tests: Moved from ../.
60451         * modules/crypto/md5: Moved from ../.
60452         * modules/crypto/md5-tests: Moved from ../.
60453         * modules/crypto/memxor: Moved from ../.
60454         * modules/crypto/rijndael: Moved from ../.
60455         * modules/crypto/rijndael-tests: Moved from ../.
60456         * modules/crypto/sha1: Moved from ../.
60457
60458 2007-03-30  James Youngman  <jay@gnu.org>
60459
60460         * tests/test-stat-time.c (prepare_test): use chmod() rather than
60461         rename() to change the ctime of a file (because ctime is unaffected
60462         by rename on jfs2 on AIX 5.1).
60463         (main): Start by doing cleanup, in case a previous run failed leaving
60464         test files behind.
60465
60466 2007-03-31  Bruno Haible  <bruno@clisp.org>
60467
60468         Support old proprietary implementations of iconv.
60469         * modules/iconv_open: New file.
60470         * lib/iconv_.h: New file.
60471         * m4/iconv_h.m4: New file.
60472         * lib/iconv_open.c: New file.
60473         * lib/iconv_open-aix.gperf: New file.
60474         * lib/iconv_open-hpux.gperf: New file.
60475         * lib/iconv_open-irix.gperf: New file.
60476         * lib/iconv_open-osf.gperf: New file.
60477         * m4/iconv_open.m4: New file.
60478         * modules/linebreak (Depends-on): Add iconv_open.
60479         * modules/striconv (Depends-on): Likewise.
60480         * modules/striconveh (Depends-on): Likewise.
60481         * modules/unicodeio (Depends-on): Likewise.
60482         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
60483         (iconv_t)(-1).
60484         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
60485         conversion if cd is (iconv_t)(-1).
60486         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
60487         is not possible.
60488
60489 2007-03-31  Bruno Haible  <bruno@clisp.org>
60490
60491         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60492         work on Solaris either. Protect also second use of "autodetect_jp".
60493
60494 2007-03-31  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
60497         the function is not present.
60498
60499 2007-03-31  Bruno Haible  <bruno@clisp.org>
60500
60501         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
60502         the function is not present.
60503
60504 2007-03-31  Bruno Haible  <bruno@clisp.org>
60505
60506         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
60507         a bug in HP-UX iconv_open().
60508
60509 2007-03-31  Bruno Haible  <bruno@clisp.org>
60510
60511         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
60512         (Mathematics <math.h>): New section, add fpieee.
60513         (Input/output <stdio.h>): Add fseterr.
60514         (Mathematics <math.h>): New section, add printf-frexp.
60515         (Container data structures): Add sublist.
60516         (Core language properties): Add fpucw, inline.
60517         (Functions for greatest-width integer types <inttypes.h>): Add
60518         imaxabs, imaxdiv, inttypes.
60519         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
60520         isnanl-nolibm, ldexp.
60521         (Mathematics <math.h>): New section, add printf-frexpl.
60522         (Support for systems lacking POSIX:2001): Add fprintf-posix,
60523         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
60524         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
60525         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
60526         (Unicode string functions): Add unistr/u*-mbtoucr.
60527         (Java): Add javacomp-script, javaexec-script.
60528         (C#): Add csharpcomp-script, csharpexec-script.
60529         (Support for building libraries and executables): Add havelib,
60530         relocatable-*.
60531         (Support for maintaining and releasing projects): Renamed from
60532         'Support for maintaining and release projects'. Add announce-gen.
60533
60534 2007-03-31  Bruno Haible  <bruno@clisp.org>
60535
60536         * README: Talk primarily about git.
60537         (git and CVS): Renamed from CVS.
60538         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
60539         gnulib is available through git.
60540         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
60541
60542 2007-03-30  Bruno Haible  <bruno@clisp.org>
60543
60544         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
60545         * lib/poll_.h: Likewise.
60546         * lib/stat_.h: Likewise.
60547         * lib/sys_time_.h: Likewise.
60548         * lib/sysexit_.h: Likewise.
60549         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
60550         * lib/stdbool_.h: Likewise.
60551         * lib/byteswap_.h: Add double-inclusion guard.
60552
60553 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
60554
60555         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
60556
60557 2007-03-30  Karl Berry  <karl@gnu.org>
60558
60559         * config/srclist-update: double space after USA in the license
60560         substitution, since that's how it's usually (?) written.
60561
60562 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60563
60564         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
60565         reported by Bruno Haible.
60566
60567 2007-03-29  Bruno Haible  <bruno@clisp.org>
60568
60569         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
60570         a bug in AIX iconv().
60571
60572 2007-03-29  Bruno Haible  <bruno@clisp.org>
60573
60574         * modules/ldexpl-tests: New file.
60575         * tests/test-ldexpl.c: New file.
60576
60577 2007-03-29  Bruno Haible  <bruno@clisp.org>
60578
60579         * lib/ldexpl.c: Include fpucw.h.
60580         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
60581         multiplication.
60582         * modules/ldexpl (Depends-on): Add fpucw.
60583
60584 2007-03-29  Bruno Haible  <bruno@clisp.org>
60585
60586         * modules/ldexpl: New file.
60587         * m4/ldexpl.m4: New file.
60588         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
60589         set.
60590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
60591         REPLACE_LDEXPL.
60592         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
60593         REPLACE_LDEXPL.
60594         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60595         gl_FUNC_LDEXPL_WORKS.
60596         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
60597         * modules/mathl (Files): Remove lib/ldexpl.c.
60598         (Depends-on): Add ldexpl.
60599
60600 2007-03-29  Bruno Haible  <bruno@clisp.org>
60601
60602         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
60603
60604 2007-03-29  Bruno Haible  <bruno@clisp.org>
60605
60606         * tests/test-striconveh.c (main): Don't assume that a direct conversion
60607         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
60608         and possibly also HP-UX.
60609         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
60610         work on AIX, IRIX, HP-UX, OSF/1.
60611         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
60612         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
60613         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
60614         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
60615         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
60616         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
60617
60618 2007-03-29  Bruno Haible  <bruno@clisp.org>
60619
60620         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
60621
60622 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
60625         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
60626
60627 2007-03-29  Eric Blake  <ebb9@byu.net>
60628
60629         * lib/acl-internal.h: Remove redundant include.
60630         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
60631         Cygwin when a file is locked.
60632
60633 2007-03-29  Bruno Haible  <bruno@clisp.org>
60634
60635         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
60636         file.
60637         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
60638
60639 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
60640
60641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
60642         try to remove a parent directory if the child couldn't be removed
60643         (except for the first rmdir, which could fail because the child
60644         doesn't exist).  Problem reported by Jeff Blaine in
60645         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
60646
60647 2007-03-28  Bruno Haible  <bruno@clisp.org>
60648
60649         * lib/striconveh.c (utf8conv_carefully): New function.
60650         (mem_cd_iconveh_internal): Invoke it.
60651
60652 2007-03-28  Bruno Haible  <bruno@clisp.org>
60653
60654         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
60655         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
60656         input.
60657         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
60658         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
60659         unistr/u8-uctomb.
60660
60661 2007-03-28  Bruno Haible  <bruno@clisp.org>
60662
60663         * modules/unistr/u8-mbtoucr: New file.
60664         * lib/unistr/u8-mbtoucr.c: New file.
60665         * modules/unistr/u16-mbtoucr: New file.
60666         * lib/unistr/u16-mbtoucr.c: New file.
60667         * modules/unistr/u16-mbtoucr: New file.
60668         * lib/unistr/u16-mbtoucr.c: New file.
60669         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
60670
60671 2007-03-27  Simon Josefsson  <simon@josefsson.org>
60672             Bruno Haible  <bruno@clisp.org>
60673
60674         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
60675         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
60676         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
60677
60678         * m4/stdio_h.m4: Add stubs for vasprintf too.
60679
60680         * modules/stdio: Support vasprintf in sed command.
60681
60682         * modules/vasprintf: Depend on stdio for prototypes.  Remove
60683         vasprintf.h.  Add stdio module indicator.
60684
60685         * lib/stdio_.h: Declare asprintf and vasprintf, based on
60686         vasprintf.h.
60687
60688         * lib/vasprintf.h: File removed.
60689
60690         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
60691         * lib/vasprintf.c: Ditto.
60692         * lib/xvasprintf.c: Ditto.
60693         * tests/test-vasprintf-posix.c: Ditto.
60694         * tests/test-vasprintf.c: Ditto.
60695
60696 2007-03-27  Bruno Haible  <bruno@clisp.org>
60697
60698         Make vasnprintf multithread-safe.
60699         * lib/vasnprintf.c (decimal_point_char): New function.
60700         (VASNPRINTF): Use it.
60701         Suggested by Simon Josefsson.
60702
60703 2007-03-27  Eric Blake  <ebb9@byu.net>
60704
60705         Support sub-second birthtime on cygwin.
60706         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
60707         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
60708         (get_stat_birthtime): Also work with st_birthtim.
60709
60710 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * lib/stat-time.h (USE_BIRTHTIME): Remove.
60713         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
60714         (get_stat_birthtime_ns): Do not try to use "spare" fields.
60715         (get_stat_birthtime_ns): Simplify compile-time tests.
60716         (get_stat_birthtime): Change the API to look like
60717         get_stat_mtime etc., except return a negative tv_nsec on error.
60718         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
60719         Don't check for "spare" fields.
60720         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
60721         or for struct stat.st_birthtime, as these tests aren't used.
60722         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
60723
60724 2007-03-27  Bruno Haible  <bruno@clisp.org>
60725
60726         * lib/stat-time.h: Include <sys/stat.h>.
60727
60728 2007-03-27  James Youngman  <jay@gnu.org>
60729
60730         * lib/stat-time.h (get_stat_birthtime): New function for
60731           retrieving st_birthtime as provided by UFS2 (hence *BSD).
60732         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
60733           and its variants.
60734         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
60735         * modules/stat-time-test: New file.
60736         * tests/test-stat-time.c: New test, devised by Bruno Haible.
60737
60738 2007-03-26  Bruno Haible  <bruno@clisp.org>
60739
60740         Better support of signalling NaNs.
60741         * lib/atanl.c: Include isnanl.h.
60742         (atanl): Perform test for NaN at the beginning of the function and
60743         through a call to isnanl.
60744         * lib/cosl.c: Include isnanl.h.
60745         (cosl): Perform test for NaN at the beginning of the function and
60746         through a call to isnanl.
60747         * lib/ldexpl.c: Include isnanl.h.
60748         (ldexpl): Perform test for NaN through a call to isnanl.
60749         * lib/logl.c: Include isnanl.h.
60750         (logl): Perform test for NaN at the beginning of the function and
60751         through a call to isnanl.
60752         * lib/sinl.c: Include isnanl.h.
60753         (sinl): Perform test for NaN at the beginning of the function and
60754         through a call to isnanl.
60755         * lib/sqrtl.c: Include isnanl.h.
60756         (sqrtl): Perform test for NaN at the beginning of the function and
60757         through a call to isnanl.
60758         * lib/tanl.c: Include isnanl.h.
60759         (tanl): Perform test for NaN at the beginning of the function and
60760         through a call to isnanl.
60761         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
60762         * modules/mathl (Depends-on): Add isnanl.
60763
60764 2007-03-26  Eric Blake  <ebb9@byu.net>
60765
60766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
60767         regression in logic sense of previous patch.
60768
60769 2007-03-26  Bruno Haible  <bruno@clisp.org>
60770
60771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
60772         unportable shell command "if ! ...".
60773         Reported by Ralf Wildenhues.
60774
60775 2007-03-25  Bruno Haible  <bruno@clisp.org>
60776
60777         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
60778         <sysexits.h> file, and only add EX_CONFIG.
60779         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
60780         absolute file name and whether it is sufficient. Substitute also
60781         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
60782         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
60783         ABSOLUTE_SYSEXITS_H into sysexits.h.
60784
60785 2007-03-25  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
60788         hints is NULL.
60789
60790 2007-03-25  Bruno Haible  <bruno@clisp.org>
60791
60792         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
60793         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
60794
60795 2007-03-25  Bruno Haible  <bruno@clisp.org>
60796
60797         * lib/vasnprintf.c: Include langinfo.h.
60798         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
60799         multithread-safe.
60800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
60801         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
60802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
60808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60809         Reported by Simon Josefsson.
60810
60811 2007-03-25  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
60814         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
60815         * modules/vasnprintf (Depends-on): Add stdint.
60816
60817 2007-03-25  Bruno Haible  <bruno@clisp.org>
60818
60819         * modules/fpieee: New file.
60820         * m4/fpieee.m4: New file.
60821         * modules/isnan-nolibm (Depends-on): Add fpieee.
60822         * modules/isnanl-nolibm (Depends-on): Add fpieee.
60823         * modules/isnanl (Depends-on): Add fpieee.
60824
60825 2007-03-25  Bruno Haible  <bruno@clisp.org>
60826
60827         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
60828
60829 2007-03-25  Bruno Haible  <bruno@clisp.org>
60830
60831         Avoid test failures on IRIX 6.5.
60832         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
60833         (main): Use it.
60834         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
60835         macros.
60836         (main): Use them.
60837
60838 2007-03-25  Bruno Haible  <bruno@clisp.org>
60839
60840         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
60841         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
60842         exists but doesn't work.
60843         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
60844         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
60845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
60846         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
60847         math.h.
60848
60849 2007-03-25  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
60852         returns inf. Needed on IRIX 6.5.
60853
60854 2007-03-25  Bruno Haible  <bruno@clisp.org>
60855
60856         * tests/test-frexpl.c: Include isnanl-nolibm.h.
60857         (main): Use isnanl instead of x != x idiom.
60858         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
60859
60860         * tests/test-frexp.c: Include isnan.h.
60861         (main): Use isnan instead of x != x idiom.
60862         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
60863
60864 2007-03-25  Bruno Haible  <bruno@clisp.org>
60865
60866         * tests/test-frexp.c (NaN): New function/macro.
60867         (main): Use it instead of 0.0 / 0.0.
60868         * tests/test-isnan.c (NaN): New function/macro.
60869         (main): Use it instead of 0.0 / 0.0.
60870         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
60871         (test_function): Use it instead of 0.0 / 0.0.
60872         * tests/test-vasprintf-posix.c (NaN): New function/macro.
60873         (test_function): Use it instead of 0.0 / 0.0.
60874         * tests/test-snprintf-posix.h (NaN): New function/macro.
60875         (test_function): Use it instead of 0.0 / 0.0.
60876         * tests/test-sprintf-posix.h (NaN): New function/macro.
60877         (test_function): Use it instead of 0.0 / 0.0.
60878         * tests/test-fprintf-posix.h (NaN): New function/macro.
60879         (test_function): Use it instead of 0.0 / 0.0.
60880         * tests/test-printf-posix.h (NaN): New function/macro.
60881         (test_function): Use it instead of 0.0 / 0.0.
60882
60883         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
60884
60885 2007-03-25  Bruno Haible  <bruno@clisp.org>
60886
60887         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
60888
60889 2007-03-25  Bruno Haible  <bruno@clisp.org>
60890
60891         * lib/regexec.c (merge_state_with_log): Make static.
60892
60893 2007-03-25  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/trigl.c (kernel_rem_pio2): Make static.
60896
60897 2007-03-25  Bruno Haible  <bruno@clisp.org>
60898
60899         * lib/sincosl.c (sincosl_table): Make static.
60900
60901 2007-03-25  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
60904         if the compiler does not support C99.
60905
60906 2007-03-25  Bruno Haible  <bruno@clisp.org>
60907
60908         * modules/time (Makefile.am): Ensure all rule action lines start with a
60909         tab.
60910
60911 2007-03-24  Bruno Haible  <bruno@clisp.org>
60912
60913         * modules/tsearch-tests: New file.
60914         * tests/test-tsearch.sh: New file.
60915         * tests/test-tsearch.c: New file, mostly copied from glibc.
60916
60917         * modules/search-tests: New file.
60918         * tests/test-search.c: New file.
60919
60920         * modules/search: New file.
60921         * lib/search_.h: New file, incorporating lib/tsearch.h.
60922         * m4/search_h.m4: New file.
60923         * lib/tsearch.h: Remove file.
60924         * lib/tsearch.c: Include search.h instead of tsearch.h.
60925         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
60926         HAVE_TSEARCH.
60927         * modules/tsearch (Files): Remove lib/tsearch.h.
60928         (Depends-on): Add search.
60929         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
60930         (Include): Change tsearch.h into search.h.
60931
60932 2007-03-24  Bruno Haible  <bruno@clisp.org>
60933
60934         * modules/fpucw: New file.
60935         * lib/fpucw.h: New file.
60936         * lib/frexp.c: Include fpucw.h.
60937         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60938         (FUNC): Use them.
60939         * lib/printf-frexp.c: Include fpucw.h.
60940         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
60941         (FUNC): Use them.
60942         * lib/vasnprintf.c: Include fpucw.h.
60943         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
60944         'long double' calculations.
60945         * tests/test-frexpl.c: Include fpucw.h.
60946         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60947         * tests/test-printf-frexpl.c: Include fpucw.h.
60948         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
60949         * modules/frexpl (Depends-on): Add fpucw.
60950         * modules/printf-frexpl (Depends-on): Likewise.
60951         * modules/fprintf-posix (Depends-on): Likewise.
60952         * modules/snprintf-posix (Depends-on): Likewise.
60953         * modules/sprintf-posix (Depends-on): Likewise.
60954         * modules/vasnprintf-posix (Depends-on): Likewise.
60955         * modules/vasprintf-posix (Depends-on): Likewise.
60956         * modules/vfprintf-posix (Depends-on): Likewise.
60957         * modules/vsnprintf-posix (Depends-on): Likewise.
60958         * modules/vsprintf-posix (Depends-on): Likewise.
60959         * modules/frexpl-tests (Depends-on): Likewise.
60960         * modules/printf-frexpl-tests (Depends-on): Likewise.
60961
60962 2007-03-24  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/float+.h: New file.
60965         * lib/isnan.c: Include float+.h.
60966         (SIZE): New macro.
60967         (FUNC): Compare only SIZE bytes of the value.
60968         * lib/vasnprintf.c: Include float+.h.
60969         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
60970         SIZEOF_LDBL or SIZEOF_DBL bytes.
60971         * modules/isnan-nolibm (Files): Add lib/float+.h.
60972         * modules/isnanl-nolibm (Files): Add lib/float+.h.
60973         * modules/isnanl (Files): Add lib/float+.h.
60974         * modules/vasnprintf (Files): Add lib/float+.h.
60975
60976 2007-03-24  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
60979         include isnanl-nolibm.h.
60980
60981 2007-03-24  Bruno Haible  <bruno@clisp.org>
60982
60983         * tests/test-read-file.c (main): Don't produce spurious output for
60984         expected situations. Make the test fail if it encountered unexpected
60985         results.
60986
60987 2007-03-24  Bruno Haible  <bruno@clisp.org>
60988
60989         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
60990         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
60991
60992 2007-03-24  Bruno Haible  <bruno@clisp.org>
60993
60994         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
60995
60996 2007-03-24  Bruno Haible  <bruno@clisp.org>
60997
60998         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
60999         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61000
61001         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61002         * modules/utf8-ucs4: Turn into a symbolic link to module
61003         unistr/u8-mbtouc.
61004
61005         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61006         utf8-ucs4-unsafe.
61007         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61008         unistr/u8-mbtouc-unsafe.
61009
61010         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61011         * modules/utf16-ucs4: Turn into a symbolic link to module
61012         unistr/u16-mbtouc.
61013
61014         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61015         utf16-ucs4-unsafe.
61016         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61017         unistr/u16-mbtouc-unsafe.
61018
61019         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61020         * modules/ucs4-utf8: Turn into a symbolic link to module
61021         unistr/u8-ubtomb.
61022
61023         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61024         * modules/ucs4-utf16: Turn into a symbolic link to module
61025         unistr/u16-ubtomb.
61026
61027 2007-03-24  Bruno Haible  <bruno@clisp.org>
61028
61029         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61030         Enable the function only if HAVE_INLINE.
61031         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61032         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61033         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61034         Enable the function only if HAVE_INLINE.
61035         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61036         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61037         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61038         Enable the function only if HAVE_INLINE.
61039         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61040         Enable the function only if HAVE_INLINE.
61041         * modules/utf8-ucs4: Update.
61042         * modules/utf8-ucs4-unsafe: Update.
61043         * modules/utf16-ucs4: Update.
61044         * modules/utf16-ucs4-unsafe: Update.
61045         * modules/ucs4-utf8: Update.
61046         * modules/ucs4-utf16: Update.
61047
61048 2007-03-24  Bruno Haible  <bruno@clisp.org>
61049
61050         * lib/utf8-ucs4.h: Remove file.
61051         * lib/utf8-ucs4-unsafe.h: Remove file.
61052         * lib/utf16-ucs4.h: Remove file.
61053         * lib/utf16-ucs4-unsafe.h: Remove file.
61054         * lib/ucs4-utf8.h: Remove file.
61055         * lib/ucs4-utf16.h: Remove file.
61056         * lib/unistr.h: Include their previous contents.
61057         * m4/utf-ucs4.m4: Remove file.
61058         * m4/ucs4-utf.m4: Remove file.
61059         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61060         (Depends-on): Add unistr/base.
61061         (configure.ac): Remove gl_UTF_UCS4.
61062         (Makefile.am): Update.
61063         (Include): Change to unistr.h.
61064         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61065         (Depends-on): Add unistr/base.
61066         (configure.ac): Remove gl_UTF_UCS4.
61067         (Makefile.am): Update.
61068         (Include): Change to unistr.h.
61069         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61070         (Depends-on): Add unistr/base.
61071         (configure.ac): Remove gl_UTF_UCS4.
61072         (Makefile.am): Update.
61073         (Include): Change to unistr.h.
61074         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61075         (Depends-on): Add unistr/base.
61076         (configure.ac): Remove gl_UTF_UCS4.
61077         (Makefile.am): Update.
61078         (Include): Change to unistr.h.
61079         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61080         (Depends-on): Add unistr/base.
61081         (configure.ac): Remove gl_UCS4_UTF.
61082         (Makefile.am): Update.
61083         (Include): Change to unistr.h.
61084         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61085         (Depends-on): Add unistr/base.
61086         (configure.ac): Remove gl_UCS4_UTF.
61087         (Makefile.am): Update.
61088         (Include): Change to unistr.h.
61089         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61090         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61091         utf8-ucs4-unsafe.h.
61092         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61093         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61094         utf16-ucs4-unsafe.h.
61095         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61096         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61097         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61098         * lib/unistr/u8-strchr.c: Likewise.
61099         * lib/unistr/u8-strrchr.c: Likewise.
61100         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61101         * lib/unistr/u16-strchr.c: Likewise.
61102         * lib/unistr/u16-strrchr.c: Likewise.
61103         * lib/striconveh.c: Update.
61104         * lib/linebreak.c: Update.
61105
61106 2007-03-24  Bruno Haible  <bruno@clisp.org>
61107
61108         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61109         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61110
61111 2007-03-22  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61114
61115 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61116
61117         * MODULES.html.sh (File system functions): New module write-any-file.
61118         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61119         * m4/write-any-file.m4: New files.
61120
61121 2007-03-23  Eric Blake  <ebb9@byu.net>
61122
61123         * gnulib-tool: Rearrange space-tab sequences, since some editors
61124         like to eat them.
61125
61126 2007-03-23  Eric Blake  <ebb9@byu.net>
61127
61128         * lib/version-etc.c (version_etc_va): Update license wording to
61129         be more concise.  Recommended by Richard Stallman.
61130
61131 2007-03-22  Bruno Haible  <bruno@clisp.org>
61132
61133         * lib/poll.c (MSG_PEEK): New fallback definition.
61134
61135 2007-03-22  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61138         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61139         (main): Update.
61140         Fixes a compilation error on BeOS.
61141
61142 2007-03-22  Bruno Haible  <bruno@clisp.org>
61143
61144         * modules/frexpl-tests: New file.
61145         * tests/test-frexpl.c: New file.
61146
61147         * modules/frexpl: New file.
61148         * m4/frexpl.m4: New file.
61149         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61150         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61152         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61153         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61154         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61155
61156 2007-03-22  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/frexpl.c: Share code with lib/frexp.c.
61159         * modules/mathl (Files): Add lib/frexp.c.
61160         (Depends-on): Add isnanl-nolibm.
61161
61162 2007-03-22  Bruno Haible  <bruno@clisp.org>
61163
61164         * modules/printf-frexp (Files): Add m4/frexp.m4.
61165         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61166         only if the found frexp function actually works.
61167
61168 2007-03-22  Bruno Haible  <bruno@clisp.org>
61169
61170         * lib/frexp.c: Remove older implementation that uses divisions.
61171
61172 2007-03-21  Bruno Haible  <bruno@clisp.org>
61173
61174         * modules/frexp-tests: New file.
61175         * tests/test-frexp.c: New file.
61176
61177         * modules/frexp: New file.
61178         * lib/frexp.c: New file.
61179         * m4/frexp.m4: New file.
61180         * lib/math_.h (frexp): New declaration.
61181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61182         REPLACE_FREXP.
61183         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61184
61185 2007-03-21  Bruno Haible  <bruno@clisp.org>
61186
61187         * modules/isnanl-tests: New file.
61188         * tests/test-isnanl.c: New file.
61189
61190         * modules/isnanl: New file.
61191         * lib/isnanl.h: New file.
61192         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61193         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61194         gl_FUNC_ISNANL_WORKS.
61195         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61196         New macros.
61197
61198 2007-03-21  Bruno Haible  <bruno@clisp.org>
61199
61200         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61201         lib/isnanl.h.
61202         (Include): Update.
61203         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61204         * lib/vasnprintf.c: Update.
61205         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61206         tests/test-isnanl.h, remove tests/test-isnanl.c.
61207         (Makefile.am): Update.
61208         * tests/test-isnanl-nolibm.c: New file.
61209         * tests/test-isnanl.h: New file.
61210         * tests/test-isnanl.c: Remove file.
61211
61212 2007-03-21  Jim Meyering  <jim@meyering.net>
61213
61214         When trying to open ".", treat ESTALE like EACCES.
61215         * lib/savewd.c (savewd_save): Resort to forking not just upon
61216         failure with EACCES, but also when errno is ESTALE.
61217
61218 2007-03-20  Bruno Haible  <bruno@clisp.org>
61219
61220         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61221         Needed on AIX 5.1. Reported by Matthew Woehlke.
61222
61223 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61224
61225         Suggestions by Bruno Haible:
61226         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61227         our own.
61228         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61229         * modules/acl (Depends-on): Add gettext.
61230
61231 2007-03-19  Bruno Haible  <bruno@clisp.org>
61232
61233         * modules/iconvme: Remove file.
61234         * lib/iconvme.h: Remove file.
61235         * lib/iconvme.c: Remove file.
61236         * m4/iconvme.m4: Remove file.
61237
61238 2007-03-19  Bruno Haible  <bruno@clisp.org>
61239
61240         * doc/relocatable-maint.texi: Break long shell script line.
61241         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61242
61243 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61246         handle file_has_acl.
61247         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61248         * lib/acl.c: Move header inclusions and related macro defns into
61249         lib/acl-internal.h.
61250         (S_ISLNK): Remove defn, since that's now done for us.
61251         (file_has_acl): Move to lib/file-has-acl.c.
61252         Call acl_trivial if available.  This is the crucial part of the fix.
61253         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61254         shared within the library.  Rewrite a bit, partly to make it compatible
61255         with the GNU coding style.
61256         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61257         Remove unnecessary double-quotes.
61258         Don't test for acl_to_text; the build will catch that.
61259         Replace acl_entries if it doesn't exist and it is needed.
61260         Check for -lsec and acl_trivial (as used on Solaris 10).
61261         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61262         lib/file-has-acl.c.
61263         (Depends-on): Add sys_stat, for S_ISLNK.
61264
61265 2007-03-19  Ben Pfaff  <blp@gnu.org>
61266
61267         * doc/gnulib.texi: Fix typos.
61268         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61269
61270 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61271
61272         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61273         If size is zero here, buf must be zero.
61274
61275 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61276
61277         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61278         <bruno@clisp.org>.
61279
61280 2007-03-18  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61283         Suggested by Eric Blake.
61284
61285 2007-03-18  Ben Pfaff  <blp@gnu.org>
61286
61287         * doc/relocatable.texi: Recommend using as prefix a directory
61288         that does not exist and will never be created.  Based on
61289         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61290         and others.
61291
61292 2007-03-17  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/fchownat.c: Include lchown.h.
61295
61296 2007-03-17  Bruno Haible  <bruno@clisp.org>
61297
61298         Fix endless loop when the given allocated size was > INT_MAX.
61299         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61300         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61301         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61302         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61303         * lib/sprintf.c (sprintf): Likewise.
61304
61305 2007-03-17  Bruno Haible  <bruno@clisp.org>
61306
61307         * tests/test-argp-2.sh (func_compare): Output a context diff.
61308
61309 2007-03-17  Bruno Haible  <bruno@clisp.org>
61310
61311         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61312         locale's decimal-point character.
61313
61314 2007-03-17  Bruno Haible  <bruno@clisp.org>
61315
61316         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61317         before comparing it. Needed because on some platforms (e.g. x86) a
61318         'long double' occupies less bytes than sizeof (long double).
61319
61320 2007-03-17  Bruno Haible  <bruno@clisp.org>
61321
61322         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61323         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61324         * tests/test-getaddrinfo.c (simple): Likewise.
61325         * tests/test-read-file.c (main): Likewise.
61326
61327 2007-03-17  Bruno Haible  <bruno@clisp.org>
61328
61329         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61330
61331 2007-03-17  Bruno Haible  <bruno@clisp.org>
61332
61333         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61334         unused variable.
61335
61336 2007-03-17  Bruno Haible  <bruno@clisp.org>
61337
61338         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61339         * tests/test-c-strncasecmp.c: Likewise.
61340
61341 2007-03-17  Bruno Haible  <bruno@clisp.org>
61342
61343         * modules/stdlib (Depends-on): Add unistd.
61344         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61345         Needed for MacOS X 10.3.
61346
61347 2007-03-17  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61350
61351 2007-03-17  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61354
61355 2007-03-17  Bruno Haible  <bruno@clisp.org>
61356
61357         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61358         to reflect files copied from gnulib (with or without modifications).
61359         Suggested by Jim Meyering.
61360
61361 2007-03-17  Eric Blake  <ebb9@byu.net>
61362
61363         * NEWS: Document stdlib change from 2007-02-18.
61364
61365 2007-03-17  Jim Meyering  <jim@meyering.net>
61366
61367         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61368         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61369         someone uses a name containing shell meta-characters.
61370         Reported by Alfred M. Szmidt.
61371
61372         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61373
61374 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61375
61376         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61377         and copy gettext configuration files only if configure.ac contains
61378         a use of AM_GNU_GETTEXT_VERSION.
61379
61380 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61381
61382         * build-aux/bootstrap (gnulib_name): New variable.
61383         (gnulib_tool_options): Use it.
61384
61385 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61386
61387         * tests/test-des.c: Use new namespace.
61388
61389 2007-03-15  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61392         Reported by James Youngman <jay@gnu.org>.
61393
61394 2007-03-15  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61397         declared prototype. Needed with cc on OSF/1 5.1.
61398
61399 2007-03-15  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61402         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61403         (struct gl_list_implementation): Add dispose_fn argument to the
61404         'create_empty', 'create' methods.
61405         (struct gl_list_impl_base): Add field 'dispose_fn'.
61406         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61407         argument.
61408         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61409         dispose_fn argument.
61410         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61411         dispose_fn on the dropped values.
61412         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61413         dispose_fn argument.
61414         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61415         dropped values.
61416         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61417         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61418         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61419         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61420         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61421         argument.
61422         (gl_tree_list_free): Call dispose_fn on the dropped values.
61423         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61424         the dropped values.
61425         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61426         Add dispose_fn argument.
61427         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61428         Call dispose_fn on the dropped values.
61429         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61430         Add dispose_fn argument.
61431         (gl_sublist_create): Initialize the 'dispose_fn' field.
61432         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61433         * tests/test-array_list.c (main): Update.
61434         * tests/test-carray_list.c (main): Update.
61435         * tests/test-avltree_list.c (main): Update.
61436         * tests/test-rbtree_list.c (main): Update.
61437         * tests/test-avltreehash_list.c (main): Update.
61438         * tests/test-rbtreehash_list.c (main): Update.
61439         * tests/test-linked_list.c (main): Update.
61440         * tests/test-linkedhash_list.c (main): Update.
61441         * tests/test-array_oset.c (main): Update.
61442
61443 2007-03-15  Bruno Haible  <bruno@clisp.org>
61444
61445         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61446         (gl_oset_create_empty): Add dispose_fn argument.
61447         (struct gl_oset_implementation): Add dispose_fn argument to
61448         'create_empty' method.
61449         (struct gl_oset_impl_base): Add dispose_fn field.
61450         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
61451         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
61452         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
61453         values.
61454         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
61455         (gl_tree_oset_free): Call dispose_fn on the dropped values.
61456         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61457         dropped value.
61458         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
61459         dropped value.
61460         * tests/test-array_oset.c (main): Update.
61461         * tests/test-avltree_oset.c (main): Update.
61462         * tests/test-rbtree_oset.c (main): Update.
61463         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
61464
61465 2007-03-13  Bruno Haible  <bruno@clisp.org>
61466
61467         * tests/test-stdbool.c (i): Update after last patch.
61468
61469 2007-03-12  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/quotearg.c: Include <wctype.h> early, before the definition of
61472         the iswprint macro. Needed on Solaris 2.5.1.
61473
61474 2007-03-12  Bruno Haible  <bruno@clisp.org>
61475
61476         * tests/test-printf-frexp.c (main): Declare x as volatile.
61477
61478 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61479
61480         * doc/gnulib.texi (Build robot for gnulib): New section.
61481
61482 2007-03-12  Jim Meyering  <jim@meyering.net>
61483
61484         * build-aux/bootstrap: New file.
61485         * build-aux/bootstrap.conf: New file, from coreutils.
61486
61487 2007-03-11  Bruno Haible  <bruno@clisp.org>
61488
61489         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
61490
61491 2007-03-12  Simon Josefsson  <simon@josefsson.org>
61492
61493         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
61494         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
61495         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
61496
61497 2007-03-11  Bruno Haible  <bruno@clisp.org>
61498
61499         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
61500         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
61501
61502 2007-03-11  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
61505         formula. Needed for SunPRO C 5.0.
61506
61507 2007-03-11  Bruno Haible  <bruno@clisp.org>
61508
61509         * modules/long-options (Depends-on): Add getopt.
61510
61511 2007-03-11  Bruno Haible  <bruno@clisp.org>
61512
61513         * modules/modechange (Depends-on): Add stdbool.
61514
61515 2007-03-11  Bruno Haible  <bruno@clisp.org>
61516
61517         * modules/i-ring (Depends-on): Add stdbool.
61518
61519 2007-03-11  Bruno Haible  <bruno@clisp.org>
61520
61521         * modules/gc-des (Depends-on): Add stdbool.
61522
61523 2007-03-11  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
61526
61527 2007-03-11  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
61530
61531 2007-03-11  Bruno Haible  <bruno@clisp.org>
61532
61533         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
61534
61535 2007-03-11  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/vasnprintf.c (sprintf): Undefine.
61538
61539 2007-03-11  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
61542         initializers in SunPRO C and Compaq C compilers.
61543
61544 2007-03-11  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
61547         decrementing code ANSI C compliant.
61548
61549 2007-03-11  Bruno Haible  <bruno@clisp.org>
61550
61551         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
61552         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
61553
61554 2007-03-11  Bruno Haible  <bruno@clisp.org>
61555
61556         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
61557         <stdbool.h> substitute doesn't pass.
61558
61559 2007-03-11  Bruno Haible  <bruno@clisp.org>
61560
61561         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
61562
61563 2007-03-11  Bruno Haible  <bruno@clisp.org>
61564
61565         * gnulib-tool (func_create_megatestdir): Create also an autobuild
61566         script, for submission to autobuild.josefsson.org.
61567
61568 2007-03-10  Bruno Haible  <bruno@clisp.org>
61569
61570         * modules/canonicalize-lgpl-tests: New file.
61571         * tests/test-canonicalize-lgpl.sh: New file.
61572         * tests/test-canonicalize-lgpl.c: New file.
61573
61574         * modules/c-strcase-tests: New file.
61575         * tests/test-c-strcase.sh: New file.
61576         * tests/test-c-strcasecmp.c: New file.
61577         * tests/test-c-strncasecmp.c: New file.
61578
61579         * modules/atexit-tests: New file.
61580         * tests/test-atexit.sh: New file.
61581         * tests/test-atexit.c: New file.
61582
61583 2007-03-10  Bruno Haible  <bruno@clisp.org>
61584
61585         * tests/test-binary-io.sh: Use temporary filenames that are not so
61586         likely to clash with those of other tests (in a parallel make).
61587         * tests/test-binary-io.c: Likewise.
61588
61589 2007-03-10  Bruno Haible  <bruno@clisp.org>
61590
61591         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
61592         fallback; use #error instead.
61593         Suggested by Simon Josefsson.
61594
61595 2007-03-10  Bruno Haible  <bruno@clisp.org>
61596
61597         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
61598         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
61599         first and the last.
61600
61601 2007-03-10  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
61604
61605 2007-03-10  Bruno Haible  <bruno@clisp.org>
61606
61607         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
61608         "make distcheck".
61609         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
61610         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
61611         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
61612
61613 2007-03-10  Bruno Haible  <bruno@clisp.org>
61614
61615         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
61616         variable.
61617         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
61618         variable.
61619
61620 2007-03-09  Eric Blake  <ebb9@byu.net>
61621         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
61622
61623         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
61624         types are not being provided by gnulib.
61625         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
61626         types are supported.
61627
61628 2007-03-10  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/stdio_.h (__attribute__): New macro.
61631         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
61632         vsprintf): Specify __attribute__ __format__ for GCC.
61633         Suggested by Eric Blake.
61634
61635 2007-03-09  Bruno Haible  <bruno@clisp.org>
61636
61637         * modules/printf-posix-tests: New file.
61638         * tests/test-printf-posix.sh: New file.
61639         * tests/test-printf-posix.c: New file.
61640
61641         * modules/printf-posix: New file.
61642         * lib/printf.c: New file.
61643         * m4/printf-posix-rpl.m4: New file.
61644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
61645         REPLACE_PRINTF.
61646         * lib/stdio_.h (printf): New declaration.
61647         (format, __format__, ____printf____, ____scanf____, ____strftime____,
61648         ____strfmon____): New macros.
61649         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
61650         REPLACE_PRINTF.
61651
61652 2007-03-09  Bruno Haible  <bruno@clisp.org>
61653
61654         * tests/test-vasnprintf-posix2.sh: New file.
61655         * tests/test-vasnprintf-posix2.c: New file.
61656         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
61657         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
61658         (Makefile.am): Activate test-vasnprintf-posix2.sh.
61659
61660         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
61661         a locale dependent decimal point, rather than always '.'.
61662
61663 2007-03-09  Eric Blake  <ebb9@byu.net>
61664
61665         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
61666         spite of platforms like Tandem/NSK that define it to -1.
61667
61668 2007-03-08  Bruno Haible  <bruno@clisp.org>
61669
61670         * modules/vprintf-posix-tests: New file.
61671         * tests/test-vprintf-posix.sh: New file.
61672         * tests/test-vprintf-posix.c: New file.
61673         * tests/test-printf-posix.h: New file.
61674
61675         * modules/vprintf-posix: New file.
61676         * lib/vprintf.c: New file.
61677         * m4/vprintf-posix.m4: New file.
61678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
61679         REPLACE_VPRINTF.
61680         * lib/stdio_.h (vprintf): New declaration.
61681         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
61682         REPLACE_VPRINTF.
61683
61684 2007-03-08  Bruno Haible  <bruno@clisp.org>
61685
61686         * modules/fprintf-posix-tests: New file.
61687         * tests/test-fprintf-posix.sh: New file.
61688         * tests/test-fprintf-posix.c: New file.
61689
61690         * modules/fprintf-posix: New file.
61691         * lib/fprintf.c: New file.
61692         * m4/fprintf-posix.m4: New file.
61693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
61694         REPLACE_FPRINTF.
61695         * lib/stdio_.h (fprintf): New declaration.
61696         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
61697         REPLACE_FPRINTF.
61698
61699 2007-03-08  Bruno Haible  <bruno@clisp.org>
61700
61701         * modules/vfprintf-posix-tests: New file.
61702         * tests/test-vfprintf-posix.sh: New file.
61703         * tests/test-vfprintf-posix.c: New file.
61704         * tests/test-fprintf-posix.h: New file.
61705         * tests/test-fprintf-posix.out: New file.
61706
61707         * modules/vfprintf-posix: New file.
61708         * lib/vfprintf.c: New file.
61709         * m4/vfprintf-posix.m4: New file.
61710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
61711         REPLACE_VFPRINTF.
61712         * lib/stdio_.h (vfprintf): New declaration.
61713         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
61714         REPLACE_VFPRINTF.
61715
61716 2007-03-08  Bruno Haible  <bruno@clisp.org>
61717
61718         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
61719
61720 2007-03-08  Bruno Haible  <bruno@clisp.org>
61721
61722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
61723         instead of 'expr' invocations.
61724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61726         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61729         Suggested by Paul Eggert.
61730
61731 2007-03-08  Bruno Haible  <bruno@clisp.org>
61732
61733         * modules/fseterr-tests: New file.
61734         * tests/test-fseterr.c: New file.
61735
61736         * modules/fseterr: New file.
61737         * lib/fseterr.h: New file.
61738         * lib/fseterr.c: New file.
61739
61740 2007-03-08  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
61743         * lib/getopt_.h: Likewise.
61744         * lib/mbswidth.h: Likewise.
61745         * lib/setenv.h: Likewise.
61746         * lib/vasnprintf.h: Likewise.
61747         * lib/vasprintf.h: Likewise.
61748         * lib/verror.h: Likewise.
61749         * lib/xsetenv.h: Likewise.
61750         * lib/xvasprintf.h: Likewise.
61751
61752 2007-03-08  Jim Meyering  <jim@meyering.net>
61753
61754         * users.txt: Add parted.
61755
61756         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
61757
61758 2007-03-07  Bruno Haible  <bruno@clisp.org>
61759
61760         * m4/printf.m4: Make the shell script snippets copy&pastable.
61761
61762 2007-03-02  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/netinet_in_.h: New file.
61765         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
61766         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
61767         * modules/netinet_in (Files): Add lib/netinet_in_.h.
61768         (Depends-on): Add absolute-header.
61769         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
61770         into netinet/in.h.
61771
61772 2007-03-03  Bruno Haible  <bruno@clisp.org>
61773
61774         * lib/sys_select_.h: New file.
61775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
61776         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
61777         * modules/sys_select (Files): Add lib/sys_select_.h.
61778         (Depends-on): Add absolute-header.
61779         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
61780         into sys/select.h.
61781
61782 2007-03-02  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
61785         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
61786         values.
61787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
61788         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
61789         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
61790         * modules/sys_socket (Depends-on): Add absolute-header.
61791         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
61792         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
61793         (Include): Remove requirement of inclusion of <sys/types.h>.
61794
61795 2007-03-02  Bruno Haible  <bruno@clisp.org>
61796
61797         * lib/byteswap_.h (bswap_32): Fix formula.
61798
61799 2007-03-06  Bruno Haible  <bruno@clisp.org>
61800
61801         * modules/sprintf-posix-tests: New file.
61802         * tests/test-sprintf-posix.c: New file.
61803
61804         * modules/sprintf-posix: New file.
61805         * lib/sprintf.c: New file.
61806         * m4/sprintf-posix.m4: New file.
61807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
61808         REPLACE_SPRINTF.
61809         * lib/stdio_.h (sprintf): New declaration.
61810         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
61811         REPLACE_SPRINTF.
61812
61813 2007-03-06  Bruno Haible  <bruno@clisp.org>
61814
61815         * modules/vsprintf-posix-tests: New file.
61816         * tests/test-vsprintf-posix.c: New file.
61817         * tests/test-sprintf-posix.h: New file.
61818
61819         * modules/vsprintf-posix: New file.
61820         * lib/vsprintf.c: New file.
61821         * m4/vsprintf-posix.m4: New file.
61822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
61823         REPLACE_VSPRINTF.
61824         * lib/stdio_.h (vsprintf): New declaration.
61825         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
61826         REPLACE_VSPRINTF.
61827
61828 2007-03-06  Bruno Haible  <bruno@clisp.org>
61829
61830         * modules/vsnprintf (Depend-on): Remove minmax.
61831
61832 2007-03-06  Bruno Haible  <bruno@clisp.org>
61833
61834         * modules/snprintf-posix-tests: New file.
61835         * tests/test-snprintf-posix.c: New file.
61836
61837         * modules/snprintf-posix: New file.
61838         * m4/snprintf-posix.m4: New file.
61839         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
61840         gl_FUNC_SNPRINTF.
61841         (gl_FUNC_SNPRINTF): Invoke it.
61842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
61843         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
61844         is set.
61845         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
61846
61847 2007-03-06  Bruno Haible  <bruno@clisp.org>
61848
61849         * modules/vsnprintf-posix-tests: New file.
61850         * tests/test-vsnprintf-posix.c: New file.
61851         * tests/test-snprintf-posix.h: New file.
61852
61853         * modules/vsnprintf-posix: New file.
61854         * m4/vsnprintf-posix.m4: New file.
61855         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
61856         gl_FUNC_VSNPRINTF.
61857         (gl_FUNC_VSNPRINTF): Invoke it.
61858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
61859         * lib/stdio_.h (vsnprintf): Define as a replacement if
61860         REPLACE_VSNPRINTF is set.
61861         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
61862
61863 2007-03-06  Bruno Haible  <bruno@clisp.org>
61864
61865         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
61866         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
61867
61868 2007-03-06  Bruno Haible  <bruno@clisp.org>
61869
61870         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
61871         (asinl): Declare also if HAVE_DECL_ASINL is set.
61872         (atanl): Declare also if HAVE_DECL_ATANL is set.
61873         (ceill): Declare also if HAVE_DECL_CEILL is set.
61874         (cosl): Declare also if HAVE_DECL_COSL is set.
61875         (expl): Declare also if HAVE_DECL_EXPL is set.
61876         (floorl): Declare also if HAVE_DECL_FLOORL is set.
61877         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
61878         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
61879         (logl): Declare also if HAVE_DECL_LOGL is set.
61880         (sinl): Declare also if HAVE_DECL_SINL is set.
61881         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
61882         (tanl): Declare also if HAVE_DECL_TANL is set.
61883         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
61884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
61885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
61886         declaration of frexpl, ldexpl.
61887         * modules/printf-frexpl (Depends-on): Add math.
61888         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
61889
61890 2007-03-05  Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
61893         frexpl and ldexpl are declared.
61894         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
61895
61896 2007-03-05  Bruno Haible  <bruno@clisp.org>
61897
61898         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
61899         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
61900
61901 2007-03-05  Bruno Haible  <bruno@clisp.org>
61902
61903         * lib/stdio_.h: Include <stddef.h>.
61904
61905 2007-03-05  Bruno Haible  <bruno@clisp.org>
61906
61907         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
61908
61909 2007-03-05  Bruno Haible  <bruno@clisp.org>
61910
61911         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
61912         NetBSD 4, from Ralf Wildenhues.
61913
61914 2007-03-04  Bruno Haible  <bruno@clisp.org>
61915
61916         * lib/vasprintf.h: Update #if logic for the case when the functions
61917         exist but are overridden.
61918
61919 2007-03-04  Bruno Haible  <bruno@clisp.org>
61920
61921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
61922         implementations: glibc-2.4 and MacOS X 10.3.
61923         * tests/test-vasnprintf-posix.c (test_function): Test also the case
61924         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
61925         * tests/test-vasprintf-posix.c (test_function): Likewise.
61926
61927 2007-03-04  Bruno Haible  <bruno@clisp.org>
61928
61929         * modules/vasprintf-posix-tests: New file.
61930         * tests/test-vasprintf-posix.c: New file.
61931
61932         * modules/vasprintf-posix: New file.
61933         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
61934         defined.
61935         * m4/vasprintf-posix.m4: New file.
61936         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
61937         gl_FUNC_VASPRINTF.
61938         (gl_FUNC_VASPRINTF): Invoke it.
61939         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
61940         here.
61941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
61942
61943 2007-03-04  Bruno Haible  <bruno@clisp.org>
61944
61945         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
61946         REPLACE_GETTIMEOFDAY.
61947         * modules/sys_time (Makefile.am): Likewise.
61948         * m4/sys_time_h.m4: Likewise.
61949         * m4/gettimeofday.m4: Likewise.
61950
61951 2007-03-04  Bruno Haible  <bruno@clisp.org>
61952
61953         * modules/vasnprintf-posix-tests: New file.
61954         * tests/test-vasnprintf-posix.c: New file.
61955
61956         * modules/vasnprintf-posix: New file.
61957         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
61958         printf-frexpl.h.
61959         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
61960         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
61961         REPLACE_VASNPRINTF is defined.
61962         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
61963         gl_FUNC_VASNPRINTF.
61964         (gl_FUNC_VASNPRINTF): Invoke it.
61965         * m4/vasnprintf-posix.m4: New file.
61966         * m4/printf.m4: New file.
61967
61968 2007-03-04  Bruno Haible  <bruno@clisp.org>
61969
61970         Compile progreloc.c only if --enable-relocatable is specified.
61971         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
61972         if --enable-relocatable was specified.
61973         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
61974         lib_SOURCES.
61975
61976 2007-03-04  Jim Meyering  <jim@meyering.net>
61977
61978         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
61979         Use it consistently, rather than enumerating errno constants.
61980
61981 2007-03-04  Bruno Haible  <bruno@clisp.org>
61982
61983         * modules/xvasprintf-tests: New file.
61984         * tests/test-xvasprintf.c: New file.
61985
61986         * modules/vasprintf-tests: New file.
61987         * tests/test-vasprintf.c: New file.
61988
61989         * modules/vasnprintf-tests: New file.
61990         * tests/test-vasnprintf.c: New file.
61991
61992         * modules/vsnprintf-tests: New file.
61993         * tests/test-vsnprintf.c: New file.
61994
61995         * modules/snprintf-tests: New file.
61996         * tests/test-snprintf.c: New file.
61997
61998 2007-03-04  Bruno Haible  <bruno@clisp.org>
61999
62000         Compile relocatable.c only if --enable-relocatable is specified.
62001         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62002         gl_RELOCATABLE_LIBRARY.
62003         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62004         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62005         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62006         gl_RELOCATABLE_LIBRARY.
62007         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62008         (Makefile.am): Remove lib_SOURCES.
62009         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62010         gl_RELOCATABLE_LIBRARY.
62011         (Makefile.am): Remove lib_SOURCES.
62012         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62013         always.
62014         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62015         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62016
62017 2007-03-04  Bruno Haible  <bruno@clisp.org>
62018
62019         * modules/argmatch-tests: New file.
62020         * tests/test-argmatch.c: New file.
62021
62022         * tests/test-allocsa.c (main): Halve the number of loop runs.
62023
62024         * modules/alloca-opt-tests: New file.
62025         * tests/test-alloca-opt.c: New file.
62026
62027 2007-03-04  Jim Meyering  <jim@meyering.net>
62028
62029         Work around difference between Linux ACLs and Solaris 10 ZFS.
62030         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62031         for EINVAL.
62032
62033 2007-03-03  Bruno Haible  <bruno@clisp.org>
62034
62035         * modules/relocatable-prog (Depends-on): Add back progreloc's
62036         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62037
62038 2007-03-03  Bruno Haible  <bruno@clisp.org>
62039
62040         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62041         * modules/relocatable-lib: New file.
62042
62043 2007-03-03  Bruno Haible  <bruno@clisp.org>
62044
62045         * modules/relocatable-prog: Renamed from modules/relocatable.
62046         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62047
62048 2007-03-03  Bruno Haible  <bruno@clisp.org>
62049
62050         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62051         m4/relocatable-lib.m4.
62052         (Depends-on): Remove 'relocatable'.
62053         (configure.ac): Add gl_RELOCATABLE_NOP.
62054
62055 2007-03-03  Bruno Haible  <bruno@clisp.org>
62056
62057         * modules/relocatable-prog-wrapper: New file.
62058         * modules/relocatable (Depends-on): Add it. Remove all other
62059         dependencies except progname.
62060         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62061
62062         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62063         (gl_FUNC_STRERROR): Nop.
62064         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62065
62066         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62067         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62068
62069         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62070         (gl_FUNC_READLINK): Update.
62071
62072         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62073
62074 2007-03-03  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62077         * modules/xreadlink (Depends-on): Add unistd.
62078         * modules/xreadlink-with-size (Depends-on): Likewise.
62079
62080 2007-03-03  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62083         extracted from gt_FUNC_SETENV.
62084         (gt_FUNC_SETENV): Remove macro.
62085         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62086         remove gt_FUNC_SETENV.
62087
62088 2007-03-03  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62091         ENABLE_RELOCATABLE here.
62092         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62093
62094 2007-03-03  Bruno Haible  <bruno@clisp.org>
62095
62096         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62097         * tests/test-rbtreehash_list.c: Include progname.h.
62098         (main): Call set_program_name.
62099
62100         * modules/rbtree-oset-tests (Depends-on): Add progname.
62101         * tests/test-rbtree_oset.c: Include progname.h.
62102         (main): Call set_program_name.
62103
62104         * modules/rbtree-list-tests (Depends-on): Add progname.
62105         * tests/test-rbtree_list.c: Include progname.h.
62106         (main): Call set_program_name.
62107
62108         * modules/linked-list-tests (Depends-on): Add progname.
62109         * tests/test-linked_list.c: Include progname.h.
62110         (main): Call set_program_name.
62111
62112 2007-03-03  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62115         All uses of __restrict changed to _Restrict_.
62116         * lib/glob_.h (__restrict): Remove macro.
62117
62118 2007-03-02  Bruno Haible  <bruno@clisp.org>
62119
62120         * modules/gettext (configure.ac): Require gettext infrastructure
62121         from version 0.16.1.
62122
62123 2007-03-02  Bruno Haible  <bruno@clisp.org>
62124
62125         * modules/linkedhash-list-tests (Depends-on): Add progname.
62126         * tests/test-linkedhash_list.c: Include progname.h.
62127         (main): Call set_program_name.
62128
62129         * modules/carray-list-tests (Depends-on): Add progname.
62130         * tests/test-carray_list.c: Include progname.h.
62131         (main): Call set_program_name.
62132
62133         * modules/avltreehash-list-tests (Depends-on): Add progname.
62134         * tests/test-avltreehash_list.c: Include progname.h.
62135         (main): Call set_program_name.
62136
62137         * modules/avltree-oset-tests (Depends-on): Add progname.
62138         * tests/test-avltree_oset.c: Include progname.h.
62139         (main): Call set_program_name.
62140
62141         * modules/avltree-list-tests (Depends-on): Add progname.
62142         * tests/test-avltree_list.c: Include progname.h.
62143         (main): Call set_program_name.
62144
62145         * modules/array-oset-tests (Depends-on): Add progname.
62146         * tests/test-array_oset.c: Include progname.h.
62147         (main): Call set_program_name.
62148
62149         * modules/array-list-tests (Depends-on): Add progname.
62150         * tests/test-array_list.c: Include progname.h.
62151         (main): Call set_program_name.
62152
62153         * modules/argp-tests (Depends-on): Add progname.
62154         * tests/test-argp.c: Include argp.h first. Include progname.h.
62155         (main): Call set_program_name.
62156
62157 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62158
62159         * doc/gnulib-tool.texi (Initial import): Reword description of
62160         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62161         limited effect even if defined after the first system include.
62162
62163 2007-03-01  Bruno Haible  <bruno@clisp.org>
62164
62165         * build-aux/config.libpath: Update to libtool-1.5.22.
62166         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62167
62168 2007-03-01  Bruno Haible  <bruno@clisp.org>
62169
62170         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62171         foo_CFLAGS.
62172         Reported by Ralf Wildenhues.
62173
62174 2007-03-01  Bruno Haible  <bruno@clisp.org>
62175
62176         * build-aux/install-reloc: Remove object files left over by some
62177         compilers.
62178         Reported by Ralf Wildenhues.
62179
62180 2007-03-01  Bruno Haible  <bruno@clisp.org>
62181
62182         * build-aux/install-reloc: Break long lines.
62183
62184 2007-03-01  Bruno Haible  <bruno@clisp.org>
62185
62186         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62187         Reported by Ralf Wildenhues.
62188
62189 2007-03-01  Bruno Haible  <bruno@clisp.org>
62190
62191         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62192         include ordering constraints.
62193
62194 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62195
62196         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62198         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62199         as another example.
62200         * lib/time_.h: Fix misspelling.
62201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62202         Require gl_HEADER_TIME_H_DEFAULTS.
62203         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62204         * m4/time_r.m4 (gl_TIME_R): Likewise.
62205         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62206
62207 2007-03-01  Bruno Haible  <bruno@clisp.org>
62208
62209         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62210         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62211
62212 2007-03-01  Jim Meyering  <jim@meyering.net>
62213
62214         * modules/xreadlink (Maintainer): Add my name.
62215         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62216
62217 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62218             Bruno Haible  <bruno@clisp.org>
62219
62220         * build-aux/install-reloc: Compile also c-ctype.c.
62221         * build-aux/relocatable.sh.in: New file.
62222         * doc/relocatable.texi: New file.
62223         * doc/relocatable-maint.texi: New file.
62224         * doc/gnulib.texi: Include relocatable-maint.texi.
62225         * lib/progreloc.c: Include unistd.h unconditionally.
62226         * lib/relocwrapper.c: Include unistd.h unconditionally.
62227         Include c-ctype.h.
62228         (add_dotbin): Use c_tolower.
62229         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62230         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62231         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62232         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62233         to m4/relocatable-lib.m4.
62234         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62235         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62236         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62237         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62238         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62239         * modules/relocatable: New file.
62240         * modules/relocatable-lib: New file.
62241         * modules/relocatable-script: New file.
62242
62243 2007-02-28  Bruno Haible  <bruno@clisp.org>
62244
62245         Import --enable-relocatable infrastructure.
62246         * build-aux/config.libpath: New file, from GNU gettext.
62247         * build-aux/install-reloc: New file, from GNU gettext.
62248         * build-aux/reloc-ldflags: New file, from GNU gettext.
62249         * lib/relocatable.h: New file, from GNU gettext.
62250         * lib/relocatable.c: New file, from GNU gettext.
62251         * lib/relocwrapper.c: New file, from GNU gettext.
62252         * m4/relocatable.m4: New file, from GNU gettext.
62253
62254 2007-02-28  Bruno Haible  <bruno@clisp.org>
62255
62256         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62257
62258         * modules/xreadlink: New file, from GNU gettext with modifications.
62259         * lib/xreadlink.c: New file, from GNU gettext.
62260         * lib/xreadlink.h: Add comments.
62261         (xreadlink): New declaration.
62262
62263         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62264         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62265         lib/xreadlink-with-size.c.
62266         (configure.ac): Remove gl_XREADLINK invocation.
62267         (Makefile.am): Augment lib_SOURCES.
62268         * m4/xreadlink.m4: Remove file.
62269         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62270         (xreadlink_with_size): Renamed from xreadink.
62271         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62272         * modules/canonicalize (Depends-on): Replace xreadlink with
62273         xreadlink-with-size.
62274         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62275
62276 2007-02-25  Jim Meyering  <jim@meyering.net>
62277
62278         * build-aux/announce-gen: When complaining about excess arguments,
62279         list them.
62280
62281 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62282
62283         * README: Document signed integer overflow situation more
62284         accurately.
62285
62286 2007-02-25  Bruno Haible  <bruno@clisp.org>
62287
62288         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62289         'a' or 'A' conversion.
62290
62291 2007-02-25  Bruno Haible  <bruno@clisp.org>
62292
62293         * modules/filename: Renamed from modules/pathname.
62294         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62295         lib/concatpath.c with lib/concat-filename.c.
62296         (Makefile.am): Update.
62297         (Include): Replace pathname.h with filename.h.
62298         * lib/filename.h: Renamed from lib/pathname.h.
62299         (concatenated_filename): Renamed from concatenated_pathname.
62300         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62301         (concatenated_filename): Renamed from concatenated_pathname.
62302         * lib/findprog.c: Include filename.h instead of pathname.h.
62303         (find_in_path): Update.
62304         * lib/javacomp.c: Include filename.h instead of pathname.h.
62305         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62306         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62307         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62308         is_oldgcj_14_13_usable, is_javac_usable): Update.
62309         * lib/javaexec.c: Include filename.h instead of pathname.h.
62310         (execute_java_class): Update.
62311         * modules/findprog: Update.
62312         * modules/javacomp: Update.
62313         * modules/javaexec: Update.
62314         * MODULES.html.sh (File system functions): Add 'filename', remove
62315         'pathname'.
62316
62317 2007-02-25  Bruno Haible  <bruno@clisp.org>
62318
62319         * modules/printf-frexpl-tests: New file.
62320         * tests/test-printf-frexpl.c: New file.
62321
62322         * modules/printf-frexpl: New file.
62323         * lib/printf-frexpl.h: New file.
62324         * lib/printf-frexpl.c: New file.
62325         * m4/printf-frexpl.m4: New file.
62326
62327 2007-02-25  Bruno Haible  <bruno@clisp.org>
62328
62329         * modules/printf-frexp-tests: New file.
62330         * tests/test-printf-frexp.c: New file.
62331
62332         * modules/printf-frexp: New file.
62333         * lib/printf-frexp.h: New file.
62334         * lib/printf-frexp.c: New file.
62335         * m4/printf-frexp.m4: New file.
62336
62337 2007-02-25  Bruno Haible  <bruno@clisp.org>
62338
62339         Assume automake >= 1.10 for the tests.
62340         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62341         * modules/arctwo-tests: Likewise.
62342         * modules/argp-tests: Likewise.
62343         * modules/avltree-list-tests: Likewise.
62344         * modules/avltree-oset-tests: Likewise.
62345         * modules/avltreehash-list-tests: Likewise.
62346         * modules/carray-list-tests: Likewise.
62347         * modules/crc-tests: Likewise.
62348         * modules/des-tests: Likewise.
62349         * modules/gc-arcfour-tests: Likewise.
62350         * modules/gc-arctwo-tests: Likewise.
62351         * modules/gc-des-tests: Likewise.
62352         * modules/gc-hmac-md5-tests: Likewise.
62353         * modules/gc-hmac-sha1-tests: Likewise.
62354         * modules/gc-md2-tests: Likewise.
62355         * modules/gc-md4-tests: Likewise.
62356         * modules/gc-md5-tests: Likewise.
62357         * modules/gc-pbkdf2-sha1-tests: Likewise.
62358         * modules/gc-rijndael-tests: Likewise.
62359         * modules/gc-sha1-tests: Likewise.
62360         * modules/gc-tests: Likewise.
62361         * modules/getaddrinfo-tests: Likewise.
62362         * modules/hmac-md5-tests: Likewise.
62363         * modules/hmac-sha1-tests: Likewise.
62364         * modules/linked-list-tests: Likewise.
62365         * modules/linkedhash-list-tests: Likewise.
62366         * modules/lock-tests: Likewise.
62367         * modules/md2-tests: Likewise.
62368         * modules/md4-tests: Likewise.
62369         * modules/md5-tests: Likewise.
62370         * modules/rbtree-list-tests: Likewise.
62371         * modules/rbtree-oset-tests: Likewise.
62372         * modules/rbtreehash-list-tests: Likewise.
62373         * modules/read-file-tests: Likewise.
62374         * modules/rijndael-tests: Likewise.
62375         * modules/stdint-tests: Likewise.
62376         * modules/tls-tests: Likewise.
62377
62378 2007-02-24  Bruno Haible  <bruno@clisp.org>
62379
62380         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62381         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62382         function; instead check whether isnan with a double argument links.
62383         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62384         function; instead check whether isnan with a 'long double' argument
62385         links.
62386         Reported by Eric Blake <ebb9@byu.net>.
62387
62388 2007-02-24  Bruno Haible  <bruno@clisp.org>
62389
62390         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62391         defined.
62392         * lib/isnanl.c: Remove all code. Just include isnan.c.
62393         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62394
62395 2007-02-25  Jim Meyering  <jim@meyering.net>
62396
62397         Avoid conflicting types for 'unsetenv' on FreeBSD.
62398         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62399         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62400         in stdlib.h.
62401
62402 2007-02-24  Bruno Haible  <bruno@clisp.org>
62403
62404         * modules/isnanl-nolibm-tests: New file.
62405         * tests/test-isnanl.c: New file.
62406
62407         * modules/isnanl-nolibm: New file.
62408         * lib/isnanl.h: New file.
62409         * lib/isnanl.c: New file.
62410         * m4/isnanl.m4: New file.
62411
62412 2007-02-24  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/isnan-nolibm-tests: New file.
62415         * tests/test-isnan.c: New file.
62416
62417         * modules/isnan-nolibm: New file.
62418         * lib/isnan.h: New file.
62419         * lib/isnan.c: New file.
62420         * m4/isnan.m4: New file.
62421
62422 2007-02-24  Bruno Haible  <bruno@clisp.org>
62423
62424         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62425         assume that an exponent fits in 20 bits.
62426
62427 2007-02-24  Jim Meyering  <jim@meyering.net>
62428
62429         * m4/regex.m4: Update the description of the configure-time option,
62430         --without-included-regex, to state accurately what the defaults are,
62431         and perhaps to give people an idea why using this option is risky.
62432
62433 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62434
62435         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62436         loops on small arguments.  This attempts to avoid the problem
62437         Bruno Haible reported for AIX 4.3.2 in
62438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62439
62440 2007-02-23  Bruno Haible  <bruno@clisp.org>
62441
62442         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62443         Needed for help2man.
62444
62445 2007-02-23  Karl Berry  <karl@gnu.org>
62446
62447         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
62448         exists, foo.h should be cvs-ignored, not committed.
62449
62450 2007-02-23  Eric Blake  <ebb9@byu.net>
62451
62452         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
62453         * lib/stat-time.h (includes): Likewise.
62454         * lib/utimecmp.c (includes): Likewise.
62455         * lib/utimens.h (includes): Likewise.
62456         * lib/getdate.y (includes): Also include "timespec.h" for use
62457         internal to the module.
62458         * modules/utimens (Depends-on): Revert yesterday's patch.
62459         * modules/nanosleep (Depends-on): Add missing dependency.
62460
62461 2007-02-22  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/glob.c: Don't include getlogin_r.h.
62464
62465 2007-02-22  Jim Meyering  <jim@meyering.net>
62466
62467         * modules/utimens (Depends-on): Add timespec, required for
62468         utimens.h's inclusion of timespec.h.
62469
62470 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
62471
62472         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
62473         long unreadable paths in GNU/Linux.  Problem reported by Andreas
62474         Schwab in
62475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
62476         I'll try to think of a better way to fix the Solaris problem.
62477
62478         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
62479         like glibc; on Solaris 10, it fails with errno == EINVAL.
62480         POSIX says the behavior is unspecified if the first argument is NULL,
62481         so play it safe and never pass NULL to the system getcwd.
62482
62483 2007-02-21  Jim Meyering  <jim@meyering.net>
62484
62485         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
62486         of gettimeofday.  It would conflict with the one now always
62487         provided via sys_time_.h.  Reported by Matthew Woehlke, as
62488         an IRIX 6.5 build failure.
62489
62490 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         Minor fixups to port to Solaris 10 with Sun C 5.8.
62493         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
62494         * modules/getcwd (Depends-on): Add dirfd.
62495         * lib/putenv.c (putenv): #undef it.
62496         (rpl_putenv): New decl.
62497         (malloc, free): Include <stdlib.h> rather than prototyping separately.
62498
62499 2007-02-20  Bruno Haible  <bruno@clisp.org>
62500
62501         * modules/stdio-tests: New file.
62502         * tests/test-stdio.c: New file.
62503
62504         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
62505         (Depends-on): Add stdio.
62506         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62507         (Include): Use <stdio.h> instead of vsnprintf.h.
62508         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62509         HAVE_DECL_VSNPRINTF.
62510         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
62511
62512         * modules/snprintf (Files): Remove lib/snprintf.h.
62513         (Depends-on): Add stdio.
62514         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
62515         (Include): Use <stdio.h> instead of snprintf.h.
62516         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
62517         HAVE_DECL_SNPRINTF.
62518         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
62519         * lib/getaddrinfo.c: Likewise.
62520
62521         * modules/stdio: New file.
62522         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
62523         * lib/snprintf.h: Remove file.
62524         * lib/vsnprintf.h: Remove file.
62525         * lib/.cppi-disable: Remove snprintf.h.
62526         * m4/stdio_h.m4: New file.
62527         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
62528
62529 2007-02-20  Jim Meyering  <jim@meyering.net>
62530
62531         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
62532         used by e.g., mingw.  From Bruno Haible.
62533
62534 2007-02-19  Bruno Haible  <bruno@clisp.org>
62535
62536         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
62537         warnings.
62538         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62539
62540 2007-02-19  Bruno Haible  <bruno@clisp.org>
62541
62542         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
62543         from mingw users.
62544
62545 2007-02-19  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
62548         warnings.
62549         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
62550
62551 2007-02-19  Jim Meyering  <jim@meyering.net>
62552
62553         Don't use FD after a successful "fdopendir (fd)".
62554         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
62555         Reset it by calling dirfd on the just-obtained DIR*.
62556
62557         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
62558         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
62559
62560 2007-02-18  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/readlink.c: Include <unistd.h>.
62563         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
62564         HAVE_READLINK.
62565         * modules/readlink (Depends-on): Add unistd.
62566         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62567         (Include): Add <unistd.h>.
62568
62569         * lib/getlogin_r.h: Remove file.
62570         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
62571         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
62572         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
62573         HAVE_DECL_GETLOGIN_R.
62574         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
62575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62576         (Include): Use <unistd.h> instead of getlogin_r.h.
62577
62578         * lib/getcwd.h: Remove file.
62579         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
62580         * lib/xgetcwd.c: Likewise.
62581         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
62582         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
62583         * modules/getcwd (Files): Remove lib/getcwd.h.
62584         (Depends-on): Add unistd.
62585         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62586         (Include): Use <unistd.h> instad of getcwd.h.
62587
62588         * lib/ftruncate.c: Include <unistd.h> first.
62589         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
62590         Set HAVE_FTRUNCATE.
62591         * modules/ftruncate (Depends-on): Add unistd.
62592         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62593
62594         * lib/fchdir.c: Include <unistd.h> first.
62595         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
62596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
62597         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
62598         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62599         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
62600
62601         * lib/dup2.c: Include <unistd.h> first.
62602         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
62603         HAVE_DUP2.
62604         * modules/dup2 (Depends-on): Add unistd.
62605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62606
62607         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
62608         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
62609         REPLACE_CHOWN. Don't define chown as a macro here.
62610         * modules/chown (Depends-on): Add unistd.
62611         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62612
62613         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
62614         Add definition for GL_LINK_WARNING.
62615         (chown, dup2): New declarations.
62616         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
62617         link warning.
62618         (ftruncate): New declaration.
62619         (getcwd): New declaration, taken from old getcwd.h.
62620         (getlogin_r): New declaration, taken from old getlogin_r.h.
62621         (readlink): New declaration.
62622         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
62623         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
62624         (gl_PREREQ_UNISTD): Remove macro.
62625         (gl_UNISTD_MODULE_INDICATOR): New macro.
62626         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
62627         many new variables. Don't set UNISTD_H.
62628         * modules/unistd (Description): Change.
62629         (Depends-on): Add link-warning.
62630         (configure.ac): Update.
62631         (Makefile.am): Create unistd.h always. Substitute many new variables
62632         into it.
62633
62634 2007-02-18  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
62637         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
62638         HAVE_GETSUBOPT.
62639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
62640         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
62641         * lib/getsubopt.h: Remove file.
62642         * modules/getsubopt (Files): Remove lib/getsubopt.h.
62643         (Depends-on): Add stdlib.
62644         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62645         (Includes): Use <stdlib.h> instead of getsubopt.h.
62646         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
62647         Set HAVE_GETSUBOPT.
62648         * lib/getsubopt.c: Don't include getsubopt.h.
62649
62650 2007-02-18  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/fchdir (Depends-on): Add dup2.
62653
62654 2007-02-18  Bruno Haible  <bruno@clisp.org>
62655
62656         * lib/stdlib_.h: Handle glibc's special invocation convention
62657         specially.
62658
62659 2007-02-18  Bruno Haible  <bruno@clisp.org>
62660
62661         * modules/stdlib-tests: New file.
62662         * tests/test-stdlib.c: New file.
62663
62664         * modules/mkstemp (Files): Remove lib/mkstemp.h.
62665         (Depends-on): Add stdlib.
62666         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62667         (Includes): Use <stdlib.h> instead of mkstemp.h.
62668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62669         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
62670         * lib/mkstemp.c: Don't include mkstemp.h.
62671         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
62672         * lib/stdlib--.h: Don't include mkstemp.h.
62673
62674         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
62675         (Depends-on): Add stdlib.
62676         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62677         (Includes): Use <stdlib.h> instead of mkdtemp.h.
62678         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
62679         HAVE_MKDTEMP.
62680         * lib/mkdtemp.c: Don't include mkdtemp.h.
62681         * lib/clean-temp.c: Don't include mkdtemp.h.
62682
62683         * modules/exit (Files): Remove lib/exit.h.
62684         (Depends-on): Add stdlib.
62685         (Makefile.am): Remove lib_SOURCES.
62686         (Include): Use <stdlib.h> instead of exit.h.
62687         * lib/argmatch.c: Don't include exit.h.
62688         * lib/execute.c: Likewise.
62689         * lib/pagealign_alloc.c: Likewise.
62690         * lib/pipe.c: Likewise.
62691         * lib/wait-process.c: Likewise.
62692         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
62693         * lib/exitfail.c: Likewise.
62694         * lib/savewd.c: Likewise.
62695         * lib/xsetenv.c: Likewise.
62696
62697         * modules/stdlib: New file.
62698         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
62699         and extra comments about mkstemp().
62700         * lib/exit.h: Remove file.
62701         * lib/mkdtemp.h: Remove file.
62702         * lib/mkstemp.h: Remove file.
62703         * m4/stdlib_h.m4: New file.
62704         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
62705
62706 2007-02-18  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/math-tests: New file.
62709         * tests/test-math.c: New file.
62710
62711         * modules/math: New file.
62712         * modules/mathl (Files): Remove lib/mathl.h.
62713         (Depends-on): Add math.
62714         (Makefile.am): Don't mention mathl.h.
62715         (Include): Use <math.h> instead of mathl.h.
62716         * lib/math_.h: New file.
62717         * lib/mathl.h: Remove file.
62718         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
62719         mathl.h.
62720         * lib/asinl.c: Likewise.
62721         * lib/atanl.c: Likewise.
62722         * lib/ceill.c: Likewise.
62723         * lib/cosl.c: Likewise.
62724         * lib/expl.c: Likewise.
62725         * lib/floorl.c: Likewise.
62726         * lib/frexpl.c: Likewise.
62727         * lib/ldexpl.c: Likewise.
62728         * lib/logl.c: Likewise.
62729         * lib/sincosl.c: Likewise.
62730         * lib/sinl.c: Likewise.
62731         * lib/sqrtl.c: Likewise.
62732         * lib/tanl.c: Likewise.
62733         * lib/trigl.c: Likewise.
62734         * m4/math_h.m4: New file.
62735         * MODULES.html.sh (Mathematics): Add math.
62736
62737 2007-02-17  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/wctype-tests: New file.
62740         * tests/test-wctype.c: New file.
62741
62742         * modules/wchar-tests: New file.
62743         * tests/test-wchar.c: New file.
62744
62745         * modules/unistd-tests: New file.
62746         * tests/test-unistd.c: New file.
62747
62748         * modules/time-tests: New file.
62749         * tests/test-time.c: New file.
62750
62751         * modules/sysexits-tests: New file.
62752         * tests/test-sysexits.c: New file.
62753
62754         * modules/sys_time-tests: New file.
62755         * tests/test-sys_time.c: New file.
62756
62757         * modules/sys_stat-tests: New file.
62758         * tests/test-sys_stat.c: New file.
62759
62760         * modules/sys_socket-tests: New file.
62761         * tests/test-sys_socket.c: New file.
62762
62763         * modules/sys_select-tests: New file.
62764         * tests/test-sys_select.c: New file.
62765
62766         * modules/string-tests: New file.
62767         * tests/test-string.c: New file.
62768
62769         * modules/stdbool-tests: New file.
62770         * tests/test-stdbool.c: New file.
62771
62772         * modules/netinet_in-tests: New file.
62773         * tests/test-netinet_in.c: New file.
62774
62775         * modules/inttypes-tests: New file.
62776         * tests/test-inttypes.c: New file.
62777
62778         * modules/fcntl-tests: New file.
62779         * tests/test-fcntl.c: New file.
62780
62781         * modules/byteswap-tests: New file.
62782         * tests/test-byteswap.c: New file.
62783
62784         * modules/arpa_inet-tests: New file.
62785         * tests/test-arpa_inet.c: New file.
62786
62787 2007-02-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
62790         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
62791         if the corresponding module is not enabled. Emit link warnings if
62792         the function is used nevertheless.
62793         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
62794         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
62795         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
62796         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
62797         * modules/inttypes (Depends-on): Add link-warning.
62798         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62799         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
62800         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
62801         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
62802         * modules/imaxdiv (configure.ac): Likewise.
62803         * modules/strtoimax (configure.ac): Likewise.
62804         * modules/strtoumax (configure.ac): Likewise.
62805
62806 2007-02-17  Bruno Haible  <bruno@clisp.org>
62807
62808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
62809         gl_STRING_MODULE_INDICATOR_DEFAULTS.
62810         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
62811         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
62812
62813 2007-02-17  Bruno Haible  <bruno@clisp.org>
62814
62815         * modules/link-warning: New file.
62816         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
62817         * lib/string_.h (GL_LINK_WARNING): Remove definition.
62818         * modules/string (Depends-on): Add link-warning.
62819         (Makefile.am): Copy the contents of build-aux/link-warning.h into
62820         string.h.
62821         * MODULES.html.sh (Support for building libraries and executables): Add
62822         link-warning.
62823
62824 2007-02-17  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
62827         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
62828         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
62829         long lines.
62830
62831 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
62832             Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/tmpfile: New file.
62835         * lib/tmpfile.c: New file.
62836         * m4/tmpfile.m4: New file.
62837         * MODULES.html.sh (func_all_modules): New section "Input/output".
62838
62839 2007-02-15  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
62842         (supports_delete_on_close): New function.
62843         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
62844
62845 2007-02-14  Bruno Haible  <bruno@clisp.org>
62846
62847         * modules/mbspcasecmp-tests: New file.
62848         * tests/test-mbspcasecmp.sh: New file.
62849         * tests/test-mbspcasecmp.c: New file.
62850
62851         New module mbspcasecmp.
62852         * modules/mbspcasecmp: New file.
62853         * lib/mbspcasecmp.c: New file.
62854         * lib/string_.h (strncasecmp): Change warning message.
62855         (mbspcasecmp): New declaration.
62856         * m4/mbspcasecmp.m4: New file.
62857         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62858         GNULIB_MBSPCASECMP.
62859         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
62860         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
62861
62862 2007-02-14  Bruno Haible  <bruno@clisp.org>
62863
62864         * modules/mbsncasecmp-tests: New file.
62865         * tests/test-mbsncasecmp.sh: New file.
62866         * tests/test-mbsncasecmp.c: New file.
62867
62868         New module mbsncasecmp.
62869         * modules/mbsncasecmp: New file.
62870         * lib/mbsncasecmp.c: New file.
62871         * lib/string_.h (mbsncasecmp): New declaration.
62872         * m4/mbsncasecmp.m4: New file.
62873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62874         GNULIB_MBSNCASECMP.
62875         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
62876         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
62877
62878 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
62881         Verify that it doesn't overlap with our flags.
62882         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
62883         do not have the desired effect in multibyte locales; instead, use
62884         mbscasecmp.
62885         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
62886         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
62887         we don't require GNU fnmatch ourselves (if our users require it, they
62888         should do so explicitly).
62889
62890         Fix regex code so it doesn't rely on strcasecmp.
62891         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
62892         Otherwise, include gnulib's langinfo.h.
62893         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
62894         undesirable behavior in non-C locales.  Instead, rely on localecharset.
62895         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
62896         * modules/regex (FILES): Remove m4/codeset.m4.
62897         (Depends-on): Add localcharset.  Remove strcase.
62898
62899 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62900
62901         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
62902         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62903
62904 2007-02-13  Bruno Haible  <bruno@clisp.org>
62905
62906         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
62907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62908
62909 2007-02-12  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62912         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
62913         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
62914         time warning rather than a link error.
62915
62916 2007-02-12  Bruno Haible  <bruno@clisp.org>
62917
62918         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
62919         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62921
62922 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62923
62924         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
62925         args, not 2.
62926
62927 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         New module 'time', so that apps can include <time.h> as per
62930         POSIX and GNU instead of separate include files like time_r.h
62931         and timegm.h.  This implementation tries out a simpler approach
62932         for replacing decls in standard include files (as compared to
62933         the string module), somewhat as an experiment.
62934
62935         * config/srclist.txt: Comment out mktime.c for now.
62936         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
62937         since it doesn't apply any more.  Use generic wording instead.
62938         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
62939         'time'.
62940         * lib/time_.h, m4/time_h.m4, modules/time: New files.
62941         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
62942         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
62943         Don't include <sys/types.h>; no longer needed since we assume C89.
62944         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
62945         * lib/strftime.c: Likewise.
62946         * lib/time_r.c: Likewise.
62947         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
62948         * lib/nanosleep.c: Include <time.h> first, to check interface.
62949         * lib/strptime.c: Likewise.
62950         * lib/time_r.c: Likewise.
62951         * lib/timegm.c: Likewise.
62952         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
62953         needed.
62954         * lib/timegm.c: Don't include timegm.h; no longer needed.
62955         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
62956         time.h now handles any problems in that area.
62957         (struct timespec, nanosleep): Remove; time.h now arranges for these.
62958         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
62959         that time.h defines struct timespec.
62960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
62961         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
62962         handles that.
62963         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
62964         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
62965         needed.  Set REPLACE_LOCALTIME.
62966         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
62967         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
62968         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
62969         nanosleep; time_h.m4 now does that.  Don't require
62970         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
62971         module handles this now.
62972         * modules/getdate (Depends-on): Remove timespec.  Add time.
62973         * modules/nanosleep (Depends-on): Likewise.
62974         * modules/stat-time (Depends-on): Likewise.
62975         * modules/nanosleep (Include): Include time.h, not timespec.h.
62976         * modules/strptime (Files): Remove lib/strptime.h.
62977         (Depends-on): Add extensions, time.
62978         (Include): Include time.h, not strptime.h.
62979         * modules/time_r (Files): Remove lib/time_r.h.
62980         (Depends-on): Add time.
62981         (Include): Include time.h, not time_r.h.
62982         * modules/timegm: Likewise.
62983         * modules/timespec (Description): Now does timespec-related decls
62984         of our own, instead of struct timespec itself.
62985         (Depends-on): Add time; remove extensions.
62986         (Maintainer): Add self.
62987         * modules/utimecmp (Depends-on): Add time; remove timespec.
62988         * modules/utimens (Depends-on): Likewise.
62989         * modules/xnanosleep (Depends-on): Likewise.
62990
62991 2007-02-11  Bruno Haible  <bruno@clisp.org>
62992
62993         * lib/c-strstr.c: Include allocsa.h.
62994         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62995         * lib/c-strcasestr.c: Include allocsa.h.
62996         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62997         * lib/strcasestr.c: Include allocsa.h.
62998         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
62999         * lib/mbsstr.c: Include allocsa.h.
63000         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63001         allocsa/freesa instead of malloc/free.
63002         * lib/mbscasestr.c: Include allocsa.h.
63003         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63004         allocsa/freesa instead of malloc/free.
63005         * modules/c-strstr (Depends-on): Add allocsa.
63006         * modules/c-strcasestr (Depends-on): Likewise.
63007         * modules/strcasestr (Depends-on): Likewise.
63008         * modules/mbsstr (Depends-on): Likewise.
63009         * modules/mbscasestr (Depends-on): Likewise.
63010
63011 2007-02-11  Bruno Haible  <bruno@clisp.org>
63012
63013         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63014
63015         * modules/mbsspn-tests: New file.
63016         * tests/test-mbsspn.sh: New file.
63017         * tests/test-mbsspn.c: New file.
63018
63019 2007-02-11  Bruno Haible  <bruno@clisp.org>
63020
63021         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63022
63023         * modules/mbspbrk-tests: New file.
63024         * tests/test-mbspbrk.sh: New file.
63025         * tests/test-mbspbrk.c: New file.
63026
63027 2007-02-11  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63030         unneeded cast.
63031
63032         * modules/mbscspn-tests: New file.
63033         * tests/test-mbscspn.sh: New file.
63034         * tests/test-mbscspn.c: New file.
63035
63036 2007-02-11  Bruno Haible  <bruno@clisp.org>
63037
63038         * modules/mbscasecmp-tests: New file.
63039         * tests/test-mbscasecmp.sh: New file.
63040         * tests/test-mbscasecmp.c: New file.
63041
63042 2007-02-11  Bruno Haible  <bruno@clisp.org>
63043
63044         Ensure O(n) worst-case complexity of mbscasestr.
63045         * lib/mbscasestr.c: Include stdbool.h.
63046         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63047         functions.
63048         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63049         the bookkeeping indicates that it's worth it.
63050         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63051
63052         * modules/mbscasestr-tests: New file.
63053         * tests/test-mbscasestr1.c: New file.
63054         * tests/test-mbscasestr2.sh: New file.
63055         * tests/test-mbscasestr2.c: New file.
63056         * tests/test-mbscasestr3.sh: New file.
63057         * tests/test-mbscasestr3.c: New file.
63058         * tests/test-mbscasestr4.sh: New file.
63059         * tests/test-mbscasestr4.c: New file.
63060         * m4/locale-tr.m4: New file.
63061
63062 2007-02-11  Bruno Haible  <bruno@clisp.org>
63063
63064         Ensure O(n) worst-case complexity of mbsstr.
63065         * lib/mbsstr.c: Include stdbool.h.
63066         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63067         functions.
63068         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63069         bookkeeping indicates that it's worth it.
63070         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63071
63072         * modules/mbsstr-tests: New file.
63073         * tests/test-mbsstr1.c: New file.
63074         * tests/test-mbsstr2.sh: New file.
63075         * tests/test-mbsstr2.c: New file.
63076         * tests/test-mbsstr3.sh: New file.
63077         * tests/test-mbsstr3.c: New file.
63078         * m4/locale-fr.m4: New file.
63079
63080 2007-02-11  Bruno Haible  <bruno@clisp.org>
63081
63082         * lib/mbsrchr.c (mbsrchr): Fix bug.
63083
63084         * modules/mbsrchr-tests: New file.
63085         * tests/test-mbsrchr.sh: New file.
63086         * tests/test-mbsrchr.c: New file.
63087
63088 2007-02-11  Bruno Haible  <bruno@clisp.org>
63089
63090         * lib/mbschr.c (mbschr): Fix bug.
63091
63092         * modules/mbschr-tests: New file.
63093         * tests/test-mbschr.sh: New file.
63094         * tests/test-mbschr.c: New file.
63095         * m4/locale-zh.m4: New file.
63096
63097 2007-02-11  Bruno Haible  <bruno@clisp.org>
63098
63099         Support for copying multibyte string iterators.
63100         * lib/mbiter.h: Include <string.h>.
63101         (mbiter_multi_copy): New function.
63102         (mbi_copy): New macro.
63103         * lib/mbuiter.h: Include <string.h>.
63104         (mbuiter_multi_copy): New function.
63105         (mbui_copy): New macro.
63106
63107 2007-02-11  Bruno Haible  <bruno@clisp.org>
63108
63109         New module mbslen.
63110         * modules/mbslen: New file.
63111         * lib/mbslen.c: New file.
63112         * lib/string_.h (mbslen): New declaration.
63113         * m4/mbslen.m4: New file.
63114         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63115         GNULIB_MBSLEN.
63116         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63117         * MODULES.html.sh (Internationalization functions): Add mbslen.
63118
63119 2007-02-11  Bruno Haible  <bruno@clisp.org>
63120
63121         Ensure O(n) worst-case complexity of strcasestr substitute.
63122         * lib/strcasestr.c: Include stdbool.h.
63123         (knuth_morris_pratt): New function.
63124         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63125         bookkeeping indicates that it's worth it.
63126         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63127
63128         * modules/strcasestr-tests: New file.
63129         * tests/test-strcasestr.c: New file.
63130
63131 2007-02-11  Bruno Haible  <bruno@clisp.org>
63132
63133         Ensure O(n) worst-case complexity of c_strcasestr.
63134         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63135         (knuth_morris_pratt): New function.
63136         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63137         the bookkeeping indicates that it's worth it.
63138         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63139
63140         * modules/c-strcasestr-tests: New file.
63141         * tests/test-c-strcasestr.c: New file.
63142
63143 2007-02-11  Bruno Haible  <bruno@clisp.org>
63144
63145         Ensure O(n) worst-case complexity of c_strstr.
63146         * lib/c-strstr.c: Include stdbool.h, string.h.
63147         (knuth_morris_pratt): New function.
63148         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63149         bookkeeping indicates that it's worth it.
63150         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63151
63152         * lib/c-strstr.c: Complete rewrite for maintainability.
63153
63154         * modules/c-strstr-tests: New file.
63155         * tests/test-c-strstr.c: New file.
63156
63157 2007-02-11  Bruno Haible  <bruno@clisp.org>
63158
63159         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63160         5.2.1 and earlier, whereby \055 was treated just like the range
63161         delimiter '-'.
63162         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63163
63164 2007-02-08  Bruno Haible  <bruno@clisp.org>
63165
63166         * modules/regex (Depends-on): Add stdbool.
63167         Reported by Dalibor Topic <robilad@kaffe.org>.
63168
63169 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63170
63171         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63172         Prefer returning from main to exiting from it.
63173         Remove unnecessary parens after sizeof.
63174
63175 2007-02-05  Bruno Haible  <bruno@clisp.org>
63176
63177         New module mbssep.
63178         * modules/mbssep: New file.
63179         * lib/mbssep.c: New file.
63180         * lib/string_.h (strsep): Add a conditional link warning.
63181         (mbssep): New declaration.
63182         * m4/mbssep.m4: New file.
63183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63184         GNULIB_MBSSEP.
63185         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63186         * MODULES.html.sh (Internationalization functions): Add mbssep.
63187
63188 2007-02-05  Bruno Haible  <bruno@clisp.org>
63189
63190         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63191         Optimize search in case of 1 delimiter.
63192
63193 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63194
63195         * lib/acl.h: Include sys/types.h before sys/acl.h.
63196
63197 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63198
63199         Merge upstream fix for glibc bugzilla #3957:
63200
63201         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63202
63203         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63204         bit for RE_HAT_LISTS_NOT_NEWLINE.
63205         (build_charclass_op): Remove bogus comment.
63206
63207 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63208
63209         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63210
63211 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63214         * lib/memmem.c [!defined _LIBC]: Include config.h.
63215
63216 2007-02-04  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63219         warning message.
63220
63221 2007-02-04  Bruno Haible  <bruno@clisp.org>
63222
63223         New module mbstok_r.
63224         * modules/mbstok_r: New file.
63225         * lib/mbstok_r.c: New file.
63226         * lib/string_.h (strtok_r): Change argument names to match the
63227         comments. Add a conditional link warning.
63228         (mbstok_r): New declaration.
63229         * m4/mbstok_r.m4: New file.
63230         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63231         GNULIB_MBSTOK_R.
63232         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63233         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63234
63235 2007-02-04  Bruno Haible  <bruno@clisp.org>
63236
63237         New module mbsspn.
63238         * modules/mbsspn: New file.
63239         * lib/mbsspn.c: New file.
63240         * lib/string_.h (strspn): Add a conditional link warning.
63241         (mbsspn): New declaration.
63242         * m4/mbsspn.m4: New file.
63243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63244         GNULIB_MBSSPN.
63245         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63246         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63247
63248 2007-02-04  Bruno Haible  <bruno@clisp.org>
63249
63250         New module mbspbrk.
63251         * modules/mbspbrk: New file.
63252         * lib/mbspbrk.c: New file.
63253         * lib/string_.h (strpbrk): Add a conditional link warning.
63254         (mbspbrk): New declaration.
63255         * m4/mbspbrk.m4: New file.
63256         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63257         GNULIB_MBSPBRK.
63258         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63259         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63260
63261 2007-02-04  Bruno Haible  <bruno@clisp.org>
63262
63263         New module mbscspn.
63264         * modules/mbscspn: New file.
63265         * lib/mbscspn.c: New file.
63266         * lib/string_.h (strcspn): Add a conditional link warning.
63267         (mbscspn): New declaration.
63268         * m4/mbscspn.m4: New file.
63269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63270         GNULIB_MBSCSPN.
63271         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63272         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63273
63274 2007-02-04  Bruno Haible  <bruno@clisp.org>
63275
63276         New module mbscasestr, reduced goal of strcasestr.
63277         * modules/mbscasestr: New file.
63278         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63279         (mbscasestr): Renamed from strcasestr.
63280         * lib/strcasestr.c: Don't include mbuiter.h.
63281         (strcasestr): Remove support for multibyte locales.
63282         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63283         Change the conditional link warning.
63284         (mbscasestr): New declaration.
63285         * m4/mbscasestr.m4: New file.
63286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63287         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63288         REPLACE_STRCASESTR.
63289         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63291         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63292         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63293         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63294         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63295         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63296         (Depends-on): Remove mbuiter.
63297         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63298
63299 2007-02-04  Bruno Haible  <bruno@clisp.org>
63300
63301         Simplify handling of strncasecmp.
63302         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63303         the conditional link warning.
63304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63305         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63306         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63307         * modules/strcase (configure.ac): Don't invoke
63308         gl_STRING_MODULE_INDICATOR.
63309         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63310
63311 2007-02-04  Bruno Haible  <bruno@clisp.org>
63312
63313         New module mbscasecmp, reduced goal of strcasecmp.
63314         * modules/mbscasecmp: New file.
63315         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63316         (mbscasecmp): Renamed from strcasecmp.
63317         * lib/strcasecmp.c: Don't include mbuiter.h.
63318         (strcasecmp): Remove support for multibyte locales.
63319         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63320         Change the conditional link warning.
63321         (mbscasecmp): New declaration.
63322         * m4/mbscasecmp.m4: New file.
63323         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63324         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63325         REPLACE_STRCASECMP.
63326         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63328         GNULIB_MBSCASECMP.
63329         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63330         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63331         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63332         (Depends-on): Remove mbuiter.
63333         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63334
63335 2007-02-04  Bruno Haible  <bruno@clisp.org>
63336
63337         New module mbsstr. Remove module strstr.
63338         * modules/mbsstr: New file.
63339         * modules/strstr: Remove file.
63340         * lib/mbsstr.c: Renamed from lib/strstr.c.
63341         (mbsstr): Renamed from strstr.
63342         * lib/string_.h (strstr): Remove declaration. Change the conditional
63343         link warning.
63344         (mbsstr): New declaration.
63345         * m4/mbsstr.m4: New file.
63346         * m4/strstr.m4: Remove file.
63347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63348         REPLACE_STRSTR.
63349         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63350         Don't initialize GNULIB_STRSTR.
63351         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63352         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63353         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63354         (Support for systems lacking ANSI C 89): Remove strstr.
63355
63356 2007-02-04  Bruno Haible  <bruno@clisp.org>
63357
63358         New module mbsrchr.
63359         * modules/mbsrchr: New file.
63360         * lib/mbsrchr.c: New file.
63361         * lib/string_.h (strrchr): Add a conditional link warning.
63362         (mbsrchr): New declaration.
63363         * m4/mbsrchr.m4: New file.
63364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63365         GNULIB_MBSRCHR.
63366         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63367         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63368
63369 2007-02-04  Bruno Haible  <bruno@clisp.org>
63370
63371         New module mbschr.
63372         * modules/mbschr: New file.
63373         * lib/mbschr.c: New file.
63374         * lib/string_.h (strchr): Add a conditional link warning.
63375         (mbschr): New declaration.
63376         * m4/mbschr.m4: New file.
63377         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63378         GNULIB_MBSCHR.
63379         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63380         * MODULES.html.sh (Internationalization functions): Add mbschr.
63381
63382 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63383
63384         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63385
63386         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63387
63388 2007-02-04  Bruno Haible  <bruno@clisp.org>
63389
63390         New module description section 'configure.ac-early'.
63391         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63392         (func_get_autoconf_early_snippet): New function.
63393         (func_import, func_create_testdir): Use it. Remove special cases for
63394         modules 'extensions' and 'lock'.
63395         * modules/extensions (configure.ac-early): Require
63396         gl_USE_SYSTEM_EXTENSIONS.
63397         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63398
63399 2007-02-04  Bruno Haible  <bruno@clisp.org>
63400
63401         Make use of gcj-4.3's -fsource and -ftarget option.
63402         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63403         and if so try the options -fsource and -ftarget.
63404         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63405         source_version, ftarget_option, target_version arguments.
63406         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63407         (is_envjavac_oldgcj_14_14_usable): Renamed from
63408         is_envjavac_gcj_14_14_usable.
63409         (is_envjavac_oldgcj_14_13_usable): Renamed from
63410         is_envjavac_gcj_14_13_usable.
63411         (is_gcj_present): Update.
63412         (is_gcj_43, is_gcj43_usable): New functions.
63413         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63414         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63415         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63416         try the options -fsource and -ftarget.
63417
63418 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63421         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63422         larger value.
63423
63424 2007-02-03  Jim Meyering  <jim@meyering.net>
63425
63426         Give tools a better chance to allocate space for very large buffers.
63427         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63428
63429         Make pwd and readlink work also when run with an unreadable parent dir
63430         on systems with openat support.
63431         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63432         provided getcwd function, even when we have openat support.
63433         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63434
63435 2007-02-02  Bruno Haible  <bruno@clisp.org>
63436
63437         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63438         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63439         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63440         portability problems if one of these functions is only used on specific
63441         platforms.
63442         Reported by Paul Eggert.
63443
63444 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63445
63446         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
63447         is causing more trouble than it's curing.
63448         * lib/regex_internal.h (__mempcpy): Remove.
63449         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
63450         (and make the code a tad smaller to boot).
63451         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
63452
63453 2007-02-02  Jim Meyering  <jim@meyering.net>
63454
63455         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
63456         section, not in the Makefile.am: one.
63457
63458 2007-02-02  Eric Blake  <ebb9@byu.net>
63459
63460         * lib/strchrnul.c: Always include config.h first.
63461
63462         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
63463         gnulib strstr is not necessary here.
63464
63465 2007-02-02  Simon Josefsson  <simon@josefsson.org>
63466
63467         * m4/socklen.m4: Fix typo.
63468
63469 2007-02-02  Eric Blake  <ebb9@byu.net>
63470
63471         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
63472         * modules/netinet_in (Makefile.am): Likewise.
63473
63474 2007-02-01  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/string_.h (GL_LINK_WARNING): New macro.
63477         (strcasecmp, strstr, strcasestr): If provided by the system,
63478         conditionally define as a macro that leads to a warning instead of to
63479         an error.
63480         (strncasecmp): Conditionally define as a macro that leads to a warning.
63481
63482 2007-02-01  Karl Berry  <karl@gnu.org>
63483
63484         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
63485
63486 2007-02-01  Bruno Haible  <bruno@clisp.org>
63487
63488         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
63489         renamings.
63490
63491 2007-02-01  Eric Blake  <ebb9@byu.net>
63492
63493         * modules/regex (Depends-on): Revert dependence on mempcpy.
63494         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
63495         module's definition of mempcpy.
63496         Reported by Paul Eggert.
63497
63498 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
63499
63500         * lib/string_.h: If the gnulib module XYZ is not present, undefine
63501         the symbol XYZ before redefining it.  This fixes a problem with
63502         programs that don't use XYZ, when compiled on systems that define
63503         XYZ to something else.
63504
63505 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
63506
63507         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
63508         occurs when "mkdir -m foo" creates a setgid directory that is (1)
63509         writeable to group or other and (2) is intended to have a special
63510         mode bit that is set or cleared.  In such a case, the directory
63511         should be neither group- nor other-writeable until the special
63512         mode bits are right.
63513
63514 2007-01-31  Eric Blake  <ebb9@byu.net>
63515
63516         * modules/mountlist (Depends-on): Add strstr.
63517
63518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
63519         bug.
63520         * modules/string (Makefile.am): Remove redundant replacement.
63521         * modules/regex (Depends-on): Add mempcpy.
63522
63523 2007-01-31  Bruno Haible  <bruno@clisp.org>
63524
63525         New module description field 'Link'.
63526         * gnulib-tool (func_usage): Document --extract-link-directive.
63527         (sed_extract_prog): Recognize 'Link' directive.
63528         (func_get_link_directive): New function.
63529         (func_import): Show summary of link directives.
63530         Handle --extract-link-directive option.
63531         * modules/acl (Link): New section.
63532         * modules/clock-time (Link): New section.
63533         * modules/euidaccess (Link): New section.
63534         * modules/gettext (Link): New section.
63535         * modules/iconv (Link): New section.
63536         * modules/lock (Link): New section.
63537         * modules/nanosleep (Link): New section.
63538         * modules/readline (Link): New section.
63539
63540 2007-01-27  Bruno Haible  <bruno@clisp.org>
63541
63542         Enforce the use of gnulib modules for unportable <string.h> functions.
63543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
63544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
63545         (gl_HEADER_STRING_H_BODY): Require it.
63546         * lib/string_.h: If the gnulib module XYZ is not present, redefine
63547         the symbol XYZ to one that gives a link error.
63548         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
63549         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
63550         * modules/mempcpy (configure.ac): Likewise.
63551         * modules/memrchr (configure.ac): Likewise.
63552         * modules/stpcpy (configure.ac): Likewise.
63553         * modules/stpncpy (configure.ac): Likewise.
63554         * modules/strcase (configure.ac): Likewise.
63555         * modules/strcasestr (configure.ac): Likewise.
63556         * modules/strchrnul (configure.ac): Likewise.
63557         * modules/strdup (configure.ac): Likewise.
63558         * modules/strndup (configure.ac): Likewise.
63559         * modules/strnlen (configure.ac): Likewise.
63560         * modules/strpbrk (configure.ac): Likewise.
63561         * modules/strsep (configure.ac): Likewise.
63562         * modules/strstr (configure.ac): Likewise.
63563         * modules/strtok_r (configure.ac): Likewise.
63564
63565 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
63566
63567         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
63568
63569 2007-01-30  Jim Meyering  <jim@meyering.net>
63570
63571         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
63572
63573 2007-01-29  Bruno Haible  <bruno@clisp.org>
63574
63575         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
63576         * lib/execute.c: Likewise.
63577         * lib/pipe.c: Likewise.
63578         * lib/printf-args.h: Likewise.
63579         * lib/printf-args.c: Likewise.
63580         * lib/printf-parse.c: Likewise.
63581         * lib/vasnprintf.c: Likewise.
63582
63583 2007-01-29  Eric Blake  <ebb9@byu.net>
63584
63585         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
63586         declaration.
63587
63588 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * lib/strptime.h (strptime): Use 'restrict' for args where
63591         POSIX requires this.
63592         * lib/strptime.c (strptime): Likewise.
63593         Change license notice from LGPL to GPL, since gnulib-tool will
63594         change this as needed.
63595         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
63596         defined.
63597         Include "strptime.h" first, to check interface.
63598         Do not #undef _LIBC and _NL_CURRENT.
63599         Do not include <stdlib.h>; no longer needed.
63600         Include "time_r.h" and declare ptime_locale_status
63601         only if _LIBC is not defined.
63602         (__P): Remove unused macro.
63603         (match_string): Bring back glibc version, but use it only if _LIBC
63604         is defined.
63605         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
63606         Remove unnecessary assertion and abort() call.
63607         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
63608         * m4/strptime.m4: Fix serial number comment.
63609         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
63610         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
63611         (Depends-on): Add time_r.
63612
63613 2007-01-29  Bruno Haible  <bruno@clisp.org>
63614
63615         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63616         strptime.
63617         * modules/strptime (Depends-on): Add stdbool.
63618         * lib/strptime.h: Include <time.h> always. Add comments.
63619
63620 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
63621
63622         * modules/strptime: New file.
63623         * lib/strptime.h: New file.
63624         * lib/strptime.c: New file.
63625         * m4/strptime.m4: New file.
63626
63627 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
63628
63629         * MODULES.html.sh: New module mpsort.
63630         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
63631
63632         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
63633         a circularity problem with HP-UX ia64 reported by Bob Proulx in
63634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
63635         All uses changed.
63636         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
63637         All uses changed.
63638         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
63639         to _Restrict_.
63640         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
63641         the parameter matches the prototype.
63642
63643 2007-01-28  Jim Meyering  <jim@meyering.net>
63644
63645         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
63646         sys/time.h here, reverting that part of the previous patch:
63647         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
63648
63649 2007-01-28  Bruno Haible  <bruno@clisp.org>
63650
63651         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
63652         value of $(SYS_TIME_H).
63653         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
63654         remove it conditionally, too. [added by Jim Meyering]
63655         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
63656         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63657         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
63658         GETTIMEOFDAY_REPLACEMENT to 1.
63659
63660 2007-01-28  Bruno Haible  <bruno@clisp.org>
63661
63662         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
63663         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
63664         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
63665         Set UNISTD_H instead of UNISTD_H2.
63666         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
63667
63668 2007-01-28  Bruno Haible  <bruno@clisp.org>
63669
63670         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
63671         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
63672
63673 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63674
63675         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
63676         (func_create_testdir): Ensure C locale for `grep' and `tr'
63677         character ranges.
63678         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
63679         ACLOCAL_AMFLAGS parsing state machine.
63680
63681 2007-01-27  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/unistr/base: Update.
63684
63685 2007-01-27  Bruno Haible  <bruno@clisp.org>
63686
63687         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
63688         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
63689         * modules/unistr/u32-mbtouc-unsafe: Renamed from
63690         modules/unistr/u32-mbtouc.
63691         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
63692         * lib/unistr.h: Update.
63693         * lib/linebreak.c: Update.
63694         * modules/unistr/u32-mbtouc: Renamed from
63695         modules/unistr/u32-mbtouc-safe.
63696         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
63697         * lib/unistr.h: Update.
63698         * lib/unistr/u32-to-u8.c: Update.
63699         * lib/unistr/u32-to-u16.c: Update.
63700
63701 2007-01-27  Bruno Haible  <bruno@clisp.org>
63702
63703         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
63704         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
63705         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
63706         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
63707         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
63708         * modules/unistr/u16-mbtouc-unsafe: Renamed from
63709         modules/unistr/u16-mbtouc.
63710         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
63711         * lib/unistr.h: Update.
63712         * lib/linebreak.c: Update.
63713         * modules/linebreak: Update.
63714         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
63715         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
63716         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
63717         * modules/unistr/u16-mbtouc: Renamed from
63718         modules/unistr/u16-mbtouc-safe.
63719         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
63720         * lib/unistr.h: Update.
63721         * lib/unistr/u16-to-u8.c: Update.
63722         * modules/unistr/u16-to-u8: Update.
63723         * lib/unistr/u16-to-u32.c: Update.
63724         * modules/unistr/u16-to-u32: Update.
63725
63726 2007-01-27  Bruno Haible  <bruno@clisp.org>
63727
63728         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
63729         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
63730         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
63731         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
63732         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
63733         * modules/unistr/u8-mbtouc-unsafe: Renamed from
63734         modules/unistr/u8-mbtouc.
63735         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
63736         * lib/unistr.h: Update.
63737         * lib/striconveh.c: Update.
63738         * modules/striconveh: Update.
63739         * lib/linebreak.c: Update.
63740         * modules/linebreak: Update.
63741         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
63742         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
63743         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
63744         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
63745         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
63746         * lib/unistr.h: Update.
63747         * lib/striconveh.c: Update.
63748         * modules/striconveh: Update.
63749         * lib/unistr/u8-to-u16.c: Update.
63750         * modules/unistr/u8-to-u16: Update.
63751         * lib/unistr/u8-to-u32.c: Update.
63752         * modules/unistr/u8-to-u32: Update.
63753
63754 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63755
63756         Sync from Libtool.
63757         * lib/argz.c: Do not include strings.h nor memory.h, include
63758         string.h unconditionally.  Patch by Simon Josefsson.
63759
63760 2007-01-27  Bruno Haible  <bruno@clisp.org>
63761
63762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
63763         from gl_HEADER_STRING_H_BODY.
63764         (gl_HEADER_STRING_H_BODY): Require it.
63765         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
63766         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63767         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63768         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63769         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63770         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
63771         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63772         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63773         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
63774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63775         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63776         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
63777         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63778         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63779         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63780
63781 2007-01-27  Bruno Haible  <bruno@clisp.org>
63782
63783         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
63784         check_PROGRAMS into noinst_PROGRAMS.
63785         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
63786         check_PROGRAMS in this case.
63787         (func_import): Set for_test to false.
63788         (func_create_testdir): Set for_test to true.
63789
63790 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63791             Bruno Haible  <bruno@clisp.org>
63792
63793         * modules/strcasestr (Files): Remove lib/strcasestr.h.
63794         (Depends-on): Add string.
63795         (Includes): Use <string.h> instead of strcasestr.h.
63796         * modules/string (Makefile.am): Also substitute the value of
63797         REPLACE_STRCASESTR.
63798         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
63799         assume strcasestr is declared in <string.h> not <strings.h>. Also
63800         set REPLACE_STRCASESTR.
63801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
63802         REPLACE_STRCASESTR.
63803         * lib/strcasestr.h: Remove file.
63804         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
63805         * lib/string_.h (strcasestr): New declaration.
63806
63807 2007-01-27  Bruno Haible  <bruno@clisp.org>
63808
63809         * lib/string_.h: Use 'extern'.
63810
63811 2007-01-27  Jim Meyering  <jim@meyering.net>
63812
63813         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
63814         of set-but-not-used local, "q".
63815
63816         * lib/mempcpy.c: Include <config.h> before <string.h>.
63817         This fixes a compilation error on HP-UX, due to the system's
63818         "restrict"-using mempcpy prototype.
63819
63820 2007-01-26  Bruno Haible  <bruno@clisp.org>
63821
63822         Small optimization.
63823         * lib/javacomp.c: Include c-strstr.h.
63824          (is_envjavac_gcj): Use c_strstr instead of strstr.
63825         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
63826
63827 2007-01-26  Bruno Haible  <bruno@clisp.org>
63828
63829         * MODULES.html.sh (Unicode string functions): Add the new modules.
63830
63831         * modules/uniconv/u32-strconv-to-locale: New file.
63832         * lib/uniconv/u32-strconv-to-locale.c: New file.
63833
63834         * modules/uniconv/u16-strconv-to-locale: New file.
63835         * lib/uniconv/u16-strconv-to-locale.c: New file.
63836
63837         * modules/uniconv/u8-strconv-to-locale: New file.
63838         * lib/uniconv/u8-strconv-to-locale.c: New file.
63839
63840         * modules/uniconv/u32-strconv-from-locale: New file.
63841         * lib/uniconv/u32-strconv-from-locale.c: New file.
63842
63843         * modules/uniconv/u16-strconv-from-locale: New file.
63844         * lib/uniconv/u16-strconv-from-locale.c: New file.
63845
63846         * modules/uniconv/u8-strconv-from-locale: New file.
63847         * lib/uniconv/u8-strconv-from-locale.c: New file.
63848
63849         * modules/uniconv/u32-strconv-to-enc: New file.
63850         * lib/uniconv/u32-strconv-to-enc.c: New file.
63851         * modules/uniconv/u32-strconv-to-enc-tests: New file.
63852         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
63853
63854         * modules/uniconv/u16-strconv-to-enc: New file.
63855         * lib/uniconv/u16-strconv-to-enc.c: New file.
63856         * lib/uniconv/u-strconv-to-enc.h: New file.
63857         * modules/uniconv/u16-strconv-to-enc-tests: New file.
63858         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
63859
63860         * modules/uniconv/u8-strconv-to-enc: New file.
63861         * lib/uniconv/u8-strconv-to-enc.c: New file.
63862         * modules/uniconv/u8-strconv-to-enc-tests: New file.
63863         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
63864
63865         * modules/uniconv/u32-strconv-from-enc: New file.
63866         * lib/uniconv/u32-strconv-from-enc.c: New file.
63867         * modules/uniconv/u32-strconv-from-enc-tests: New file.
63868         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
63869
63870         * modules/uniconv/u16-strconv-from-enc: New file.
63871         * lib/uniconv/u16-strconv-from-enc.c: New file.
63872         * modules/uniconv/u16-strconv-from-enc-tests: New file.
63873         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
63874
63875         * modules/uniconv/u8-strconv-from-enc: New file.
63876         * lib/uniconv/u8-strconv-from-enc.c: New file.
63877         * lib/uniconv/u-strconv-from-enc.h: New file.
63878         * modules/uniconv/u8-strconv-from-enc-tests: New file.
63879         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
63880
63881         * modules/uniconv/u32-conv-from-enc: New file.
63882         * lib/uniconv/u32-conv-from-enc.c: New file.
63883         * modules/uniconv/u32-conv-from-enc-tests: New file.
63884         * tests/uniconv/test-u32-conv-from-enc.c: New file.
63885
63886         * modules/uniconv/u16-conv-from-enc: New file.
63887         * lib/uniconv/u16-conv-from-enc.c: New file.
63888         * lib/uniconv/u-conv-from-enc.h: New file.
63889         * modules/uniconv/u16-conv-from-enc-tests: New file.
63890         * tests/uniconv/test-u16-conv-from-enc.c: New file.
63891
63892         * modules/uniconv/u8-conv-from-enc: New file.
63893         * lib/uniconv/u8-conv-from-enc.c: New file.
63894         * modules/uniconv/u8-conv-from-enc-tests: New file.
63895         * tests/uniconv/test-u8-conv-from-enc.c: New file.
63896
63897         * modules/uniconv/base: New file.
63898         * lib/uniconv.h: New file.
63899
63900 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63901
63902         * doc/gnulib-tool.texi (Initial import): Update to match current
63903         behavior with strdup module.
63904         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
63905         * lib/memmem.h: Remove; all uses removed.  This is now done
63906         by <string.h>.
63907         * lib/mempcpy.h: Likewise.
63908         * lib/memrchr.h: Likewise.
63909         * lib/stpcpy.h: Likewise.
63910         * lib/stpncpy.h: Likewise.
63911         * lib/strcase.h: Likewise.
63912         * lib/strchrnul.h: Likewise.
63913         * lib/strdup.h: Likewise.
63914         * lib/strndup.h: Likewise.
63915         * lib/strnlen.h: Likewise.
63916         * lib/strpbrk.h: Likewise.
63917         * lib/strsep.h: Likewise.
63918         * lib/strstr.h: Likewise.
63919         * lib/strtok_r.h: Likewise.
63920         * lib/string_.h: New file.
63921         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
63922         Rely on <string.h> instead.
63923         * lib/canon-host.c: Likewise.
63924         * lib/chdir-long.c: Likewise.
63925         * lib/concatpath.c: Likewise.
63926         * lib/exclude.c: Likewise.
63927         * lib/fchdir.c: Likewise.
63928         * lib/getaddrinfo.c: Likewise.
63929         * lib/getcwd.c: Likewise.
63930         * lib/getsubopt.c: Likewise.
63931         * lib/glob.c: Likewise.
63932         * lib/hard-locale.c: Likewise.
63933         * lib/iconvme.c: Likewise.
63934         * lib/javacomp.c: Likewise.
63935         * lib/mempcpy.c: Likewise.
63936         * lib/memrchr.c: Likewise.
63937         * lib/regex_internal.h: Likewise.
63938         * lib/stpncpy.c: Likewise.
63939         * lib/strcasecmp.c: Likewise.
63940         * lib/strchrnul.c: Likewise.
63941         * lib/strdup.c: Likewise.
63942         * lib/striconv.c: Likewise.
63943         * lib/striconveh.c: Likewise.
63944         * lib/striconveha.c: Likewise.
63945         * lib/strncasecmp.c: Likewise.
63946         * lib/strndup.c: Likewise.
63947         * lib/strnlen.c: Likewise.
63948         * lib/strsep.c: Likewise.
63949         * lib/strstr.c: Likewise.
63950         * lib/strtok_r.c: Likewise.
63951         * lib/userspec.c: Likewise.
63952         * lib/w32spawn.h: Likewise.
63953         * lib/xstrndup.c: Likewise.
63954         * lib/mountlist.c (strstr): Remove decl.
63955         * m4/string_h.m4: New file.
63956         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
63957         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
63958         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
63959         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
63960         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
63961         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
63962         Set REPLACE_STRCASECMP if necessary.
63963         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
63964         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
63965         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
63966         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
63967         HAVE_DECL_STRDUP if necessary.
63968         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
63969         since gl_FUNC_STRNDUP does that now.
63970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
63971         Check for decl here...
63972         (gl_PREREQ_STRNLEN): ... not here.
63973         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
63974         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
63975         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
63976         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
63977         necessary.
63978         * modules/string: New file.
63979         * modules/memmem (Files): Remove special-purpose include file.
63980         (Depends-on): Add string.
63981         (Include): Include <string.h>, not the removed file.
63982         * modules/mempcpy: Likewise.
63983         * modules/memrchr: Likewise.
63984         * modules/stpcpy: Likewise.
63985         * modules/stpncpy: Likewise.
63986         * modules/strcase: Likewise.
63987         * modules/strchrnul: Likewise.
63988         * modules/strdup: Likewise.
63989         * modules/strndup: Likewise.
63990         * modules/strnlen: Likewise.
63991         * modules/strpbrk: Likewise.
63992         * modules/strsep: Likewise.
63993         * modules/strstr: Likewise.
63994         * modules/strtok_r: Likewise.
63995         * tests/test-dirname.c: Don't include "strdup.h", since
63996         <string.h> now suffices.
63997         * tests/test-memmem.c: Don't include "memmem.h", since
63998         <string.h> now suffices.
63999
64000 2007-01-25  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64003         *resultp is 0.
64004
64005         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64006         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64007         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64008         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64009
64010         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64011         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64012         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64013         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64014         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64015         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64016
64017 2007-01-24  Bruno Haible  <bruno@clisp.org>
64018
64019         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64020         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64021         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64022         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64023         gl_FUNC_FTS_CORE.
64024         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64025         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64026         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64027         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64028         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64029         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64030         gl_FUNC_FCHOWNAT.
64031         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64032         gl_FUNC_STRFTIME.
64033         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64034         Reported by Ralf Wildenhues.
64035
64036 2007-01-24  Bruno Haible  <bruno@clisp.org>
64037
64038         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64039         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64040         gl_GETADDRINFO.
64041         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64042         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64043         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64044
64045 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64048         Don't use 'exit'; just return from 'main'.
64049         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64050
64051         * lib/fnmatch_.h: Readjust white space and comments to match
64052         glibc, to avoid spurious diffs.
64053
64054 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64057         2004-12-01 change by Jakub Jelinek, since this code won't compile
64058         if !LIBC.  Problem reported by Bob Proulx.
64059
64060 2007-01-23  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/striconveh.c: Include c-strcaseeq.h.
64063         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64064         * modules/striconveh (Depends-on): Add c-strcaseeq.
64065
64066 2007-01-23  Bruno Haible  <bruno@clisp.org>
64067
64068         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64069
64070         * modules/c-strcaseeq: New file.
64071         * lib/c-strcaseeq.h: New file.
64072
64073         * modules/streq: New file.
64074         * lib/streq.h: New file.
64075
64076 2007-01-23  Bruno Haible  <bruno@clisp.org>
64077
64078         * modules/striconveha-tests: New file.
64079         * tests/test-striconveha.c: New file.
64080
64081         * lib/striconveha.h: Include <stdbool.h>.
64082         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64083         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64084         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64085         (mem_iconveha): New function.
64086         (str_iconveha_notranslit): Renamed from str_iconveha.
64087         (str_iconveha): New function.
64088         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64089         c-strcase.
64090
64091 2007-01-23  Bruno Haible  <bruno@clisp.org>
64092
64093         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64094         encodings without forgiving before trying any encoding with handler.
64095         (str_iconveha): Try all encodings without forgiving before trying any
64096         encoding with handler.
64097
64098 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64099
64100         Import the following changes from libc.
64101
64102         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64103
64104         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64105
64106         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64107
64108         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64109         normal_bracket label.
64110
64111         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64112
64113         [BZ #361]
64114         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64115         to normal_bracket after fetching the next character.
64116
64117 2007-01-22  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64120         argument.
64121         * lib/striconveh.c (iconv_carefully_1): New function.
64122         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64123         argument.
64124         (str_cd_iconveh): Update.
64125         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64126         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64127         * tests/test-striconveh.c (MAGIC): New macro.
64128         (new_offsets): New function.
64129         (main): Test call with and without offsets.
64130
64131 2007-01-22  Bruno Haible  <bruno@clisp.org>
64132
64133         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64134         * modules/sys_select (Makefile.am): Likewise.
64135         * modules/sys_socket (Makefile.am): Likewise.
64136         * modules/sys_time (Makefile.am): Likewise.
64137
64138 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64139
64140         * modules/gettimeofday (License): Change from GPL to LGPL, since
64141         gettimeofday is a library function.
64142
64143 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64144
64145         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64146
64147 2007-01-21  Bruno Haible  <bruno@clisp.org>
64148
64149         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64150
64151 2007-01-21  Bruno Haible  <bruno@clisp.org>
64152
64153         * modules/striconveha: New file.
64154         * lib/striconveha.h: New file.
64155         * lib/striconveha.c: New file.
64156         * MODULES.html.sh (Internationalization functions): Add striconveha.
64157         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64158         string.
64159         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64160
64161 2007-01-21  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64164         * lib/striconveh.c (str_iconveh): Likewise.
64165
64166 2007-01-21  Bruno Haible  <bruno@clisp.org>
64167
64168         * lib/striconveh.h (mem_iconveh): New declaration.
64169         * lib/striconveh.c (mem_iconveh): New function.
64170         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64171
64172 2007-01-21  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64175
64176         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64177         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64178         original result buffer.
64179         (str_cd_iconveh): Update.
64180         * tests/test-striconveh.c (main): Update.
64181
64182         * lib/striconv.h (mem_cd_iconv): Change specification.
64183         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64184         result buffer.
64185         (str_cd_iconv): Update.
64186         * tests/test-striconv.c (main): Update.
64187
64188 2007-01-21  Bruno Haible  <bruno@clisp.org>
64189
64190         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64191
64192 2007-01-20  Jim Meyering  <jim@meyering.net>
64193
64194         * lib/userspec.c (parse_with_separator): If a user or group string
64195         starts with "+", skip the corresponding name-to-ID look-up, since
64196         such a look-up must fail: user and group names may not include "+".
64197
64198 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64199
64200         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64201         since we now assume the sys_time module.
64202         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64203         check for sys/time.h; no longer needed.
64204         * modules/poll (Depends-on): Depend on sys_time.
64205
64206 2007-01-18  Bruno Haible  <bruno@clisp.org>
64207
64208         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64209         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64210
64211         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64212         gettimeofday.
64213
64214         * tests/test-gettimeofday.c: Include <time.h>.
64215         (dummy): Remove variable.
64216
64217         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64218         gl_HEADER_SYS_TIME_H.
64219         (gl_HEADER_SYS_TIME_H): New macro.
64220
64221         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64222         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64224         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64225         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64226         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64227         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64228         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64229         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64230         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64231         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64232
64233         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64234         last change; it caused a compilation error when cross-compiling to
64235         Cygwin.
64236
64237 2007-01-18  Jim Meyering  <jim@meyering.net>
64238
64239         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64240         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64241         than the race-prone "test -d sys || mkdir sys".
64242         (configure.ac): Use AC_PROG_MKDIR_P.
64243         * modules/sys_select: Likewise.
64244         * modules/sys_socket: Likewise.
64245         * modules/sys_time: Likewise.
64246
64247 2007-01-18  Eric Blake  <ebb9@byu.net>
64248
64249         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64250         replace gettimeofday.
64251         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64252         name, to avoid infinite recursion.
64253
64254 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64255
64256         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64257         module sys_time.
64258         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64259         assume timespec.h defines struct timeval.
64260         * lib/settime.c: Likewise.
64261         * lib/utimens.c: Likewise.
64262         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64263         since we now assume the gettimeofday module.
64264         * lib/tempname.c (__gen_tempname): Likewise.
64265         * lib/gettimeofday.h: Remove.
64266         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64267         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64268         Include <time.h>, for 'time()'.
64269         (localtime_buffer_addr): Also use this workaround if
64270         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64271         to simplify the uses.  All uses changed.
64272         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64273         that #undef is inside {}, and 'const' follows type name consistently.
64274         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64275         (gettimeofday): Do not use the maximum possible value for
64276         tv->tv_usec, since that might break usages other than ls.c.
64277         Instead, we'll leave ls.c alone.  This undoes today's patch
64278         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64279         we've never observed the problem but might as well keep the
64280         canary.
64281         * lib/nanosleep.c: Include timespec.h first, for interface check.
64282         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64283         now assume the sys_time module.
64284         * lib/tempname.c: Likewise.
64285         * lib/timespec.h: Likewise.
64286         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64287         needed.
64288         * lib/strftime.c: Likewise.
64289         * lib/timespec.h: Likewise.
64290         * lib/posixtm.c: Include posixtm.h first, for interface check.
64291         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64292         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64293         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64294         * lib/sys_time_.h: New file.
64295         * lib/timespec.h (struct timespec): Use long int, not long.
64296         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64297         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64298         Remove obsolescent call to AC_HEADER_TIME.
64299         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64300         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64301         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64302         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64303         Likewise.
64304         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64305         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64307         into the sys_time module.  Check for gettimeofday just once.
64308         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64309         for gettimeofday signature to just check the signature.  Merely
64310         compile it, since linking doesn't test signature.  Improve test for
64311         whether gettimeofday.o is actually needed.
64312         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64313         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64314         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64315         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64316         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64317         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64318         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64319         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64320         than worrying about sys/time.h.
64321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64322         Don't bother worrying about TIME_WITH_SYS_TIME.
64323         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64324         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64325         * m4/sys_time_h.m4: New file.
64326         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64327         Don't include sys/time.h.  Return from main rather than exiting.
64328         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64329         all uses changed.
64330         * modules/gethrxtime (Depends-on): Add sys_time.
64331         * modules/gettime (Depends-on): Likewise.
64332         * modules/gettimeofday (Depends-on): Likewise.
64333         * modules/nanosleep (Depends-on): Likewise.
64334         * modules/settime (Depends-on): Likewise.
64335         * modules/tempname (Depends-on): Likewise.
64336         * modules/utimens (Depends-on): Likewise.
64337         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64338         (Include): Change back to <sys/time.h>.
64339         (Maintainer): Add self.
64340         * modules/sys_time: New file.
64341         * modules/tempname (Depends-on): Add gettimeofday.
64342         * tests/test-gettimeofday.c: Include <sys/time.h>
64343         rather than gettimeofday.h.
64344
64345 2007-01-17  Bruno Haible  <bruno@clisp.org>
64346
64347         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64348         the license default to GPL.
64349         (func_create_testdir): Don't complain if a module is LGPL and its
64350         tests module depends on GPLed modules.
64351
64352 2007-01-17  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/gettimeofday.c (gettimeofday): Add code for the case
64355         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64356         maximum possible value for tv->tv_usec, rather than the minimum one.
64357
64358 2005-10-08  Martin Lambers  <marlam@marlam.de>
64359 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64360 2007-01-16  Bruno Haible  <bruno@clisp.org>
64361
64362         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64363         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64364         gl_FUNC_GETTIMEOFDAY.
64365         (Include): Add gettimeofday.h.
64366         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64367         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64368         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64369         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64370         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64371         * lib/gettimeofday.h: New file.
64372         * lib/gettimeofday.c: Include <sys/timeb.h>.
64373         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64374         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64375         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64376         fall back on time().
64377
64378         * tests/test-gettimeofday.c: New file.
64379         * modules/gettimeofday-tests: New file.
64380
64381 2007-01-16  Eric Blake  <ebb9@byu.net>
64382
64383         * modules/fnmatch (Depends-on): Depend on wchar.
64384         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64385         * m4/fnmatch.m4: Likewise.
64386         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64387         * m4/mbchar.m4: Likewise.
64388         * modules/mbswidth (Depends-on): Depend on wchar.
64389         * lib/mbswidth.c: Assume <wchar.h>.
64390         * m4/mbswidth.m4: Likewise.
64391         * modules/quotearg (Depends-on): Depend on wchar.
64392         * lib/quotearg.c: Assume <wchar.h>.
64393         * m4/quotearg.m4: Likewise.
64394         * modules/regex (Depends-on): Depend on wchar.
64395         * lib/regex_internal.h: Assume <wchar.h>.
64396         * m4/regex.m4: Likewise.
64397         * modules/stdint (Depends-on): Depend on wchar.
64398         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64399         * m4/stdint.m4: Likewise.
64400         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64401         * modules/strftime (Depends-on): Depend on wchar.
64402         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64403         * modules/strtol (Depends-on): Depend on wchar.
64404         * lib/strtol.c: Assume <wchar.h>.
64405         * modules/wcwidth (Depends-on): Depend on wchar.
64406         * lib/wcwidth.h: Assume <wchar.h>.
64407         * m4/wcwidth.m4: Likewise.
64408
64409 2007-01-16  Bruno Haible  <bruno@clisp.org>
64410
64411         * modules/csharpexec-script: New, created from...
64412         * modules/csharpexec: ... this.
64413
64414 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64415
64416         * modules/javaexec-script: New, created from...
64417         * modules/javaexec: ... this.
64418
64419 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64420
64421         * modules/poll (Dependencies): Add sys_select.
64422
64423 2007-01-15  Jim Meyering  <jim@meyering.net>
64424
64425         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64426         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64427         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64428         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64429
64430 2007-01-15  Bruno Haible  <bruno@clisp.org>
64431
64432         * modules/striconveh: New file.
64433         * lib/striconveh.h: New file.
64434         * lib/striconveh.c: New file.
64435         * MODULES.html.sh (Internationalization functions): Add striconveh.
64436
64437         * modules/striconveh-tests: New file.
64438         * tests/test-striconveh.c: New file.
64439
64440 2007-01-15  Bruno Haible  <bruno@clisp.org>
64441
64442         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64443         not from GNU libiconv or GNU libc.
64444
64445 2007-01-15  Bruno Haible  <bruno@clisp.org>
64446
64447         * doc/gnulib-intro.texi (Copyright): Explain the different license
64448         terms for module descriptions, autoconf macros, tests, documentation.
64449
64450 2007-01-14  Bruno Haible  <bruno@clisp.org>
64451
64452         * modules/striconv-tests: New file.
64453         * tests/test-striconv.c: New file.
64454
64455 2007-01-14  Bruno Haible  <bruno@clisp.org>
64456
64457         * modules/iconv-tests: New file.
64458         * tests/test-iconv.c: New file.
64459
64460 2007-01-14  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_get_license): For test modules, use the license of
64463         the main module.
64464
64465 2007-01-14  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/iconv (Include): Clarify that <iconv.h> can only be included
64468         if iconv is found to exist.
64469
64470 2007-01-14  Bruno Haible  <bruno@clisp.org>
64471
64472         * modules/c-ctype-tests: New file.
64473         * tests/test-c-ctype.c: New file.
64474
64475 2007-01-14  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/binary-io-tests: New file.
64478         * tests/test-binary-io.sh: New file.
64479         * tests/test-binary-io.c: New file.
64480
64481 2007-01-14  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/array-oset-tests: New file.
64484         * tests/test-array_oset.c: New file.
64485
64486 2007-01-14  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/array-list-tests: New file.
64489         * tests/test-array_list.c: New file.
64490
64491 2007-01-14  Bruno Haible  <bruno@clisp.org>
64492
64493         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
64494         and make.
64495         Reported by Simon Josefsson in
64496         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
64497
64498 2007-01-14  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/allocsa-tests: New file.
64501         * tests/test-allocsa.c: New file.
64502
64503 2007-01-14  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/fchdir (Depends-on): Add absolute-header.
64506         * modules/unistd (Depends-on): Likewise.
64507
64508 2006-12-30  Bruno Haible  <bruno@clisp.org>
64509
64510         * modules/fchdir: New file.
64511         * modules/unistd (Files): Add lib/unistd_.h.
64512         (Makefile.am): Generate unistd.h from unistd_.h.
64513         * lib/fchdir.c: New file.
64514         * lib/dirent_.h: New file.
64515         * lib/unistd_.h: New file.
64516         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
64517         * m4/fchdir.m4: New file.
64518         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
64519         (gl_HEADER_UNISTD): Invoke it.
64520         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
64521         function.
64522         * lib/backupfile.c (opendir, closedir): Undefine.
64523         * lib/chown.c (open, close): Undefine.
64524         * lib/clean-temp.c (open, close): Undefine.
64525         * lib/copy-file.c (open, close): Undefine.
64526         * lib/execute.c (open, close): Undefine.
64527         * lib/fsusage.c (open, close): Undefine.
64528         * lib/gc-gnulib.c (open, close): Undefine.
64529         * lib/getcwd.c (opendir, closedir): Undefine.
64530         * lib/glob.c (opendir, closedir): Undefine.
64531         * lib/javacomp.c (open, close): Undefine.
64532         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
64533         * lib/openat-proc.c (open, close): Undefine.
64534         * lib/pagealign_alloc.c (open, close): Undefine.
64535         * lib/pipe.c (open, close): Undefine.
64536         * lib/progreloc.c (open, close): Undefine.
64537         * lib/savedir.c (opendir, closedir): Undefine.
64538         * lib/utime.c (open, close): Undefine.
64539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
64540
64541 2007-01-10  Bruno Haible  <bruno@clisp.org>
64542
64543         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
64544
64545 2007-01-12  Eric Blake  <ebb9@byu.net>
64546
64547         Provide a robust <wchar.h>.  Further simplifications are now
64548         possible in other modules, but not included here.
64549         * modules/wchar: New module.
64550         * m4/wchar.m4: New file.
64551         * lib/wchar_.h: Likewise.
64552         * modules/mbchar (Depends-on): Depend on wchar, as the first use
64553         of the new module.
64554         * MODULES.html.sh (Extended multibyte and wide character utilities):
64555         New section.
64556
64557 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
64558
64559         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
64560         to a reasonable default for memory allocation.
64561         (xreadlink): Don't allocate a huge buffer, to work around a buggy
64562         file system that reports garbage st_size values for symlinks.
64563         Problem reported by Liyang Hu.
64564
64565 2007-01-11  Simon Josefsson  <simon@josefsson.org>
64566
64567         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
64568         Emacs .#* auto-save files).
64569
64570 2007-01-11  Bruno Haible  <bruno@clisp.org>
64571
64572         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
64573         directory.
64574
64575 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         Use @...@ consistently in lib/wctype_.h.
64578         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
64579         on it being set to 1 or 0.
64580         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
64581         go back to AC_SUBSTing it.
64582         * modules/wctype (Makefile.am): Undo previous change.
64583
64584 2007-01-10  Eric Blake  <ebb9@byu.net>
64585
64586         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
64587         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
64588         * modules/wctype (Makefile.am): Likewise.
64589         Reported by Chris McGuire.
64590
64591 2007-01-10  Jim Meyering  <jim@meyering.net>
64592
64593         fts.c: a small readability/maintainability improvement
64594         * lib/fts.c (fts_read): Make this code slightly more readable and
64595         maintainable by hoisting the "sp->fts_cur = p" assignments to
64596         immediately follow the statements that set P.  Derived from
64597         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
64598
64599 2007-01-10  Eric Blake  <ebb9@byu.net>
64600
64601         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
64602         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
64603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64604         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64605         Reported by Chris McGuire.
64606
64607 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64608
64609         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
64610         in sed script.
64611
64612 2007-01-09  Bruno Haible  <bruno@clisp.org>
64613
64614         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
64615         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
64616         variables.
64617         (func_module): Use them.
64618
64619 2007-01-09  Bruno Haible  <bruno@clisp.org>
64620
64621         * modules/unistr/base: New file.
64622         * lib/unistr.h: New file.
64623
64624         * modules/unistr/u8-to-u16: New file.
64625         * lib/unistr/u8-to-u16.c: New file.
64626
64627         * modules/unistr/u8-to-u32: New file.
64628         * lib/unistr/u8-to-u32.c: New file.
64629
64630         * modules/unistr/u16-to-u8: New file.
64631         * lib/unistr/u16-to-u8.c: New file.
64632
64633         * modules/unistr/u16-to-u32: New file.
64634         * lib/unistr/u16-to-u32.c: New file.
64635
64636         * modules/unistr/u32-to-u8: New file.
64637         * lib/unistr/u32-to-u8.c: New file.
64638
64639         * modules/unistr/u32-to-u16: New file.
64640         * lib/unistr/u32-to-u16.c: New file.
64641
64642         * modules/unistr/u8-check: New file.
64643         * modules/unistr/u16-check: New file.
64644         * modules/unistr/u32-check: New file.
64645         * lib/unistr/u8-check.c: New file.
64646         * lib/unistr/u16-check.c: New file.
64647         * lib/unistr/u32-check.c: New file.
64648
64649         * modules/unistr/u8-chr: New file.
64650         * modules/unistr/u16-chr: New file.
64651         * modules/unistr/u32-chr: New file.
64652         * lib/unistr/u8-chr.c: New file.
64653         * lib/unistr/u16-chr.c: New file.
64654         * lib/unistr/u32-chr.c: New file.
64655
64656         * modules/unistr/u8-cmp: New file.
64657         * modules/unistr/u16-cmp: New file.
64658         * modules/unistr/u32-cmp: New file.
64659         * lib/unistr/u8-cmp.c: New file.
64660         * lib/unistr/u16-cmp.c: New file.
64661         * lib/unistr/u32-cmp.c: New file.
64662
64663         * modules/unistr/u8-cpy: New file.
64664         * modules/unistr/u16-cpy: New file.
64665         * modules/unistr/u32-cpy: New file.
64666         * lib/unistr/u8-cpy.c: New file.
64667         * lib/unistr/u16-cpy.c: New file.
64668         * lib/unistr/u32-cpy.c: New file.
64669         * lib/unistr/u-cpy.h: New file.
64670
64671         * modules/unistr/u8-cpy-alloc: New file.
64672         * modules/unistr/u16-cpy-alloc: New file.
64673         * modules/unistr/u32-cpy-alloc: New file.
64674         * lib/unistr/u8-cpy-alloc.c: New file.
64675         * lib/unistr/u16-cpy-alloc.c: New file.
64676         * lib/unistr/u32-cpy-alloc.c: New file.
64677         * lib/unistr/u-cpy-alloc.h: New file.
64678
64679         * modules/unistr/u8-endswith: New file.
64680         * modules/unistr/u16-endswith: New file.
64681         * modules/unistr/u32-endswith: New file.
64682         * lib/unistr/u8-endswith.c: New file.
64683         * lib/unistr/u16-endswith.c: New file.
64684         * lib/unistr/u32-endswith.c: New file.
64685         * lib/unistr/u-endswith.h: New file.
64686
64687         * modules/unistr/u8-mblen: New file.
64688         * modules/unistr/u16-mblen: New file.
64689         * modules/unistr/u32-mblen: New file.
64690         * lib/unistr/u8-mblen.c: New file.
64691         * lib/unistr/u16-mblen.c: New file.
64692         * lib/unistr/u32-mblen.c: New file.
64693
64694         * modules/unistr/u8-mbtouc: New file.
64695         * modules/unistr/u16-mbtouc: New file.
64696         * modules/unistr/u32-mbtouc: New file.
64697         * lib/unistr/u8-mbtouc.c: New file.
64698         * lib/unistr/u16-mbtouc.c: New file.
64699         * lib/unistr/u32-mbtouc.c: New file.
64700
64701         * modules/unistr/u8-mbtouc-safe: New file.
64702         * modules/unistr/u16-mbtouc-safe: New file.
64703         * modules/unistr/u32-mbtouc-safe: New file.
64704         * lib/unistr/u8-mbtouc-safe.c: New file.
64705         * lib/unistr/u16-mbtouc-safe.c: New file.
64706         * lib/unistr/u32-mbtouc-safe.c: New file.
64707
64708         * modules/unistr/u8-move: New file.
64709         * modules/unistr/u16-move: New file.
64710         * modules/unistr/u32-move: New file.
64711         * lib/unistr/u8-move.c: New file.
64712         * lib/unistr/u16-move.c: New file.
64713         * lib/unistr/u32-move.c: New file.
64714         * lib/unistr/u-move.h: New file.
64715
64716         * modules/unistr/u8-next: New file.
64717         * modules/unistr/u16-next: New file.
64718         * modules/unistr/u32-next: New file.
64719         * lib/unistr/u8-next.c: New file.
64720         * lib/unistr/u16-next.c: New file.
64721         * lib/unistr/u32-next.c: New file.
64722
64723         * modules/unistr/u8-prev: New file.
64724         * modules/unistr/u16-prev: New file.
64725         * modules/unistr/u32-prev: New file.
64726         * lib/unistr/u8-prev.c: New file.
64727         * lib/unistr/u16-prev.c: New file.
64728         * lib/unistr/u32-prev.c: New file.
64729
64730         * modules/unistr/u8-set: New file.
64731         * modules/unistr/u16-set: New file.
64732         * modules/unistr/u32-set: New file.
64733         * lib/unistr/u8-set.c: New file.
64734         * lib/unistr/u16-set.c: New file.
64735         * lib/unistr/u32-set.c: New file.
64736         * lib/unistr/u-set.h: New file.
64737
64738         * modules/unistr/u8-startswith: New file.
64739         * modules/unistr/u16-startswith: New file.
64740         * modules/unistr/u32-startswith: New file.
64741         * lib/unistr/u8-startswith.c: New file.
64742         * lib/unistr/u16-startswith.c: New file.
64743         * lib/unistr/u32-startswith.c: New file.
64744         * lib/unistr/u-startswith.h: New file.
64745
64746         * modules/unistr/u8-stpcpy: New file.
64747         * modules/unistr/u16-stpcpy: New file.
64748         * modules/unistr/u32-stpcpy: New file.
64749         * lib/unistr/u8-stpcpy.c: New file.
64750         * lib/unistr/u16-stpcpy.c: New file.
64751         * lib/unistr/u32-stpcpy.c: New file.
64752         * lib/unistr/u-stpcpy.h: New file.
64753
64754         * modules/unistr/u8-stpncpy: New file.
64755         * modules/unistr/u16-stpncpy: New file.
64756         * modules/unistr/u32-stpncpy: New file.
64757         * lib/unistr/u8-stpncpy.c: New file.
64758         * lib/unistr/u16-stpncpy.c: New file.
64759         * lib/unistr/u32-stpncpy.c: New file.
64760         * lib/unistr/u-stpncpy.h: New file.
64761
64762         * modules/unistr/u8-strcat: New file.
64763         * modules/unistr/u16-strcat: New file.
64764         * modules/unistr/u32-strcat: New file.
64765         * lib/unistr/u8-strcat.c: New file.
64766         * lib/unistr/u16-strcat.c: New file.
64767         * lib/unistr/u32-strcat.c: New file.
64768         * lib/unistr/u-strcat.h: New file.
64769
64770         * modules/unistr/u8-strchr: New file.
64771         * modules/unistr/u16-strchr: New file.
64772         * modules/unistr/u32-strchr: New file.
64773         * lib/unistr/u8-strchr.c: New file.
64774         * lib/unistr/u16-strchr.c: New file.
64775         * lib/unistr/u32-strchr.c: New file.
64776
64777         * modules/unistr/u8-strcmp: New file.
64778         * modules/unistr/u16-strcmp: New file.
64779         * modules/unistr/u32-strcmp: New file.
64780         * lib/unistr/u8-strcmp.c: New file.
64781         * lib/unistr/u16-strcmp.c: New file.
64782         * lib/unistr/u32-strcmp.c: New file.
64783
64784         * modules/unistr/u8-strcpy: New file.
64785         * modules/unistr/u16-strcpy: New file.
64786         * modules/unistr/u32-strcpy: New file.
64787         * lib/unistr/u8-strcpy.c: New file.
64788         * lib/unistr/u16-strcpy.c: New file.
64789         * lib/unistr/u32-strcpy.c: New file.
64790         * lib/unistr/u-strcpy.h: New file.
64791
64792         * modules/unistr/u8-strcspn: New file.
64793         * modules/unistr/u16-strcspn: New file.
64794         * modules/unistr/u32-strcspn: New file.
64795         * lib/unistr/u8-strcspn.c: New file.
64796         * lib/unistr/u16-strcspn.c: New file.
64797         * lib/unistr/u32-strcspn.c: New file.
64798         * lib/unistr/u-strcspn.h: New file.
64799
64800         * modules/unistr/u8-strdup: New file.
64801         * modules/unistr/u16-strdup: New file.
64802         * modules/unistr/u32-strdup: New file.
64803         * lib/unistr/u8-strdup.c: New file.
64804         * lib/unistr/u16-strdup.c: New file.
64805         * lib/unistr/u32-strdup.c: New file.
64806         * lib/unistr/u-strdup.h: New file.
64807
64808         * modules/unistr/u8-strlen: New file.
64809         * modules/unistr/u16-strlen: New file.
64810         * modules/unistr/u32-strlen: New file.
64811         * lib/unistr/u8-strlen.c: New file.
64812         * lib/unistr/u16-strlen.c: New file.
64813         * lib/unistr/u32-strlen.c: New file.
64814         * lib/unistr/u-strlen.h: New file.
64815
64816         * modules/unistr/u8-strmblen: New file.
64817         * modules/unistr/u16-strmblen: New file.
64818         * modules/unistr/u32-strmblen: New file.
64819         * lib/unistr/u8-strmblen.c: New file.
64820         * lib/unistr/u16-strmblen.c: New file.
64821         * lib/unistr/u32-strmblen.c: New file.
64822
64823         * modules/unistr/u8-strmbtouc: New file.
64824         * modules/unistr/u16-strmbtouc: New file.
64825         * modules/unistr/u32-strmbtouc: New file.
64826         * lib/unistr/u8-strmbtouc.c: New file.
64827         * lib/unistr/u16-strmbtouc.c: New file.
64828         * lib/unistr/u32-strmbtouc.c: New file.
64829
64830         * modules/unistr/u8-strncat: New file.
64831         * modules/unistr/u16-strncat: New file.
64832         * modules/unistr/u32-strncat: New file.
64833         * lib/unistr/u8-strncat.c: New file.
64834         * lib/unistr/u16-strncat.c: New file.
64835         * lib/unistr/u32-strncat.c: New file.
64836         * lib/unistr/u-strncat.h: New file.
64837
64838         * modules/unistr/u8-strncmp: New file.
64839         * modules/unistr/u16-strncmp: New file.
64840         * modules/unistr/u32-strncmp: New file.
64841         * lib/unistr/u8-strncmp.c: New file.
64842         * lib/unistr/u16-strncmp.c: New file.
64843         * lib/unistr/u32-strncmp.c: New file.
64844
64845         * modules/unistr/u8-strncpy: New file.
64846         * modules/unistr/u16-strncpy: New file.
64847         * modules/unistr/u32-strncpy: New file.
64848         * lib/unistr/u8-strncpy.c: New file.
64849         * lib/unistr/u16-strncpy.c: New file.
64850         * lib/unistr/u32-strncpy.c: New file.
64851         * lib/unistr/u-strncpy.h: New file.
64852
64853         * modules/unistr/u8-strnlen: New file.
64854         * modules/unistr/u16-strnlen: New file.
64855         * modules/unistr/u32-strnlen: New file.
64856         * lib/unistr/u8-strnlen.c: New file.
64857         * lib/unistr/u16-strnlen.c: New file.
64858         * lib/unistr/u32-strnlen.c: New file.
64859         * lib/unistr/u-strnlen.h: New file.
64860
64861         * modules/unistr/u8-strpbrk: New file.
64862         * modules/unistr/u16-strpbrk: New file.
64863         * modules/unistr/u32-strpbrk: New file.
64864         * lib/unistr/u8-strpbrk.c: New file.
64865         * lib/unistr/u16-strpbrk.c: New file.
64866         * lib/unistr/u32-strpbrk.c: New file.
64867         * lib/unistr/u-strpbrk.h: New file.
64868
64869         * modules/unistr/u8-strrchr: New file.
64870         * modules/unistr/u16-strrchr: New file.
64871         * modules/unistr/u32-strrchr: New file.
64872         * lib/unistr/u8-strrchr.c: New file.
64873         * lib/unistr/u16-strrchr.c: New file.
64874         * lib/unistr/u32-strrchr.c: New file.
64875
64876         * modules/unistr/u8-strspn: New file.
64877         * modules/unistr/u16-strspn: New file.
64878         * modules/unistr/u32-strspn: New file.
64879         * lib/unistr/u8-strspn.c: New file.
64880         * lib/unistr/u16-strspn.c: New file.
64881         * lib/unistr/u32-strspn.c: New file.
64882         * lib/unistr/u-strspn.h: New file.
64883
64884         * modules/unistr/u8-strstr: New file.
64885         * modules/unistr/u16-strstr: New file.
64886         * modules/unistr/u32-strstr: New file.
64887         * lib/unistr/u8-strstr.c: New file.
64888         * lib/unistr/u16-strstr.c: New file.
64889         * lib/unistr/u32-strstr.c: New file.
64890         * lib/unistr/u-strstr.h: New file.
64891
64892         * modules/unistr/u8-strtok: New file.
64893         * modules/unistr/u16-strtok: New file.
64894         * modules/unistr/u32-strtok: New file.
64895         * lib/unistr/u8-strtok.c: New file.
64896         * lib/unistr/u16-strtok.c: New file.
64897         * lib/unistr/u32-strtok.c: New file.
64898         * lib/unistr/u-strtok.h: New file.
64899
64900         * modules/unistr/u8-uctomb: New file.
64901         * modules/unistr/u16-uctomb: New file.
64902         * modules/unistr/u32-uctomb: New file.
64903         * lib/unistr/u8-uctomb.c: New file.
64904         * lib/unistr/u16-uctomb.c: New file.
64905         * lib/unistr/u32-uctomb.c: New file.
64906
64907         * MODULES.html.sh (Unicode string functions): Add the new modules.
64908
64909 2007-01-08  Bruno Haible  <bruno@clisp.org>
64910
64911         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
64912         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
64913         subdirectories.
64914
64915 2007-01-08  Karl Berry  <karl@gnu.org>
64916
64917         * doc/error.texi: mention that main() fns must set program_name
64918         when progname is used.
64919
64920 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
64921
64922         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
64923         WCTYPE_H is empty, for the benefit of builds from non-distclean
64924         directories.  Problem reported by Eric Blake in
64925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
64926
64927 2007-01-08  Bruno Haible  <bruno@clisp.org>
64928
64929         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
64930         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
64931         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
64932         PROVIDE_CANONICALIZE_FILENAME_MODE.
64933         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
64934
64935 2007-01-08  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
64938         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
64939         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
64940         * lib/fts.c: Likewise.
64941         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
64942
64943 2006-12-25  Bruno Haible  <bruno@clisp.org>
64944
64945         * modules/utf8-ucs4-safe: New file.
64946         * lib/utf8-ucs4-safe.h: New file.
64947         * lib/unistr/utf8-ucs4-safe.c: New file.
64948
64949         * modules/utf16-ucs4-safe: New file.
64950         * lib/utf16-ucs4-safe.h: New file.
64951         * lib/unistr/utf16-ucs4-safe.c: New file.
64952
64953         * MODULES.html.sh (Unicode string functions): Add the new modules.
64954
64955 2007-01-08  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
64958         (Depends-on): Add unitypes.
64959         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64960         (u8_mbtouc_aux): Move out to separate file.
64961         (u8_mbtouc): Use ucs4_t, uint8_t types.
64962         * lib/unistr/utf8-ucs4.c: New file.
64963
64964         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
64965         (Depends-on): Add unitypes.
64966         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
64967         (u16_mbtouc_aux): Move out to separate file.
64968         (u16_mbtouc): Use ucs4_t, uint16_t types.
64969         * lib/unistr/utf16-ucs4.c: New file.
64970
64971         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
64972         (Depends-on): Add unitypes.
64973         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
64974         (u8_uctomb_aux): Move out to separate file.
64975         (u8_uctomb): Use ucs4_t, uint8_t types.
64976         * lib/unistr/ucs4-utf8.c: New file.
64977
64978         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
64979         (Depends-on): Add unitypes.
64980         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
64981         (u16_uctomb_aux): Move out to separate file.
64982         (u16_uctomb): Use ucs4_t, uint16_t types.
64983         * lib/unistr/ucs4-utf16.c: New file.
64984
64985 2006-12-25  Bruno Haible  <bruno@clisp.org>
64986
64987         * modules/unitypes: New file.
64988         * lib/unitypes.h: New file.
64989         * MODULES.html.sh (func_all_modules): New section "Unicode string
64990         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
64991         this section. Add unitypes.
64992
64993 2007-01-08  Bruno Haible  <bruno@clisp.org>
64994
64995         Avoid variable names that conflict with those from libtool.
64996         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
64997         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
64998         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
64999         library_names_spec to acl_library_names_spec, hardcode_* to
65000         acl_hardcode_*.
65001         Reported by Ralf Wildenhues.
65002
65003 2007-01-08  Bruno Haible  <bruno@clisp.org>
65004
65005         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65006         definition.
65007         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65008         definition.
65009         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65010         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65011         definition.
65012         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65013         definition.
65014         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65015         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65016         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65017         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65018         definition.
65019         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65020         definition.
65021         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65022         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65023         GC_USE_<algorithm>.
65024         * lib/gc-libgcrypt.c: Likewise.
65025         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65026         * modules/gc-arctwo (configure.ac): Likewise.
65027         * modules/gc-des (configure.ac): Likewise.
65028         * modules/gc-hmac-md5 (configure.ac): Likewise.
65029         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65030         * modules/gc-md2 (configure.ac): Likewise.
65031         * modules/gc-md4 (configure.ac): Likewise.
65032         * modules/gc-md5 (configure.ac): Likewise.
65033         * modules/gc-random (configure.ac): Likewise.
65034         * modules/gc-rijndael (configure.ac): Likewise.
65035         * modules/gc-sha1 (configure.ac): Likewise.
65036
65037 2007-01-08  Bruno Haible  <bruno@clisp.org>
65038
65039         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65040         macro definition.
65041         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65042         definition.
65043         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65044         definition.
65045         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65046         * modules/fcntl-safer (configure.ac): Likewise.
65047         * modules/fopen-safer (configure.ac): Likewise.
65048         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65049         GNULIB_FWRITEERROR macro definition.
65050
65051 2007-01-08  Bruno Haible  <bruno@clisp.org>
65052
65053         * m4/gnulib-common.m4: New file.
65054         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65055         (func_get_filelist): Add m4/gnulib-common.m4.
65056
65057 2007-01-08  Bruno Haible  <bruno@clisp.org>
65058
65059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65060         command.
65061
65062 2007-01-08  Jim Meyering  <jim@meyering.net>
65063
65064         Use a more robust test for a "can't happen" condition.
65065         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65066         narrowed the st_size value.  Presuming the "can't happen" condition
65067         is true, that narrowing could conceivably convert an invalid st_size
65068         value into a valid one.  Instead, use a change based on Matthew
65069         Woehlke's original patch.
65070
65071         Slight readability improvement: use an assert-like macro
65072         in place of literal "abort ()" uses.
65073         * lib/fts.c (fts_assert): Define.
65074         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65075         Use this macro instead of a bare 'abort'.
65076
65077 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65080         simply work around them.
65081         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65082         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65083         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65084         declaring.
65085         Don't bother to define as macros, since the standard doesn't require it.
65086         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65087         longer worry about IRIX 5.3.
65088         (HAVE_WCTYPE_CTMP_BUG): Remove.
65089
65090 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65091
65092         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65093         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65094         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65095         Problems reported by Georg Schwarz for IRIX 5.3.
65096
65097         * gnulib-tool (autoconf_minversion): Take the maximum version number
65098         found, not the minimum.  Problem reported by James Youngman.
65099
65100 2007-01-03  Karl Berry  <karl@gnu.org>
65101
65102         * doc/error.texi: new file, explaining interaction with progname.
65103         * doc/gnulib.texi: include it.  Update copyright.
65104
65105 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65106
65107         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65108         AC_CANONICAL_HOST, to improve autobuild outputs.
65109
65110 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65111             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65112
65113         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65114         sockets, server sockets, and other file descriptors.  Count errors
65115         to compute the return value.  Reorder the code a bit to be easier
65116         to follow.  Don't set event bits that were not requested (except
65117         POLLERR and POLLHUP).
65118
65119 2007-01-01  Bruno Haible  <bruno@clisp.org>
65120
65121         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65122
65123 2007-01-03  Jim Meyering  <jim@meyering.net>
65124
65125         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65126
65127 2007-01-02  Bruno Haible  <bruno@clisp.org>
65128
65129         * modules/settime (Include): Require timespec.h.
65130         * modules/nanosleep (Include): Likewise.
65131
65132 2007-01-01  Bruno Haible  <bruno@clisp.org>
65133
65134         * gnulib-tool (func_emit_copyright_notice): Bump year.
65135         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65136
65137 2007-01-01  Bruno Haible  <bruno@clisp.org>
65138
65139         Improve support for OpenBSD.
65140         * build-aux/config.rpath (libname_spec): Export.
65141         (library_names_spec): New variable. Export.
65142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65143         library_names_spec from the config.rpath output. Locate shared library
65144         through the name pattern in library_names_spec.
65145
65146 2007-01-01  Eric Blake  <ebb9@byu.net>
65147
65148         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65149
65150 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65151
65152         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65153         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65154         assume the C locale, and avoid an "eval" that could cause trouble.
65155         Problem with SORT reported by Bob Proulx.
65156
65157         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65158         Define.  Trivial patch from Henning Nielsen Lund, originally
65159         sent to bug-grep@gnu.org today.
65160
65161 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65162
65163         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65164         struct stat.  Problem reported by Henning Nielsen Lund.
65165         * lib/acl.c: Include acl.h first, to check interface.  Don't
65166         bother to include sys/types.h and sys/stat.h again.
65167
65168 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         Import the following change from libc; problem reported by
65171         Sven Verdoolaege.
65172
65173         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65174
65175         [BZ #1373]
65176         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65177
65178 2006-12-28  Jim Meyering  <jim@meyering.net>
65179
65180         * build-aux/announce-gen: Do not assume that the package
65181         builds any of tar.gz, tar.bz2, and .xdelta files.
65182         Suggestion from Simon Josefsson.
65183
65184 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65185
65186         * modules/announce-gen: New file.
65187
65188 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65191         handles its gotchas now.
65192         * lib/mbswidth.c: Likewise.
65193         * lib/wcwidth.h: Likewise.
65194         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65195         and iswcntrl; the wctype module does this stuff now.
65196         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65198         * modules/mbchar (Depends-on): Add wctype.
65199         * modules/mbswidth (Depends-on): Likewise.
65200         * modules/wcwidth (Depends-on): Likewise.
65201
65202 2006-12-27  Eric Blake  <ebb9@byu.net>
65203
65204         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65205         module uses more than what <wctype.h> is required to provide.
65206
65207 2006-12-26  Eric Blake  <ebb9@byu.net>
65208
65209         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65210
65211 2006-12-26  Eric Blake  <ebb9@byu.net>
65212
65213         * modules/absolute-header: New module.
65214         * modules/fcntl (Depends-on): Depend on it.
65215         * modules/inttypes (Depends-on): Likewise.
65216         * modules/stdint (Depends-on): Likewise.
65217         * modules/sys_stat (Depends-on): Likewise.
65218         * modules/wctype (Depends-on): Likewise.
65219         * MODULES.html.sh (Support for building libraries and
65220         executables): Document it.
65221
65222 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * gnulib-tool (SED): Remove, undoing previous change.
65225         The problem was that it broke coreutils on Solaris, because
65226         "sed --posix" leaked into a makefile.
65227         (sed): New alias, if 'alias' and GNU sed.
65228
65229 2006-12-24  Jim Meyering  <jim@meyering.net>
65230
65231         Work around an fchownat bug in glibc-2.4:
65232         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65233         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65234         in spite of the -P option.
65235         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65236         New macros.
65237         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65238         * modules/openat (Files): Add lib/fchownat.c.
65239         * lib/openat.c (fchownat): Don't define here.  Move to...
65240         * lib/fchownat.c: ...this new file.
65241
65242 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65243
65244         Fix bug reported by Bruno Haible in
65245         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65246         where quotearg.c didn't compile on Mac OS X 10.2 because it
65247         lacks <wchar.h> and wint_t.
65248         * lib/wctype_.h (__wctype_wint_t): New type.
65249         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65250         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65251         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65252         Arg is now of type __wctype_wint_t, not wint_t.
65253         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65254         substitute HAVE_WINT_T.
65255         * modules/wctype (Files): Add m4/wint_t.m4.
65256         (wctype.h): Substitute HAVE_WINT_T.
65257
65258 2006-12-23  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65261
65262 2006-12-23  Bruno Haible  <bruno@clisp.org>
65263
65264         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65265         S_ISLNK.
65266         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65267         mingw.
65268
65269 2006-12-22  Bruno Haible  <bruno@clisp.org>
65270
65271         * lib/copy-file.c: Include acl.h.
65272         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65273         Close the file descriptors only after being done with copy_acl.
65274         * modules/copy-file (Depends-on): Add acl.
65275
65276 2006-12-22  Bruno Haible  <bruno@clisp.org>
65277
65278         * gnulib-tool (SED): New variable.
65279         Use $SED instead of sed everywhere.
65280
65281 2006-12-22  Bruno Haible  <bruno@clisp.org>
65282
65283         * modules/no-c++: New file.
65284         * m4/no-c++.m4: New file.
65285         * MODULES.html.sh (Support for building libraries and executables):
65286         Add no-c++.
65287
65288 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65289
65290         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65291         Include <limits.h>, and use its INT_MAX to rewrite the
65292         j loop so that it does not overflow 'int'.  Problem reported by
65293         Ralf Wildenhues in
65294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65295         Play it safe by shifting left by 1 rather than multiplying by 2,
65296         as GCC is less likely to optimize this away when the value
65297         is signed (when it assumes overflow leads to undefined behavior).
65298         Also, don't assume time_t uses two's complement.
65299
65300 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65301
65302         * MODULES.html.sh: New module wctype.
65303         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65304         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65305         <wctype.h>, since the new wctype module should fix this.
65306         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65307         the wctype module should arrange for it.
65308         * lib/regex_internal.h: Likewise.
65309         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65310         since the wctype module should handle this now.
65311         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65312         * modules/fnmatch (Depends-on): Add wctype.
65313         * modules/quotearg (Depends-on): Likewise.
65314         * modules/regex (Depends-on): Likewise.
65315
65316 2006-12-19  Bruno Haible  <bruno@clisp.org>
65317
65318         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65319         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65320
65321 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65322
65323         * modules/savewd (Depends-on): Fix dependency on fcntl.
65324
65325 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65326
65327         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65328         conforms to C99, rather than relying on the user's environment
65329         setting of STDINT_H.
65330
65331 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65332         and Eric Blake  <ebb9@byu.net>
65333
65334         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65335         This is more consistent with the other defines here.
65336         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65337         Port to z/OS.  Problem reported by Paul Gilmartin.
65338         Change local vars to use gl_ prefix rather than ac_.
65339         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65340         with other defines.
65341         * modules/double-slash-root: New module.
65342         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65343         (Depends-on): Add double-slash-root.
65344         * MODULES.html.sh (File system functions): Mention new module.
65345
65346 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65347
65348         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65349         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65350         This is for the benefit of gzip, which doesn't do i18n.
65351
65352 2006-12-12  Jim Meyering  <jim@meyering.net>
65353
65354         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65355         Reported by Andreas Schwab <schwab@suse.de>.
65356
65357 2006-12-12  Bruno Haible  <bruno@clisp.org>
65358
65359         Merge these changes.
65360         2006-09-05  Bruno Haible  <bruno@clisp.org>
65361         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65362         iconv_alloc succeeded.
65363         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65364         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65365         test for " && dest " at the end - dest is always != NULL there. Call
65366         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65367         with 2xNULL arguments, also to flush the state storage. Handle the
65368         IRIX iconv behaviour. Realloc the final result, to throw away unused
65369         memory.
65370
65371 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65374         and fchmodat unconditionally, since glibc 2.4 has them.
65375         Problem reported by Arkadiusz Miskiewicz.
65376
65377 2006-12-10  Bruno Haible  <bruno@clisp.org>
65378
65379         * gnulib-tool (func_import): Show the include files only for those
65380         modules that are copied and specified.
65381         Reported by Karl Berry.
65382
65383 2006-12-08  Jim Meyering  <jim@meyering.net>
65384
65385         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65386         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65387
65388         * build-aux/announce-gen: Add two new options, both optional:
65389         --bootstrap-tools=TOOL_LIST
65390               a comma-separated list of tools, e.g.,
65391               autoconf,automake,bison,gnulib
65392         --gnulib-snapshot-date=DATE
65393               if gnulib is in the bootstrap tool list,
65394               then report this as the snapshot date.
65395               If not specified, use the current date/time.
65396               If you specify a date here, be sure it's UTC.
65397
65398 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65399
65400         * tests/test-argp-2.sh: Fix test to match actual output.
65401         (func_compare): Fix sed script to be portable.
65402
65403 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65404
65405         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65406         workaround for this case.  It is not autoconfigured now; offhand
65407         it's hard to see how to autoconfigure it.
65408
65409 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65410
65411         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65412         a directory that is about to be chowned.  Such a directory's
65413         initial file permissions should permit the owner only and this
65414         should not be changed until after the chown, since the group and
65415         other bits would be incorrect if they granted permission before
65416         the chown.
65417
65418         Fix porting problem for iswctype reported by Georg Schwarz in:
65419         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65420         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65421         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65422         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65423         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65424
65425 2006-12-03  Jim Meyering  <jim@meyering.net>
65426
65427         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65428         p->fts_statp may not yet be defined.
65429         (fts_read): Instead, set it in the caller, once p->fts_statp is
65430         sure to be defined, and corresponds to a top-level directory.
65431         This bug made du -x fail.  Here's the coreutils test case:
65432         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65433         Reported by Mike Frysinger.
65434
65435 2006-12-01  Jim Meyering  <jim@meyering.net>
65436
65437         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65438         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65439         Reported by Simon Josefsson.
65440
65441 2006-11-30  Jim Meyering  <jim@meyering.net>
65442
65443         * m4/warning.m4: Use the all-permissive copyright notice
65444         recommended by RMS (rather than LGPL).
65445         * m4/vararrays.m4: Likewise.
65446         * m4/flexmember.m4: Likewise.
65447
65448 2006-11-29  Bruno Haible  <bruno@clisp.org>
65449
65450         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65451         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
65452         using +=.
65453         Reported by Simon Josefsson <simon@josefsson.org>.
65454
65455 2006-11-28  James Youngman <jay@gnu.org>
65456
65457         * README: Advise users that they might find the bug-gnulib@gnu.org
65458         and autotools-announce@gnu.org mailing lists useful.
65459
65460 2006-11-28  Bruno Haible  <bruno@clisp.org>
65461
65462         * m4/ptrdiff_max.m4: Remove file.
65463
65464 2006-11-21  Bruno Haible  <bruno@clisp.org>
65465
65466         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
65467         _AC_COMPUTE_INT.
65468         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65469         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
65470         _AC_COMPUTE_INT.
65471         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65472         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
65473         _AC_COMPUTE_INT.
65474         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65475
65476 2006-11-28  Jim Meyering  <jim@meyering.net>
65477
65478         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
65479         warning from "gcc -Wshadow" about shadowing the builtin.
65480
65481 2006-11-27  Bruno Haible  <bruno@clisp.org>
65482
65483         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
65484         _AC_COMPUTE_INT.
65485         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
65486
65487 2006-11-27  Bruno Haible  <bruno@clisp.org>
65488             Paul Eggert  <eggert@cs.ucla.edu>
65489
65490         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
65491
65492 2006-11-26  Bruno Haible  <bruno@clisp.org>
65493
65494         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65495         noinst_LTLIBRARIES.
65496
65497 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
65498             Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
65501         if compiling with "gcc -ansi".
65502
65503 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
65504
65505         Fix some incompatibilities with gcc -ansi -pedantic.
65506         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
65507         if compiling pedantically with GCC, unless it's C99 or later.
65508         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
65509         it mishandles gcc -ansi -pedantic as well.
65510         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
65511         if gcc -pedantic.
65512         * lib/regexec.c (check_node_accept_bytes): Don't use auto
65513         initializers for struct if -pedantic, unless it's C99 or later.
65514
65515 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
65516
65517         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
65518         Don't close an fd more than once. Identical atimes indicate
65519         success, not failure.
65520
65521 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
65522
65523         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
65524
65525 2006-11-23  Jim Meyering  <jim@meyering.net>
65526
65527         * build-aux/announce-gen: New file.  From coreutils.
65528
65529 2006-11-22  Jim Meyering  <jim@meyering.net>
65530
65531         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
65532         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
65533         (fts_read): Use a temporary to narrow the overused st_size member
65534         before using it in a switch statement.  Reported by Matthew Woehlke.
65535
65536         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
65537         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
65538
65539 2006-11-20  Bruno Haible  <bruno@clisp.org>
65540
65541         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
65542         changequote instead of pairs of brackets.
65543         Reported by Andreas Schwab <schwab@suse.de>.
65544
65545 2006-11-21  Jim Meyering  <jim@meyering.net>
65546
65547         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
65548         so as to remain compatible with older compilers.
65549         Patch from Michael Deutschmann.
65550
65551 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65552
65553         * MODULES.html.sh (File system functions): Add openat.
65554
65555         * lib/openat.h (rpl_fstatat): New macro, if
65556         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
65557         (fstatat): Define to rpl_fstatat under the same conditions,
65558         unless COMPILING_FSTATAT.
65559         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
65560         seems to have the bug.
65561         * lib/fstatat.c: New file.
65562         * modules/openat (Files): Add it.
65563
65564 2006-11-20  Bruno Haible  <bruno@clisp.org>
65565
65566         * Makefile: New file.
65567
65568 2006-11-20  Jim Meyering  <jim@meyering.net>
65569
65570         The beginnings of syntax-related checks for gnulib.
65571         * lib/Makefile: New file.
65572         * lib/t-idcache: New script.  Ensure that the two halves of
65573         idcache.c stay in sync.
65574
65575         * lib/idcache.c: Adjust comments in user- and group- portions to
65576         be more accurate, and to be consistent with one another.
65577
65578 2006-11-20  Jim Meyering  <jim@meyering.net>
65579
65580         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
65581         continue using the flexible array member (thus, this module performs
65582         half as many malloc calls), with the addition that...
65583         (getgroup, getuser): Consistently record a non-match via an empty
65584         "name" string, and map an empty string match to a NULL return value.
65585         * modules/idcache (Depends-on): Re-add flexmember.
65586
65587         * lib/idcache.c (getuser): Remove all uses of the register keyword.
65588         (getuidbyname, getgroup, getgidbyname): Likewise.
65589
65590         Use cleaner syntax: NULL rather than 0.
65591         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
65592
65593 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
65594
65595         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
65596         It mishandled the case where the group was missing.
65597         Problem reported by Greg Schafer.
65598         * modules/idcache: Likewise.
65599
65600 2006-11-18  Jim Meyering  <jim@meyering.net>
65601
65602         * check-module (%exempt_header): Add exception for some
65603         conditionally-included headers.
65604
65605         * modules/i-ring (Depends-on): Add verify.
65606         (License): Change to LGPL.
65607
65608 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
65611         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
65612         and inttostr.h.  Use snprintf rather than uinttostr, so that
65613         LGPLed code doesn't depend on GPLed.
65614
65615 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
65616
65617         * modules/inline (License): Change from GPL to LGPL.
65618
65619 2006-11-17  Jim Meyering  <jim@meyering.net>
65620
65621         * modules/d-type (License): Switch to LGPL.
65622
65623 2006-11-15  Bruno Haible  <bruno@clisp.org>
65624
65625         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
65626
65627 2006-11-15  Eric Blake  <ebb9@byu.net>
65628
65629         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
65630         the module dependency.
65631
65632 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65633             Bruno Haible  <bruno@clisp.org>
65634
65635         * gnulib-tool (func_create_testdir): Add license consistency check.
65636
65637 2006-11-15  Eric Blake  <ebb9@byu.net>
65638
65639         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
65640         random "(cached)" in configure output.
65641
65642 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65643
65644         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
65645         test for conforming inttypes.h is both announced and cached.
65646
65647         * MODULES.html.sh (seen_modules, seen_files): New variables.
65648         (func_module): Rewrite to use a few less gnulib-tool and sed
65649         invocations.  Avoid a couple of quadratic algorithms for ...
65650         (missed_modules, missed_files): ... these, with ...
65651         (func_append, func_tmpdir): ... these new functions, from
65652         gnulib-tool.  Analogously, install traps for cleanup.
65653
65654         * tests/test-gc.c (main): Remove unused variables.
65655         * tests/test-read-file.c: Include stdlib.h, for 'free'.
65656
65657 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
65658
65659         * modules/inttostr (License): Change to LGPL.
65660
65661 2006-11-14  Eric Blake  <ebb9@byu.net>
65662
65663         * modules/tempname (License): Change to LGPL.
65664
65665 2006-11-14  Eric Blake  <ebb9@byu.net>
65666
65667         * doc/functions.texi (Function Portability): *printf functions on
65668         Cygwin now understand all POSIX size specifiers.
65669
65670 2006-11-14  Bruno Haible  <bruno@clisp.org>
65671
65672         * modules/c-ctype (License): Change to LGPL.
65673
65674 2006-11-12  Bruno Haible  <bruno@clisp.org>
65675
65676         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
65677         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
65678         for GNOME libraries, for which the include files are installed in
65679         subdirectories of $prefix/include.
65680
65681 2006-11-12  Bruno Haible  <bruno@clisp.org>
65682
65683         * m4/lib-link.m4: Require at least autoconf-2.54.
65684         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
65685         name to underscores for the --with option.
65686
65687 2006-11-13  Bruno Haible  <bruno@clisp.org>
65688
65689         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
65690         the tests directory.
65691         Reported by Ralf Wildenhues.
65692
65693 2006-11-13  Bruno Haible  <bruno@clisp.org>
65694
65695         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
65696         (func_emit_initmacro_end): Undo the override here.
65697         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
65698         Works around the famous automake error in coreutils.
65699
65700 2006-11-13  Eric Blake  <ebb9@byu.net>
65701
65702         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
65703         element, not its node.
65704
65705 2006-11-12  Bruno Haible  <bruno@clisp.org>
65706
65707         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
65708         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
65709
65710 2006-11-12  Bruno Haible  <bruno@clisp.org>
65711
65712         * gnulib-tool: New option --local-symlink.
65713         (func_usage): Document it.
65714         (lsymbolic): New variable.
65715         (func_import, func_create_testdir): If --symlink was not specified,
65716         test whether --local-symlink was specified and the file comes from
65717         the local_gnulib_dir.
65718
65719 2006-11-12  Bruno Haible  <bruno@clisp.org>
65720
65721         * gnulib-tool (func_ln): New function.
65722         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
65723
65724 2006-11-12  Bruno Haible  <bruno@clisp.org>
65725
65726         Finish support for source files in subdirectories.
65727         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
65728         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
65729         AUTOMAKE_OPTIONS.
65730         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
65731
65732 2006-11-12  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65735         EXTRA_lib_SOURCES augmentation.
65736         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
65737
65738 2006-11-12  Jim Meyering  <jim@meyering.net>
65739
65740         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
65741         file descriptors.  This also averts a failure on systems with
65742         native openat support when a traversed directory lacks "x" access.
65743         * lib/fts_.h: Include "i-ring.h"
65744         (struct FTS) [fts_fd_ring]: New member.
65745         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
65746         (FCHDIR): Add parentheses.
65747         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
65748         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
65749         When descending, rather than simply closing the previous
65750         fts_cwd_fd value, push that file descriptor onto the ring.
65751         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
65752         (fts_open): Initialize the new fd_ring member.
65753         (fts_close): Clear the ring.
65754         (fts_safe_changedir): When possible, use our new fd_ring to skip
65755         the diropen and fstat and dev/ino comparison that would normally
65756         accompany a virtual `chdir ("..")'.
65757
65758         * modules/fts (Depends-on): Add i-ring.
65759         * modules/i-ring: New module.
65760         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
65761         * m4/i-ring.m4: New file.
65762
65763 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65764
65765         * gnulib-tool (func_create_testdir): Fix replacement of
65766         `build-aux' in configure.ac.  Run autotools in gltests
65767         subdirectory.
65768         (func_create_testdir, func_create_megatestdir, test): There is
65769         no need for '--force' in most autotool invocations in a new
65770         tree.  Actually fail the whole test if any of the tools, or the
65771         configure or make stages fail.
65772
65773         Sync from Automake.
65774         * build-aux/gnupload: Revert last change.  Add pointer to upload
65775         instructions of the GNU Maintenance Instructions.
65776         Suggestion by Karl Berry.
65777
65778 2006-11-10  Jim Meyering  <jim@meyering.net>
65779
65780         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
65781
65782 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
65785         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
65786         (bind_textdomain_codeset) [! ENABLE_NLS]:
65787         Evaluate all the arguments.  That way, callers get compatible behavior
65788         if the arguments have side effects.  Also, it avoids some GCC
65789         diagnostics in some cases; Joel E. Denny reported problems when Bison
65790         was configured with --enable-gcc-warnigs.
65791
65792 2006-11-10  Jim Meyering  <jim@meyering.net>
65793
65794         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
65795         relevant options in CFLAGS (like -O, -fno-inline) are taken into
65796         account.
65797
65798 2006-11-10  Jim Meyering  <jim@meyering.net>
65799
65800         * modules/inline: New file/module.
65801         * modules/xalloc (Files): Remove m4/inline.m4.
65802         (Depends-on): Add inline, instead.
65803         * modules/oset: Likewise.
65804         * modules/list: Likewise.
65805
65806 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
65809         Problem reported by Matthew Woehlke.
65810
65811 2006-11-09  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/tempname.c (gen_tempname): Remove variant that invokes
65814         __gen_tempname.
65815         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
65816         __gen_tempname.
65817
65818 2006-11-08  Bruno Haible  <bruno@clisp.org>
65819
65820         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
65821         to 'yes' instead of 'cross-compiling'.
65822
65823 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/quotearg.h (quotearg_free): New decl.
65826         * lib/quotearg.c (quotearg_free): New function.
65827         (slot0, nslots, slotvec0, slotvec):
65828         Now file-scope so that quotearg_free can get at them.
65829
65830 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65831
65832         Sync from Automake.
65833         * build-aux/gnupload: Add missing 'gnu' to example URL.
65834         Report by Karl Berry.
65835
65836 2006-11-08  Bruno Haible  <bruno@clisp.org>
65837
65838         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
65839         Suggested by Paul Eggert.
65840
65841 2006-11-08  Jim Meyering  <jim@meyering.net>
65842
65843         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
65844         It's already included if !_LIBC.
65845         (fts_safe_changedir): Add a comment.
65846
65847 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65848
65849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
65850         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
65851         Matthew Woehlke.
65852
65853         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
65854         definitions up, to avoid colliding with change below.
65855         (static_inline) [HAVE_INLINE]: New macro.
65856         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
65857         Provide extern decls when !HAVE_INLINE.  Do not define unless
65858         static_inline is defined, either by us or by xmalloc.c.  Use
65859         static_inline rather than static inline.
65860         (XCALLOC): Optimize sizeof(T) = 1 case.
65861         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
65862
65863 2006-11-07  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
65866         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
65867         AC_C_INLINE.
65868         * modules/xalloc (Files): Add m4/inline.m4.
65869
65870 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65871
65872         * README: Fix typo.
65873         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
65874         (Miscellanous Notes): ...from this.
65875
65876 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
65879         Mention that offsetof should be used instead of sizeof.
65880         From Bruno Haible.
65881
65882 2006-11-07  Bruno Haible  <bruno@clisp.org>
65883
65884         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
65885
65886 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65887
65888         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65889         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
65890         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
65891         (gl_tree_add_before, gl_tree_add_after):
65892         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
65893         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
65894         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65895         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
65896         (gl_linked_add_after, gl_linked_add_at): Likewise.
65897         * lib/gl_anyrbtree_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): Likewise.
65900         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
65901         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
65902         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
65903
65904 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65905
65906         * lib/gl_oset.h: Use C comment style, not C++ comment style.
65907
65908 2006-11-06  Bruno Haible  <bruno@clisp.org>
65909
65910         * m4/inline.m4: New file.
65911         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
65912         * modules/list (Files): Add m4/inline.m4.
65913         * modules/oset (Files): Likewise.
65914
65915 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
65916
65917         * lib/idcache.c: Include <stddef.h>, for offsetof.
65918         (struct userid.name): Change from char * to a flexible array member.
65919         All uses changed.
65920         * modules/idcache (Depends-on): Add flexmember.
65921
65922         * MODULES.html.sh (Core language properties): New module flexmember.
65923         * modules/flexmember, m4/flexmember.m4: New files.
65924
65925         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
65926         inline functions that are identical with the old xnmalloc_inline,
65927         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
65928         that we can avoid some unnecessary integer multiplications and
65929         divisions in the common case where the element size is known at
65930         compile time.
65931         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
65932         needed.
65933         (xnboundedmalloc): Remove.
65934         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
65935         arguments, for consistency with rest of this header.
65936         (xcharalloc): Rewrite using XNMALLOC.
65937         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
65938         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
65939         versions have been moved to lib/xalloc.h and renamed to be the
65940         non-*_inline versions.
65941         (xmalloc, xrealloc): Implement without reference to the xnmalloc
65942         and xnrealloc functions, since those functions are now inline and
65943         now call us.
65944         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
65945         renaming described above.
65946         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
65947         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
65948         captures the dependency in AC_C_INLINE.
65949
65950         New module canonicalize-lgpl, proposed by Charles Wilson in
65951         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
65952         with a few small changes afterwards.
65953         * MODULES.html.sh (File system functions): New module
65954         canonicalize-lgpl.
65955         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
65956         and canonicalize_file_name.
65957         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
65958         * modules/canonicalize-lgpl: New files.
65959
65960 2006-11-05  Bruno Haible  <bruno@clisp.org>
65961
65962         * gnulib-tool (func_import, func_create_testdir): Create directories
65963         also for files in subdirectories of lib/.
65964
65965 2006-11-05  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
65968         ANSI C compliant.
65969
65970 2006-11-03  Bruno Haible  <bruno@clisp.org>
65971
65972         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
65973         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
65974         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
65975         (xnboundedmalloc): New inline function.
65976         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
65977         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
65978         xmalloc.
65979         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
65980         xmalloc.
65981         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
65982         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
65983         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
65984         xmalloc.
65985         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65986         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
65987         xmalloc.
65988         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
65989         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65990         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
65991         xmalloc.
65992         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
65993         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
65994         gl_tree_add_after): Use XMALLOC instead of xmalloc.
65995         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
65996         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
65997         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
65998         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
65999
66000 2006-11-03  Bruno Haible  <bruno@clisp.org>
66001
66002         * lib/c-ctype.h [C++]: Define functions without name mangling.
66003         * lib/fwriteerror.h [C++]: Likewise.
66004         * lib/gcd.h [C++]: Likewise.
66005         * lib/linebreak.h [C++]: Likewise.
66006
66007 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66010         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66011         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66012         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66013         Check for functions and headers just once.
66014         Check for declaration of canonicalize_file_name.
66015         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66016
66017 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66018
66019         * gnulib-tool (func_import): Fix typo in actioncmd.
66020
66021 2006-11-02  Bruno Haible  <bruno@clisp.org>
66022
66023         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66024         newline sequence in the Makefile.am snippet as a space, like "make"
66025         does.
66026         Reported by Roger Persson <perrog@gmail.com>.
66027
66028 2006-11-01  Bruno Haible  <bruno@clisp.org>
66029
66030         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66031         already declared in <string.h>.
66032         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66033
66034 2006-11-01  Bruno Haible  <bruno@clisp.org>
66035
66036         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66037         * lib/strcase.h: Include <string.h>.
66038         (strcasecmp): Define to rpl_strcasecmp here.
66039
66040 2006-11-01  Bruno Haible  <bruno@clisp.org>
66041
66042         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66043
66044 2006-11-01  Eric Blake  <ebb9@byu.net>
66045
66046         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66047
66048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66049
66050 2006-10-29  Bruno Haible  <bruno@clisp.org>
66051
66052         Make it compile in C++ mode.
66053         * lib/full-write.c (full_rw): Add a cast.
66054
66055 2006-11-01  Bruno Haible  <bruno@clisp.org>
66056
66057         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66058         be POSIX compliant.
66059         Reported by Roger Persson <perrog@gmail.com>.
66060
66061 2006-11-01  Eric Blake  <ebb9@byu.net>
66062
66063         * lib/getopt_.h: Fix comments.
66064
66065 2006-10-31  Eric Blake  <ebb9@byu.net>
66066
66067         * modules/tmpdir (Depends-on): Add sys_stat.
66068         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66069         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66070         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66071         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66072         tempname.
66073
66074 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         Avoid some C++ diagnostics reported by Bruno Haible.
66077         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66078         xmalloc.
66079         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66080         (struct slotvec): Move to top level.
66081         (quotearg_n_options): Rewrite to avoid xmalloc.
66082         * lib/xalloc.h (xcharalloc): New function.
66083         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66084         [defined __cplusplus]: Add function template that provides result
66085         type propagation.  This part of the change is from Bruno Haible.
66086
66087 2006-10-29  Bruno Haible  <bruno@clisp.org>
66088
66089         Make it compile in C++ mode.
66090         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66091         * lib/strnlen1.c (strnlen1): Cast memchr result.
66092         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66093         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66094         (create_temp_dir): Rename local variable 'template'.
66095         (compile_csharp_using_sscli): Add cast.
66096         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66097         * lib/findprog.c (find_in_path): Likewise.
66098         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66099         * lib/wait-process.c (register_slave_subprocess): Likewise.
66100
66101 2006-10-22  Bruno Haible  <bruno@clisp.org>
66102
66103         * modules/tsearch: New file.
66104         * lib/tsearch.h: New file.
66105         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66106         * m4/tsearch.m4: New file.
66107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66108
66109 2006-10-29  Eric Blake  <ebb9@byu.net>
66110
66111         * lib/arcfour.c: Assume config.h.
66112         * lib/arctwo.c: Likewise.
66113         * lib/base64.c: Likewise.
66114         * lib/check-version.c: Likewise.
66115         * lib/crc.c: Likewise.
66116         * lib/des.c: Likewise.
66117         * lib/gc-gnulib.c: Likewise.
66118         * lib/gc-libgcrypt.c: Likewise.
66119         * lib/gc-pbkdf2-sha1.c: Likewise.
66120         * lib/getaddrinfo.c: Likewise.
66121         * lib/getdelim.c: Likewise.
66122         * lib/getline.c: Likewise.
66123         * lib/hmac-md5.c: Likewise.
66124         * lib/hmac-sha1.c: Likewise.
66125         * lib/iconvme.c: Likewise.
66126         * lib/md2.c: Likewise.
66127         * lib/md4.c: Likewise.
66128         * lib/memxor.c: Likewise.
66129         * lib/read-file.c: Likewise.
66130         * lib/readline.c: Likewise.
66131         * lib/rijndael-alg-fst.c: Likewise.
66132         * lib/rijndael-api-fst.c: Likewise.
66133         * lib/xgetdomainname.c: Likewise.
66134
66135 2006-10-28  Eric Blake  <ebb9@byu.net>
66136
66137         * lib/xstrndup.c: Assume config.h.
66138
66139 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66142         stat-macros.h is now for our own macros, whereas stat_h is for
66143         macros in the <sys/stat.h> name space.
66144         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66145         (STAT_MACROS_H): Remove.
66146         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66147         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66148         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66149         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66150         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66151         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66152         Move these macros to ...
66153         * lib/stat_.h: here.  Don't include stat-macros.h.
66154         * lib/canonicalize.c: Don't include stat-macros.h.
66155         * lib/chown.c: Likewise.
66156         * lib/euidaccess.c: Likewise.
66157         * lib/file-type.c: Likewise.
66158         * lib/filemode.c: Likewise.
66159         * lib/glob.c: Likewise.
66160         * lib/isapipe.c: Likewise.
66161         * lib/lchown.c: Likewise.
66162         * lib/lstat.c: Likewise.
66163         * lib/mkdir-p.c: Likewise.
66164         * lib/rmdir.c: Likewise.
66165         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66166         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66167         unless mkdir isn't declared, to speed up 'configure'.
66168         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66169         would define all the S_* symbols.
66170         * modules/canonicalize (Depends-on):
66171         Depend on sys_stat, not stat-macros.
66172         * modules/chown: Likewise.
66173         * modules/euidaccess: Likewise.
66174         * modules/filemode: Likewise.
66175         * modules/file-type: Likewise.
66176         * modules/glob: Likewise.
66177         * modules/isapipe: Likewise.
66178         * modules/lchown: Likewise.
66179         * modules/lstat: Likewise.
66180         * modules/mkancesdirs: Likewise.
66181         * modules/rmdir: Likewise.
66182         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66183         * modules/modechange: Likewise.
66184         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66185         (configure.ac): Remove gl_STAT_MACROS.
66186         * modules/sys_stat (Depends-on): Remove stat-macros.
66187
66188 2006-10-27  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/signed.m4: Remove file.
66191         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66192         invocation.
66193         * modules/vasnprintf (Files): Remove m4/signed.m4.
66194
66195 2006-10-27  Bruno Haible  <bruno@clisp.org>
66196
66197         Update to GNU gettext 0.16.
66198         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66199         m4/inttypes-h.m4, m4/signed.m4.
66200         * m4/gettext.m4: Update to GNU gettext 0.16.
66201         * m4/intl.m4: New file, from GNU gettext.
66202         * m4/intldir.m4: New file, from GNU gettext.
66203         * config/srclist.txt: Update
66204
66205 2006-10-27  Eric Blake  <ebb9@byu.net>
66206
66207         * MODULES.html.sh: Document tempname.
66208         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66209         dependencies.
66210         (Files): Move lib/tempname.c...
66211         * modules/tempname: ...to this new module.
66212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66213         (gl_PREREQ_TEMPNAME): Move...
66214         * m4/tempname.m4: ...to this new file.
66215         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66216         * modules/sys_stat (Depends-on): Add stat-macros.
66217         * lib/stat_.h (includes): Pick up stat macros.
66218         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66219         if stat macros are broken.
66220         * lib/tempname.c (includes): No need to include "stat-macros.h".
66221         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66222         (direxists, __path_search) [!_LIBC]: Don't compile these in
66223         gnulib; the tmpdir module covers that.
66224         * lib/tempname.h: New file.
66225
66226 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66227
66228         * COPYING: Explain how gnulib-tool converts licence headers.
66229         Almost all wording by Eric Blake.
66230
66231 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/mbchar.h (is_basic_table): Make read-only.
66234         * lib/mbchar.c (is_basic_table): Likewise.
66235         Reported by John Darrington.
66236
66237 2006-10-25  Bruno Haible  <bruno@clisp.org>
66238
66239         * lib/progname.h (set_program_name): Undefine before defining.
66240
66241 2006-10-25  Bruno Haible  <bruno@clisp.org>
66242
66243         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66244         false for non-gcc C++ compilers.
66245         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66246
66247 2006-10-24  Bruno Haible  <bruno@clisp.org>
66248
66249         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66250         iconv implementations like Irix iconv.
66251
66252 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * modules/vararrays: New file.
66255         * m4/vararrays.m4: New file, taken from diffutils.
66256         * MODULES.html.sh: New module vararrays.
66257
66258 2006-10-24  Karl Berry  <karl@gnu.org>
66259
66260         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66261         Don't call GNU Unix.
66262
66263 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66264
66265         * users.txt: Add Libtool.
66266
66267         Sync from Libtool:
66268
66269         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66270
66271         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66272         to gnulib's policy of including config.h unconditionally.
66273
66274 2006-10-24  Bruno Haible  <bruno@clisp.org>
66275
66276         * modules/wcwidth (Files): Add m4/wint_t.m4.
66277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66278         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66279
66280 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66283         to pacify GCC with some -W flags enabled.  Problem reported by
66284         Bruno Haible.
66285
66286 2006-10-24  Jim Meyering  <jim@meyering.net>
66287
66288         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66289         Reported by Karl Berry.
66290
66291 2006-10-23  Bruno Haible  <bruno@clisp.org>
66292
66293         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66294
66295 2006-10-24  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/gl_list.h: Use C comment style, not C++ comment style.
66298
66299 2006-10-23  Eric Blake  <ebb9@byu.net>
66300
66301         * lib/getaddrinfo.c (includes): Add missing include.
66302
66303 2006-10-23  Bruno Haible  <bruno@clisp.org>
66304             Paul Eggert  <eggert@cs.ucla.edu>
66305
66306         Ability to rename obstack_free.
66307         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66308         obstack_free.
66309         (obstack_free): Invoke the __obstack_free macro.
66310         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66311
66312 2006-10-23  Bruno Haible  <bruno@clisp.org>
66313             Paul Eggert  <eggert@cs.ucla.edu>
66314
66315         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66316         __argc, __argv from the declaration. (They are defined as macros on
66317         mingw.)
66318
66319 2006-10-22  Bruno Haible  <bruno@clisp.org>
66320
66321         * doc/gnulib-intro.texi: New file.
66322         * doc/gnulib.texi: Include it.
66323
66324 2006-10-21  Bruno Haible  <bruno@clisp.org>
66325
66326         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66327         "Introduction", "Miscellanous Notes", "Particular Modules".
66328
66329 2006-10-21  Bruno Haible  <bruno@clisp.org>
66330
66331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66332         Change mostlyclean-local rule to avoid sh syntax error from bash
66333         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66334
66335 2006-10-23  Jim Meyering  <jim@meyering.net>
66336
66337         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66338         in place of snprintf.
66339
66340         * modules/inttostr (Files): Add lib/uinttostr.c.
66341         * lib/uinttostr.c (inttostr): New file/function.
66342         * lib/inttostr.h (uinttostr): Declare.
66343         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66344         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66345         Add uinttostr.
66346         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66347
66348 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66349
66350         * lib/canonicalize.c (ELOOP): Define if not already defined.
66351         Problem reported by Bruno Haible in
66352         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66353
66354 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66355
66356         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66357         Problem reported by Perry Smith and Ville Laurikari.
66358
66359         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66360         uses.
66361
66362 2006-10-19  Bruno Haible  <bruno@clisp.org>
66363
66364         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66365         for mingw.
66366
66367 2006-10-19  Bruno Haible  <bruno@clisp.org>
66368
66369         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66370         Needed for mingw.
66371
66372 2006-10-19  Bruno Haible  <bruno@clisp.org>
66373
66374         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66375
66376 2006-10-19  Bruno Haible  <bruno@clisp.org>
66377
66378         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66379         it.
66380
66381 2006-10-19  Bruno Haible  <bruno@clisp.org>
66382
66383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66384         invocation.
66385
66386 2006-10-19  Bruno Haible  <bruno@clisp.org>
66387
66388         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66389         mountlist by default.
66390
66391 2006-10-16  Bruno Haible  <bruno@clisp.org>
66392
66393         * lib/c-strstr.c: Include c-strstr.h.
66394
66395 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66396
66397         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66398         in a slash.
66399
66400 2006-10-18  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/lock.h [C++]: Wrap definitions in extern "C".
66403
66404 2006-10-18  Bruno Haible  <bruno@clisp.org>
66405
66406         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66407         gl_LIBOBJS list.
66408
66409 2006-10-18  Bruno Haible  <bruno@clisp.org>
66410
66411         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66412
66413 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * lib/xstrtol.h: Include gettext.h.
66416         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66417         Problem reported by Eric Blake.
66418         * modules/xstrtol (Depends-on): Add gettext-h.
66419
66420 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66421
66422         * lib/strftime.c (advance): New macro.
66423         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66424         incomplete type, so you can't add 0 to it.  Problem and patch
66425         reported by Eelco Dolstra for dietlibc.
66426
66427 2006-10-18  Jim Meyering  <jim@meyering.net>
66428
66429         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66430         type for a local, and rename it: s/up/user_proc/.
66431
66432 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66433
66434         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66435         READ_UTMP_USER_PROCESS.
66436         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66437
66438 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66439
66440         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66441         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66442
66443 2006-10-17  Eric Blake  <ebb9@byu.net>
66444
66445         * lib/sigprocmask.c (sigprocmask): Fix typo.
66446
66447         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
66448
66449         * modules/clean-temp (Makefile.am): Don't add to make output...
66450         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
66451         config.h.
66452
66453 2006-10-17  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
66456         differently if DEFAULT_TEXT_DOMAIN is set.
66457
66458 2006-10-16  Bruno Haible  <bruno@clisp.org>
66459
66460         * lib/clean-temp.c: Include fwriteerror.h.
66461
66462 2006-10-16  Bruno Haible  <bruno@clisp.org>
66463
66464         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
66465
66466 2006-10-16  Bruno Haible  <bruno@clisp.org>
66467
66468         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
66469         * lib/sigprocmask.h: Include <sys/types.h>.
66470         (sigset_t): Use the system's definition if present.
66471
66472 2006-10-17  Eric Blake  <ebb9@byu.net>
66473
66474         * lib/xvasprintf.c (includes): Assume config.h.
66475         * lib/xasprintf.c (includes): Likewise.
66476
66477 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
66480         at least as wide as intmax_t.
66481
66482 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
66483
66484         (Imported from Automake.)
66485         * build-aux/gnupload: Update to version 1.1 of directive file.
66486
66487 2006-10-16  Eric Blake  <ebb9@byu.net>
66488
66489         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
66490         match Automake 1.10a.
66491
66492 2006-10-14  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/sigprocmask: New file.
66495         * lib/sigprocmask.h: New file.
66496         * lib/sigprocmask.c: New file.
66497         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
66498         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
66499         request sigprocmask.o.
66500         (gl_PREREQ_SIGPROCMASK): New macro.
66501         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
66502         (Depends-on): Add sigprocmask.
66503         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
66504         gt_SIGNALBLOCKING. Test for 'raise' only once.
66505         * lib/fatal-signal.c: Include sigprocmask.h.
66506         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
66507         unblock_fatal_signals): Define always.
66508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66509         sigprocmask.
66510
66511 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         Sync from Automake.
66514         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
66515         which incorrectly sets the mode of an existing destination
66516         directory.  In some cases the unpatched install-sh could do the
66517         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
66518         system.  We hope this is rare in practice, but it's clearly worth
66519         fixing.  Problem reported by Alex Unleashed in
66520         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
66521         Also, don't bother to check for -m bugs unless we're using -m;
66522         suggested by Stepan Kasal.
66523
66524 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66525
66526         Sync from Automake.
66527         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
66528         `-c' flag, so they appear at the same position as in %FASTDEP%
66529         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
66530         which ignores unknown options only after the first non-option.
66531         Bug report against M4 by Nelson H. F. Beebe.
66532
66533 2006-10-13  Jim Meyering  <jim@meyering.net>
66534
66535         Fix a bug in yesterday's change.
66536         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
66537         p->fts_statp->st_dev would be used uninitialized.
66538         Ensures that we always call fts_stat on the very first entry.
66539         Miklos Szeredi reported that find -xdev stopped working.
66540
66541 2006-10-12  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool (func_get_automake_snippet): Append an automatically
66544         computed EXTRA_DIST augmentation.
66545         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
66546         * modules/alloca-opt (Makefile.am): Likewise.
66547         * modules/allocsa (Makefile.am): Likewise.
66548         * modules/arcfour (Makefile.am): Likewise.
66549         * modules/arctwo (Makefile.am): Likewise.
66550         * modules/argmatch (Makefile.am): Likewise.
66551         * modules/argz (Makefile.am): Likewise.
66552         * modules/atexit (Makefile.am): Likewise.
66553         * modules/backupfile (Makefile.am): Likewise.
66554         * modules/byteswap (Makefile.am): Likewise.
66555         * modules/c-strtod (Makefile.am): Likewise.
66556         * modules/c-strtold (Makefile.am): Likewise.
66557         * modules/calloc (Makefile.am): Likewise.
66558         * modules/canon-host (Makefile.am): Likewise.
66559         * modules/canonicalize (Makefile.am): Likewise.
66560         * modules/chdir-long (Makefile.am): Likewise.
66561         * modules/chdir-safer (Makefile.am): Likewise.
66562         * modules/check-version (Makefile.am): Likewise.
66563         * modules/chown (Makefile.am): Likewise.
66564         * modules/cloexec (Makefile.am): Likewise.
66565         * modules/close-stream (Makefile.am): Likewise.
66566         * modules/closeout (Makefile.am): Likewise.
66567         * modules/crc (Makefile.am): Likewise.
66568         * modules/csharpexec (Makefile.am): Likewise.
66569         * modules/cycle-check (Makefile.am): Likewise.
66570         * modules/des (Makefile.am): Likewise.
66571         * modules/dev-ino (Makefile.am): Likewise.
66572         * modules/dirfd (Makefile.am): Likewise.
66573         * modules/dirname (Makefile.am): Likewise.
66574         * modules/dup2 (Makefile.am): Likewise.
66575         * modules/eealloc (Makefile.am): Likewise.
66576         * modules/error (Makefile.am): Likewise.
66577         * modules/euidaccess (Makefile.am): Likewise.
66578         * modules/exclude (Makefile.am): Likewise.
66579         * modules/exitfail (Makefile.am): Likewise.
66580         * modules/fcntl-safer (Makefile.am): Likewise.
66581         * modules/fcntl (Makefile.am): Likewise.
66582         * modules/file-type (Makefile.am): Likewise.
66583         * modules/fileblocks (Makefile.am): Likewise.
66584         * modules/filemode (Makefile.am): Likewise.
66585         * modules/filenamecat (Makefile.am): Likewise.
66586         * modules/fnmatch (Makefile.am): Likewise.
66587         * modules/fopen-safer (Makefile.am): Likewise.
66588         * modules/fpending (Makefile.am): Likewise.
66589         * modules/fprintftime (Makefile.am): Likewise.
66590         * modules/free (Makefile.am): Likewise.
66591         * modules/fsusage (Makefile.am): Likewise.
66592         * modules/ftruncate (Makefile.am): Likewise.
66593         * modules/fts (Makefile.am): Likewise.
66594         * modules/gc-arcfour (Makefile.am): Likewise.
66595         * modules/gc-des (Makefile.am): Likewise.
66596         * modules/gc-hmac-md5 (Makefile.am): Likewise.
66597         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
66598         * modules/gc-md4 (Makefile.am): Likewise.
66599         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66600         * modules/gc-sha1 (Makefile.am): Likewise.
66601         * modules/gc (Makefile.am): Likewise.
66602         * modules/getaddrinfo (Makefile.am): Likewise.
66603         * modules/getcwd (Makefile.am): Likewise.
66604         * modules/getdelim (Makefile.am): Likewise.
66605         * modules/getdomainname (Makefile.am): Likewise.
66606         * modules/getgroups (Makefile.am): Likewise.
66607         * modules/gethostname (Makefile.am): Likewise.
66608         * modules/gethrxtime (Makefile.am): Likewise.
66609         * modules/getline (Makefile.am): Likewise.
66610         * modules/getloadavg (Makefile.am): Likewise.
66611         * modules/getlogin_r (Makefile.am): Likewise.
66612         * modules/getndelim2 (Makefile.am): Likewise.
66613         * modules/getopt (Makefile.am): Likewise.
66614         * modules/getpagesize (Makefile.am): Likewise.
66615         * modules/getpass-gnu (Makefile.am): Likewise.
66616         * modules/getpass (Makefile.am): Likewise.
66617         * modules/getsubopt (Makefile.am): Likewise.
66618         * modules/gettime (Makefile.am): Likewise.
66619         * modules/gettimeofday (Makefile.am): Likewise.
66620         * modules/getugroups (Makefile.am): Likewise.
66621         * modules/getusershell (Makefile.am): Likewise.
66622         * modules/glob (Makefile.am): Likewise.
66623         * modules/group-member (Makefile.am): Likewise.
66624         * modules/hard-locale (Makefile.am): Likewise.
66625         * modules/hash (Makefile.am): Likewise.
66626         * modules/hmac-md5 (Makefile.am): Likewise.
66627         * modules/hmac-sha1 (Makefile.am): Likewise.
66628         * modules/human (Makefile.am): Likewise.
66629         * modules/idcache (Makefile.am): Likewise.
66630         * modules/imaxabs (Makefile.am): Likewise.
66631         * modules/imaxdiv (Makefile.am): Likewise.
66632         * modules/inet_ntop (Makefile.am): Likewise.
66633         * modules/inet_pton (Makefile.am): Likewise.
66634         * modules/intprops (Makefile.am): Likewise.
66635         * modules/inttostr (Makefile.am): Likewise.
66636         * modules/inttypes (Makefile.am): Likewise.
66637         * modules/isapipe (Makefile.am): Likewise.
66638         * modules/javaversion (Makefile.am): Likewise.
66639         * modules/lchmod (Makefile.am): Likewise.
66640         * modules/lchown (Makefile.am): Likewise.
66641         * modules/localcharset (Makefile.am): Likewise.
66642         * modules/long-options (Makefile.am): Likewise.
66643         * modules/lstat (Makefile.am): Likewise.
66644         * modules/malloc (Makefile.am): Likewise.
66645         * modules/mathl (Makefile.am): Likewise.
66646         * modules/mbchar (Makefile.am): Likewise.
66647         * modules/md2 (Makefile.am): Likewise.
66648         * modules/md4 (Makefile.am): Likewise.
66649         * modules/md5 (Makefile.am): Likewise.
66650         * modules/memcasecmp (Makefile.am): Likewise.
66651         * modules/memchr (Makefile.am): Likewise.
66652         * modules/memcmp (Makefile.am): Likewise.
66653         * modules/memcoll (Makefile.am): Likewise.
66654         * modules/memcpy (Makefile.am): Likewise.
66655         * modules/memmem (Makefile.am): Likewise.
66656         * modules/memmove (Makefile.am): Likewise.
66657         * modules/mempcpy (Makefile.am): Likewise.
66658         * modules/memrchr (Makefile.am): Likewise.
66659         * modules/memset (Makefile.am): Likewise.
66660         * modules/memxor (Makefile.am): Likewise.
66661         * modules/mkancesdirs (Makefile.am): Likewise.
66662         * modules/mkdir-p (Makefile.am): Likewise.
66663         * modules/mkdir (Makefile.am): Likewise.
66664         * modules/mkdtemp (Makefile.am): Likewise.
66665         * modules/mkstemp (Makefile.am): Likewise.
66666         * modules/mktime (Makefile.am): Likewise.
66667         * modules/modechange (Makefile.am): Likewise.
66668         * modules/mountlist (Makefile.am): Likewise.
66669         * modules/nanosleep (Makefile.am): Likewise.
66670         * modules/obstack (Makefile.am): Likewise.
66671         * modules/openat (Makefile.am): Likewise.
66672         * modules/pagealign_alloc (Makefile.am): Likewise.
66673         * modules/pathmax (Makefile.am): Likewise.
66674         * modules/physmem (Makefile.am): Likewise.
66675         * modules/poll (Makefile.am): Likewise.
66676         * modules/posixtm (Makefile.am): Likewise.
66677         * modules/posixver (Makefile.am): Likewise.
66678         * modules/putenv (Makefile.am): Likewise.
66679         * modules/quote (Makefile.am): Likewise.
66680         * modules/quotearg (Makefile.am): Likewise.
66681         * modules/raise (Makefile.am): Likewise.
66682         * modules/read-file (Makefile.am): Likewise.
66683         * modules/readline (Makefile.am): Likewise.
66684         * modules/readlink (Makefile.am): Likewise.
66685         * modules/readtokens (Makefile.am): Likewise.
66686         * modules/readutmp (Makefile.am): Likewise.
66687         * modules/realloc (Makefile.am): Likewise.
66688         * modules/regex (Makefile.am): Likewise.
66689         * modules/rename-dest-slash (Makefile.am): Likewise.
66690         * modules/rename (Makefile.am): Likewise.
66691         * modules/rijndael (Makefile.am): Likewise.
66692         * modules/rmdir (Makefile.am): Likewise.
66693         * modules/rpmatch (Makefile.am): Likewise.
66694         * modules/safe-read (Makefile.am): Likewise.
66695         * modules/safe-write (Makefile.am): Likewise.
66696         * modules/same-inode (Makefile.am): Likewise.
66697         * modules/same (Makefile.am): Likewise.
66698         * modules/save-cwd (Makefile.am): Likewise.
66699         * modules/savedir (Makefile.am): Likewise.
66700         * modules/setenv (Makefile.am): Likewise.
66701         * modules/settime (Makefile.am): Likewise.
66702         * modules/sha1 (Makefile.am): Likewise.
66703         * modules/sig2str (Makefile.am): Likewise.
66704         * modules/snprintf (Makefile.am): Likewise.
66705         * modules/stat-macros (Makefile.am): Likewise.
66706         * modules/stat-time (Makefile.am): Likewise.
66707         * modules/stdbool (Makefile.am): Likewise.
66708         * modules/stdint (Makefile.am): Likewise.
66709         * modules/stdlib-safer (Makefile.am): Likewise.
66710         * modules/stpcpy (Makefile.am): Likewise.
66711         * modules/stpncpy (Makefile.am): Likewise.
66712         * modules/strcase (Makefile.am): Likewise.
66713         * modules/strcasestr (Makefile.am): Likewise.
66714         * modules/strchrnul (Makefile.am): Likewise.
66715         * modules/strcspn (Makefile.am): Likewise.
66716         * modules/strdup (Makefile.am): Likewise.
66717         * modules/strerror (Makefile.am): Likewise.
66718         * modules/strftime (Makefile.am): Likewise.
66719         * modules/strndup (Makefile.am): Likewise.
66720         * modules/strnlen (Makefile.am): Likewise.
66721         * modules/strpbrk (Makefile.am): Likewise.
66722         * modules/strsep (Makefile.am): Likewise.
66723         * modules/strstr (Makefile.am): Likewise.
66724         * modules/strtod (Makefile.am): Likewise.
66725         * modules/strtoimax (Makefile.am): Likewise.
66726         * modules/strtok_r (Makefile.am): Likewise.
66727         * modules/strtol (Makefile.am): Likewise.
66728         * modules/strtoll (Makefile.am): Likewise.
66729         * modules/strtoul (Makefile.am): Likewise.
66730         * modules/strtoull (Makefile.am): Likewise.
66731         * modules/strtoumax (Makefile.am): Likewise.
66732         * modules/strverscmp (Makefile.am): Likewise.
66733         * modules/sys_socket (Makefile.am): Likewise.
66734         * modules/sys_stat (Makefile.am): Likewise.
66735         * modules/sysexits (Makefile.am): Likewise.
66736         * modules/time_r (Makefile.am): Likewise.
66737         * modules/timegm (Makefile.am): Likewise.
66738         * modules/timespec (Makefile.am): Likewise.
66739         * modules/tmpfile-safer (Makefile.am): Likewise.
66740         * modules/trim (Makefile.am): Likewise.
66741         * modules/unistd-safer (Makefile.am): Likewise.
66742         * modules/unlinkdir (Makefile.am): Likewise.
66743         * modules/unlocked-io (Makefile.am): Likewise.
66744         * modules/userspec (Makefile.am): Likewise.
66745         * modules/utime (Makefile.am): Likewise.
66746         * modules/utimecmp (Makefile.am): Likewise.
66747         * modules/utimens (Makefile.am): Likewise.
66748         * modules/vasnprintf (Makefile.am): Likewise.
66749         * modules/vasprintf (Makefile.am): Likewise.
66750         * modules/vsnprintf (Makefile.am): Likewise.
66751         * modules/xalloc (Makefile.am): Likewise.
66752         * modules/xgetcwd (Makefile.am): Likewise.
66753         * modules/xnanosleep (Makefile.am): Likewise.
66754         * modules/xreadlink (Makefile.am): Likewise.
66755         * modules/xstrtod (Makefile.am): Likewise.
66756         * modules/xstrtol (Makefile.am): Likewise.
66757         * modules/xstrtold (Makefile.am): Likewise.
66758         * modules/yesno (Makefile.am): Likewise.
66759         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
66760
66761 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         * modules/error (Makefile.am): Distribute files through
66764         EXTRA_DIST, not lib_SOURCES.
66765
66766 2006-10-12  Eric Blake  <ebb9@byu.net>
66767
66768         * modules/error (Makefile.am): Distribute files in /lib.
66769         * modules/obstack (Makefile.am): Likewise.
66770
66771 2006-10-12  Bruno Haible  <bruno@clisp.org>
66772
66773         * modules/acl (Makefile.am): Distribute all files in lib/ through
66774         EXTRA_DIST.
66775         * modules/arcfour (Makefile.am): Likewise.
66776         * modules/arctwo (Makefile.am): Likewise.
66777         * modules/argmatch (Makefile.am): Likewise.
66778         * modules/argz (Makefile.am): Likewise.
66779         * modules/atexit (Makefile.am): Likewise.
66780         * modules/backupfile (Makefile.am): Likewise.
66781         * modules/c-strtod (Makefile.am): Likewise.
66782         * modules/c-strtold (Makefile.am): Likewise.
66783         * modules/calloc (Makefile.am): Likewise.
66784         * modules/canon-host (Makefile.am): Likewise.
66785         * modules/canonicalize (Makefile.am): Likewise.
66786         * modules/chdir-long (Makefile.am): Likewise.
66787         * modules/chdir-safer (Makefile.am): Likewise.
66788         * modules/check-version (Makefile.am): Likewise.
66789         * modules/chown (Makefile.am): Likewise.
66790         * modules/cloexec (Makefile.am): Likewise.
66791         * modules/close-stream (Makefile.am): Likewise.
66792         * modules/closeout (Makefile.am): Likewise.
66793         * modules/crc (Makefile.am): Likewise.
66794         * modules/cycle-check (Makefile.am): Likewise.
66795         * modules/des (Makefile.am): Likewise.
66796         * modules/dirfd (Makefile.am): Likewise.
66797         * modules/dirname (Makefile.am): Likewise.
66798         * modules/dup2 (Makefile.am): Likewise.
66799         * modules/euidaccess (Makefile.am): Likewise.
66800         * modules/exclude (Makefile.am): Likewise.
66801         * modules/exitfail (Makefile.am): Likewise.
66802         * modules/fcntl-safer (Makefile.am): Likewise.
66803         * modules/file-type (Makefile.am): Likewise.
66804         * modules/fileblocks (Makefile.am): Likewise.
66805         * modules/filemode (Makefile.am): Likewise.
66806         * modules/filenamecat (Makefile.am): Likewise.
66807         * modules/fnmatch (Makefile.am): Likewise.
66808         * modules/fopen-safer (Makefile.am): Likewise.
66809         * modules/fpending (Makefile.am): Likewise.
66810         * modules/fprintftime (Makefile.am): Likewise.
66811         * modules/free (Makefile.am): Likewise.
66812         * modules/fsusage (Makefile.am): Likewise.
66813         * modules/ftruncate (Makefile.am): Likewise.
66814         * modules/fts (Makefile.am): Likewise.
66815         * modules/gc (Makefile.am): Likewise.
66816         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
66817         * modules/getaddrinfo (Makefile.am): Likewise.
66818         * modules/getcwd (Makefile.am): Likewise.
66819         * modules/getdelim (Makefile.am): Likewise.
66820         * modules/getdomainname (Makefile.am): Likewise.
66821         * modules/getgroups (Makefile.am): Likewise.
66822         * modules/gethostname (Makefile.am): Likewise.
66823         * modules/gethrxtime (Makefile.am): Likewise.
66824         * modules/getline (Makefile.am): Likewise.
66825         * modules/getloadavg (Makefile.am): Likewise.
66826         * modules/getlogin_r (Makefile.am): Likewise.
66827         * modules/getopt (Makefile.am): Likewise.
66828         * modules/getpass (Makefile.am): Likewise.
66829         * modules/getpass-gnu (Makefile.am): Likewise.
66830         * modules/getsubopt (Makefile.am): Likewise.
66831         * modules/gettime (Makefile.am): Likewise.
66832         * modules/gettimeofday (Makefile.am): Likewise.
66833         * modules/getugroups (Makefile.am): Likewise.
66834         * modules/getusershell (Makefile.am): Likewise.
66835         * modules/glob (Makefile.am): Likewise.
66836         * modules/group-member (Makefile.am): Likewise.
66837         * modules/hard-locale (Makefile.am): Likewise.
66838         * modules/hash (Makefile.am): Likewise.
66839         * modules/hmac-md5 (Makefile.am): Likewise.
66840         * modules/hmac-sha1 (Makefile.am): Likewise.
66841         * modules/human (Makefile.am): Likewise.
66842         * modules/idcache (Makefile.am): Likewise.
66843         * modules/imaxabs (Makefile.am): Likewise.
66844         * modules/imaxdiv (Makefile.am): Likewise.
66845         * modules/inet_ntop (Makefile.am): Likewise.
66846         * modules/inet_pton (Makefile.am): Likewise.
66847         * modules/inttostr (Makefile.am): Likewise.
66848         * modules/isapipe (Makefile.am): Likewise.
66849         * modules/lchown (Makefile.am): Likewise.
66850         * modules/long-options (Makefile.am): Likewise.
66851         * modules/lstat (Makefile.am): Likewise.
66852         * modules/malloc (Makefile.am): Likewise.
66853         * modules/mathl (Makefile.am): Likewise.
66854         * modules/mbchar (Makefile.am): Likewise.
66855         * modules/md2 (Makefile.am): Likewise.
66856         * modules/md4 (Makefile.am): Likewise.
66857         * modules/md5 (Makefile.am): Likewise.
66858         * modules/memcasecmp (Makefile.am): Likewise.
66859         * modules/memchr (Makefile.am): Likewise.
66860         * modules/memcmp (Makefile.am): Likewise.
66861         * modules/memcoll (Makefile.am): Likewise.
66862         * modules/memcpy (Makefile.am): Likewise.
66863         * modules/memmem (Makefile.am): Likewise.
66864         * modules/memmove (Makefile.am): Likewise.
66865         * modules/mempcpy (Makefile.am): Likewise.
66866         * modules/memrchr (Makefile.am): Likewise.
66867         * modules/memset (Makefile.am): Likewise.
66868         * modules/memxor (Makefile.am): Likewise.
66869         * modules/mkancesdirs (Makefile.am): Likewise.
66870         * modules/mkdir (Makefile.am): Likewise.
66871         * modules/mkdir-p (Makefile.am): Likewise.
66872         * modules/mkdtemp (Makefile.am): Likewise.
66873         * modules/mkstemp (Makefile.am): Likewise.
66874         * modules/mktime (Makefile.am): Likewise.
66875         * modules/modechange (Makefile.am): Likewise.
66876         * modules/mountlist (Makefile.am): Likewise.
66877         * modules/nanosleep (Makefile.am): Likewise.
66878         * modules/openat (Makefile.am): Likewise.
66879         * modules/pagealign_alloc (Makefile.am): Likewise.
66880         * modules/physmem (Makefile.am): Likewise.
66881         * modules/poll (Makefile.am): Likewise.
66882         * modules/posixtm (Makefile.am): Likewise.
66883         * modules/posixver (Makefile.am): Likewise.
66884         * modules/putenv (Makefile.am): Likewise.
66885         * modules/quote (Makefile.am): Likewise.
66886         * modules/quotearg (Makefile.am): Likewise.
66887         * modules/raise (Makefile.am): Likewise.
66888         * modules/read-file (Makefile.am): Likewise.
66889         * modules/readline (Makefile.am): Likewise.
66890         * modules/readlink (Makefile.am): Likewise.
66891         * modules/readtokens (Makefile.am): Likewise.
66892         * modules/readutmp (Makefile.am): Likewise.
66893         * modules/realloc (Makefile.am): Likewise.
66894         * modules/regex (Makefile.am): Likewise.
66895         * modules/rename (Makefile.am): Likewise.
66896         * modules/rename-dest-slash (Makefile.am): Likewise.
66897         * modules/rijndael (Makefile.am): Likewise.
66898         * modules/rmdir (Makefile.am): Likewise.
66899         * modules/rpmatch (Makefile.am): Likewise.
66900         * modules/safe-read (Makefile.am): Likewise.
66901         * modules/safe-write (Makefile.am): Likewise.
66902         * modules/same (Makefile.am): Likewise.
66903         * modules/save-cwd (Makefile.am): Likewise.
66904         * modules/savedir (Makefile.am): Likewise.
66905         * modules/setenv (Makefile.am): Likewise.
66906         * modules/settime (Makefile.am): Likewise.
66907         * modules/sha1 (Makefile.am): Likewise.
66908         * modules/sig2str (Makefile.am): Likewise.
66909         * modules/snprintf (Makefile.am): Likewise.
66910         * modules/stdlib-safer (Makefile.am): Likewise.
66911         * modules/stpcpy (Makefile.am): Likewise.
66912         * modules/stpncpy (Makefile.am): Likewise.
66913         * modules/strcase (Makefile.am): Likewise.
66914         * modules/strcasestr (Makefile.am): Likewise.
66915         * modules/strchrnul (Makefile.am): Likewise.
66916         * modules/strcspn (Makefile.am): Likewise.
66917         * modules/strdup (Makefile.am): Likewise.
66918         * modules/strerror (Makefile.am): Likewise.
66919         * modules/strftime (Makefile.am): Likewise.
66920         * modules/strndup (Makefile.am): Likewise.
66921         * modules/strnlen (Makefile.am): Likewise.
66922         * modules/strpbrk (Makefile.am): Likewise.
66923         * modules/strsep (Makefile.am): Likewise.
66924         * modules/strstr (Makefile.am): Likewise.
66925         * modules/strtod (Makefile.am): Likewise.
66926         * modules/strtoimax (Makefile.am): Likewise.
66927         * modules/strtok_r (Makefile.am): Likewise.
66928         * modules/strtol (Makefile.am): Likewise.
66929         * modules/strtoll (Makefile.am): Likewise.
66930         * modules/strtoul (Makefile.am): Likewise.
66931         * modules/strtoull (Makefile.am): Likewise.
66932         * modules/strtoumax (Makefile.am): Likewise.
66933         * modules/strverscmp (Makefile.am): Likewise.
66934         * modules/time_r (Makefile.am): Likewise.
66935         * modules/timegm (Makefile.am): Likewise.
66936         * modules/tmpfile-safer (Makefile.am): Likewise.
66937         * modules/unistd-safer (Makefile.am): Likewise.
66938         * modules/unlinkdir (Makefile.am): Likewise.
66939         * modules/userspec (Makefile.am): Likewise.
66940         * modules/utime (Makefile.am): Likewise.
66941         * modules/utimecmp (Makefile.am): Likewise.
66942         * modules/utimens (Makefile.am): Likewise.
66943         * modules/vasnprintf (Makefile.am): Likewise.
66944         * modules/vasprintf (Makefile.am): Likewise.
66945         * modules/vsnprintf (Makefile.am): Likewise.
66946         * modules/xalloc (Makefile.am): Likewise.
66947         * modules/xgetcwd (Makefile.am): Likewise.
66948         * modules/xnanosleep (Makefile.am): Likewise.
66949         * modules/xreadlink (Makefile.am): Likewise.
66950         * modules/xstrtod (Makefile.am): Likewise.
66951         * modules/xstrtol (Makefile.am): Likewise.
66952         * modules/xstrtold (Makefile.am): Likewise.
66953         * modules/yesno (Makefile.am): Likewise.
66954
66955 2006-10-12  Jim Meyering  <jim@meyering.net>
66956
66957         * m4/getloadavg.m4: Revert the change below.
66958
66959         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
66960         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
66961         fail with a symlink, which is what coreutils' ./bootstrap now
66962         creates by default.
66963
66964 2006-10-12  Bruno Haible  <bruno@clisp.org>
66965
66966         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
66967         mingw.
66968         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
66969         MSVC and mingw explicitly.
66970
66971 2006-10-11  Simon Josefsson  <jas@extundo.com>
66972             Bruno Haible  <bruno@clisp.org>
66973
66974         Add support for multiple gnulib-tool invocations in the scope of a
66975         single configure.ac file.
66976         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
66977         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
66978         with the same contents as the _LIBADD variable.
66979         (func_emit_initmacro_start, func_emit_initmacro_end,
66980         func_emit_initmacro_done): New functions.
66981         (func_import, func_create_testdir): Invoke them. Allow the identifiers
66982         gl_LIBOBJS and gl_LTLIBOBJS.
66983
66984 2006-10-11  Bruno Haible  <bruno@clisp.org>
66985
66986         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
66987         (func_create_testdir): Don't create po/Makefile.am, don't invoke
66988         autoreconf. Instead, invoke autopoint explicitly but move back the
66989         *.m4 files from gnulib.
66990
66991 2006-10-11  Bruno Haible  <bruno@clisp.org>
66992
66993         * gnulib-tool (func_usage): Make module names after --create-testdir
66994         optional.
66995         (func_create_testdir): If no module was specified, use nearly all
66996         modules.
66997
66998 2006-10-12  Jim Meyering  <jim@meyering.net>
66999
67000         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67001         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67002         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67003         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67004         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67005         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67006         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67007         (fts_set_stat_required): New function.
67008         (fts_open): Defer the calls to fts_stat, if possible or requested.
67009         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67010         into fts_stat itself.
67011         (fts_read): Perform any required (deferred) fts_stat call.
67012         (fts_build): Likewise, for the directory we're about to open and read.
67013         In the readdir loop, carefully decide whether each entry will require
67014         an eventual call to fts_stat, using dirent.d_type info if available.
67015         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67016         a command line argument into this function.  Update all callers.
67017         Map a return value of FTS_DOT to FTS_D for a command line argument.
67018         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67019         Thanks to Miklos Szeredi for his tenacity and for the initial
67020         bug report about "find" failing on a FUSE-based file system.
67021
67022         * lib/fts.c (fts_open): Use consistent indentation.
67023
67024 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67027         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67028         reported by Jim Meyering.  All uses of cache variables renamed
67029         to match Autoconf's.
67030         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67031         the other one.
67032
67033         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67034         Fix misspelling in diagnostic.
67035
67036 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67039         defined.  Problem reported by Matthew Woehlke.
67040
67041         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67042         Add support for Tandem NonStop R series.
67043         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67044         Use new macro.
67045
67046         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67047         (has_trailing_slash): Omit size arg; all callers changed.
67048         Omit 'inline', since it doesn't help performance and we'd
67049         need to configure it.
67050         Don't count //, ///, etc. as having a trailing slash.
67051         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67052         (rpl_rename_dest_slash): On failure, use rename's errno rather
67053         than (in some cases) an incorrect or junk errno.
67054         Simplify code by removing need to compute length; this does
67055         cause it to make two passes instead of one over the file name,
67056         but it's worth it.
67057
67058         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67059         change, since Autoconf's version may no longer be appropriate now
67060         that we are using CVS Autoconf's version.  Add support for Tandem.
67061
67062 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67063             Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67066         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67067         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67068         gl_AC_TYPE_LONG_LONG.
67069
67070         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67071         instead of HAVE_LONG_LONG.
67072         * lib/printf-args.c (printf_fetchargs): Likewise.
67073         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67074         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67075         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67076         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67077         gl_AC_TYPE_LONG_LONG.
67078
67079 2006-10-11  Bruno Haible  <bruno@clisp.org>
67080
67081         * m4/longlong.m4: Add comments.
67082         * m4/ulonglong.m4: Likewise.
67083
67084 2006-10-10  Bruno Haible  <bruno@clisp.org>
67085
67086         Make it possible to #define stpcpy, strdup to aliases.
67087         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67088         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67089
67090 2006-10-10  Bruno Haible  <bruno@clisp.org>
67091
67092         Make it possible to #define gcd to an alias.
67093         * lib/gcd.c: Include config.h.
67094
67095 2006-10-10  Bruno Haible  <bruno@clisp.org>
67096
67097         Make it possible to #define c_isascii to an alias.
67098         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67099         defined. Undefine the macros before defining them, to avoid gcc
67100         warnings.
67101         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67102         define NO_C_CTYPE_MACROS early.
67103
67104 2006-10-10  Bruno Haible  <bruno@clisp.org>
67105
67106         Make it possible to #define set_program_name to an alias.
67107         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67108         ENABLE_RELOCATABLE early.
67109
67110 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67111
67112         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67113         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67114         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67115         More generally, don't assume that 64-bit signed int is available
67116         if unsigned int is, and vice versa.
67117         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67118         unsigned symbols, not on their signed counterparts.
67119         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67120         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67121         (UINT64_C, UINTMAX_C):
67122         Likewise.
67123         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67124         unsigned counterparts.
67125         (Have_long_long, Unsigned): New macros.
67126         (Int): Renamed from INT.
67127         (strtoimax): Use the new macros.
67128         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67129         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67130         * modules/inttypes (inttypes.h): Substitute
67131         HAVE_UNSIGNED_LONG_LONG_INT.
67132         * modules/stdint (stdint.h): Likewise.
67133         (Files): Add m4/ulonglong.m4.
67134
67135 2006-10-10  Bruno Haible  <bruno@clisp.org>
67136
67137         Fix a gcc -Wshadow warning.
67138         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67139         to 'bucket'.
67140         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67141         gl_linked_indexof_from_to): Likewise.
67142         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67143         Likewise.
67144         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67145         Likewise.
67146         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67147         Reported by Eric Blake.
67148
67149 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67152         for NetBSD.  Problem reported by Bruno Haible.
67153
67154 2006-10-09  Jim Meyering  <jim@meyering.net>
67155
67156         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67157         Patch from Bruno Haible.
67158
67159 2006-10-09  Jim Meyering  <jim@meyering.net>
67160
67161         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67162         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67163         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67164
67165 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67166
67167         Don't include <config.h> twice; this doesn't work in some cases,
67168         e.g., when config.h has "#define intmax_t long long int" and
67169         we include <config.h>, <inttypes.h>, <config.h> in that order.
67170         Problem reported by Matthew Woehlke in:
67171         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67172         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67173         * lib/fts-cycle.c: Don't include config.h.
67174         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67175         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67176         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67177         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67178         inttypes.h.
67179         * lib/xstrtoumax.c: Likewise.
67180         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67181         __strtol and the like, so that this module is more like its siblings.
67182         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67183         Remove; no longer needed now that we assume gnulib inttypes.h.
67184
67185 2006-10-08  Bruno Haible  <bruno@clisp.org>
67186
67187         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67188         option.
67189
67190 2006-10-07  Jim Meyering  <jim@meyering.net>
67191
67192         * modules/inttypes (inttypes.h): Revert what seems to have been
67193         an inadvertent part of today's change: use "|", not "/" in the
67194         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67195
67196 2006-10-07  Bruno Haible  <bruno@clisp.org>
67197
67198         * modules/sublist: New file.
67199
67200 2006-10-07  Bruno Haible  <bruno@clisp.org>
67201
67202         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67203         * modules/argz (argz.h): Likewise.
67204         * modules/arpa_inet (arpa/inet.h): Likewise.
67205         * modules/byteswap (byteswap.h): Likewise.
67206         * modules/configmake (configmake.h): Likewise.
67207         * modules/fcntl (fcntl.h): Likewise.
67208         * modules/fnmatch (fnmatch.h): Likewise.
67209         * modules/getopt (getopt.h): Likewise.
67210         * modules/glob (glob.h): Likewise.
67211         * modules/inttypes (inttypes.h): Likewise.
67212         * modules/netinet_in (netinet/in.h): Likewise.
67213         * modules/poll (poll.h): Likewise.
67214         * modules/stdbool (stdbool.h): Likewise.
67215         * modules/stdint (stdint.h): Likewise.
67216         * modules/sys_select (sys/select.h): Likewise.
67217         * modules/sys_socket (sys/socket.h): Likewise.
67218         * modules/sys_stat (sys/stat.h): Likewise.
67219         * modules/sysexits (sysexits.h): Likewise.
67220         * modules/unistd (unistd.h): Likewise.
67221         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67222         Add a "DO NOT EDIT" comment to the generated file.
67223         (func_import): Likewise for gnulib-comp.m4.
67224
67225 2006-10-07  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/gl_sublist.h: New file.
67228         * lib/gl_sublist.c: New file.
67229
67230 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67231
67232         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67233         name (relative to the original working directory) and the file
67234         name component (relative to the temporary working directory).  All
67235         callers changed.
67236         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67237         * lib/mkdir-p.c (make_dir_parents): Likewise.
67238         * lib/mkdir-p.h (make_dir_parents): Likewise.
67239
67240 2006-10-06  Eric Blake  <ebb9@byu.net>
67241
67242         Define several macros for use by the clean-temp module.
67243         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67244         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67245         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67246
67247         * lib/clean-temp.h (close_stream_temp): New declaration.
67248         * lib/clean-temp.c (includes): Pull in headers according to what
67249         other modules are in use.
67250         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67251
67252 2006-10-06  Bruno Haible  <bruno@clisp.org>
67253
67254         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67255         instead of fopen, fwriteerror.
67256
67257 2006-10-06  Bruno Haible  <bruno@clisp.org>
67258
67259         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67260         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67261         int.
67262         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67263         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67264         Return an error indicator.
67265         Suggested by Eric Blake.
67266
67267 2006-10-06  Bruno Haible  <bruno@clisp.org>
67268
67269         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67270         Reported by Eric Blake.
67271
67272 2006-10-06  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/closeout (Description): Mention stderr too.
67275
67276 2006-10-06  Bruno Haible  <bruno@clisp.org>
67277         and Paul Eggert  <eggert@cs.ucla.edu>
67278
67279         * lib/closeout.c (close_stdout): Also close stderr.
67280         * lib/closeout.h: Update comment.
67281
67282 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67285         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67286         * lib/dirchownmod.c: Include lchown.h.
67287         * lib/lchown.c: Don't include files that lchown.h now includes.
67288         Don't declare chown, since lchown.h now does that.
67289         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67290         (lchown): Define to rpl_chown if lchown is declared but
67291         does not exist.  Declare using a prototype if lchown is not
67292         declared.  Add a copyright notice.
67293         * lib/mkstemp.h: Include <unistd.h>.
67294         * lib/openat.c: Include lchown.h.
67295
67296         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67297         we now test for that separately.
67298         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67299         rather than O_NOFOLLOW, when testing whether it's possible to
67300         avoid a race condition reliably.
67301         * lib/savewd.c (savewd_chdir): Likewise.
67302
67303         Remove macros that are no longer needed now that stdint.h is
67304         reliable.
67305         * lib/fsusage.c (UINTMAX_MAX): Remove.
67306         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67307         * lib/utimecmp.c (SIZE_MAX): Remove.
67308
67309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67310
67311         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67312         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67313         O_NOATIME works.
67314
67315 2006-10-05  Bruno Haible  <bruno@clisp.org>
67316
67317         * lib/gl_list.h (gl_sortedlist_search_from_to,
67318         gl_sortedlist_indexof_from_to): New declarations.
67319         (gl_list_implementation): New fields sortedlist_search_from_to,
67320         sortedlist_indexof_from_to.
67321         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67322         inline functions.
67323         * lib/gl_list.c (gl_sortedlist_search_from_to,
67324         gl_sortedlist_indexof_from_to): New functions.
67325         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67326         function.
67327         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67328         (gl_array_sortedlist_search_from_to): New function.
67329         (gl_array_list_implementation): Update.
67330         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67331         function.
67332         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67333         (gl_carray_sortedlist_search_from_to): New function.
67334         (gl_carray_list_implementation): Update.
67335         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67336         gl_linked_sortedlist_indexof_from_to): New functions.
67337         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67338         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67339         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67340         gl_tree_sortedlist_indexof_from_to): New functions.
67341         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67342         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67343         Update.
67344         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67345         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67346         Update.
67347
67348 2006-10-05  Bruno Haible  <bruno@clisp.org>
67349
67350         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67351         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67352         (struct gl_list_implementation): Add fields search_from_to,
67353         indexof_from_to. Remove fields search, indexof.
67354         (gl_list_search): Use the search_from_to method.
67355         (gl_list_search_from, gl_list_search_from_to): New functions.
67356         (gl_list_indexof): Use the indexof_from_to method.
67357         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67358         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67359         (gl_list_search_from, gl_list_search_from_to): New functions.
67360         (gl_list_indexof): Use the indexof_from_to method.
67361         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67362         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67363         gl_array_indexof. Add start_index, end_index arguments.
67364         (gl_array_search_from_to): Renamed from gl_array_search. Add
67365         start_index, end_index arguments.
67366         (gl_array_remove, gl_array_list_implementation): Update.
67367         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67368         gl_carray_indexof. Add start_index, end_index arguments.
67369         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67370         start_index, end_index arguments.
67371         (gl_carray_remove, gl_carray_list_implementation): Update.
67372         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67373         gl_linked_search. Add start_index, end_index arguments.
67374         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67375         start_index, end_index arguments.
67376         (gl_linked_remove): Update.
67377         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67378         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67379         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67380         field to 'size_t'.
67381         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67382         gl_tree_search. Add start_index, end_index arguments.
67383         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67384         start_index, end_index arguments.
67385         (gl_tree_remove): Update.
67386         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67387         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67388         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67389         function.
67390         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67391         gl_tree_search. Add start_index, end_index arguments.
67392         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67393         start_index, end_index arguments.
67394         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67395         Update.
67396         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67397
67398 2006-10-05  Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67401
67402         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67403         fwriteerror_temp): New declarations.
67404         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67405         (descriptors): New variable.
67406         (cleanup): First, close the descriptors.
67407         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67408         fclose_temp, fwriteerror_temp): New functions.
67409
67410 2006-10-04  Jim Meyering  <jim@meyering.net>
67411
67412         * lib/fts.c (fts_open): Tiny comment change.
67413
67414 2006-10-04  Bruno Haible  <bruno@clisp.org>
67415
67416         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67417         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67418         gl_LOCK_BODY.
67419         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67420         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67421         gl_LOCK_EARLY_BODY.
67422         (gl_LOCK): Require gl_LOCK_BODY.
67423
67424 2006-10-04  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67427         (gl_oset_search_atleast): New declaration.
67428         (struct gl_oset_implementation): Add field 'search_atleast'.
67429         (gl_oset_search_atleast): New inline function.
67430         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67431         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67432         (gl_array_oset_implementation): Update.
67433         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67434         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67435         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67436
67437 2006-10-04  Bruno Haible  <bruno@clisp.org>
67438
67439         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67440
67441 2006-10-03  Bruno Haible  <bruno@clisp.org>
67442
67443         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67444         from gl_avltreehash_list_implementation.
67445
67446 2006-10-03  Bruno Haible  <bruno@clisp.org>
67447
67448         * lib/gl_oset.c (gl_oset_add): Fix return type.
67449
67450 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
67451
67452         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
67453
67454 2006-10-02  Eric Blake  <ebb9@byu.net>
67455
67456         * modules/strnlen (Depends-on): Add extensions.
67457
67458 2006-10-02  Eric Blake  <ebb9@byu.net>
67459
67460         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
67461         definition in 2.60+.
67462
67463 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
67464
67465         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
67466         checks.
67467
67468 2006-10-02  Bruno Haible  <bruno@clisp.org>
67469
67470         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
67471         to the AUTOMAKE_OPTIONS.
67472         Reported by Jim Meyering.
67473
67474 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         Work around bug in Solaris 10 /proc file system:
67477         /proc/self/fd/NNN/.. isn't the parent directory of
67478         the directory whose file descriptor is NNN.  This needs to
67479         be worked around at run time, not compile time, since a
67480         program might be built on Solaris 8, where things work, and
67481         run on Solaris 10.
67482         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
67483         to use the following interface instead:
67484         (OPENAT_BUFFER_SIZE): New macro.
67485         (openat_proc_name): New function.
67486         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
67487         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
67488         Likewise.
67489         * lib/openat-proc.c: New file.
67490         * modules/openat (Files): Add lib/openat-proc.c.
67491         (Depends-on): Add same-inode, stdbool.
67492         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
67493
67494 2006-09-29  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
67497         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
67498         argument. Set stdout_closed before testing for ferror, not after.
67499         (fwriteerror, fwriteerror_no_ebadf): New functions.
67500
67501 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67502
67503         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
67504
67505 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
67506
67507         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
67508         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
67509
67510 2006-09-28  Jim Meyering  <jim@meyering.net>
67511
67512         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
67513         Include <unistd.h>.
67514
67515 2006-09-28  Bruno Haible  <bruno@clisp.org>
67516
67517         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
67518         * modules/linkedhash-list (Depends-on): Likewise.
67519         * modules/rbtreehash-list (Depends-on): Likewise.
67520
67521 2006-09-28  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/strndup.h: Simplify the redefinition of strndup.
67524         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
67525         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
67526
67527 2006-09-28  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
67530         * lib/gl_linkedhash_list.c: Likewise.
67531         * lib/gl_rbtreehash_list.c: Likewise.
67532
67533 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
67536         getaddrinfo.
67537
67538         * lib/__fpending.h: Don't include <stdio_ext.h> unless
67539         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
67540         it causes <stdio_ext.h> to cause a compile-time error.
67541         Problem reported by Nelson H. F. Beebe.
67542         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
67543         of HAVE_DECL___PENDING.
67544
67545         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
67546         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
67547         declaration.
67548
67549 2006-09-27  Jim Meyering  <jim@meyering.net>
67550
67551         This file could end up with a definition for a function
67552         named __strndup, rather than rpl_strndup on a system with
67553         incomplete weak_alias support.
67554         * lib/strndup.c (strndup): Rename from __strndup.
67555         Remove #defines that used to map __strndup to strndup.
67556         Don't use K&R prototypes.
67557         Remove LIBC-related code, since this file is not sync'd with glibc.
67558         * lib/strndup.h: Revamp, accordingly.
67559         * m4/strndup.m4: Modernize.
67560
67561 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * modules/savewd (Depends-on): Add 'raise'.
67564         * lib/savewd.c: Include <signal.h>, for 'raise'.
67565
67566 2006-09-26  Jim Meyering  <jim@meyering.net>
67567
67568         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
67569         when we detect Darwin 8.7.0's acl_get_file bug.
67570         Rearrange to perform the new (below) run-test while $LIBS
67571         contains any acl-related library.  Set USE_ACL at the end.
67572         (gl_ACL_GET_FILE): New function.
67573
67574 2006-09-26  Eric Blake  <ebb9@byu.net>
67575
67576         * lib/verror.c: Include <config.h> unconditionally.
67577
67578 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
67579
67580         * modules/clock-time (Maintainer): Add self.
67581         * modules/getlogin_r (Depends-on): Add extensions.
67582
67583 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67584
67585         * modules/clock-time: New module.
67586         * modules/nanosleep (Depends-on): Add clock-time.
67587         * modules/gethrxtime (Depends-on): Likewise.
67588         * modules/gettime (Depends-on): Likewise.
67589         * modules/settime (Depends-on): Likewise.
67590
67591         * modules/fts-lgpl: Depend on openat.
67592         * modules/mkancesdirs: Depend on savewd.
67593         * modules/mkdir-p: Likewise.
67594
67595 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67596
67597         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
67598
67599         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
67600         `gl_have_arbitrary_file_name_length_limit' to
67601         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
67602         actually works between configure runs.
67603
67604 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67605             Bruno Haible  <bruno@clisp.org>
67606
67607         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
67608
67609 2006-09-25  Jim Meyering  <jim@meyering.net>
67610
67611         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
67612         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
67613
67614 2006-09-25  Eric Blake  <ebb9@byu.net>
67615
67616         * gnulib-tool (func_import, func_create_testdir): Fix typos in
67617         exec's in 2006-09-18 patch when shuffling fds.
67618
67619 2006-09-25  Bruno Haible  <bruno@clisp.org>
67620
67621         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
67622         Reported by Jim Meyering.
67623
67624 2006-09-24  Jim Meyering  <jim@meyering.net>
67625
67626         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
67627         compare a pointer against a literal "0".  That caused failures with
67628         at least HP-UX's hpcc.
67629
67630 2006-09-22  Simon Josefsson  <jas@extundo.com>
67631
67632         * modules/gc-sha1:
67633         * modules/gc-md4:
67634         * modules/gc-hmac-sha1:
67635         * modules/gc-hmac-md5:
67636         * modules/gc-des:
67637         * modules/gc-arcfour: Distribute more files.
67638
67639 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67640
67641         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
67642         (gl_linked_iterator_from_to): Initialize struct completely.
67643         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
67644         (gl_tree_iterator_from_to): Likewise
67645         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
67646         * lib/gl_array_list.c [lint] (gl_array_iterator)
67647         (gl_array_iterator_from_to): Likewise.
67648         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
67649         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
67650         (gl_carray_iterator_from_to): Likewise.
67651
67652         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
67653         * lib/md4.c (md4_process_block): Remove unused variable.
67654         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
67655         parentheses for clarity.
67656
67657 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67658
67659         * modules/bison-i18n (Depends-on): Add gettext.
67660
67661 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67662
67663         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
67664         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
67665         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
67666         also add missing comma that caused broken test.
67667         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
67668         stdlib.h, for `abort'.
67669         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
67670         variables.
67671         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
67672         include unistd.h if present, for `rmdir'.
67673         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
67674         variables.
67675         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
67676         in the process include standard headers for prototypes.
67677         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
67678         gets declared on GNU/Linux.
67679         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
67680         unistd.h, for `rmdir'.
67681         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
67682
67683         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
67684         always true.
67685         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
67686
67687         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
67688
67689 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67690
67691         * gnulib-tool (func_version): Create output all at once.  This
67692         may help avoid triggering unnecessary SIGPIPEs, and at any
67693         rate it doesn't hurt.
67694
67695 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67696             Bruno Haible  <bruno@clisp.org>
67697
67698         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
67699         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67700         * m4/signed.m4 (bh_C_SIGNED): Likewise.
67701
67702         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
67703         (gl_FUNC_VASPRINTF): Invoke it.
67704
67705 2006-09-22  Bruno Haible  <bruno@clisp.org>
67706
67707         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
67708         getloadavg.c as first argument.
67709
67710 2006-09-22  Bruno Haible  <bruno@clisp.org>
67711
67712         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
67713         at the beginning of the gl_INIT macro.
67714         * modules/getloadavg (configure.ac): Pass $gl_source_base to
67715         gl_GETLOADAVG.
67716
67717 2006-09-22  Bruno Haible  <bruno@clisp.org>
67718
67719         * gnulib-tool (func_create_megatestdir): Don't include the config-h
67720         module.
67721         Suggested by Ralf Wildenhues.
67722
67723 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
67724
67725         Import this patch from libc:
67726
67727         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
67728
67729         * lib/regex_internal.c (re_string_reconstruct): Handle
67730         offset < pstr->valid_raw_len && pstr->offsets_needed case.
67731         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
67732         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
67733         re_string_context_at.
67734
67735         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
67736         now requires it.
67737         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
67738         gl_REGEX now does it for us.
67739         (gl_REGEX): Add test taken from
67740         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
67741
67742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
67743         Check that large offsets work.  Modernize Autoconf usages.
67744         Prefer "yes" to mean a good thing rather than a bad.
67745         Don't put "#define mkstemp" in config.h, as this might interfere
67746         with standard system headers that "#define mkstemp mkstemp64".
67747
67748         * modules/mkstemp (Depends-on): Add extensions, so that
67749         mkstemp is visible on some platforms.
67750         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
67751         (Include): Change to "mkstemp.h" from <stdlib.h>.
67752         (Files): Add mkstemp.h.
67753
67754         * lib/mkstemp.h: New file, since some standard headers
67755         #define mkstemp.
67756         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
67757         Include "mkstemp.h".
67758         Make the _LIBC code resemble glibc original more,
67759         e.g., use K&R style.
67760         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
67761         (mkstemp): Remove, since mkstemp.h does this for us.
67762         * lib/stdlib--.h: Include mkstemp.h.
67763
67764         Import this patch from libc:
67765
67766         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67767
67768         * lib/tempname.c (__gen_tempname): Change attempts_min
67769         into a macro.  Use preprocessor to decide how to initialize
67770         attempts [Coverity CID 67].
67771
67772 2006-09-20  Bruno Haible  <bruno@clisp.org>
67773
67774         * lib/mkdtemp.c: Import from libc.
67775         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
67776                 * sysdeps/posix/tempname.c (__gen_tempname): Change
67777                 attempts_min into a macro.  Use preprocessor to decide how to
67778                 initialize attempts [Coverity CID 67].
67779         2001-11-27  Paul Eggert  <eggert@twinsun.com>
67780                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
67781                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
67782
67783 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67784
67785         * gnulib-tool (func_exit): New function, to allow to pass the
67786         exit status portably through the trap.  Use everywhere.
67787         (--help, --version): Signal a write error.
67788         (trap): catch SIGPIPE, for write errors.
67789         Exit at the end of the trap, with the correct exit status.
67790
67791 2006-09-19  Karl Berry  <karl@gnu.org>
67792
67793         * doc/gnulib.texi: note about the license texinfo files.
67794
67795 2006-09-19  Eric Blake  <ebb9@byu.net>
67796
67797         * gnulib-tool: Avoid space-tab.
67798
67799 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67800
67801         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
67802         that prevented coreutils 6.1 from building.  Problem reported
67803         by Petter Reinholdtsen.
67804
67805 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
67806
67807         * gnulib-tool (avoidlist): Fix typo that broke options like
67808         --avoid=lock that are used by coreutils bootstrap.
67809
67810 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
67811
67812         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
67813         more systematically.
67814
67815 2006-09-18  Jim Meyering  <jim@meyering.net>
67816
67817         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
67818
67819 2006-09-18  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
67822
67823 2006-09-18  Bruno Haible  <bruno@clisp.org>
67824
67825         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
67826         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
67827         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
67828         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
67829         * m4/gettext.m4: Require autoconf >= 2.52.
67830         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
67831         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
67832         of gl_cv_header_inttypes_h.
67833
67834 2006-09-18  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/javaversion.c: Include configmake.h.
67837
67838 2006-09-18  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
67841         avoid that the while loops be executed in a subshell.
67842
67843 2006-09-18  Bruno Haible  <bruno@clisp.org>
67844
67845         * MODULES.html.sh (func_module): Break long lines.
67846         Suggested by Bruce Korb <bkorb@gnu.org>.
67847
67848 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67849
67850         Speed up by a factor of 1.12.
67851         * gnulib-tool (nl): New variable.
67852         (func_import): Rewrite include directive extraction to only read each
67853         directive once.
67854
67855 2006-09-17  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/javaversion (Makefile.am): Remove DEFS setting.
67858         (Depends-on): Add configmake, for PKGDATADIR definition.
67859
67860 2006-09-17  Bruno Haible  <bruno@clisp.org>
67861
67862         * gnulib-tool (func_create_testdir): Rewrite all files at once.
67863
67864 2006-09-17  Bruno Haible  <bruno@clisp.org>
67865
67866         * gnulib-tool (func_append): New function, stolen from libtool.m4.
67867         (func_modules_transitive_closure, func_modules_add_dummy,
67868         func_modules_to_filelist, func_import, func_create_testdir,
67869         func_create_megatestdir, ...): Use it wherever possible.
67870         Suggested by Ralf Wildenhues.
67871
67872 2006-09-16  Karl Berry  <karl@gnu.org>
67873
67874         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
67875         to avoid sectioning errors.
67876         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
67877         [ifinfo]: blank line after @center-ed titles.
67878         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
67879         Spell FSF address consistently with others.
67880         (These changes approved by rms.)
67881
67882 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67883
67884         Speed up by a factor of 1.61.
67885         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
67886         already checked module names again.
67887
67888 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67889
67890         Speed up by a factor of 1.13.
67891         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
67892         for new_files, and the input to func_add_or_update.
67893
67894 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67895
67896         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
67897         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
67898
67899 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67900
67901         * modules/mkancesdirs (Depends-on): Add fcntl.
67902         * modules/savewd: New file.
67903         * MODULES.html.sh (File system functions): Add savewd.
67904
67905         * modules/configmake (Makefile.am): Add support for the
67906         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
67907
67908 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * m4/savewd.m4: New file.
67911
67912 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
67915         (dirchownmod): New arg FD.  All callers changed.
67916         Use FD rather than opening the directory ourself, as opening is
67917         now the caller's responsibility.
67918         * lib/dirchownmod.h: Likewise.
67919         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
67920         hosts that require <sys/types.h> before <sys/stat.h>.  Include
67921         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
67922         (test_dir): Remove.
67923         (mkancesdirs): Return length of prefix of FILE that has already
67924         been made, or -2 if there is a child doing the work.  Redo
67925         algorithm so that it is O(N) rather than O(N**2).  Optimize away
67926         ".", and treat ".." specially since it might stray back into
67927         already-created areas.  Use a subprocess if necessary.  New arg
67928         WD; all users changed.  MAKE_DIR function should now return 1
67929         if it creates a directory that is not readable.  Return -2 if
67930         a child process is spun off.
67931         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
67932         Adjust signature to match code.
67933         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
67934         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
67935         all users changed.
67936         * lib/savewd.c, lib/savewd.h: New files.
67937
67938 2006-09-15  Jim Meyering  <jim@meyering.net>
67939
67940         * modules/rename-dest-slash: New module.
67941         * MODULES.html.sh (posix_compat): Add it here.
67942
67943         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
67944
67945 2006-09-15  Jim Meyering  <jim@meyering.net>
67946
67947         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
67948         file.
67949
67950         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
67951
67952 2006-09-15  Jim Meyering  <jim@meyering.net>
67953
67954         * lib/rename-dest-slash.c (has_trailing_slash): Use
67955         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
67956         (rpl_rename_dest_slash): Perform the cheaper trailing slash
67957         test before testing whether SRC is a directory.
67958         Suggestions from Bruno Haible.
67959
67960         Avoid a warning about an unused variable.
67961         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
67962         into the #ifdef block where it's used.
67963
67964         * lib/rename-dest-slash.c: New file.
67965
67966 2006-09-14  Bruno Haible  <bruno@clisp.org>
67967
67968         * lib/allocsa.c: Include <config.h> unconditionally.
67969         * lib/asnprintf.c: Likewise.
67970         * lib/asprintf.c: Likewise.
67971         * lib/c-strcasecmp.c: Likewise.
67972         * lib/c-strcasestr.c: Likewise.
67973         * lib/c-strncasecmp.c: Likewise.
67974         * lib/c-strstr.c: Likewise.
67975         * lib/classpath.c: Likewise.
67976         * lib/clean-temp.c: Likewise.
67977         * lib/concatpath.c: Likewise.
67978         * lib/copy-file.c: Likewise.
67979         * lib/csharpcomp.c: Likewise.
67980         * lib/csharpexec.c: Likewise.
67981         * lib/execute.c: Likewise.
67982         * lib/fatal-signal.c: Likewise.
67983         * lib/findprog.c: Likewise.
67984         * lib/fwriteerror.c: Likewise.
67985         * lib/gl_array_list.c: Likewise.
67986         * lib/gl_array_oset.c: Likewise.
67987         * lib/gl_avltree_list.c: Likewise.
67988         * lib/gl_avltree_oset.c: Likewise.
67989         * lib/gl_avltreehash_list.c: Likewise.
67990         * lib/gl_carray_list.c: Likewise.
67991         * lib/gl_linked_list.c: Likewise.
67992         * lib/gl_linkedhash_list.c: Likewise.
67993         * lib/gl_list.c: Likewise.
67994         * lib/gl_oset.c: Likewise.
67995         * lib/gl_rbtree_list.c: Likewise.
67996         * lib/gl_rbtree_oset.c: Likewise.
67997         * lib/gl_rbtreehash_list.c: Likewise.
67998         * lib/imaxabs.c: Likewise.
67999         * lib/imaxdiv.c: Likewise.
68000         * lib/javacomp.c: Likewise.
68001         * lib/javaexec.c: Likewise.
68002         * lib/javaversion.c: Likewise.
68003         * lib/linebreak.c: Likewise.
68004         * lib/localcharset.c: Likewise.
68005         * lib/lock.c: Likewise.
68006         * lib/mbchar.c: Likewise.
68007         * lib/mbswidth.c: Likewise.
68008         * lib/mkdtemp.c: Likewise.
68009         * lib/pipe.c: Likewise.
68010         * lib/printf-args.c: Likewise.
68011         * lib/printf-parse.c: Likewise.
68012         * lib/progname.c: Likewise.
68013         * lib/progreloc.c: Likewise.
68014         * lib/readlink.c: Likewise.
68015         * lib/sh-quote.c: Likewise.
68016         * lib/stpcpy.c: Likewise.
68017         * lib/stpncpy.c: Likewise.
68018         * lib/strcasecmp.c: Likewise.
68019         * lib/strcasestr.c: Likewise.
68020         * lib/strcspn.c: Likewise.
68021         * lib/striconv.c: Likewise.
68022         * lib/strncasecmp.c: Likewise.
68023         * lib/strnlen1.c: Likewise.
68024         * lib/strstr.c: Likewise.
68025         * lib/strtok_r.c: Likewise.
68026         * lib/tls.c: Likewise.
68027         * lib/tmpdir.c: Likewise.
68028         * lib/unicodeio.c: Likewise.
68029         * lib/unsetenv.c: Likewise.
68030         * lib/vasnprintf.c: Likewise.
68031         * lib/vasprintf.c: Likewise.
68032         * lib/wait-process.c: Likewise.
68033         * lib/xallocsa.c: Likewise.
68034         * lib/xsetenv.c: Likewise.
68035         * lib/xstriconv.c: Likewise.
68036
68037 2006-09-13  Simon Josefsson  <jas@extundo.com>
68038
68039         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68040         that internally, suggested by Ralf Wildenhues
68041         <Ralf.Wildenhues@gmx.de>.
68042
68043 2006-09-13  Simon Josefsson  <jas@extundo.com>
68044
68045         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68046         @LIBOBJS@.
68047         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68048
68049 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68050
68051         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68052         longer worry about uses that don't define HAVE_CONFIG_H.
68053         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68054         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68055         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68056         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68057         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68058         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68059         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68060         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68061         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68062         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68063         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68064         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68065         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68066         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68067         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68068         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68069         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68070         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68071         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68072         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68073         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68074         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68075         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68076         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68077         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68078         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68079         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68080         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68081         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68082         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68083         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68084         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68085         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68086         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68087         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68088         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68089         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68090         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68091         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68092         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68093         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68094         Likewise.
68095
68096 2006-09-13  Eric Blake  <ebb9@byu.net>
68097
68098         * lib/getopt.c: Fix typo in last commit.
68099
68100 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68101
68102         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68103         dgettext.
68104
68105 2006-09-12  Jim Meyering  <jim@meyering.net>
68106
68107         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68108         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68109         Reported by Nelson H. F. Beebe.
68110
68111 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68112
68113         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68114         program_invocation_name and program_invocation_short_name are
68115         initialized.
68116         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68117         and program_invocation_short_name to argp.h, so they are visible
68118         to user programs.
68119         * lib/argp.h: Likewise
68120
68121 2006-09-10  Bruno Haible  <bruno@clisp.org>
68122
68123         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68124         m4/inttypes_h.m4, m4/uintmax_t.m4.
68125
68126 2006-09-10  Bruno Haible  <bruno@clisp.org>
68127
68128         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68129         gl_AC_TYPE_UINTMAX_T.
68130
68131 2006-09-10  Bruno Haible  <bruno@clisp.org>
68132
68133         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68134
68135 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68136
68137         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68138         convention.  Text proposed by Bruno Haible.
68139         (struct argp_option): Document the use of N_() wrappers.
68140
68141         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68142         '\v', and translate the two parts separately, instead of feeding
68143         the whole string to gettext.  This allows to exclude
68144         '\v' from the strings visible to the translator by writing doc
68145         strings as N_("..") "\v" N_("..").
68146
68147 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68148
68149         * config/srclist.txt: Undo latest change; the bug was fixed.
68150
68151 2006-09-09  Bruno Haible  <bruno@clisp.org>
68152
68153         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68154         assignments if building a library without libtool.
68155         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68156         in func_emit_lib_Makefile_am.
68157         (func_import): When building a static library libfoo.a, arrange to
68158         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68159         (func_create_testdir): Likewise.
68160         * modules/gc (configure.ac, Makefile.am): If building statically,
68161         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68162         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68163         * modules/striconv (configure.ac, Makefile.am): Likewise.
68164         Based on a suggestion by Ralf Wildenhues.
68165
68166 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68167
68168         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68169         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68170         Also:
68171
68172         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68173         Add year_2050_test to catch glibc bug 2821
68174         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68175
68176         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68177         Prefer #ifdef to #if.
68178
68179         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68180         Return from 'main' instead of calling 'exit'.
68181
68182 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68183
68184         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68185         returned the maximum time_t value rather than (time_t) -1.
68186         Problem originally reported by William Bardwell
68187         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68188
68189         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68190         Moved to here ...
68191         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68192         ... from here.
68193
68194 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68197         2821 is fixed.
68198
68199 2006-09-08  Jim Meyering  <jim@meyering.net>
68200
68201         Don't make generated files read-only.  That would bother too many
68202         people.  However, do retain the ability to work when targets are
68203         read-only: remove the destination and temporary files before writing
68204         them (when generated via sed or echo), or by using the -f option for
68205         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68206         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68207         * modules/byteswap, modules/configmake, modules/fcntl:
68208         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68209         * modules/localcharset, modules/netinet_in, modules/poll:
68210         * modules/stdbool, modules/stdint, modules/sys_select:
68211         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68212
68213 2006-09-08  Jim Meyering  <jim@meyering.net>
68214
68215         Avoid new build failure on FreeBSD 6.0.
68216         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68217         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68218         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68219
68220 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68221
68222         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68223
68224 2006-09-07  Jim Meyering  <jim@meyering.net>
68225
68226         Fix global typo in last change: use chmod u-w, not chmod u-x.
68227         Spotted by Paul Eggert and Bruce Korb.
68228         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68229         * modules/byteswap, modules/configmake, modules/fcntl:
68230         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68231         * modules/localcharset, modules/netinet_in, modules/poll:
68232         * modules/stdbool, modules/stdint, modules/sys_select:
68233         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68234
68235 2006-09-06  Jim Meyering  <jim@meyering.net>
68236
68237         Make generated files be read-only.
68238         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68239         Ensure that each generated file is now read-only.
68240         * modules/argz: Likewise.
68241         * modules/arpa_inet: Likewise.
68242         * modules/byteswap: Likewise.
68243         * modules/configmake: Likewise.
68244         * modules/fcntl: Likewise.
68245         * modules/fnmatch: Likewise.
68246         * modules/getopt: Likewise.
68247         * modules/glob: Likewise.
68248         * modules/inttypes: Likewise.
68249         * modules/netinet_in: Likewise.
68250         * modules/poll: Likewise.
68251         * modules/stdbool: Likewise.
68252         * modules/stdint: Likewise.
68253         * modules/sys_select: Likewise.
68254         * modules/sys_socket: Likewise.
68255         * modules/sys_stat: Likewise.
68256         * modules/sysexits: Likewise.
68257         * modules/localcharset: Same as above, but continue using temporary
68258         file named "t-$@" (why different?) rather than the "$@-t" used
68259         everywhere else.
68260
68261         * modules/sysexits (Makefile.am): Replace literal occurrences
68262         of "sysexit.h" more readable, and more consistent, "$@".
68263
68264 2006-09-06  Bruno Haible  <bruno@clisp.org>
68265
68266         * modules/striconv: New file.
68267         * modules/xstriconv: New file.
68268         * MODULES.html.sh (Internationalization functions): Add striconv,
68269         xstriconv.
68270
68271 2006-09-06  Bruno Haible  <bruno@clisp.org>
68272
68273         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68274         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68275         not using libtool correctly.
68276
68277 2006-09-06  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/striconv.h: New file.
68280         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68281         iconvstring.c.
68282         * lib/xstriconv.h: New file.
68283         * lib/xstriconv.c: New file.
68284
68285 2006-09-06  Bruno Haible  <bruno@clisp.org>
68286
68287         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68288         lib_..._LDFLAGS.
68289
68290 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68291
68292         * lib/argz_.h: Sync from Libtool.
68293
68294         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68295                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68296
68297         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68298
68299 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68300
68301         * modules/trim: New file.
68302
68303 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68304
68305         * lib/trim.h: New file.
68306         * lib/trim.c: New file.
68307
68308 2006-09-05  Bruno Haible  <bruno@clisp.org>
68309
68310         * MODULES.html.sh (String handling): Add trim.
68311
68312 2006-09-04  Karl Berry  <karl@gnu.org>
68313
68314         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68315         until next release.
68316
68317 2006-09-03  Bruno Haible  <bruno@clisp.org>
68318
68319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68320         correctly.
68321
68322 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68323
68324         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68325         not gl_GETLOADAVG.  Omit unneeded semicolons.
68326         Problems reported by Ralf Wildenhues in
68327         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68328         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68329         at the end, which is the usual gnulib style.
68330
68331         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68332         of doing all the work ourselves.
68333         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68334         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68335
68336 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68339         Problem reported by Ralf Wildenhues in
68340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68341
68342         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68343         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68344
68345 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68346
68347         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68348         yesterday's patch by changing test -n to test -z.
68349
68350 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68353         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68354         the former is now obsolescent.
68355
68356         * modules/chdir-long (Depends-on): Add fcntl.
68357
68358 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68361         obsolescent, and programs should use gnulib instead.
68362         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68363         but with prefixes changed.
68364
68365 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68368         or stdbool.h, because they might not exist while configuring.
68369
68370         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68371         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68372         does that for us.
68373         (O_DIRECTORY): Remove.
68374
68375 2006-08-31  Eric Blake  <ebb9@byu.net>
68376
68377         * gnulib-tool: Don't let emacs change spaces to TAB.
68378
68379 2006-08-31  Bruno Haible  <bruno@clisp.org>
68380
68381         * gnulib-tool: When calling func_import more than once, do it in a
68382         subshell.
68383         Reported by Eric Blake <ebb9@byu.net>.
68384
68385 2006-08-31  Bruno Haible  <bruno@clisp.org>
68386
68387         * gnulib-tool (nl): Remove variable.
68388         (sed_transform_lib_file): Use more robust test for config-h module.
68389         (func_import): Fix typo in 2006-08-25 patch.
68390
68391 2006-08-31  Bruno Haible  <bruno@clisp.org>
68392
68393         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68394         specified, augment Makefile.am variables instead of assigning them.
68395
68396 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         Work around a bug in both the Linux and SunOS 64-bit kernels:
68399         nanosleep mishandles sleeps for longer than 2**31 seconds.
68400         Problem reported by Frank v Waveren in
68401         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68403         Check for nanosleep bug.
68404         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68405
68406 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         Work around a bug in both the Linux and SunOS 64-bit kernels:
68409         nanosleep mishandles sleeps for longer than 2**31 seconds.
68410         Problem reported by Frank v Waveren in
68411         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68412         * lib/nanosleep.c (BILLION): New constant.
68413         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68414         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68415         implementation.
68416
68417 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * modules/nanosleep (Depends-on): Add gettime.
68420
68421 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68422         and Simon Josefsson  <jas@extundo.com>
68423         and Oskar Liljeblad  <oskar@osk.mine.nu>
68424
68425         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68426         * gnulib-tool (func_import): New license type 'unmodifiable license
68427         text'.
68428         * modules/fdl: Use it.  Longer description.
68429         * module/gpl, module/lgpl: New files.
68430
68431 2006-08-30  Jim Meyering  <jim@meyering.net>
68432
68433         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68434         shadowing the parameter.
68435
68436 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68437
68438         Sync from Libtool:
68439
68440         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68441
68442         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68443         sharing with gnulib.  Report by Eric Blake.
68444
68445 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68446
68447         * modules/isapipe: New file.
68448         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
68449
68450 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * modules/configmake (Makefile.am): Add a comment, and omit
68453         the CONFIGMAKE_ prefix from generated macro names.  Suggested
68454         by Bruno Haible.
68455
68456 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * m4/isapipe.m4: New file.
68459
68460 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/isapipe.c, lib/isapipe.h: New files.
68463
68464 2006-08-29  Jim Meyering  <jim@meyering.net>
68465
68466         * modules/configmake (Makefile.am): Make configmake.h depend on
68467         Makefile.  Otherwise, a stale configmake.h could hang around.
68468
68469 2006-08-29  Eric Blake  <ebb9@byu.net>
68470
68471         * lib/error.c (error_at_line, print_errno_message): Match libc, after
68472         resolution of upstream bug 3044.
68473
68474 2006-08-29  Bruno Haible  <bruno@clisp.org>
68475
68476         * modules/localcharset (Depends-on): Add configmake.
68477         (Makefile.am): Remove setting of LIBDIR through DEFS.
68478
68479 2006-08-29  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
68482         defined.
68483
68484 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68485
68486         * modules/fcntl: New file.
68487         * modules/chdir-safer (Depends-on): Add fcntl.
68488         * modules/fts: Likewise.
68489         * modules/mkdir-p: Likewise.
68490
68491         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
68492         This undoes the most recent change, since we're now addressing the
68493         problem in a different way.
68494
68495         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
68496         into output, since the output might be called Makefile.am even
68497         if $makefile_name is something different.
68498         (func_import): Use $makefile_am rather than
68499         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
68500         empty.
68501
68502         * modules/inttypes (Files): Add m4/inttypes-h.m4.
68503
68504 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
68507         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
68508         recent change to stdint.m4, since we're now addressing the problem in a
68509         different way.
68510
68511 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68512
68513         * m4/fcntl_h.m4: New file.
68514
68515 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
68516
68517         * lib/fcntl_.h: New file.
68518         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
68519         the fcntl module.
68520         * lib/dirchownmod.c: Likewise.
68521         * lib/fts.c: Likewise.
68522
68523         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
68524         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
68525         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
68526         just before including <inttypes.h>, to avoid circular inclusion.
68527
68528 2006-08-28  Jim Meyering  <jim@meyering.net>
68529
68530         * doc/visibility.texi: Actually read and correct the grammar of the
68531         sentence affected by yesterday's change.
68532
68533 2006-08-28  Eric Blake  <ebb9@byu.net>
68534
68535         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
68536         needs wrapper.
68537
68538 2006-08-28  Eric Blake  <ebb9@byu.net>
68539
68540         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
68541
68542 2006-08-28  Eric Blake  <ebb9@byu.net>
68543
68544         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
68545
68546 2006-08-28  Bruno Haible  <bruno@clisp.org>
68547
68548         * modules/c-strstr: New file, from GNU gettext.
68549         * MODULES.html.sh (String handling): Add c-strstr.
68550
68551 2006-08-28  Bruno Haible  <bruno@clisp.org>
68552
68553         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
68554         macros.
68555         Reported by Eric Blake.
68556
68557 2006-08-28  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
68560         (VASNPRINTF): Return a string of length > INT_MAX without failing.
68561         * lib/vasprintf.c: Include errno.h, limits.h.
68562         (EOVERFLOW): New fallback definition.
68563         (vasprintf): Test here whether the string length is > INT_MAX.
68564         * lib/vsnprintf.c: Include errno.h, limits.h.
68565         (EOVERFLOW): New fallback definition.
68566         (vsnprintf): Fix bug when generated string was too long for the buffer.
68567         Test here whether the string length is > INT_MAX.
68568
68569 2006-08-28  Bruno Haible  <bruno@clisp.org>
68570
68571         * lib/inttypes_.h (SCNX*): Remove definitions.
68572         Reported by Eric Blake.
68573
68574 2006-08-28  Bruno Haible  <bruno@clisp.org>
68575
68576         * lib/c-strstr.h: New file, from GNU gettext.
68577         * lib/c-strstr.c: New file, from GNU gettext.
68578
68579 2006-08-28  Bruno Haible  <bruno@clisp.org>
68580
68581         * gnulib-tool: Reorder some statements.
68582
68583 2006-08-28  Bruno Haible  <bruno@clisp.org>
68584
68585         * gnulib-tool: New option --makefile-name.
68586         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
68587         $makefile_name.
68588         (func_import): Write $makefile_name to the cache file, and read it from
68589         there unless explicitly specified. Use $makefile_name as file name
68590         instead of Makefile.am. Adjust the recommendations accordingly.
68591
68592 2006-08-28  Bruno Haible  <bruno@clisp.org>
68593
68594         * gnulib-tool (func_verify_module): Check against misapplying patch.
68595
68596 2006-08-28  Bruno Haible  <bruno@clisp.org>
68597
68598         * gnulib-tool (func_relativize, func_relconcat): New functions.
68599         Give an error if --local-dir is given with --update.
68600         Remove trailing slashes from $local_gnulib_dir.
68601         (func_import): Store the relativized $local_gnulib_dir in
68602         gnulib-cache.m4, and read it from there if not specified explicitly.
68603
68604 2006-08-28  Bruno Haible  <bruno@clisp.org>
68605
68606         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
68607         is the current directory. Respect also $local_gnulib_dir.
68608
68609 2006-08-28  Bruno Haible  <bruno@clisp.org>
68610             Simon Josefsson  <jas@extundo.com>
68611
68612         BeOS portability.
68613         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
68614
68615 2006-08-27  Jim Meyering  <jim@meyering.net>
68616
68617         * doc/visibility.texi: Remove duplicate word: "pointer".
68618
68619 2006-08-26  Bruno Haible  <bruno@clisp.org>
68620
68621         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
68622         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
68623         (Makefile.am): Create inttypes.h from inttypes_.h.
68624         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
68625
68626         * modules/imaxabs: New file.
68627
68628         * modules/imaxdiv: New file.
68629
68630 2006-08-26  Bruno Haible  <bruno@clisp.org>
68631
68632         * m4/inttypes.m4: New file.
68633         * m4/_inttypes_h.m4: Remove file.
68634         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
68635         PRI_MACROS_BROKEN.
68636         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
68637
68638         * m4/imaxabs.m4: New file.
68639
68640         * m4/imaxdiv.m4: New file.
68641
68642 2006-08-26  Bruno Haible  <bruno@clisp.org>
68643
68644         * lib/inttypes_.h: New file.
68645         * lib/inttypes.h: Remove file.
68646         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
68647
68648         * lib/imaxabs.c: New file.
68649
68650         * lib/imaxdiv.c: New file.
68651
68652 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         New config-h module, so that "make" output needn't be cluttered
68655         by -DHAVE_CONFIG_H.
68656         * MODULES.html.sh (Support for building libraries and executables):
68657         Add config-h.
68658         * modules/config-h: New file.
68659         * gnulib-tool (nl, sed_transform_lib_file): New vars.
68660         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
68661         the config-h module is used.
68662
68663         New configmake module, so that "make" output needn't be cluttered
68664         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
68665         * MODULES.html.sh (Support for building libraries and executables):
68666         Add configmake.
68667         * modules/configmake: New file.
68668
68669 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
68670
68671         * m4/config-h.m4: New file.
68672
68673 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68674
68675         * config/srclist.txt: Add elisp-comp.
68676
68677 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         * MODULES.html.sh (Support for building libraries and executables):
68680         Add elisp-comp.
68681         * build-aux/elisp-comp: New file.
68682         * modules/elisp-comp: New file.
68683
68684 2006-08-24  Bruno Haible  <bruno@clisp.org>
68685
68686         * gnulib-tool (func_create_testdir): Use non-default values of
68687         sourcebase and m4base.
68688
68689 2006-08-24  Bruno Haible  <bruno@clisp.org>
68690
68691         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
68692         HTML structure.
68693
68694 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
68695
68696         * modules/openat (Depends-on): Add lchown.
68697
68698 2006-08-23  Bruno Haible  <bruno@clisp.org>
68699
68700         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
68701         of gl_LOCK_EARLY instead of gl_LOCK.
68702
68703 2006-08-23  Bruno Haible  <bruno@clisp.org>
68704
68705         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
68706         on OSF/1 to no.
68707         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
68708
68709 2006-08-23  Bruno Haible  <bruno@clisp.org>
68710
68711         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
68712         as unusable.
68713
68714         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
68715         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
68716         (gl_LOCK): New macro.
68717
68718 2006-08-22  Simon Josefsson  <jas@extundo.com>
68719
68720         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
68721         to md5 module.
68722
68723 2006-08-22  Simon Josefsson  <jas@extundo.com>
68724
68725         * MODULES.html.sh: Add "Support for maintaining and release
68726         projects".
68727
68728         * build-aux/gnupload: New file, from coreutils.
68729
68730 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         Avoid the need for AC_LIBSOURCES in m4 macros.
68733         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
68734         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
68735         * modules/check-version (EXTRA_DIST): Add check-version.h.
68736         * modules/crc (EXTRA_DIST): Add crc.h.
68737         * modules/des (EXTRA_DIST): Add des.h.
68738         * modules/gc (EXTRA_DIST): Add gc.h.
68739         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
68740         * modules/getline (EXTRA_DIST): Add getline.h.
68741         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
68742         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
68743         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
68744         * modules/md2 (EXTRA_DIST): Add md2.h.
68745         * modules/md4 (EXTRA_DIST): Add md4.h.
68746         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
68747         * modules/read-file (EXTRA_DIST): Add read-file.h.
68748         * modules/readline (EXTRA_DIST): Add readline.h.
68749         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
68750         rijndael-api-fst.h.
68751
68752 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68753
68754         * m4/rijndael.m4 (gl_ARCFOUR):
68755         * m4/arctwo.m4 (gl_ARCTWO):
68756         * m4/check-version.m4 (gl_CHECK_VERSION):
68757         * m4/crc.m4 (gl_CRC):
68758         * m4/des.m4 (gl_DES):
68759         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
68760         * m4/gc.m4 (gl_GC):
68761         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
68762         * m4/getline.m4 (gl_FUNC_GETLINE):
68763         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
68764         * m4/hmac-md5.m4 (gl_HMAC_MD5):
68765         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
68766         * m4/md2.m4 (gl_MD2):
68767         * m4/md4.m4 (gl_MD4):
68768         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
68769         * m4/read-file.m4 (gl_FUNC_READ_FILE):
68770         * m4/readline.m4 (gl_FUNC_READLINE):
68771         * m4/rijndael.m4 (gl_RIJNDAEL):
68772         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
68773         to get the necessary .h files and whatnot.
68774
68775 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
68778         gnulib rather than the other way around.
68779         * config/srclistvars.sh (COREUTILS): Remove.
68780
68781 2006-08-22  Jim Meyering  <jim@meyering.net>
68782
68783         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
68784
68785         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
68786
68787 2006-08-22  Eric Blake  <ebb9@byu.net>
68788
68789         * modules/regexprops-generic: New file.
68790         * MODULES.html.sh (Support for building documentation): List it.
68791
68792 2006-08-22  Eric Blake  <ebb9@byu.net>
68793
68794         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
68795         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
68796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
68797         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
68798
68799 2006-08-22  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
68802         and lib_LTLIBRARIES like the other lib_* variables.
68803
68804 2006-08-22  Bruno Haible  <bruno@clisp.org>
68805
68806         * build-aux/x-to-1.in: New file, from GNU gettext.
68807
68808 2006-08-22  Bruno Haible  <bruno@clisp.org>
68809
68810         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
68811         <utmpx.h> exists.
68812
68813 2006-08-22  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
68816         <utmpx.h> exists.
68817
68818 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         BeOS portability.
68821         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
68822         exist.
68823         Problem reported by Bruno Haible.
68824
68825 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         Avoid the need for AC_LIBSOURCES in m4 macros.
68828         * modules/acl (EXTRA_DIST): Add acl.h.
68829         * modules/argmatch (Files): Add m4/argmatch.m4.
68830         (configure.ac): Add gl_ARGMATCH.
68831         (EXTRA_DIST): Renamed from lib_SOURCES, for
68832         consistency with the other modules.  Remove argmatch.c.
68833         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
68834         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
68835         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
68836         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
68837         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
68838         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
68839         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
68840         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
68841         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
68842         * modules/closeout (EXTRA_DIST): Add closeout.h.
68843         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
68844         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
68845         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
68846         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
68847         dirname.h; remove basename.c and stripslash.c.
68848         * modules/exclude (EXTRA_DIST): Add exclude.h.
68849         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
68850         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
68851         * modules/file-type (EXTRA_DIST): Add file-type.h.
68852         * modules/filemode (EXTRA_DIST): Add filemode.h.
68853         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
68854         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68855         * modules/fpending (EXTRA_DIST): Add __fpending.h.
68856         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
68857         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
68858         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
68859         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
68860         * modules/getdate (EXTRA_DIST): Add getdate.c.
68861         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
68862         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
68863         * modules/getpass (EXTRA_DIST): Add getpass.h.
68864         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
68865         * modules/group-member (EXTRA_DIST): Add group-member.h.
68866         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
68867         * modules/hash (EXTRA_DIST): Add hash.h.
68868         * modules/human (EXTRA_DIST): Add human.h.
68869         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
68870         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
68871         * modules/lchown (EXTRA_DIST): Add lchown.h.
68872         * modules/long-options (EXTRA_DIST): Add long-options.h.
68873         * modules/lstat (EXTRA_DIST): Add lstat.h.
68874         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
68875         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
68876         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
68877         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
68878         * modules/memxor (EXTRA_DIST): Add memxor.h.
68879         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
68880         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
68881         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
68882         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
68883         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
68884         * modules/physmem (EXTRA_DIST): Add physmem.h.
68885         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
68886         * modules/posixver (EXTRA_DIST): Add posixver.h.
68887         * modules/quote (EXTRA_DIST): Add quote.h.
68888         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
68889         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
68890         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
68891         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
68892         regex_internal.h regexec.c.
68893         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
68894         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
68895         * modules/same (EXTRA_DIST): Add same.h.
68896         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
68897         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
68898         * modules/savedir (EXTRA_DIST): Add savedir.h.
68899         * modules/sha1 (EXTRA_DIST): Add sha1.h.
68900         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
68901         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
68902         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
68903         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
68904         * modules/strdup (EXTRA_DIST): Add strdup.h.
68905         * modules/strftime (EXTRA_DIST): Add strftime.h.
68906         * modules/strndup (EXTRA_DIST): Add strndup.h.
68907         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
68908         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
68909         * modules/time_r (EXTRA_DIST): Add time_r.h.
68910         * modules/timespec (EXTRA_DIST): Add timespec.h.
68911         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
68912         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
68913         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
68914         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
68915         * modules/userspec (EXTRA_DIST): Add userspec.h.
68916         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
68917         * modules/utimens (EXTRA_DIST): Add utimens.h.
68918         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
68919         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
68920         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
68921         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
68922         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
68923         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
68924         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
68925         * modules/yesno (EXTRA_DIST): Add yesno.h.
68926
68927 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
68928
68929         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
68930
68931         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
68932         * m4/dev-ino.m4, same-inode.m4: Remove.
68933
68934         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
68935         * m4/acl.m4 (AC_FUNC_ACL):
68936         * m4/backupfile.m4 (gl_BACKUPFILE):
68937         * m4/c-strtod.m4 (gl_C99_STRTOLD):
68938         * m4/canon-host.m4 (gl_CANON_HOST):
68939         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
68941         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
68942         * m4/cloexec.m4 (gl_CLOEXEC):
68943         * m4/close-stream.m4 (gl_CLOSE_STREAM):
68944         * m4/closeout.m4 (gl_CLOSEOUT):
68945         * m4/dirfd.m4 (gl_FUNC_DIRFD):
68946         * m4/dirname.m4 (gl_DIRNAME):
68947         * m4/exclude.m4 (gl_EXCLUDE):
68948         * m4/exitfail.m4 (gl_EXITFAIL):
68949         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
68950         * m4/file-type.m4 (gl_FILE_TYPE):
68951         * m4/filemode.m4 (gl_FILEMODE):
68952         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
68953         * m4/fpending.m4 (gl_FUNC_FPENDING):
68954         * m4/fprintftime.m4 (gl_FPRINTFTIME):
68955         * m4/fts.m4 (gl_FUNC_FTS):
68956         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
68957         * m4/getdate.m4 (gl_GETDATE):
68958         * m4/gethrxtime.m4 (gl_GETHRXTIME):
68959         * m4/getpagesize.m4 (gl_GETPAGESIZE):
68960         * m4/getpass.m4 (gl_FUNC_GETPASS):
68961         * m4/gettime.m4 (gl_GETTIME):
68962         * m4/getugroups.m4 (gl_GETUGROUPS):
68963         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
68964         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
68965         * m4/hard-locale.m4 (gl_HARD_LOCALE):
68966         * m4/hash.m4 (gl_HASH):
68967         * m4/idcache.m4 (gl_IDCACHE):
68968         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
68969         * m4/lchown.m4 (gl_FUNC_LCHOWN):
68970         * m4/long-options.m4 (gl_LONG_OPTIONS):
68971         * m4/lstat.m4 (gl_FUNC_LSTAT):
68972         * m4/md5.m4 (gl_MD5):
68973         * m4/memcasecmp.m4 (gl_MEMCASECMP):
68974         * m4/memcoll.m4 (gl_MEMCOLL):
68975         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
68976         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
68977         * m4/memxor.m4 (gl_MEMXOR):
68978         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
68979         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
68980         * m4/modechange.m4 (gl_MODECHANGE):
68981         * m4/mountlist.m4 (gl_MOUNTLIST):
68982         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68983         * m4/openat.m4 (gl_FUNC_OPENAT):
68984         * m4/pathmax.m4 (gl_PATHMAX):
68985         * m4/physmem.m4 (gl_PHYSMEM):
68986         * m4/posixtm.m4 (gl_POSIXTM):
68987         * m4/posixver.m4 (gl_POSIXVER):
68988         * m4/quote.m4 (gl_QUOTE):
68989         * m4/quotearg.m4 (gl_QUOTEARG):
68990         * m4/readtokens.m4 (gl_READTOKENS):
68991         * m4/readutmp.m4 (gl_READUTMP):
68992         * m4/regex.m4 (gl_REGEX):
68993         * m4/safe-read.m4 (gl_SAFE_READ):
68994         * m4/safe-write.m4 (gl_SAFE_WRITE):
68995         * m4/same.m4 (gl_SAME):
68996         * m4/save-cwd.m4 (gl_SAVE_CWD):
68997         * m4/savedir.m4 (gl_SAVEDIR):
68998         * m4/settime.m4 (gl_SETTIME):
68999         * m4/sha1.m4 (gl_SHA1):
69000         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69001         * m4/stat-macros.m4 (gl_STAT_MACROS):
69002         * m4/stat-time.m4 (gl_STAT_TIME):
69003         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69004         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69005         * m4/strdup.m4 (gl_FUNC_STRDUP):
69006         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69007         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69008         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69009         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69010         * m4/time_r.m4 (gl_TIME_R):
69011         * m4/timespec.m4 (gl_TIMESPEC):
69012         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69013         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69014         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69015         * m4/userspec.m4 (gl_USERSPEC):
69016         * m4/utimecmp.m4 (gl_UTIMECMP):
69017         * m4/utimens.m4 (gl_UTIMENS):
69018         * m4/xalloc.m4 (gl_XALLOC):
69019         * m4/xgetcwd.m4 (gl_XGETCWD):
69020         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69021         * m4/xreadlink.m4 (gl_XREADLINK):
69022         * m4/xstrtod.m4 (gl_XSTRTOD):
69023         * m4/yesno.m4 (gl_YESNO):
69024         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69025         to get the necessary .h files and whatnot.
69026
69027 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69028             Bruno Haible  <bruno@clisp.org>
69029
69030         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69031         /bin/sh understanding of '!' conditional negation.
69032
69033 2006-08-21  Jim Meyering  <jim@meyering.net>
69034
69035         * modules/openat (Depends-on): Really alphabetize.
69036
69037         * modules/acl (Depends-on): Add error and quote.
69038
69039         * check-module (find_included_lib_files): Add at-func.c to the
69040         ok-to-include-more-than-once white list.
69041
69042         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69043
69044 2006-08-21  Bruno Haible  <bruno@clisp.org>
69045
69046         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69047         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69048         Reported by Martin Lambers <marlam@marlam.de>.
69049
69050 2006-08-21  Bruno Haible  <bruno@clisp.org>
69051
69052         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69053         specify an installation location, don't emit a noinst_LIBRARIES or
69054         noinst_LTLIBRARIES assignment.
69055
69056 2006-08-21  Bruno Haible  <bruno@clisp.org>
69057
69058         BeOS portability.
69059         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69060         BeOS has mbrtowc() but no <wctype.h>.
69061
69062 2006-08-21  Bruno Haible  <bruno@clisp.org>
69063
69064         BeOS portability.
69065         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69066         exist.
69067
69068 2006-08-21  Bruno Haible  <bruno@clisp.org>
69069
69070         BeOS portability.
69071         * lib/mbchar.h: Include <wctype.h> only if it exists.
69072
69073 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         Remove files that are no longer needed by their respective modules.
69076         * m4/obstack.m4: Remove.
69077         * m4/strerror_r.m4: Remove.
69078         * m4/uint32_t.m4: Remove.
69079         * m4/uintptr_t.m4: Remove.
69080         * m4/ullong_max.m4: Remove.
69081         * m4/xstrtoimax.m4: Remove.
69082         * m4/xstrtoumax.m4: Remove.
69083
69084         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69085         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69086         dependencies now capture this.
69087
69088         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69089         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69090         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69091         * m4/human.m4 (gl_HUMAN): Likewise.
69092         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69093         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69094
69095         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69096
69097         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69098         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69099         stdint.
69100         * m4/human.m4 (gl_HUMAN): Likewise.
69101         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69102         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69103         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69104         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69105         * m4/xstrtol (gl_XSTRTOL): Likewise.
69106
69107         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69108         AC_TYPE_LONG_LONG_INT.
69109         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69110         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69111         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69112         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69113
69114         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69115         on stdbool.
69116
69117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69118         (gl_PREREQ_XSTRTOUL): Remove.
69119
69120         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69121
69122         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69123         mode.
69124
69125 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         Add and change modules to make it easier for coreutils to use
69128         gnulib-tool.
69129         * modules/backupfile (Files): Remove m4/d-ino.m4.
69130         (Depends-on): Add d-ino.
69131         * modules/cycle-check (Depends-on): Add stdint.
69132         (lib_SOURCES): Add cycle-check.h.
69133         * modules/d-ino: New module.
69134         * modules/d-type: New module.
69135         * modules/error (Files): Remove m4/strerror_r.m4.
69136         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69137         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69138         m4/inttypes_h.m4, m4/uintmax_t.m4.
69139         (Depends-on): Add stdint.
69140         (lib_SOURCES): Add fsusage.h.
69141         * modules/getcwd (Files): Remove d-ino.m4.
69142         (Depends-on): Add d-ino.
69143         * modules/getndelim2 (Depends-on): Add stdint.
69144         * modules/glob (Files): Remove m4/d-type.m4.
69145         (Depends-on): Add d-type.
69146         * modules/host-os: New module.
69147         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69148         m4/inttypes_h.m4, m4/uintmax_t.m4.
69149         * Depends-on: Add stdint.
69150         (lib_SOURCES): Add human.h.
69151         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69152         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69153         m4/uintmax_t.m4, m4/ulonglong.m4.
69154         (Depends-on): Add stdint.
69155         (EXTRA_DIST): Add inttostr.h.
69156         * modules/lchmod: New module.
69157         * modules/link-follow: New module.
69158         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69159         (Depends-on): Add lchmod.
69160         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69161         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69162         (Depends-on): Add stdint.
69163         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69164         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69165         (Depends-on): Add stdint.
69166         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69167         * modules/perl: New module.
69168         * modules/regex (Depends-on): Add stdint.
69169         * modules/rmdir-errno: New module.
69170         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69171         m4/intmax_t.m4.
69172         (Depends-on): Add stdint.
69173         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69174         m4/uintmax_t.m4.
69175         (Depends-on): Add stdint.
69176         * modules/unlink-busy: New module.
69177         * modules/utimecmp (Depends-on): Add stdint.
69178         * modules/uptime: New module.
69179         * modules/winsz-ioctl: New module.
69180         * modules/winsz-termios: New module.
69181         * modules/xnanosleep (Depends-on): Add nanosleep.
69182         * modules/ullong_max: Remove.
69183         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69184         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69185         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69186         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69187         (Depends-on): Add inttypes.
69188         (lib_SOURCES): Add xstrtol.h.
69189         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69190         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69191         * MODULES.html.sh: Move 'assert' into the assert section.
69192         Move 'dummy' into the linking section.
69193         Remove ullong_max.
69194         Add section for compatibility checks for POSIX:2001 functions,
69195         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69196         winsz-ioctl, and winsz-termios into it.
69197         Add lchmod.
69198         Add top-level Misc section and put host-os, perl, and uptime
69199         into it.
69200
69201 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69204         now assume the stdint module.  Do not include inttypes.h.
69205         * lib/fsusage.h: Likewise.
69206         * lib/getndelim2.c: Likewise.
69207         * lib/human.h: Likewise.
69208         * lib/inttostr.h: Likewise.
69209         * lib/obstack.c: Likewise.
69210         * lib/regex_internal.h: Likewise.
69211         * lib/tempname.c: Likewise.
69212         * lib/utimecmp.c: Likewise.
69213         * lib/xstrtol.h: Likewise.
69214
69215         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69216
69217         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69218         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69219         * lib/xtime.h: Likewise.
69220
69221 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * modules/openat (Files): Add lib/fchmodat.c.
69224         Fixes problem reported by Jay Youngman.
69225
69226 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69229         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69230
69231 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69232             Bruno Haible  <bruno@clisp.org>
69233
69234         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69235         and is a script that invokes bison. Tighten the code. Add comments.
69236
69237 2006-08-18  Jim Meyering  <jim@meyering.net>
69238
69239         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69240         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69241         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69242         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69243
69244 2006-08-18  Bruno Haible  <bruno@clisp.org>
69245
69246         * modules/bison-i18n: New file.
69247         * MODULES.html.sh (Internationalization functions): Add it.
69248
69249 2006-08-18  Bruno Haible  <bruno@clisp.org>
69250
69251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69252         sys/statvfs.h. When getmntinfo was found, check its declaration and
69253         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69254
69255 2006-08-18  Bruno Haible  <bruno@clisp.org>
69256
69257         * m4/bison-i18n.m4: New file, from bison.
69258
69259 2006-08-18  Bruno Haible  <bruno@clisp.org>
69260
69261         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69262         (ME_DUMMY): Treat "kernfs" as a dummy.
69263         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69264
69265 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69266
69267         Update from coreutils.
69268
69269         2006-08-15  Jim Meyering  <jim@meyering.net>
69270
69271         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69272
69273         2006-01-17  Jim Meyering  <jim@meyering.net>
69274
69275         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69276
69277         2006-01-11  Jim Meyering  <jim@meyering.net>
69278
69279         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69280         Check for the lchmod function.
69281
69282 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         Update from coreutils.
69285
69286         * lib/__fpending.h: Add copyright notice.
69287         * lib/fprintftime.h: Likewise.
69288         * lib/savedir.c: Use (C) in copyright notice.
69289         * lib/savedir.h: Likewise.
69290
69291         2006-08-15  Jim Meyering  <jim@meyering.net>
69292
69293         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69294         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69295         in support of the EXPECTED_ERRNO macro.
69296         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69297         definitions.  Instead, define the appropriate symbols and include
69298         "at-func.c".
69299         * lib/mkdirat.c (mkdirat): Likewise.
69300         * lib/fchmodat.c (fchmodat): Likewise.
69301         (ENOSYS): Remove definition.
69302         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69303         it.  Don't include "unistd--.h" -- it wasn't ever used.
69304
69305         2006-01-17  Jim Meyering  <jim@meyering.net>
69306
69307         Rewrite fts.c not to change the current working directory,
69308         by using openat, fstatat, fdopendir, etc..
69309
69310         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69311         (HAVE_OPENAT_SUPPORT): Define.
69312         [_LIBC] (fchdir): Don't undef or define; no longer used.
69313         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69314         Now, this `function' always succeeds, and consumes its file descriptor
69315         parameter -- so callers must not close such FDs.  Update callers.
69316         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69317         (diropen): Add parameter, SP.  Adjust all callers.
69318         Implement using diropen_fd, rather than open.
69319         (fts_open): Initialize new member, fts_cwd_fd.
69320         Remove fts_rft-setting code.
69321         (fts_close): Close fts_cwd_fd, if necessary.
69322         (__opendir2): Define in terms of opendir or opendirat,
69323         depending on whether the FST_NOCHDIR flag is set.
69324         (fts_build): Since fts_safe_changedir consumes its FD, and since
69325         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69326         and close the dup'd file descriptor upon failure.
69327         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69328         (fts_safe_changedir): Tweak semantics to reflect that this function
69329         now calls cwd_advance_fd and hence consumes its FD argument.
69330         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69331         [struct FTS] (fts_rft): Remove now-unused member.
69332         [struct FTS] (fts_cycle.state): Improve comment.
69333
69334         * lib/openat.c (openat_needs_fchdir): New function.
69335         * lib/openat.h (openat_needs_fchdir): Declare it.
69336
69337 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69338
69339         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69340         Problem and fix reported by Pádraig Brady in
69341         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69342
69343 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69344
69345         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69346
69347 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69348
69349         * lib/memcoll.c (memcoll): Optimize for the common case where the
69350         arguments are bytewise equal.
69351
69352 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * doc/regexprops-generic.texi: Add a copyright notice.
69355
69356 2006-08-15  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/tmpdir (License): Change to LGPL.
69359
69360 2006-08-15  Bruno Haible  <bruno@clisp.org>
69361
69362         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69363         module.
69364
69365 2006-08-14  Simon Josefsson  <jas@extundo.com>
69366
69367         * config/srclist.txt: Add gnupload.
69368
69369 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         Change copyright notice from LGPL 2 to GPL 2, since that's the
69372         standard form used in the gnulib repository.
69373         * tests/test-lock.c: Likewise.
69374         * tests/test-stdint.c: Likewise.
69375         * tests/test-tls.c: Likewise.
69376
69377         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69378         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69379         Add copyright notice.
69380
69381         * check-module: Add copyright notice.  Output a copyright
69382         notice if "--version" is specified.
69383         * modules/COPYING: New file.
69384         * tests/test-getaddrinfo.c: Add copyright notice.
69385         * tests/test-verify.c: Likewise.
69386
69387 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         Change copyright notice from LGPL 2 to GPL 2, since that's the
69390         standard form used in the gnulib repository.
69391         * lib/lock.c: LGPL -> GPL.
69392         * lib/lock.h: Likewise.
69393         * lib/strnlen1.c: Likewise.
69394         * lib/strnlen1.h: Likewise.
69395         * lib/tls.c: Likewise.
69396         * lib/tls.h: Likewise.
69397         * lib/tmpdir.c: Likewise.
69398
69399         * lib/TODO: Remove; this belongs only in coreutils.
69400
69401 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69402
69403         Add copyright notices to long-enough files that lack them, since
69404         otherwise the files aren't clearly free.  Use the same notice that
69405         getdate.texi already uses.
69406         * doc/alloca-opt.texi: Add copyright notice.
69407         * doc/alloca.texi: Likewise.
69408         * doc/ctime.texi: Likewise.
69409         * doc/functions.texi: Likewise.
69410         * doc/gcd.texi: Likewise.
69411         * doc/gnulib-tool.texi: Likewise.
69412         * doc/inet_ntoa.texi: Likewise.
69413         * doc/visibility.texi: Likewise.
69414
69415         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69416         * doc/quote.texi: Add copyright notice.
69417
69418         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69419         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69420         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69421         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69422         is now obsolete, and give a pointer to the Sun list.
69423         Add copyright notice.
69424
69425 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69426
69427         * config/srclistvars.sh: Add copyright notice.
69428
69429 2006-08-14  Eric Blake  <ebb9@byu.net>
69430
69431         Import the following change from libc:
69432
69433         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69434
69435         Upstream bug 2997.
69436         * lib/misc/error.c: Add space between program name and message if file
69437         name is missing.
69438
69439 2006-08-12  Karl Berry  <karl@gnu.org>
69440
69441         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69442         remove, these originate in gnulib now.
69443
69444 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69445
69446         * doc/Makefile (standards.info standards.html standards.dvi):
69447         Also depend on make-stds.texi.
69448
69449 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69450
69451         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
69452         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
69453
69454         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
69455         in wchar_t.  Problem reported by Eric Blake.
69456
69457         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
69458         LEN is smaller than SIZE.  Suggested by Bruno Haible.
69459         Also, help the compiler to keep LEN in a register.
69460
69461 2006-08-11  Eric Blake  <ebb9@byu.net>
69462
69463         * users.txt: Sort.  Add tar.
69464
69465 2006-08-11  Bruno Haible  <bruno@clisp.org>
69466
69467         * users.txt: New file.
69468
69469 2006-08-11  Bruno Haible  <bruno@clisp.org>
69470
69471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
69472         before <wchar.h>. Needed for OSF/1 and BSD/OS.
69473
69474 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69475
69476         * modules/snprintf (Depends-on): Remove minmax.
69477         (Maintainer): Add self and Bruno.
69478
69479 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * lib/.cppi-disable: Add snprintf.h, socket_.h.
69482         * lib/snprintf.c: Include <errno.h> and <limits.h>.
69483         (EOVERFLOW): Define if the system does not.
69484         Do not include "minmax.h"; it wasn't used.
69485         (snprintf): Don't assume size_t promotes to an unsigned type.
69486         Fix bug when generated string was too long for the buffer: the
69487         buffer's contents are supposed to be the initial prefix of the
69488         output.  Don't assume vasnprintf returns EOVERFLOW if the size
69489         exceeds INT_MAX; do the check ourselves.
69490
69491         Import the following changes from libc:
69492
69493         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
69494
69495         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
69496         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
69497         set wc to the byte which couldn't be converted.
69498         (re_string_reconstruct): Don't clear valid_raw_len before calling
69499         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
69500         tip_context using re_string_context_at.
69501
69502         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
69503
69504         * lib/posix/regex.h: g++ still cannot handled [restrict].
69505
69506         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
69507
69508         * lib/posix/regex.h: Remove special handling for VMS.
69509
69510 2006-08-10  Jim Meyering  <jim@meyering.net>
69511
69512         * modules/same-inode: New module.
69513         * modules/dev-ino: New module.
69514         * modules/cycle-check: Depend on these modules, rather than simply
69515         including their .h files.
69516         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
69517         required via m4/cycle-check.m4.
69518         * modules/same: Depend on new same-inode module, rather than
69519         including same-inode.h.
69520         * modules/chdir-safer: New file.
69521
69522         * modules/chown (Depends-on): Add stat-macros.
69523
69524 2006-08-10  Jim Meyering  <jim@meyering.net>
69525
69526         * m4/cycle-check.m4: New file.
69527         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
69528         * m4/dev-ino.m4, m4/same-inode.m4: New files.
69529
69530 2006-08-10  Eric Blake  <ebb9@byu.net>
69531
69532         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
69533         in from original proposal.
69534
69535 2006-08-10  Eric Blake  <ebb9@byu.net>
69536         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69537
69538         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
69539         namespace.
69540
69541 2006-08-10  Bruno Haible  <bruno@clisp.org>
69542
69543         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
69544         as well.
69545
69546 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69547
69548         Sync from coreutils.
69549
69550         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
69551
69552         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
69553         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
69554
69555 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69556
69557         * modules/restrict: Remove; no longer needed now that we assume
69558         Autoconf 2.59 or later.
69559         * MODULES.html.sh: Remove 'restrict'.
69560         * modules/argp (Depends-on): Remove 'restrict'.
69561         * modules/base64 (Depends-on): Likewise.
69562         * modules/gc (Depends-on): Likewise.
69563         * modules/getaddrinfo (Depends-on): Likewise.
69564         * modules/glob (Depends-on): Likewise.
69565         * modules/inet_ntop (Depends-on): Likewise.
69566         * modules/inet_pton (Depends-on): Likewise.
69567         * modules/memxor (Depends-on): Likewise.
69568         * modules/regex (Depends-on): Likewise.
69569         * modules/strtok_r (Depends-on): Likewise.
69570         * modules/time_r (Depends-on): Likewise.
69571
69572 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69573
69574         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
69575         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
69576         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69577         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
69578         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
69579         * m4/memxor.m4 (gl_MEMXOR): Likewise.
69580         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
69581         gl_C_RESTRICT replaced by AC_C_RESTRICT.
69582
69583         Merge from coreutils.
69584         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
69585         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
69586         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69587         * m4/time_r.m4 (gl_TIME_R): Likewise.
69588
69589 2006-08-09  Karl Berry  <karl@gnu.org>
69590
69591         * config/srclist.txt: no more gettext-tools, per Bruno.
69592
69593 2006-08-08  Eric Blake  <ebb9@byu.net>
69594
69595         * modules/verror: New module.
69596         * MODULES.html.sh: Document it.
69597
69598 2006-08-08  Eric Blake  <ebb9@byu.net>
69599
69600         * lib/verror.h, lib/verror.c: New files.
69601
69602 2006-08-08  Eric Blake  <ebb9@byu.net>
69603
69604         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
69605         verror_at_line output complies with GNU Coding Standards even when
69606         file is NULL.
69607
69608 2006-08-07  Bruno Haible  <bruno@clisp.org>
69609
69610         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
69611         versions of AIX.
69612         Reported by Ralf Wildenhues.
69613
69614 2006-08-07  Bruno Haible  <bruno@clisp.org>
69615
69616         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
69617         in an AC_DEFUN. Needed so that the autoconf snippets can use
69618         AC_REQUIRE.
69619
69620 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69621
69622         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69623         Initialize pkgdata_DATA.
69624         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
69625         overriding it.
69626
69627 2006-08-06  Eric Blake  <ebb9@byu.net>
69628
69629         * lib/error.h: Fold in some upstream changes from glibc.
69630         * lib/error.c: Likewise.
69631
69632 2006-08-04  Bruno Haible  <bruno@clisp.org>
69633
69634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69635         Make the mostlyclean-local rule depend on mostlyclean-generic.
69636         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
69637
69638 2006-07-31  Bruno Haible  <bruno@clisp.org>
69639
69640         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
69641         <stdlib.h>, <string.h>.
69642
69643 2006-07-30  Bruno Haible  <bruno@clisp.org>
69644
69645         * modules/readlink (License): Change to LGPL.
69646
69647 2006-07-30  Bruno Haible  <bruno@clisp.org>
69648
69649         * modules/javaversion (Makefile.am): Distribute javaversion.java and
69650         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
69651         set PKGDATADIR to point to it.
69652
69653 2006-07-30  Bruno Haible  <bruno@clisp.org>
69654
69655         * modules/csharpexec (configure.ac): Comment out macro invocation.
69656         * modules/javaexec (configure.ac): Likewise.
69657         * modules/javacomp-script (configure.ac): Likewise.
69658
69659         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
69660
69661 2006-07-30  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
69664         linked-list.
69665
69666 2006-07-30  Bruno Haible  <bruno@clisp.org>
69667
69668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
69669
69670 2006-07-30  Bruno Haible  <bruno@clisp.org>
69671
69672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69673         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
69674         get removed.
69675
69676 2006-07-29  Bruno Haible  <bruno@clisp.org>
69677
69678         Make it possible for gnulib-tool to work with locally modified or
69679         augmented gnulib repositories.
69680         * gnulib-tool (func_usage): Document --local-dir option.
69681         (local_gnulib_dir): New variable.
69682         Handle --local-dir option.
69683         (func_lookup_file): New function.
69684         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
69685         (func_get_description, func_get_filelist, func_get_description,
69686         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
69687         func_get_automake_snippet, func_get_include_directive,
69688         func_get_license, func_get_maintainer): Use func_lookup_file.
69689         (func_import, func_create_testdir): Use func_lookup_file.
69690
69691 2006-07-29  Bruno Haible  <bruno@clisp.org>
69692
69693         * modules/setenv (Depends-on): Add unistd.
69694
69695 2006-07-29  Bruno Haible  <bruno@clisp.org>
69696
69697         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
69698
69699 2006-07-29  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
69702
69703 2006-07-29  Bruno Haible  <bruno@clisp.org>
69704
69705         * gnulib-tool (import, update): If there is no Makefile.am, look at
69706         aclocal.m4, instead of bailing out.
69707
69708 2006-07-29  Bruno Haible  <bruno@clisp.org>
69709
69710         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
69711         Categorize the options by when they are useful.
69712
69713 2006-07-29  Bruno Haible  <bruno@clisp.org>
69714
69715         * gnulib-tool (func_usage): Document option --no-libtool.
69716         Handle option --no-libtool.
69717         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
69718         for changed semantics of $libtool variable.
69719         (func_import): Likewise. If libtool is not used, show this through
69720         an option --no-libtool.
69721         (func_create_testdir): Update.
69722
69723 2006-07-29  Bruno Haible  <bruno@clisp.org>
69724
69725         * gnulib-tool (func_import): Extend error message about missing
69726         --doc-base.
69727
69728 2006-07-29  Bruno Haible  <bruno@clisp.org>
69729
69730         * gnulib-tool (func_import): Don't create the $docbase directory if
69731         there is no file to store there.
69732
69733 2006-07-29  Bruno Haible  <bruno@clisp.org>
69734
69735         * gnulib-tool (autoconf_minversion): If a --dir option is given and
69736         relevant, look for configure.ac there, not in the current directory.
69737         Also use a simple search for AC_PREREQ, not "autoconf --trace".
69738
69739 2006-07-29  Bruno Haible  <bruno@clisp.org>
69740
69741         * gnulib-tool (SORT): New variable.
69742         (func_usage): Undocument --assume-autoconf option.
69743         Remove --assume-autoconf option handling.
69744         (autoconf_minversion): Determine from the contents of configure.ac.
69745         (func_import): Remove autoconf_minversion handling.
69746         Suggested by Eric Blake.
69747
69748 2006-07-29  Bruno Haible  <bruno@clisp.org>
69749
69750         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
69751
69752 2006-07-29  Bruno Haible  <bruno@clisp.org>
69753
69754         * config/srclist.txt (*setenv.[ch]): Remove rules.
69755
69756 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69757
69758         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
69759
69760 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69761
69762         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
69763         arpa/inet.h.
69764
69765 2006-07-28  Simon Josefsson  <jas@extundo.com>
69766
69767         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
69768         * modules/inet_pton (Depends-on): Likewise.
69769
69770 2006-07-28  Simon Josefsson  <jas@extundo.com>
69771
69772         * m4/netinet_in_h.m4: New file.
69773
69774 2006-07-28  Simon Josefsson  <jas@extundo.com>
69775
69776         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
69777         #include's.
69778
69779 2006-07-28  Simon Josefsson  <jas@extundo.com>
69780
69781         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
69782         #include's.
69783
69784 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
69787         setgid on directories only if they set these bits.
69788         * lib/modechange.h: Remove obsolete comment about masks.
69789
69790 2006-07-28  Eric Blake  <ebb9@byu.net>
69791
69792         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
69793         macro expansion.
69794
69795 2006-07-28  Bruno Haible  <bruno@clisp.org>
69796
69797         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
69798
69799 2006-07-28  Bruno Haible  <bruno@clisp.org>
69800
69801         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
69802
69803 2006-07-28  Bruno Haible  <bruno@clisp.org>
69804
69805         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
69806         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
69807         Define fallbacks.
69808         Avoids link error on FreeBSD 4.x.
69809         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69810
69811         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
69812         encoding.
69813         * lib/mbswidth.c (iswcntrl): Likewise.
69814
69815 2006-07-27  Bruno Haible  <bruno@clisp.org>
69816
69817         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
69818         test.
69819
69820 2006-07-27  Bruno Haible  <bruno@clisp.org>
69821
69822         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
69823         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
69824         defined.
69825
69826 2006-07-26  Eric Blake  <ebb9@byu.net>
69827
69828         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
69829
69830 2006-07-26  Eric Blake  <ebb9@byu.net>
69831
69832         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
69833         like mingw that lack mkstemp.
69834         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
69835         avoid compilation warning on mingw.
69836
69837 2006-07-26  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
69840         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
69841         INT_FAST*_MIN, INTPTR_MIN.
69842
69843 2006-07-25  Bruno Haible  <bruno@clisp.org>
69844
69845         * modules/version-etc (Depends-on): Add stdarg.
69846
69847 2006-07-25  Bruno Haible  <bruno@clisp.org>
69848
69849         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
69850         complex commands.
69851
69852 2006-07-25  Bruno Haible  <bruno@clisp.org>
69853
69854         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
69855         defined in <stdarg.h> or config.h.
69856
69857 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
69860         (gl_STDIO_SAFER): Remove.
69861
69862 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * MODULES.html.sh (File stream based Input/Output):
69865         Add fopen-safer, tmpfile-safer; remove stdio-safer.
69866         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
69867         * modules/fopen-safer, modules/tmpfile-safer: New files.
69868         * modules/stdio-safer: Remove.
69869
69870 2006-07-24  Bruno Haible  <bruno@clisp.org>
69871
69872         * modules/tmpdir: New file.
69873         * MODULES.html.sh (File system functions): Add it.
69874
69875 2006-07-24  Bruno Haible  <bruno@clisp.org>
69876
69877         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
69878         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
69879
69880 2006-07-24  Bruno Haible  <bruno@clisp.org>
69881
69882         * modules/clean-temp: New file.
69883
69884 2006-07-24  Bruno Haible  <bruno@clisp.org>
69885
69886         * m4/tmpdir.m4: New file, from GNU gettext.
69887
69888 2006-07-24  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/tmpdir.h: New file, from GNU gettext.
69891         * lib/tmpdir.c: New file, from GNU gettext.
69892
69893 2006-07-24  Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/clean-temp.h: New file, from GNU gettext.
69896         * lib/clean-temp.c: New file, from GNU gettext.
69897
69898 2006-07-23  Eric Blake  <ebb9@byu.net>
69899
69900         * modules/stdio-safer (Files): Add tmpfile-safer.c.
69901         (Depends-on): Add binary-io.
69902
69903 2006-07-23  Eric Blake  <ebb9@byu.net>
69904
69905         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
69906
69907 2006-07-23  Eric Blake  <ebb9@byu.net>
69908
69909         * lib/tmpfile-safer.c: New file.
69910         * lib/stdio-safer.h (fopen_safer): Add prototype.
69911         * lib/stdio--.h (tmpfile): Make safer.
69912
69913 2006-07-23  Bruno Haible  <bruno@clisp.org>
69914
69915         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
69916         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
69917         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
69918         gl_linked_remove_at): Use it.
69919
69920 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69921         and Simon Josefsson <jas@extundo.com>
69922
69923         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
69924
69925         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
69926
69927 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * modules/close-stream: New file.
69930         * modules/closeout (Description): Make it clear that it exits
69931         with a diagnostic on error.
69932         (Depends-on): Add close-stream.  Remove fpending, stdbool.
69933         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
69934
69935 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69936
69937         * m4/close-stream.m4: New file.
69938
69939 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * lib/close-stream.c, lib/close-stream.h: New files.
69942
69943 2006-07-22  Bruno Haible  <bruno@clisp.org>
69944
69945         Merge from GNU gettext 0.15.
69946
69947         2006-05-01  Bruno Haible  <bruno@clisp.org>
69948
69949                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
69950
69951         2006-07-22  Bruno Haible  <bruno@clisp.org>
69952
69953                 * modules/javaversion: New file.
69954                 * MODULES.html.sh (Java): Add javaversion.
69955
69956         2006-03-12  Bruno Haible  <bruno@clisp.org>
69957
69958                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
69959
69960         2005-12-04  Bruno Haible  <bruno@clisp.org>
69961
69962                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
69963                 (untested).
69964
69965         2006-06-21  Bruno Haible  <bruno@clisp.org>
69966
69967                 Avoid warnings from recent versions of mcs.
69968                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
69969                 -o, -L, -r any more. Use options documented since mcs-1.0
69970                 instead. Similarly for -g.
69971
69972         2005-12-04  Bruno Haible  <bruno@clisp.org>
69973
69974                 * build-aux/csharpcomp.sh.in: Suffix for resources is
69975                 .resources, not .resource.
69976
69977         2005-07-09  Bruno Haible  <bruno@clisp.org>
69978
69979                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
69980                 add a .dll suffix.
69981                 Reported by Mark Junker <mjscod@gmx.de>.
69982
69983         2006-07-22  Bruno Haible  <bruno@clisp.org>
69984
69985                 * modules/gettext: Upgrade to gettext-0.15.
69986                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
69987                 m4/visibility.m4.
69988                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
69989
69990 2006-07-22  Bruno Haible  <bruno@clisp.org>
69991
69992         Merge from GNU gettext 0.15.
69993
69994         2006-03-25  Bruno Haible  <bruno@clisp.org>
69995
69996                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
69997
69998         2006-07-21  Bruno Haible  <bruno@clisp.org>
69999
70000                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70001                 "1.1".
70002
70003         2006-05-09  Bruno Haible  <bruno@clisp.org>
70004
70005                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70006                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70007                 for the conftestver execution.
70008
70009         2006-05-01  Bruno Haible  <bruno@clisp.org>
70010
70011                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70012                 optional target-version argument. Verify that the compiler
70013                 groks source of the specified source-version, or add -source
70014                 option as necessary. Verify that the compiler produces
70015                 bytecode in the specified target-version, or add -target and
70016                 -source options as necessary. Make the result of the test
70017                 available as variable CONF_JAVAC. Also log error output in
70018                 config.log.
70019
70020         2006-03-11  Bruno Haible  <bruno@clisp.org>
70021
70022                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70023
70024         2006-05-09  Bruno Haible  <bruno@clisp.org>
70025
70026                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70027                 CLASSPATH_SEPARATOR to a semicolon.
70028
70029         2006-03-12  Bruno Haible  <bruno@clisp.org>
70030
70031                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70032                 available as variable CONF_JAVA, for subsequent autoconf
70033                 tests. Also log error output in config.log.
70034
70035         2006-07-19  Bruno Haible  <bruno@clisp.org>
70036
70037                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70038                 that getline works on glibc2 systems. Needed to avoid trouble
70039                 in relocatable.c.
70040                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70041
70042         2005-12-04  Bruno Haible  <bruno@clisp.org>
70043
70044                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70045                 launcher (untested).
70046
70047         2005-12-04  Bruno Haible  <bruno@clisp.org>
70048
70049                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70050
70051         2006-07-22  Bruno Haible  <bruno@clisp.org>
70052
70053                 * gettext.m4: Update from GNU gettext-0.15.
70054                 * nls.m4: Likewise.
70055                 * po.m4: Likewise.
70056                 * inttypes-pri.m4: Likewise.
70057                 * inttypes-h.m4: Renamed from inttypes.m4.
70058                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70059
70060 2006-07-22  Bruno Haible  <bruno@clisp.org>
70061
70062         Merge from GNU gettext 0.15.
70063
70064         2005-07-05  Bruno Haible  <bruno@clisp.org>
70065
70066                 * printf-args.c (printf_fetchargs): Work around broken
70067                 definition of wint_t on mingw.
70068
70069         2005-02-12  Bruno Haible  <bruno@clisp.org>
70070
70071                 * xallocsa.h: Add extern "C" for C++.
70072
70073         2006-05-17  Bruno Haible  <bruno@clisp.org>
70074
70075                 Cygwin portability.
70076                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70077
70078         2006-04-30  Bruno Haible  <bruno@clisp.org>
70079
70080                 * progreloc.c: Include <mach-o/dyld.h> if available.
70081                 (find_executable): Use _NSGetExecutablePath when possible.
70082
70083         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70084
70085                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70086                 function.
70087
70088         2005-12-29  Bruno Haible  <bruno@clisp.org>
70089
70090                 * progreloc.c (set_program_name_and_installdir): Fix
70091                 compilation error.
70092
70093         2005-12-04  Bruno Haible  <bruno@clisp.org>
70094
70095                 Cygwin portability.
70096                 * progreloc.c: Include <windows.h> also on Cygwin.
70097                 (find_executable): Add support for Cygwin.
70098                 (set_program_name_and_installdir): Handle also platforms with
70099                 nonempty EXEEXT.
70100
70101         2006-07-11  Bruno Haible  <bruno@clisp.org>
70102
70103                 * javacomp.c: Fix a comment.
70104                 Reported by Jim Meyering.
70105
70106         2006-04-30  Bruno Haible  <bruno@clisp.org>
70107
70108                 * javacomp.h (compile_java_class): Add source_version,
70109                 target_version arguments.
70110                 * javacomp.c: Rewritten to choose only a compiler that
70111                 respects the specified source_version and target_version.
70112
70113         2006-06-27  Bruno Haible  <bruno@clisp.org>
70114
70115                 Assume correct S_ISDIR macro.
70116                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70117
70118         2006-07-22  Bruno Haible  <bruno@clisp.org>
70119
70120                 * javaversion.h: New file, from GNU gettext.
70121                 * javaversion.c: New file, from GNU gettext.
70122                 * javaversion.java: New file, from GNU gettext.
70123                 * javaversion.class: New file, from GNU gettext.
70124
70125         2006-05-17  Bruno Haible  <bruno@clisp.org>
70126
70127                 Cygwin portability.
70128                 * javaexec.c (execute_java_class): Test for jview program
70129                 also on Cygwin.
70130
70131         2006-04-09  Bruno Haible  <bruno@clisp.org>
70132
70133                 * fatal-signal.c: Don't include string.h.
70134                 (at_fatal_signal): Use a copying loop instead of memcpy.
70135
70136         2005-12-04  Bruno Haible  <bruno@clisp.org>
70137
70138                 * csharpexec.c: Add support for 'clix' launcher (untested).
70139                 (execute_csharp_using_sscli): New function.
70140                 (execute_csharp_program): Call it.
70141
70142         2006-06-21  Bruno Haible  <bruno@clisp.org>
70143
70144                 Avoid warnings from recent versions of mcs.
70145                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70146                 -o, -L, -r any more. Use options documented since mcs-1.0
70147                 instead. Similarly for -g.
70148
70149         2005-07-09  Bruno Haible  <bruno@clisp.org>
70150
70151                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70152                 add a .dll suffix.
70153                 Reported by Mark Junker <mjscod@gmx.de>.
70154
70155         2006-06-17  Bruno Haible  <bruno@clisp.org>
70156
70157                 * config.charset: Update for NetBSD 3.0.
70158
70159         2006-05-17  Bruno Haible  <bruno@clisp.org>
70160
70161                 Cygwin portability.
70162                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70163
70164         2006-05-16  Bruno Haible  <bruno@clisp.org>
70165
70166                 * localcharset.c [CYGWIN]: Include <windows.h>.
70167                 (get_charset_aliases): For Cygwin, return the same CPxxx
70168                 aliases list as under WIN32.
70169                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70170                 the environment variables. Fall back to GetACP().
70171
70172         2006-04-05  Bruno Haible  <bruno@clisp.org>
70173
70174                 * config.charset: Update Juan Manuel Guerrero's address.
70175
70176         2005-02-12  Bruno Haible  <bruno@clisp.org>
70177
70178                 * allocsa.h: Add extern "C" for C++.
70179
70180         2005-02-10  Bruno Haible  <bruno@clisp.org>
70181
70182                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70183                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70184
70185         2006-07-22  Bruno Haible  <bruno@clisp.org>
70186
70187                 * gettext.h: Update to GNU gettext-0.15.
70188
70189 2006-07-22  Bruno Haible  <bruno@clisp.org>
70190
70191         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70192         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70193         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70194
70195 2006-07-21  Eric Blake  <ebb9@byu.net>
70196
70197         * modules/stdlib-safer: New file.
70198         * MODULES.html.sh (File stream based Input/Output): Add
70199         stdlib-safer.
70200
70201 2006-07-21  Eric Blake  <ebb9@byu.net>
70202
70203         * lib/stdlib-safer.h: New file from coreutils, required by
70204         stdlib--.h.
70205
70206 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70209
70210 2006-07-20  Bruno Haible  <bruno@clisp.org>
70211
70212         * gnulib-tool: Recognize new option --assume-autoconf.
70213         (autoconf_minversion): New variable.
70214         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70215
70216 2006-07-20  Bruno Haible  <bruno@clisp.org>
70217
70218         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70219
70220 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70221
70222         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70223         Reindent and repaginate.
70224
70225 2006-07-19  Derek Price  <derek@ximbiot.com>
70226
70227         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70228         Correct grammar.
70229
70230 2006-07-17  Bruno Haible  <bruno@clisp.org>
70231
70232         * modules/list: New file.
70233         * modules/array-list: New file.
70234         * modules/carray-list, modules/carray-list-tests: New files.
70235         * modules/linked-list, modules/linked-list-tests: New files.
70236         * modules/avltree-list, modules/avltree-list-tests: New files.
70237         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70238         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70239         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70240         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70241         * modules/oset: New file.
70242         * modules/array-oset: New file.
70243         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70244         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70245         * tests/test-carray_list.c: New file.
70246         * tests/test-linked_list.c: New file.
70247         * tests/test-avltree_list.c: New file.
70248         * tests/test-rbtree_list.c: New file.
70249         * tests/test-linkedhash_list.c: New file.
70250         * tests/test-avltreehash_list.c: New file.
70251         * tests/test-rbtreehash_list.c: New file.
70252         * tests/test-avltree_oset.c: New file.
70253         * tests/test-rbtree_oset.c: New file.
70254         * MODULES.html.sh (Container data structures): New section.
70255
70256 2006-07-17  Bruno Haible  <bruno@clisp.org>
70257
70258         * m4/gl_list.m4: New file.
70259
70260 2006-07-17  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/gl_list.h: New file.
70263         * lib/gl_list.c: New file.
70264         * lib/gl_array_list.h: New file.
70265         * lib/gl_array_list.c: New file.
70266         * lib/gl_carray_list.h: New file.
70267         * lib/gl_carray_list.c: New file.
70268         * lib/gl_linked_list.h: New file.
70269         * lib/gl_linked_list.c: New file.
70270         * lib/gl_anylinked_list1.h: New file.
70271         * lib/gl_anylinked_list2.h: New file.
70272         * lib/gl_avltree_list.h: New file.
70273         * lib/gl_avltree_list.c: New file.
70274         * lib/gl_anyavltree_list1.h: New file.
70275         * lib/gl_anyavltree_list2.h: New file.
70276         * lib/gl_rbtree_list.h: New file.
70277         * lib/gl_rbtree_list.c: New file.
70278         * lib/gl_anyrbtree_list1.h: New file.
70279         * lib/gl_anyrbtree_list2.h: New file.
70280         * lib/gl_anytree_list1.h: New file.
70281         * lib/gl_anytree_list2.h: New file.
70282         * lib/gl_linkedhash_list.h: New file.
70283         * lib/gl_linkedhash_list.c: New file.
70284         * lib/gl_anyhash_list1.h: New file.
70285         * lib/gl_anyhash_list2.h: New file.
70286         * lib/gl_avltreehash_list.h: New file.
70287         * lib/gl_avltreehash_list.c: New file.
70288         * lib/gl_rbtreehash_list.h: New file.
70289         * lib/gl_rbtreehash_list.c: New file.
70290         * lib/gl_anytreehash_list1.h: New file.
70291         * lib/gl_anytreehash_list2.h: New file.
70292
70293         * lib/gl_oset.h: New file.
70294         * lib/gl_oset.c: New file.
70295         * lib/gl_array_oset.h: New file.
70296         * lib/gl_array_oset.c: New file.
70297         * lib/gl_avltree_oset.h: New file.
70298         * lib/gl_avltree_oset.c: New file.
70299         * lib/gl_rbtree_oset.h: New file.
70300         * lib/gl_rbtree_oset.c: New file.
70301         * lib/gl_anytree_oset.h: New file.
70302
70303 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * m4/mkancesdirs.m4: New file.
70306         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70307         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70308         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70309         it.
70310
70311 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70314         * lib/mkancesdirs.h: New files.
70315         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70316         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70317         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70318         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70319         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70320         callers changed.  Revamp internals significantly, by not
70321         attempting to create directories that are temporarily more
70322         permissive than the final results.  Do not attempt to use
70323         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70324         This removes some race conditions, fixes some bugs, and simplifies
70325         things.  Use new dirchownmod function to do owner and mode changes.
70326         * lib/mkdir-p.h: Likewise.
70327         * lib/modechange.c (octal_to_mode): New function.
70328         (struct mode_change): New member mentioned.
70329         (make_node_op_equals): New arg mentioned.  All callers changed.
70330         (mode_compile): Keep track of which mode bits the user has explicitly
70331         mentioned.
70332         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70333         New arg PMODE_BITS, to keep track of which mode bits the user
70334         mentioned; it treats S_ISUID and S_ISGID speciall.
70335         All callers changed.
70336         * lib/modechange.h: Likewise.
70337
70338 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70339
70340         * MODULES.html.sh: Add mkancestors.
70341         * modules/mkancesdirs: New module.
70342         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70343         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70344         The chdir-safer and afs files are now orphans; I'll remove them
70345         unless someone speaks up.
70346         Add lib/dirchownmod.c, lib/dirchownmod.h.
70347         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70348         Add lchown, mkancesdirs.
70349         (Maintainer): Add self.
70350
70351 2006-07-15  Karl Berry  <karl@gnu.org>
70352
70353         * gnulib-tool: help message wording/arrangement.
70354
70355 2006-07-14  Simon Josefsson  <jas@extundo.com>
70356
70357         * doc/gnulib.texi (Libtool and Windows): New section.
70358
70359 2006-07-12  Simon Josefsson  <jas@extundo.com>
70360
70361         * modules/gendocs (License): Fix license, approved by Karl.
70362
70363 2006-07-12  Eric Blake  <ebb9@byu.net>
70364
70365         * MODULES.html.sh: Add gendocs.
70366
70367 2006-07-11  Eric Blake  <ebb9@byu.net>
70368
70369         * modules/fdl: New module, to install doc/fdl.texi.
70370         * MODULES.html.sh: Add new section for documentation modules.
70371         * gnulib-tool: Avoid space-tab.
70372         (--doc-base): New option, to manage files from doc.
70373
70374 2006-07-11  Eric Blake  <ebb9@byu.net>
70375
70376         * m4/absolute-header.m4: Fix comments to match recent change.
70377
70378 2006-07-11  Eric Blake  <ebb9@byu.net>
70379
70380         * gnulib-tool: List --doc-base before --tests-base.
70381
70382 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70383
70384         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70385
70386 2006-07-11  Bruno Haible  <bruno@clisp.org>
70387
70388         * README: Mention where to put documentation.
70389
70390 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70391
70392         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70393
70394 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70395
70396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70397         to stdint.m4.
70398
70399 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70402         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70403         "no/such/file/stdint.h" when there is no such file, so that
70404         the resulting C code can be parsed by dodgy compilers.
70405         Problems reported by Bob Proulx.
70406
70407 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70408
70409         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70410         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70411         macros into the GNU _D_EXACT_NAMLEN.
70412         * lib/savedir.c:  Likewise.
70413         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70414
70415 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70416         and Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70419         * m4/savedir.m4:
70420         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70421         macros into the GNU _D_EXACT_NAMLEN.
70422
70423 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70424
70425         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70426         around the absolute name, to work around a problem with the HP-UX
70427         11.23 native C compiler, reported by Bob Proulx.
70428
70429 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70430
70431         * doc/maintain.texi, make-stds.texi: Sync from
70432         <http://savannah.gnu.org/projects/gnustandards>.
70433
70434 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70435
70436         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70437
70438 2006-07-09  Jim Meyering  <jim@meyering.net>
70439
70440         * m4/glob.m4: Remove a doubled word in a comment.
70441
70442 2006-07-09  Jim Meyering  <jim@meyering.net>
70443
70444         * lib/argp-pv.c: Remove a doubled word in a comment.
70445         * lib/check-version.c (check_version): Likewise.
70446         * lib/javacomp.c (compile_java_class): Likewise.
70447
70448 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
70451         for the benefit of people using Autoconf 2.60.  If you want to
70452         support older Autoconf versions you can copy m4/onceonly_2_57.m4
70453         (or m4/onceonly.m4, if pre-2.57) manually.
70454
70455 2006-07-08  Jim Meyering  <jim@meyering.net>
70456
70457         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
70458         comment.
70459         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
70460         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
70461         comment.
70462
70463 2006-07-08  Jim Meyering  <jim@meyering.net>
70464
70465         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
70466
70467 2006-07-07  Simon Josefsson  <jas@extundo.com>
70468
70469         * tests/test-crc.c: Change expected crc value, the test vector
70470         were probably computed using the old broken crc.c?
70471
70472 2006-07-06  Simon Josefsson  <jas@extundo.com>
70473
70474         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
70475         now the canonical place for the M4 file).
70476
70477         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
70478         from the sys_socket dependency now.
70479
70480         * modules/inet_pton (Files): Ditto.
70481
70482         * modules/inet_ntop (Files): Ditto.
70483
70484 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70485
70486         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
70487         not gl_PREREQ_GETUSERSHELL.
70488
70489 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70490
70491         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
70492         with only one argument, for Autoconf 2.60.
70493         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
70494         expand to nothing, so add a shell command to avoid syntax error.
70495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70496
70497 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70498
70499         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
70500
70501 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70502
70503         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
70504         no longer needed.  Check for isblank decl.
70505         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
70506         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
70507         of existence.
70508
70509 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         * lib/getloadavg.c: Use __VMS, not VMS.
70512         * lib/getopt.c: Likewise.
70513         * lib/getpagesize.h: Likewise.
70514         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
70515         and probably does not work.
70516
70517 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
70518
70519         * lib/.cppi-disable: Add wcwidth.
70520         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
70521         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
70522         (ISGRAPH): Remove.  All uses changed to isgraph.
70523         (FOLD) [!defined _LIBC]: Remove special case.
70524         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
70525         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
70526         HAVE_ISBLANK.
70527         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
70528         case.
70529
70530 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
70531
70532         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
70533         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
70534         brackets.  Other minor changes to suppress some compiler
70535         warnings.
70536
70537 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70538         and Paul Eggert  <eggert@cs.ucla.edu>
70539
70540         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
70541         of invoking obsolescent AC_HEADER_DIRENT macro.
70542         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
70543         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
70544         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
70545         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
70546         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
70547         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70548         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
70549         * m4/readdir.m4: Remove; no longer needed.
70550
70551 2006-07-06  Derek R. Price  <derek@ximbiot.com>
70552         and Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
70555         Don't worry about this obsolete case any more.
70556         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
70557         directories.
70558         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
70559         worry about this obsolete case any more.
70560         * lib/fts.c: Likewise.
70561         * lib/getcwd.c: Likewise.
70562         * lib/glob.h: Likewise.
70563         * lib/savedir.c: Likewise.
70564
70565 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70566
70567         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
70568         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
70569         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
70570         needed.
70571         All uses removed.
70572         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70573         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70574         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
70575         needed.
70576         * m4/getdate.m4 (gl_GETDATE): Likewise.
70577         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70578         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70579         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70580         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70581         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
70582         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70583         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
70584         needed.
70585
70586 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * lib/memcasecmp.c: Include <limits.h>.
70589         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
70590         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
70591         Don't assume isdigit succeeds only on '0' through '9'.
70592
70593 2006-07-05  Eric Blake  <ebb9@byu.net>
70594
70595         * modules/getaddrinfo (Depends-on): Add snprintf.
70596
70597 2006-07-05  Eric Blake  <ebb9@byu.net>
70598
70599         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
70600         to avoid 'header present but could not be compiled' on cygwin.
70601
70602 2006-07-05  Eric Blake  <ebb9@byu.net>
70603
70604         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
70605         missing from netdb.h.
70606         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
70607
70608 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70609
70610         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
70611         no longer needed.
70612         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
70613         * m4/getdate.m4 (gl_GETDATE): Likewise.
70614         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
70615         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
70616         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
70617         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
70618         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
70619
70620 2006-07-05  Derek R. Price  <derek@ximbiot.com>
70621
70622         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
70623         All uses of is_space replaced by isspace.
70624         * lib/exit.h: Don't talk about STDC_HEADERS.
70625         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
70626         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
70627         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
70628         replaced by isprint etc.
70629         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
70630         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70631         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
70632         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
70633         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
70634         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
70635
70636 2006-07-05  Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
70639         the function exists, before testing against AIX.
70640         Reported by Martin Lambers <marlam@marlam.de>.
70641
70642 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70643
70644         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
70645         From Mark D. Baushke.
70646
70647 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
70648
70649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
70650         to the absolute name, not just one, to bypass Sun C 5.8's
70651         "warning: #include of /usr/include/... may be non-portable".
70652
70653 2006-07-04  Eric Blake  <ebb9@byu.net>
70654
70655         * modules/dirname-tests: New test module.
70656         * tests/test-dirname.c: New file, replacing dirname.c
70657         TEST_DIRNAME section that was recently deleted.
70658
70659 2006-07-04  Bruno Haible  <bruno@clisp.org>
70660
70661         Assume ANSI C header files and <ctype.h> functions.
70662         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
70663         (mbsnwidth): Use isprint, iscntrl instead.
70664
70665 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         Merge from coreutils.
70668         * MODULES.html.sh: Add xstrtold.
70669         * modules/xstrtold: New file.
70670         * modules/cycle-check (Files): Add lib/same-inode.h.
70671         * modules/dirname (Files): Add m4/double-slash-root.m4.
70672         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
70673         * modules/mkdir-p (Files): Add lib/same-inode.h.
70674         * modules/same (Files): Add lib/same-inode.h.
70675
70676 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70677
70678         * m4/absolute-header.m4: Renamed from full-header-path.m4.
70679         This is to keep the terminology clean; POSIX talks about
70680         "absolute pathnames", not "full pathnames", but the GNU
70681         Coding Standards say to use "path" for something else;
70682         so use "absolute" to keep both sides happy.
70683         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
70684         Set gl_absolute_header, not gl_full_header_path.
70685         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
70686         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
70687         All uses changed.
70688
70689         Merge from coreutils.
70690
70691         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70692
70693         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
70694         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
70695         want to require the building of c-strtod.o.
70696         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
70697         needs -lm directly.
70698         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
70699
70700         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
70703         --as-needed option if available.  Problem reported by Albert Chin in
70704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
70705         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
70706         cc merely issues a bunch of annoying warnings for --as-needed
70707         (this problem was reported by Bob Proulx).  Also, try linking with
70708         -lm to detect a bug in binutils 2.16 (this problem was reported
70709         by Ralf Wildenhues).
70710
70711         2006-06-18  Jim Meyering  <jim@meyering.net>
70712
70713         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
70714         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
70715         macro.
70716         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
70717         also check for glibc-2.4's abort-inducing bug.
70718
70719         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
70720         Low-probability clean-up should be to use rmdir to get rid of
70721         the just-created directory, not unlink.
70722
70723         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
70724         configure fail, and request a bug report to inform us about it.
70725         Add a comment that, barring reports to the contrary, in 2007 we'll
70726         assume ftruncate is universally available.
70727
70728         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
70731
70732         2006-03-12  Jim Meyering  <jim@meyering.net>
70733
70734         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
70735         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
70736         * m4/same.m4 (gl_SAME): Likewise.
70737         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
70738
70739         2006-03-11  Eric Blake  <ebb9@byu.net>
70740
70741         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
70742         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
70743         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
70744         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
70745
70746 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
70749         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
70750         reported by Mark D. Baushke, one in
70751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
70752
70753         Merge from coreutils.
70754
70755         * lib/.cppi-disable: Add stdint_.h.
70756         * lib/.cvsignore: Add stdint.h.
70757
70758         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
70761         both double and long double versions.
70762         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
70763         * lib/xstrtold.c: New file.
70764         * lib/xstrtod.h (xstrtold): New decl.
70765
70766         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
70767
70768         * lib/filemode.c (setst): Remove.
70769         (strmode): Rewrite to avoid setst.  This makes the code shorter,
70770         (arguably) clearer, and the generated code is a bit smaller on my
70771         Debian GNU/Linux stable x86 host.
70772
70773         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * lib/filemode.c: Include "filemode.h" first, to test the interface.
70776         Assume that filemode.h includes sys/types.h and sys/stat.h.
70777         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
70778         (ftypelet): Reorder to put common cases first, for efficiency.
70779         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
70780         to do 'M'.
70781         (strmode): Renamed from mode_string, and now stores 12 bytes instead
70782         of 10, for compatibility with FreeBSD.  All callers changed.
70783         (filemodestring): Now stores 12 bytes instead of 10, and sets file
70784         types that can't be deduced solely from st_mode.  First arg is now a
70785         const pointer.
70786         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
70787         (strmode): Renamed from mode_string.
70788         (filemodestring): New decl.
70789         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
70790         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
70791         needed.
70792         (S_ISPORT, S_ISWHT): New macros, if not already defined.
70793
70794         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
70795
70796         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
70797         fsusage.h now does that.  Include fsusage.h first, to test interface.
70798         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
70799         at most one method (the old code could have generated decls that
70800         didn't conform to C89, not that this was ever exercised).
70801         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
70802
70803         2006-03-19  Jim Meyering  <jim@meyering.net>
70804
70805         Work even in a chroot where d_ino values for entries in "/"
70806         don't match the stat.st_ino values for the same names.
70807         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
70808         number, iterate through all entries again, using lstat instead.
70809         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
70810         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
70811
70812         * lib/getcwd.c (__getcwd): Clarify a comment.
70813         Use memcpy in place of a call to strcpy.
70814
70815         2006-03-12  Jim Meyering  <jim@meyering.net>
70816
70817         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
70818         matches that of the current directory (which we're about to chdir ".."
70819         out of), then save the dev-ino of the parent, instead.
70820
70821         * lib/same-inode.h (SAME_INODE): New file/macro.
70822         * lib/chdir-safer.c (SAME_INODE): Remove definition.
70823         Include "same-inode.h", instead.
70824         * lib/same.c: Likewise.
70825         * lib/cycle-check.h: Include "same-inode.h".
70826         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
70827         * lib/cycle-check.c (SAME_INODE): Remove definition.
70828         * lib/root-dev-ino.h: Include "same-inode.h".
70829
70830         2006-03-11  Eric Blake  <ebb9@byu.net>
70831
70832         * lib/same.c (same_name): s/base_name/last_component/
70833         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
70834         * lib/filenamecat.c (file_name_concat): Likewise.
70835
70836         2006-03-11  Eric Blake  <ebb9@byu.net>,
70837                     Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
70840         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
70841         drive prefix.
70842         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
70843         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
70844         (last_component): New method.
70845         * lib/dirname.c (dir_len): Determine when drive letters need a
70846         subsequent slash.  Preserve // when it is special.
70847         (dir_name): Don't append dot when drive letter is absolute.
70848         [TEST_DIRNAME]: Move into a full-blown gnulib test.
70849         * lib/basename.c (base_name): New semantics - malloc the result.
70850         Preserve // when it is special.  Preserve relative files that look
70851         like drive letters.
70852         (base_len): Preserve // when it is special.
70853         (last_component): New method, similar to old base_name semantics.
70854         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
70855         base_name.  Strip redundant slashes from ///.
70856
70857 2006-07-03  Jim Meyering  <jim@meyering.net>
70858
70859         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
70860         macro is used before the first cycle_check call.
70861
70862 2006-07-03  Eric Blake  <ebb9@byu.net>
70863
70864         * modules/dirname (Depends-on): Add xstrndup.
70865
70866 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
70869         test cases, so that config.log is a bit easier to follow.
70870
70871 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
70874         both are 64 bits, since this seems to be the tradition, and this
70875         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
70876         we ever run into a host that prefers long long to long in this
70877         case, we'll need another configure-time test.  Problem reported by
70878         Jim Meyering.
70879
70880 2006-07-02  Eric Blake  <ebb9@byu.net>
70881
70882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
70883
70884 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * modules/inttypes (Depends-on): No longer depends on stdint.
70887         * modules/stdint (Description): Say more about assumptions.
70888         Say that the fast types might differ.  Say macros are used.
70889         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
70890         (Makefile.am): Revise list of substituted symbols to match
70891         new stdint.m4.
70892         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
70893         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
70894         * tests/test-stdint.c (verify_same_types)
70895         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
70896         the code conforms to C99/C89.
70897         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
70898         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
70899
70900 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70901
70902         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
70903         but fix a bug, by requiring at least 64 bits.
70904         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
70905         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
70906         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
70907         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
70908
70909         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
70910         changes.  Make 2.59 a prerequisite.  Check and substitute for
70911         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
70912         inttypes.h.  Do not use special include files; just use the
70913         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
70914         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
70915         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
70916         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
70917         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
70918         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
70919         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
70920         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
70921         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
70922         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
70923         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
70924         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
70925         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
70926         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
70927         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
70928         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
70929         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
70930         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
70931         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
70932         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
70933         WINT_MAX.  Check for C99 conformance more strictly, by detecting
70934         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
70935         not check for things that C99 does not require, e.g., int8_t.  If
70936         a test isn't needed unless <stdint.h> isn't working, and is
70937         unlikely to be needed for any other reason, then don't do it
70938         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
70939         size_t, since we assume C89 freestanding at least.  Do not check
70940         for sig_atomic_t, wchar_t, or wint_t, since the code now does
70941         the right thing even if the types are not defined.  Instead use:
70942         (gl_STDINT_TYPE_PROPERTIES): New macro.
70943         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
70944         testing whether <sys/types.h> clashes, as Autoconf does this for
70945         us now.  All uses removed.
70946         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
70947         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
70948         (gl_CHECK_TYPE_SAME):
70949         Remove; no longer needed.
70950         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
70951         exists, since we'll return 0 anyway in that case.
70952         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
70953
70954 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
70955
70956         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
70957         possible collision with system files.
70958         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
70959         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
70960         WCHAR_MIN and WCHAR_MAX in this case.
70961         (<stddef.h>): Do not include; no longer needed.
70962         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
70963         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
70964         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
70965         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
70966         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
70967         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
70968         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
70969         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
70970         !defined(__c99))]: Include in this case too, since it's harmless
70971         now.
70972         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
70973         dangerous to do so.
70974         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
70975         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
70976         (_STDINT_MIN, _STDINT_MAX): New macros.
70977         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
70978         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
70979         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
70980         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
70981         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
70982         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
70983         macros, not typedefs; this simplifies things quite a bit.
70984         Use long int for all types narrower than int64_t.
70985         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
70986         Define in terms of long long int or int64_t or long int,
70987         not int64_t or int32_t.  This saves some compile-time testing.
70988         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
70989         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
70990         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
70991         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
70992         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
70993         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
70994         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
70995         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
70996         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
70997         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
70998         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
70999         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71000         undef any previous version and define our own version, for
71001         simplicity and consistency with the new macros for types.
71002         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71003         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71004         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71005         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71006         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71007         @WINT_T_SUFFIX@ to keep things simple here.
71008         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71009         Simplify by assuming typical 8/16/32/64 host, since we're
71010         already doing that elsewhere anyway.
71011         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71012         and assume long long int is 64 bits if available.  This
71013         speeds up 'configure'.
71014
71015 2006-07-01  Eric Blake  <ebb9@byu.net>
71016
71017         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71018         Reported by Andreas Buening.
71019
71020 2006-07-01  Eric Blake  <ebb9@byu.net>
71021
71022         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71023
71024 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71025
71026         * lib/getaddrinfo.c: fixed typo
71027
71028 2006-06-29  Jim Meyering  <jim@meyering.net>
71029
71030         * modules/strftime (Maintainer): Add my name, since with the
71031         FPRINTFTIME changes strftime.c has forked from glibc.
71032
71033 2006-06-29  Eric Blake  <ebb9@byu.net>
71034
71035         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71036
71037 2006-06-29  Eric Blake  <ebb9@byu.net>
71038
71039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71040
71041 2006-06-29  Eric Blake  <ebb9@byu.net>
71042
71043         * lib/stat_.h: New file.
71044
71045 2006-06-29  Eric Blake  <ebb9@byu.net>
71046
71047         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71048         unused static function.
71049
71050 2006-06-29  Eric Blake  <ebb9@byu.net>
71051
71052         * doc/functions.texi (Function Portability): Document missing lstat
71053         on mingw.
71054
71055 2006-06-29  Eric Blake  <ebb9@byu.net>
71056
71057         * MODULES.html.sh: Add sys_stat.
71058         * modules/sys_stat: New module.
71059         * modules/mkstemp (Depends-on): Add sys_stat.
71060
71061 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71062
71063         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71064
71065 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71066
71067         * m4/c-bs-a.m4: Removed.
71068
71069 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71070
71071         * lib/strftime.c: Assume strftime() exists.
71072
71073 2006-06-29  Derek Price  <derek@ximbiot.com>
71074
71075         * modules/c-bs-a: Removed - \a is C89.
71076         * MODULES.html.sh: Remove c-bs-a.
71077
71078 2006-06-29  Bruno Haible  <bruno@clisp.org>
71079
71080         * modules/wcwidth (License): Change to LGPL.
71081
71082 2006-06-28  Simon Josefsson  <jas@extundo.com>
71083
71084         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71085         on _WIN32.
71086
71087         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71088         getnameinfo.
71089
71090 2006-06-28  Simon Josefsson  <jas@extundo.com>
71091
71092         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71093
71094 2006-06-28  Simon Josefsson  <jas@extundo.com>
71095
71096         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71097         functions there.  It will succeed on Windows XP, but on Windows
71098         2000 and (presumably) earlier, it will fail, and use the internal
71099         re-implementation.
71100         (use_win32_p): New function.
71101         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71102         Support AI_NUMERICSERV to disable getservbyname.
71103         (getnameinfo): New function, only supports
71104         NI_NUMERICHOST|NI_NUMERICSERV for now.
71105
71106         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71107         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71108         getnameinfo.
71109
71110 2006-06-28  Eric Blake  <ebb9@byu.net>
71111
71112         * modules/wcwidth: New file.
71113         * modules/mbchar (Depends-on): Add wcwidth.
71114         * modules/mbswidth (Depends-on): Add wcwidth.
71115         * MODULES.html.sh: Add wcwidth.
71116
71117 2006-06-28  Eric Blake  <ebb9@byu.net>
71118
71119         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71120         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71121
71122 2006-06-28  Eric Blake  <ebb9@byu.net>
71123
71124         * lib/xvasprintf.h: Fix comments.
71125
71126 2006-06-28  Eric Blake  <ebb9@byu.net>
71127
71128         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71129         * lib/mbswidth.c (wcwidth): Move from here...
71130         * lib/wcwidth.h: ...to this new file.
71131
71132 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71133
71134         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71135
71136         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71137         it's obsolete.
71138         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71139
71140 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71141
71142         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71143         Autoconf 2.60 says this stuff was obsolete.
71144
71145 2006-06-28  Bruno Haible  <bruno@clisp.org>
71146
71147         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71148
71149 2006-06-28  Bruno Haible  <bruno@clisp.org>
71150
71151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71152         gt_TYPE_WCHAR_T.
71153
71154 2006-06-28  Bruno Haible  <bruno@clisp.org>
71155
71156         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71157         declaration for wcwidth.
71158         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71159
71160 2006-06-28  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71163         (mkdir): Define using _mkdir.
71164
71165 2006-06-28  Bruno Haible  <bruno@clisp.org>
71166
71167         * lib/getaddrinfo.h: Fix POSIX URL.
71168         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71169         _WIN32.
71170         (use_win32_p): Make static.
71171         (getaddrinfo): Reject service name if it is empty or does not consist
71172         solely of decimal digits, or if its value is > 65535.
71173         (getnameinfo): Remove useless casts.
71174
71175 2006-06-27  Simon Josefsson  <jas@extundo.com>
71176
71177         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71178         Eggert and Martin Lambers.
71179
71180 2006-06-27  Simon Josefsson  <jas@extundo.com>
71181
71182         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71183         Eggert and Martin Lambers.
71184
71185 2006-06-27  Bruno Haible  <bruno@clisp.org>
71186
71187         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71188         result to 0, not to empty.
71189         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71190
71191 2006-06-27  Bruno Haible  <bruno@clisp.org>
71192
71193         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71194
71195 2006-06-26  Simon Josefsson  <jas@extundo.com>
71196
71197         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71198         present.
71199
71200 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71203         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71204         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71205
71206 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71207
71208         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71209
71210 2006-06-26  Bruno Haible  <bruno@clisp.org>
71211
71212         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71213
71214 2006-06-26  Bruno Haible  <bruno@clisp.org>
71215
71216         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71217
71218 2006-06-26  Bruno Haible  <bruno@clisp.org>
71219
71220         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71221         SGI C compiler in pre-C99 mode.
71222         Suggested by Mark D. Baushke and Larry Jones.
71223
71224 2006-06-26  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71227         WCHAR_MAX.
71228         Reported by Mark D. Baushke and Larry Jones.
71229
71230 2006-06-26  Bruno Haible  <bruno@clisp.org>
71231
71232         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71233         in pre-C99 mode.
71234         Suggested by Mark D. Baushke and Larry Jones.
71235
71236 2006-06-23  Simon Josefsson  <jas@extundo.com>
71237             Bruno Haible  <bruno@clisp.org>
71238
71239         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71240         Emit mostlyclean-local rule.
71241         (func_emit_tests_Makefile_am): Likewise.
71242         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71243
71244 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71245
71246         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71247
71248 2006-06-23  Bruno Haible  <bruno@clisp.org>
71249
71250         * tests/test-stdint.c: Update to match ISO C 99 Technical
71251         Corrigendum 1.
71252
71253 2006-06-23  Bruno Haible  <bruno@clisp.org>
71254
71255         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71256
71257 2006-06-23  Bruno Haible  <bruno@clisp.org>
71258
71259         * lib/stdint_.h: Treat IRIX like OpenBSD.
71260
71261 2006-06-23  Bruno Haible  <bruno@clisp.org>
71262
71263         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71264         ISO C 99 Technical Corrigendum 1.
71265
71266 2006-06-22  Simon Josefsson  <jas@extundo.com>
71267
71268         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71269         MinGW.
71270
71271 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71274         needed.  Some compiler complained about some of them.  Problem reported
71275         by Larry Jones in
71276         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71277
71278 2006-06-21  Simon Josefsson  <jas@extundo.com>
71279
71280         * tests/test-getaddrinfo.c: New file.
71281
71282         * modules/getaddrinfo-tests: New file.
71283
71284         * MODULES.html.sh: Add inet_pton.
71285
71286         * modules/inet_pton: New file.
71287
71288 2006-06-21  Simon Josefsson  <jas@extundo.com>
71289
71290         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71291         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71292         of using the (limited) gnulib implementation on Windows XP.
71293
71294         * m4/inet_pton.m4: New file.
71295
71296 2006-06-21  Simon Josefsson  <jas@extundo.com>
71297
71298         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71299         variable.
71300
71301         * lib/socket_.h: Don't define WINVER.
71302
71303         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71304         slightly modified to work in gnulib.
71305
71306 2006-06-21  Simon Josefsson  <jas@extundo.com>
71307
71308         * doc/gnulib.texi (Windows sockets): Add.
71309
71310 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71311
71312         * lib/read-file.c (fread_file): Start with buffer allocation of
71313         0 bytes rather than 1 byte; this simplifies the code.
71314         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71315         code to free buffer and save/restore errno.
71316         (internal_read_file): Remove unused local.
71317
71318 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71319
71320         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71321         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71322         Problem reported by Denis Excoffier in
71323         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71324
71325 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71326
71327         * modules/sys_socket, modules/socklen: Include sys/types since
71328         FreeBSD 4.x's sys/socket.h needs it.
71329
71330 2006-06-19  Simon Josefsson  <jas@extundo.com>
71331
71332         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71333
71334 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71337
71338 2006-06-19  Bruno Haible  <bruno@clisp.org>
71339
71340         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71341         and FULL_PATH_INTTYPES_H in angle brackets.
71342         Reported by Mark D. Baushke <mdb@gnu.org>.
71343
71344 2006-06-17  Eric Blake  <ebb9@byu.net>
71345
71346         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71347         errno.
71348
71349 2006-06-17  Bruno Haible  <bruno@clisp.org>
71350
71351         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71352         <sys/inttypes.h>.
71353
71354 2006-06-17  Bruno Haible  <bruno@clisp.org>
71355
71356         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71357         whether errno is declared. Assume <errno.h> declares errno.
71358
71359 2006-06-17  Bruno Haible  <bruno@clisp.org>
71360
71361         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71362
71363 2006-06-17  Bruno Haible  <bruno@clisp.org>
71364
71365         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71366         problem on Solaris 2.5.1.
71367
71368 2006-06-16  Eric Blake  <ebb9@byu.net>
71369
71370         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71371         * lib/unicodeio.c [!defined errno]: Likewise.
71372         * lib/strtol.c [!defined errno]: Likewise.
71373         * lib/strtod.c [!defined errno]: Likewise.
71374
71375 2006-06-15  Eric Blake  <ebb9@byu.net>
71376
71377         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71378
71379 2006-06-15  Eric Blake  <ebb9@byu.net>
71380
71381         * config/srclist.txt (ssize_t.m4): Lose sync.
71382
71383 2006-06-15  Bruno Haible  <bruno@clisp.org>
71384
71385         * modules/stdint (Files): Include m4/full-header-path.m4,
71386         m4/size_max.m4, m4/wchar_t.m4.
71387         (Makefile.am): Many more substitutions.
71388         * modules/stdint-tests: New file.
71389         * tests/test-stdint.c: New file.
71390
71391 2006-06-15  Bruno Haible  <bruno@clisp.org>
71392
71393         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71394         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71395         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71396         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71397         gl_CHECK_TYPE_SAME): New macros.
71398
71399 2006-06-15  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71402
71403 2006-06-15  Bruno Haible  <bruno@clisp.org>
71404
71405         * lib/stdint_.h: Rewritten to be fully auto-configured.
71406         Fixes bug on HP-UX/IA64.
71407
71408 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * lib/getdate.y (__attribute__): Don't define if already defined.
71411         Problem reported by Larry Jones.
71412         * lib/utimens.c (__attribute__): Likewise.
71413
71414 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71417         reported by Andreas Schwab.
71418
71419 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71420             Bruno Haible  <bruno@clisp.org>
71421
71422         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71423         check for the declaration of strnlen and a run test that exposes the
71424         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71425         rpl_strndup.
71426
71427 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71428             Bruno Haible  <bruno@clisp.org>
71429
71430         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71431
71432 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71433
71434         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71435         compile test, for Tru64 4.0D.
71436
71437 2006-05-28  Karl Berry  <karl@gnu.org>
71438
71439         * config/srclist.txt (printf-args.c): lose sync.
71440
71441 2006-05-26  Martin Lambers  <marlam@marlam.de>
71442
71443         * lib/getpass.c: Updates the test for the native W32 API, and adds
71444         missing includes, thus fixing compilation warnings.
71445
71446 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71447
71448         * lib/exclude.c (exclude_fnmatch): New function.
71449         (excluded_file_name): Call exclude_fnmatch.
71450         * lib/exclude.h (excluded_file_name): New prototype
71451
71452 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
71453
71454         * lib/tempname.c (small_open, large_open): New macros.
71455         (__open, __open64) [!_LIBC]: Remove.
71456         (__gen_tempname): Use small_open and large_open instead of __open
71457         and __open64.  This fixes a portability bug on HP-UX 11.11i
71458         reported by Simon Wing-Tang in
71459         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
71460
71461 2006-05-24  Bruno Haible  <bruno@clisp.org>
71462
71463         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
71464         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
71465         Reported by Thorsten Maerz <torte@netztorte.de> via
71466         Aaron Stone <aaron@serendipity.cx>.
71467
71468 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
71471         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
71472         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
71473         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
71474         not really conditional on the cache.
71475         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
71476
71477 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
71480         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
71481         (my_usleep): Don't mishandle maximum value.
71482
71483 2006-05-19  Jim Meyering  <jim@meyering.net>
71484
71485         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
71486
71487 2006-05-17  Bruno Haible  <bruno@clisp.org>
71488
71489         Cygwin portability.
71490         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
71491
71492 2006-05-17  Bruno Haible  <bruno@clisp.org>
71493
71494         * lib/stdint_.h: Fix recognition of Cygwin.
71495
71496 2006-05-15  Bruno Haible  <bruno@clisp.org>
71497
71498         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
71499         on libtool patch by Ralf Wildenhues.
71500
71501 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
71504         test for C99 conformance; (bool) 0.5 is an integer constant
71505         expression, but (bool) -0.5 is not.  Problem reported by Fedor
71506         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
71507
71508 2006-05-11  Simon Josefsson  <jas@extundo.com>
71509
71510         * m4/xvasprintf.m4: Fix obvious typo.
71511
71512 2006-05-11  Jim Meyering  <jim@meyering.net>
71513
71514         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
71515         James Lemley.
71516
71517 2006-05-10  Simon Josefsson  <jas@extundo.com>
71518
71519         * lib/md4.c: Typo fix, update copyright years.
71520         (K1, K2): Don't use L because it turn computations into 64-bit on
71521         64-bit platforms.
71522
71523 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
71524
71525         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
71526         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
71527         unwanted sign propagation, e.g., on hosts with 64-bit int.
71528         There still are some problems with reeelly weird theoretical hosts
71529         (e.g., 33-bit int) but it's not worth worrying about now.
71530         * lib/sha1.c (rol): Likewise.
71531         (K1, K2, K3, K4): Remove unnecessary L suffix.
71532
71533 2006-05-10  Bruno Haible  <bruno@clisp.org>
71534
71535         * lib/des.c: Cast to avoid warnings.
71536
71537 2006-05-09  Bruno Haible  <bruno@clisp.org>
71538
71539         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
71540         (Depends-on): Depend also on xsize, stdarg.
71541         (configure.ac): Add gl_XVASPRINTF.
71542
71543 2006-05-09  Bruno Haible  <bruno@clisp.org>
71544
71545         * m4/xvasprintf.m4: New file.
71546
71547 2006-05-09  Bruno Haible  <bruno@clisp.org>
71548
71549         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
71550         (EOVERFLOW): Define fallback value.
71551         (xstrcat): New function.
71552         (xvasprintf): Recognize the special case of a string concatenation.
71553
71554 2006-05-08  Eric Blake  <ebb9@byu.net>
71555
71556         * gnulib-tool (func_version): Base copyright year on CVS date.
71557         (func_emit_copyright_notice): New function.
71558         (func_emit_lib_Makefile_am): Use it.
71559         (func_emit_tests_Makefile_am): Likewise.
71560         (func_import): Likewise.
71561
71562 2006-05-08  Bruno Haible  <bruno@clisp.org>
71563
71564         * modules/stdarg: New file.
71565         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
71566
71567 2006-05-08  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/stdarg.m4: New file, from GNU gettext.
71570
71571 2006-05-08  Bruno Haible  <bruno@clisp.org>
71572
71573         * config/srclist.txt (build-aux/config.rpath): different from latest
71574         release.
71575
71576 2006-05-08  Bruno Haible  <bruno@clisp.org>
71577
71578         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
71579
71580 2006-05-05  Jim Meyering  <jim@meyering.net>
71581
71582         * m4/warning.m4: New file, derived from bison's file by the same name.
71583
71584 2006-05-03  Bruno Haible  <bruno@clisp.org>
71585
71586         * lib/stdint_.h: Shorter URL.
71587         * lib/inttypes.h: Likewise.
71588
71589 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
71592
71593 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71594
71595         * lib/verify.h: Document the internals better.  Most of this change
71596         was written by Bruno Haible.
71597
71598 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
71599
71600         * doc/verify.texi: New file, partly based on a proposal by
71601         Bruno Haible.
71602
71603 2006-05-02  Bruno Haible  <bruno@clisp.org>
71604
71605         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
71606         test from here...
71607         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
71608
71609 2006-04-29  Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
71612         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
71613
71614 2006-04-29  Bruno Haible  <bruno@clisp.org>
71615
71616         * gnulib-tool: Make --update option actually work.
71617
71618 2006-04-29  Bruno Haible  <bruno@clisp.org>
71619
71620         * doc/gcd.texi: New file.
71621         * doc/gnulib.texi: Include it.
71622
71623 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         * lib/getdate.y (get_date): When adding relative date, start with the
71626         initial time, not with the result of the first mktime call.
71627
71628 2006-04-25  Bruno Haible  <bruno@clisp.org>
71629
71630         * gnulib-tool (func_import): Output the include directives in three
71631         blocks, sorted separately.
71632         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71633
71634 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71635
71636         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
71637         to define main with arguments, for C++.  Reported by Eric Blake.
71638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
71639         Prefer 'int main ()' to 'int main (void)', for C++.
71640         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
71641         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
71642         for 'main', for C99 and C++.
71643
71644 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
71647         Don't assume that exit status -1 is valid.
71648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71649         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
71650         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71651         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
71652         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
71653         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
71654         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
71655         functions can be used without declaring them, or that you can
71656         exit with status -1.
71657         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71658
71659 2006-04-24  Karl Berry  <karl@gnu.org>
71660
71661         * config/srclist.txt (longdouble.m4): sync lost.
71662
71663 2006-04-24  Eric Blake  <ebb9@byu.net>
71664
71665         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
71666
71667 2006-04-24  Bruno Haible  <bruno@clisp.org>
71668
71669         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
71670         poll() implementation in AIX.
71671         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71672
71673 2006-04-24  Bruno Haible  <bruno@clisp.org>
71674
71675         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
71676         assigned exactly once.
71677
71678 2006-04-23  Claudio Fontana  <claudio@gnu.org>
71679             Bruno Haible  <bruno@clisp.org>
71680
71681         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
71682         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
71683         for AM_CPPFLAGS.
71684
71685 2006-04-23  Bruno Haible  <bruno@clisp.org>
71686
71687         * modules/copy-file: Depend on unistd.
71688         * modules/execute: Likewise.
71689         * modules/fatal-signal: Likewise.
71690         * modules/findprog: Likewise.
71691         * modules/mkdtemp : Likewise.
71692         * modules/pipe: Likewise.
71693         * modules/wait-process: Likewise.
71694
71695 2006-04-23  Bruno Haible  <bruno@clisp.org>
71696
71697         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
71698         condition was already detected.
71699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71700
71701 2006-04-23  Bruno Haible  <bruno@clisp.org>
71702
71703         * lib/copy-file.c: Include <unistd.h> unconditionally.
71704         * lib/execute.c: Likewise.
71705         * lib/fatal-signal.c: Likewise.
71706         * lib/findprog.c: Likewise.
71707         * lib/mkdtemp.c: Likewise.
71708         * lib/pipe.h: Likewise.
71709         * lib/pipe.c: Likewise.
71710         * lib/wait-process.h: Likewise.
71711
71712 2006-04-23  Bruno Haible  <bruno@clisp.org>
71713
71714         * gnulib-tool (func_usage): Fix --import description. Document
71715         --update.
71716         (func_import): Create temporary file in a temporary directory, if
71717         --dry-run is specified. Silence errors from 'grep' when there are no
71718         m4 files in $m4dir.
71719         (func_create_testdir): Silence errors from 'grep' when there are no
71720         m4 files in $m4dir.
71721         Reported by Karl Berry <karl@freefriends.org>.
71722
71723 2006-04-20  Bruno Haible  <bruno@clisp.org>
71724
71725         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
71726         one argument, so that the code will be portable to Autoconf 2.60.
71727         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
71728         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71729         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
71730
71731 2006-04-19  Derek Price  <derek@ximbiot.com>
71732             Eric Blake  <ebb9@byu.net>
71733
71734         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
71735         rather than "/full/path.h".  Update comment to match.  Shorten &
71736         generalize m4_translit call via AS_TR_CPP.
71737
71738 2006-04-19  Derek Price  <derek@ximbiot.com>
71739             Eric Blake  <ebb9@byu.net>
71740
71741         * lib/inttypes.h: Correct grammar in comment.
71742
71743 2006-04-18  Derek Price  <derek@ximbiot.com>
71744             Paul Eggert  <eggert@cs.ucla.edu>
71745
71746         * modules/inttypes: New file.
71747         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
71748
71749 2006-04-18  Derek Price  <derek@ximbiot.com>
71750             Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
71753         New files.
71754
71755 2006-04-18  Derek Price  <derek@ximbiot.com>
71756             Paul Eggert  <eggert@cs.ucla.edu>
71757
71758         * lib/inttypes.h: New file.
71759         * lib/strtoimax.c: Assume <inttypes.h>.
71760
71761 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
71764         isn't mounted.  Problem reported by Kir Kolyshkin.
71765
71766 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71767
71768         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
71769         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
71770         Derek R. Price.
71771         * lib/regex.h (RE_DUP_MAX): Update comment to match current
71772         implementation.
71773
71774 2006-04-12  Eric Blake  <ebb9@byu.net>
71775
71776         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
71777         is now done automatically by the corresponding Autoconf macro.
71778
71779 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
71782         time_r.h.
71783
71784 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         Merge regex changes from libc, removing some of our
71787         POSIX-conformance changes that were rejected and redoing them in a
71788         less-intrusive way.
71789
71790         * lib/regcomp.c (re_compile_internal, init_dfa):
71791         Length arg is now size_t, not Idx.  All uses changed.
71792         (peek_token): Forward decl now says internal_function.
71793         (__re_error_msgid, __re_error_msgid_idx):
71794         Now static rather than extern with attribute_hidden.
71795         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
71796         For some reason libc prefers K&R style defns for external functions.
71797         (regerror) [!defined _LIBC]: Likewise.
71798         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
71799         (seek_collating_symbol_entry, lookup_collation_sequence_value):
71800         (build_range_exp, build_collating_symbol):
71801         Use K&R-style defn.
71802         (re_compile_fastmap): Use '\0' to memset, not 0.
71803         (utf8_sb_map): Make the calculations more obvious.
71804         (init_dfa, parse_bracket_exp, build_charclass_op):
71805         Call calloc and cast result, as glibc does.
71806         (init_word_char, fetch_token, peek_token, peek_token_bracket):
71807         (build_range_exp, build_collating_symbol):
71808         Now internal functions.
71809
71810         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
71811
71812         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
71813         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
71814         Don't depend on VMS; depend on __VMS instead, for POSIX
71815         namespace cleanness.
71816         (regoff_t): Define to ssize_t, not long int.
71817
71818         Remove the REG_ macros named below.  Instead, make the old names
71819         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
71820         __USE_GNU_REGEX.
71821         (REG_BACKSLASH_ESCAPE_IN_LISTS):
71822         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
71823         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
71824         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
71825         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
71826         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
71827         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
71828         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
71829         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
71830         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
71831         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
71832         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
71833         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
71834         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
71835         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
71836         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
71837         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
71838         (REG_NREGS):
71839         Remove.  All uses replaced by the old RE_* names.
71840         (RE_BACKSLASH_ESCAPE_IN_LISTS):
71841         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
71842         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
71843         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
71844         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
71845         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
71846         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
71847         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
71848         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
71849         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
71850         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
71851         Don't bother having these macros be independent of each others'
71852         values, since they no longer exist in the POSIX name space.
71853
71854         Rename the following member names back to their old names,
71855         unless !__USE_GNU_REGEX.  All uses changed back.
71856         (buffer): Renamed from re_buffer.
71857         (allocated): Renamed from re_allocated.
71858         (used): Renamed from re_used.
71859         (syntax): Renamed from re_syntax.
71860         (fastmap): Renamed from re_fastmap.
71861         (translate): Renamed from re_translate.
71862         (can_be_null): Renamed from re_can_be_null.
71863         (regs_allocated): Renamed from re_regs_allocated.
71864         (fastmap_accurate): Renamed from re_fastmap_accurate.
71865         (no_sub): Renamed from re_no_sub.
71866         (not_bol): Renamed from re_not_bol.
71867         (not_eol): Renamed from re_not_eol.
71868         (newline_anchor): Renamed from re_newline_anchor.
71869         (num_regs): Renamed from rm_num_regs.
71870         (start): Renamed from rm_start.
71871         (end): Renamed from rm_end.
71872
71873         (free_state): Move up a bit.
71874
71875         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
71876         #define to be empty.
71877         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
71878         when that is what is intended.
71879         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
71880         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
71881         (MAX): New macro.
71882         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
71883         All uses changed back to re_malloc, etc.  It's now the caller's
71884         responsibility to check for overflow; all callers changed.
71885         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
71886         (re_x2nrealloc): Remove.
71887         (free_state): Remove decl.
71888
71889         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
71890         (re_set_registers, re_exec):
71891         Use K&R-style defn.
71892
71893         2006-01-31  Roland McGrath  <roland@redhat.com>
71894
71895         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
71896         Reported by Mike Frysinger <vapier@gentoo.org>.
71897
71898         2006-01-15  Andreas Jaeger  <aj@suse.de>
71899
71900         [BZ #1950]
71901         * lib/regex_internal.c (re_string_reconstruct): Adjust for
71902         build_wcs_upper_buffer change.
71903         (build_wcs_upper_buffer): Change return type.
71904
71905         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
71906
71907         * lib/regex_internal.h: Include <stdint.h> if available.
71908
71909         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
71910
71911         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
71912
71913         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71914
71915         * lib/regcomp.c: Adjust for changed secondary hash function.
71916
71917         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
71918
71919         * lib/regex.h: Pretty printing.
71920         Clean up namespace a bit.
71921
71922         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
71923
71924         * lib/regexec.c (update_cur_sifted_state, check_arrival,
71925         check_arrival_add_next_nodes): Avoid using uninitialized variable.
71926
71927         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71928                     Ulrich Drepper  <drepper@redhat.com>
71929
71930         [BZ #1302]
71931         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
71932         changed.
71933         (bitset_word_t): Renamed from bitset_word.  All uses changed.
71934
71935         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
71936
71937         [BZ #281]
71938         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
71939         * lib/regcomp.c: Remove unnecessary uses of
71940         unsigned RE_TRANSLATE_TYPE.
71941         * lib/regex_internal.h: Likewise.
71942         * lib/regex_internal.c: Likewise.
71943         * lib/regexec.c: Likewise.
71944         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
71945
71946         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
71947
71948         * lib/regexec.c (find_recover_state): Remove unnecessary
71949         initialization.
71950         (transit_state_bkref): Make DFA a const pointer.
71951         (get_subexp): Likewise.
71952         (check_arrival): Likewise.
71953         (update_cur_sifted_state): Likewise.
71954         (re_search_internal): Likewise.
71955         (prune_impossible_nodes): Likewise.
71956         (acquire_init_state_context): Likewise.
71957         (proceed_next_node): Likewise.
71958         (set_regs): Likewise.
71959         (free_fail_stack_return): Likewise.
71960         (check_arrival_expand_ecl): Mark DFA parameter as const.
71961         (check_arrival_expand_ecl_sub): Likewise.
71962         (check_subexp_limits): Likewise.
71963         (sub_epsilon_src_nodes):  Likewise.
71964         (add_epsilon_src_nodes):  Likewise.
71965         (merge_state_array): Likewise.
71966         (update_regs): Likewise.
71967         (build_trtable): Likewise.
71968         (sift_states_backward): Mark MCTX parameter as const.
71969         (build_sifted_states): Likewise.
71970         (update_cur_sifted_state): Likewise.
71971         (sift_states_mkref): Likewise.
71972         (check_arrival_expand_ecl): Mark eclosure as const.
71973         (check_dst_limits_calc_pos_1): Likewise.
71974         * lib/regex_internal.h (re_match_context_t): Make dfa a const
71975         pointer.
71976
71977         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
71978
71979         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
71980         (transit_state_sb): Likewise.
71981         (transit_state_mb): Likewise.
71982         (sift_states_iter_mb): Likewise.
71983         (check_arrival_add_next_nodes): Likewise.
71984         (check_node_accept_bytes): Change first parameter to pointer-to-const.
71985         [_LIBC] (re_search_2_stub): Use mempcpy.
71986
71987         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
71988         mbrtowc for very simple UTF-8 case.
71989
71990         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
71991         a pointer-to-const.
71992         (re_acquire_state_context): Likewise.
71993         * lib/regex_internal.h: Adjust prototypes.
71994
71995         * lib/regex.c: Prevent using C++ compilers.
71996
71997         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
71998         (re_acquire_state_context): Likewise.
71999
72000 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * modules/regex (Depends-on): Add ssize_t.
72003
72004 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72007         translation table.
72008
72009 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72010
72011         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72012
72013 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72014             Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72017         <sys/types.h> and <inttypes.h>.
72018
72019 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72020
72021         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72022         `__error_t_defined', so argp.h will not typedef the former.
72023
72024 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72027         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72028         glibc names.  Even if glibc is changed to conform to POSIX, the
72029         traditional names will be available anyway, since regex depends on
72030         the extensions module.  Also, fix a longstanding typo in the
72031         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72032         reported by Emanuele Giaquinta.  Also, change sense of cached
72033         variable, so that the message makes sense.
72034
72035 2006-03-24  Simon Josefsson  <jas@extundo.com>
72036
72037         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72038         including some doc fixes.
72039         (base64_encode_alloc): Fix +1 bug on allocation failures.
72040
72041 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72042
72043         * lib/base64.c (base64_encode): Do not read past end of array with
72044         unsanitized input on systems with CHAR_BIT > 8.
72045
72046 2006-03-24  Eric Blake  <ebb9@byu.net>
72047
72048         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72049
72050 2006-03-22  Karl Berry  <karl@gnu.org>
72051
72052         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72053         * config/srclistvars.sh (COREUTILS): new var.
72054
72055 2006-03-17  Jim Meyering  <jim@meyering.net>
72056
72057         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72058         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72059
72060 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72063         no longer needs it.  Instead, check that regoff_t is as least
72064         as wide as ptrdiff_t.
72065
72066         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72067         so that our regex.h stays compatible with the installed regex.
72068         This is helpful for installers who configure --without-included-regex.
72069         Problem reported by Emanuele Giaquinta.
72070
72071 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72072
72073         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72074         Typedef to long int, not to off_, as POSIX will likely change
72075         in that direction.
72076
72077 2006-03-15  Eric Blake  <ebb9@byu.net>
72078
72079         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72080
72081 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72082
72083         * lib/argp-help.c (validate_uparams): Fix typo
72084         * lib/argp-parse.c (argp_default_options): Consistently begin help
72085         messages with a lowercase letter.
72086
72087 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72088
72089         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72090         overrun buffers and shouldn't be used (much as gets shouldn't be
72091         used).
72092         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72093
72094 2006-03-08  Simon Josefsson  <jas@extundo.com>
72095
72096         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72097         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72098
72099 2006-03-08  Simon Josefsson  <jas@extundo.com>
72100
72101         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72102         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72103
72104 2006-03-08  Simon Josefsson  <jas@extundo.com>
72105
72106         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72107         signal that configure disabled the device.
72108
72109 2006-03-08  Simon Josefsson  <jas@extundo.com>
72110
72111         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72112         languages.
72113
72114 2006-03-07  Simon Josefsson  <jas@extundo.com>
72115
72116         * modules/getopt (Depends-on): Add unistd.
72117
72118         * modules/unistd: New file.
72119
72120 2006-03-07  Simon Josefsson  <jas@extundo.com>
72121
72122         * modules/gc-random: New file.
72123
72124 2006-03-07  Simon Josefsson  <jas@extundo.com>
72125
72126         * m4/unistd_h.m4: New file.
72127
72128 2006-03-07  Simon Josefsson  <jas@extundo.com>
72129
72130         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72131         test to be side-effect free by storing the result in the cache
72132         variable gl_cv_lib_readline, and moving the assignment of
72133         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72134         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72135
72136 2006-03-07  Simon Josefsson  <jas@extundo.com>
72137
72138         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72139         error on missing devices (the functions will return an error).
72140
72141         * m4/gc.m4: Move random stuff to gc-random.m4
72142
72143 2006-03-07  Simon Josefsson  <jas@extundo.com>
72144
72145         * lib/unistd_.h: New file.
72146
72147 2006-03-07  Simon Josefsson  <jas@extundo.com>
72148
72149         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72150
72151 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72154         Problem reported by Juan Manuel Guerrero.
72155
72156 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72159         the unistd module.
72160         * lib/getlogin_r.c: Likewise.
72161         * lib/getlogin_r.h: Likewise.
72162         * lib/glob.c: Likewise.
72163         * lib/pagealign_alloc.c: Likewise.
72164         * lib/unistd_.h: Remove; no longer needed.
72165
72166 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72169         Add unistd.
72170         * modules/c-stack (Depends-on): Add unistd.
72171         * modules/getlogin_r: Likewise.
72172         * modules/glob: Likewise.
72173         * modules/pagealign_alloc: Likewise.
72174         * modules/unistd (Files): Remove lib/unistd_.h.
72175         (EXTRA_DIST): Remove.
72176         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72177         need unistd_.h.
72178         (MOSTLYCLEANFILES): Remove unistd.h-t.
72179
72180 2006-03-03  Simon Josefsson  <jas@extundo.com>
72181
72182         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72183
72184 2006-03-03  Simon Josefsson  <jas@extundo.com>
72185
72186         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72187         libidn and bison.
72188
72189 2006-03-03  Simon Josefsson  <jas@extundo.com>
72190
72191         * build-aux/maint.mk: Add indent target.
72192
72193 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72194
72195         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72196         our replacement poll.h in any case, to avoid a differing
72197         declaration from a system header.  Seen on AIX.
72198
72199 2006-03-01  Simon Josefsson  <jas@extundo.com>
72200
72201         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72202         <kasal@ucw.cz>.
72203
72204 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         * modules/gettime (Depends-on): Add extensions module.
72207         * modules/nanosleep (Depends-on): Likewise.
72208         * modules/settime (Depends-on): Likewise.
72209
72210 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72211
72212         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72213         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72214         pedantically.
72215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72216         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72217
72218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72219         not "==".  Reported by Ralf Wildenhues.
72220
72221 2006-03-01  Karl Berry  <karl@gnu.org>
72222
72223         * doc/Copyright/request-*: new files, synced from gnuorg.
72224
72225 2006-03-01  Karl Berry  <karl@gnu.org>
72226
72227         * config/srclist.txt (Copyright/*): new entries.
72228
72229 2006-02-28  Simon Josefsson  <jas@extundo.com>
72230
72231         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72232
72233 2006-02-27  Simon Josefsson  <jas@extundo.com>
72234
72235         * lib/base64.h: Indent #define's.  From Jim Meyering
72236         <jim@meyering.net>.
72237
72238 2006-02-27  Jim Meyering  <jim@meyering.net>
72239
72240         Revert the change of 2006-02-24, so these files can continue
72241         to be sync'd from gettext.
72242         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72243         of `config.h'.
72244
72245 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72246
72247         * modules/intprops: New file.
72248         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72249         Add intprops.
72250         * modules/getloadavg (Files): Remove lib/intprops.h.
72251         (Depends-on): Add intprops.
72252         * modules/human: Likewise.
72253         * modules/inttostr: Likewise.
72254         * modules/openat: Likewise.
72255         * modules/sig2str: Likewise.
72256         * modules/userspec: Likewise.
72257         * modules/utimecmp: Likewise.
72258         * modules/xnanosleep: Likewise.
72259         * modules/xstrtol: Likewise.
72260
72261 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72262
72263         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72264         * modules/lock-tests (TESTS): Use $(EXEEXT).
72265         * modules/tls-tests: Likewise.
72266         * modules/argp-tests: Likewise.
72267         (check_PROGRAMS): New var, replacing...
72268         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72269
72270 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72271
72272         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72273         `config.h'.
72274
72275 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72276
72277         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72278
72279 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72280
72281         Sync from coreutils.
72282         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72283         gl_CHDIR_SAFER.
72284
72285 2006-02-22  Jim Meyering  <jim@meyering.net>
72286
72287         Sync from coreutils.
72288         * m4/chdir-safer.m4: New file.
72289
72290 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72291
72292         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72293         AT_FDCWD exceeds INT_MAX.
72294         * lib/openat.h (AT_FDCWD): Likewise.
72295
72296 2006-02-17  Eric Blake  <address@hidden>
72297
72298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72299
72300 2006-02-16  Simon Josefsson  <jas@extundo.com>
72301
72302         * modules/getaddrinfo (Depends-on): Add sys_socket.
72303
72304 2006-02-15  Simon Josefsson  <jas@extundo.com>
72305
72306         * build-aux/maint.mk: Add dsyntax-check rule.
72307
72308 2006-02-15  Eric Blake  <ebb9@byu.net>
72309
72310         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72311         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72312         'present but cannot compile' warnings on cygwin.
72313         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72314         use ws2tcpip.h if sys/socket.h works.
72315         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72316         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72317
72318 2006-02-14  Simon Josefsson  <jas@extundo.com>
72319
72320         * modules/maintainer-makefile (Files): Rename.
72321
72322         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72323         and (the local) Makefile.cfg to maint-cfg.mk.
72324
72325         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72326         to the latter.
72327
72328         * modules/maintainer-makefile: New module.
72329
72330         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72331         severaly stripped to make it possible to build it up from scratch
72332         with reliable tests.
72333
72334         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72335         fixes to permit overriding the default actions when configure and
72336         makefile are not available.
72337
72338 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72339
72340         Sync from coreutils.
72341         * modules/lstat (Depends-on): Don't depend on xalloc.
72342         (License): Change from GPL to LGPL, since this is now simply a
72343         replacement for a libc function.
72344
72345 2006-02-14  Jim Meyering  <jim@meyering.net>
72346
72347         Sync from coreutils.
72348
72349         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72350         failure on deficient systems, and simplify gnulib lgpl dependencies.
72351         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72352         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72353
72354         * lib/xalloc-die.c: Remove unused definition of N_.
72355
72356 2006-02-14  Jim Meyering  <jim@meyering.net>
72357
72358         Sync from coreutils.
72359         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72360         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72361         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72362         double-quote uses of that variable, to accommodate the rare case in
72363         which getmntent is available in none of the libraries checked.  This
72364         happens at least on FreeBSD 5.0.
72365
72366 2006-02-13  Simon Josefsson  <jas@extundo.com>
72367
72368         * gnulib-tool (Usage): Fix --import, from
72369         karl@freefriends.org (Karl Berry).
72370
72371 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72372
72373         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72374
72375 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72376
72377         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72378         "autoupdate" on 2005-12-12.
72379
72380 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * modules/closeout (Depends-on): Remove atexit.
72383
72384 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72385
72386         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72387         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72388
72389 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72390
72391         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72392         __EXTENSIONS__ if this causes compilation to fail.  Problem
72393         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72394         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72395
72396 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72399         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72400         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72401         All uses changed.
72402
72403 2006-01-26  Simon Josefsson  <jas@extundo.com>
72404
72405         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72406         prototype is visible on mingw32.
72407
72408         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72409         for mingw32.
72410
72411         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72412         mingw32).
72413
72414 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72417         attempt to open for write; this always fails, at least on POSIX
72418         hosts.  This reinstates the 2006-01-09 change, which was
72419         inadvertently removed.
72420
72421 2006-01-26  Bruno Haible  <bruno@clisp.org>
72422
72423         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72424         Reported by Paul Eggert.
72425
72426 2006-01-26  Bruno Haible  <bruno@clisp.org>
72427             Paul Eggert  <eggert@cs.ucla.edu>
72428
72429         * lib/stdbool_.h (_Bool)
72430         [(! (defined __cplusplus || defined __BEOS__)
72431           && !defined __GNUC__
72432           && !(defined __HP_cc || defined __xlc__
72433                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72434                || defined __sgi))]:
72435         #define to signed char in these cases too; this simplifies
72436         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72437         etc., separately) and makes it more conservative.
72438
72439 2006-01-25  Simon Josefsson  <jas@extundo.com>
72440
72441         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72442         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72443         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72444
72445 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72446
72447         * lib/argp-namefrob.h: Bugfix. Remove stray #
72448
72449 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
72452         so that we test the test.
72453         Check for yet another HP-UX cc bug involving *bool |= bool.
72454
72455 2006-01-25  Karl Berry  <karl@gnu.org>
72456
72457         * config/srclist.txt (vasnprintf.c): sync lost.
72458
72459 2006-01-25  Jim Meyering  <jim@meyering.net>
72460
72461         Sync from the stable (b5) branch of coreutils:
72462
72463         * lib/fts.c (fts_children): Don't let close() clobber errno from
72464         failed fchdir().
72465
72466         * lib/fts.c (fts_stat): When following a symlink-to-directory,
72467         don't necessarily interpret stat-fails+lstat-succeeds as indicating
72468         a dangling symlink.  That can also happen at least for ELOOP.
72469         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
72470         FYI, this bug predates the inclusion of fts.c in coreutils.
72471
72472         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
72473         in their own block, so pre-c99 compilers don't object.
72474
72475         Avoid the double-free (first in fts_read, second in fts_close) that
72476         would occur when an `active' directory is made inaccessible (e.g.,
72477         via chmod a-x) during a traversal.
72478         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72479         before returning.  Reproduce this failure by
72480         mkdir -p a/b; cd a; chmod a-x . b
72481         Reported by Stavros Passas.
72482
72483 2006-01-25  Jim Meyering  <jim@meyering.net>
72484
72485         * lib/fileblocks.c: Remove more useless parentheses.
72486         * lib/readutmp.h: Likewise.
72487
72488 2006-01-25  Bruno Haible  <bruno@clisp.org>
72489
72490         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
72491         warnings.
72492         Reported by Paul Eggert.
72493
72494 2006-01-25  Bruno Haible  <bruno@clisp.org>
72495
72496         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
72497         rid of a trap command. For Solaris sh.
72498         Reported by Mark D. Baushke <mdb@gnu.org>.
72499
72500 2006-01-24  Simon Josefsson  <jas@extundo.com>
72501
72502         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
72503         Bruno.
72504
72505 2006-01-24  Karl Berry  <karl@gnu.org>
72506
72507         * config/srclist.txt (argp-namefrob.h): sync lost.
72508
72509 2006-01-24  Jim Meyering  <jim@meyering.net>
72510
72511         * modules/openat (Files): Add lib/intprops.h.
72512         From Mark D. Baushke.
72513
72514 2006-01-24  Jim Meyering  <jim@meyering.net>
72515
72516         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
72517         Reported by Mark D. Baushke.
72518
72519 2006-01-24  Jim Meyering  <jim@meyering.net>
72520
72521         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
72522
72523 2006-01-24  Bruno Haible  <bruno@clisp.org>
72524
72525         * modules/strnlen (Maintainer): Change from glibc to all.
72526
72527 2006-01-24  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
72530         Patch by Paul Eggert.
72531
72532 2006-01-24  Bruno Haible  <bruno@clisp.org>
72533
72534         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
72535         already has it.
72536         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
72537         2005-11-26.
72538
72539         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
72540         'signed char' to avoid problems with the built-in _Bool type.
72541         Reported by Paul Eggert on 2005-11-26.
72542
72543 2006-01-24  Bruno Haible  <bruno@clisp.org>
72544
72545         * gnulib-tool (func_import): Avoid constructing complicated sed
72546         expressions inside backquote.
72547         Report and solution by Mark D. Baushke <mdb@gnu.org>.
72548
72549 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
72550
72551         These changes imported from libc.
72552         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
72553         test and two separate function calls.
72554         * lib/strndup.c (__strndup): Add libc_hidden_def.
72555
72556 2006-01-23  Simon Josefsson  <jas@extundo.com>
72557
72558         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
72559         Remove the test_*_SOURCES variable: automake infers it by default.
72560         * modules/tls-tests: Likewise.
72561
72562 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         Work around porting bugs reported by Dieter in
72565         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
72566         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
72567         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
72568         Include "getopt.h" first, to check interface.
72569         (getenv): Declare only if defined HAVE_DECL_GETENV &&
72570         !HAVE_DECL_GETENV.
72571         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
72572         (__strndup): Revert to K&R-style function dfns, the glibc style.
72573         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
72574         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
72575         Include strnlen.h first, to get prototype properly.
72576         (strnlen): Renamed from __strnlen.
72577         Remove weak alias.
72578
72579 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72580
72581         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
72582
72583 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72584
72585         * config/srclist.txt: Adjust to reflect glibc reorganization.
72586         This affects only comments.
72587
72588 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72589
72590          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
72591          Reported by Bruce Korb <bkorb@gnu.org>.
72592
72593 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
72596         to pacify gcc -Wswitch-default.
72597
72598 2006-01-22  Bruno Haible  <bruno@clisp.org>
72599
72600         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
72601         temporary buffer for sprintf, take into account the precision also
72602         for 'd', 'i', 'u', 'o', 'x', 'X'.
72603
72604 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72605
72606         * modules/argp-tests: New module
72607         * tests/test-argp.c: New file
72608         * tests/test-argp-2.sh: New file
72609
72610 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
72611
72612         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
72613         (__argp_base_name): Removed
72614         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
72615         typo.
72616         (__argp_base_name): Provide macro definition or extern declaration
72617         depending on the configuration
72618
72619 2006-01-20  Simon Josefsson  <jas@extundo.com>
72620
72621         * modules/inet_ntop (Depends-on): Depend on sys_socket.
72622
72623 2006-01-20  Simon Josefsson  <jas@extundo.com>
72624
72625         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
72626
72627 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
72630         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
72631         Suggested by Bruno Haible.
72632
72633 2006-01-20  Karl Berry  <karl@gnu.org>
72634
72635         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
72636         until changes propagate, I guess.
72637
72638 2006-01-19  Simon Josefsson  <jas@extundo.com>
72639
72640         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
72641
72642 2006-01-19  Simon Josefsson  <jas@extundo.com>
72643
72644         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
72645
72646 2006-01-19  Simon Josefsson  <jas@extundo.com>
72647
72648         * gnulib-tool: Set check_PROGRAMS.
72649
72650         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72651         modules/des-tests, modules/gc-arcfour-tests,
72652         modules/gc-arctwo-tests, modules/gc-des-tests,
72653         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72654         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72655         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72656         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72657         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72658         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
72659         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
72660         test_*_SOURCES.
72661
72662 2006-01-18  Simon Josefsson  <jas@extundo.com>
72663
72664         * modules/socklen (Depends-on): Depend on sys_socket.
72665
72666 2006-01-18  Simon Josefsson  <jas@extundo.com>
72667
72668         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
72669         modules/des-tests, modules/gc-arcfour-tests,
72670         modules/gc-arctwo-tests, modules/gc-des-tests,
72671         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
72672         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
72673         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
72674         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
72675         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
72676         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
72677         $(EXEEXT) to automake TESTS variable, for mingw32.
72678
72679 2006-01-17  Simon Josefsson  <jas@extundo.com>
72680
72681         * modules/socklen (Include): Need sys/socket.h.
72682
72683 2006-01-17  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/ssize_t (Include): Add <sys/types.h>.
72686
72687 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
72688
72689         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
72690         it's not portable and it doesn't work with cross-compiles.
72691         Problem reported by Bruno Haible.  Fix missing-$ typo in
72692         'test "gl_cv_ignore_unused_libraries" ...' that prevented
72693         -zignore from being used with Sun's C compiler.
72694
72695 2006-01-12  Simon Josefsson  <jas@extundo.com>
72696
72697         * lib/base64.c: Fix warning, reported by Bruno Haible
72698         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
72699
72700 2006-01-12  Bruno Haible  <bruno@clisp.org>
72701
72702         * modules/ldd: New file.
72703         * build-aux/ldd.sh.in: New file.
72704         * MODULES.html.sh (Support for building libraries and executables): Add
72705         ldd.
72706
72707 2006-01-12  Bruno Haible  <bruno@clisp.org>
72708
72709         * m4/ldd.m4: New file.
72710
72711 2006-01-12  Bruno Haible  <bruno@clisp.org>
72712
72713         * gnulib-tool (func_import, func_create_testdir): Don't go into an
72714         endless loop while replacing $auxdir with build-aux.
72715
72716 2006-01-11  Simon Josefsson  <jas@extundo.com>
72717
72718         * lib/stdint_.h (SIZE_MAX): Add missing (.
72719
72720 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         Sync from coreutils.
72723         * lib/md5.c: Fix commentary typos.
72724         (alignof, UNALIGNED_P): No need for a GCC-specific version.
72725         * lib/md5.h (__attribute__): Remove; unused.
72726         * lib/sha1.c: Fix commentary to match md5 better.
72727         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
72728         so that we don't need to worry about alignment.  All uses changed.
72729         This merges the 2005-10-28 md5 change into sha1.
72730
72731 2006-01-11  Jim Meyering  <jim@meyering.net>
72732
72733         Sync from coreutils.
72734         * lib/md5.c (OP): Fix spacing.
72735
72736 2006-01-11  Bruno Haible  <bruno@clisp.org>
72737
72738         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72739         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
72740         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
72741
72742 2006-01-11  Bruno Haible  <bruno@clisp.org>
72743
72744         Ensure automatic ordering between gl_LOCK and gl_ARGP.
72745         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
72746         the "early" section as well.
72747
72748 2006-01-11  Bruno Haible  <bruno@clisp.org>
72749
72750         Avoid "ar: no archive members specified" error on MacOS X.
72751         * gnulib-tool (func_modules_add_dummy): New function.
72752         (func_import, func_create_testdir): Invoke it.
72753
72754 2006-01-11  Bruno Haible  <bruno@clisp.org>
72755
72756         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
72757         with $auxdir in AC_CONFIG_FILES statements.
72758
72759 2006-01-11  Bruno Haible  <bruno@clisp.org>
72760
72761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72762         Initialize also noinst_HEADERS to empty.
72763
72764 2006-01-11  Bruno Haible  <bruno@clisp.org>
72765
72766         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
72767         variables.
72768         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
72769         autoreconf.
72770
72771 2006-01-11  Bruno Haible  <bruno@clisp.org>
72772
72773         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
72774         overridable by the user.
72775         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72776
72777 2006-01-10  Simon Josefsson  <jas@extundo.com>
72778
72779         * modules/sys_socket: New file.
72780
72781 2006-01-10  Simon Josefsson  <jas@extundo.com>
72782
72783         * m4/sys_socket_h.m4: New file.
72784
72785 2006-01-10  Simon Josefsson  <jas@extundo.com>
72786
72787         * lib/socket_.h: New file.
72788
72789 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * modules/readutmp (Maintainer): Add myself.
72792
72793 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72794
72795         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
72796         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
72797         People who are still concerned with buggy memcmp implementations
72798         can invoke gl_FUNC_MEMCMP themselves.
72799
72800 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72801
72802         * lib/regex_internal.h (BITSET_WORD_BITS):
72803         Work around a bug in 64-bit PGC (before version 6.1-2), where the
72804         preprocessor mishandles large unsigned values as if they were signed.
72805         Problem reported by Claudio Fontana in
72806         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
72807
72808 2006-01-10  Jim Meyering  <jim@meyering.net>
72809
72810         Avoid the double-free (first in fts_read, second in fts_close) that
72811         would occur when an `active' directory is made inaccessible (e.g.,
72812         via chmod a-x) during a traversal.
72813         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
72814         before returning.  Reproduce this failure by
72815         mkdir -p a/b; cd a; chmod a-x . b
72816         Reported by Stavros Passas.
72817
72818         Sync from coreutils.
72819         * lib/sha1.c: Tweak grammar in a comment.
72820
72821 2006-01-10  Jim Meyering  <jim@meyering.net>
72822
72823         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
72824         Patch by Joerg Sonnenberger.
72825
72826 2006-01-10  Bruno Haible  <bruno@clisp.org>
72827
72828         * modules/readutmp: Depend on module free.
72829         * modules/strtok_r: Depend on module restrict.
72830
72831 2006-01-10  Bruno Haible  <bruno@clisp.org>
72832
72833         * modules/gettext (configure.ac): Add an invocation of
72834         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
72835
72836 2006-01-10  Bruno Haible  <bruno@clisp.org>
72837
72838         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
72839         Reported by Werner Lemberg <wl@gnu.org>.
72840
72841 2006-01-10  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/localcharset.c: Update from GNU gettext.
72844
72845 2006-01-10  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/argp.h (__const): Remove macro. Use const instead.
72848         * lib/argp-fmtstream.h (__const): Likewise.
72849         * lib/glob_.h (__const): Remove macro.
72850         * lib/glob-libc.h: Use const instead of __const.
72851
72852 2006-01-10  Bruno Haible  <bruno@clisp.org>
72853
72854         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
72855         variable.
72856         Needed to avoid an automake error regarding the 'gettext' module.
72857
72858 2006-01-09  Simon Josefsson  <jas@extundo.com>
72859
72860         * modules/inet_ntop (Depends-on): Add restrict.
72861
72862 2006-01-09  Simon Josefsson  <jas@extundo.com>
72863
72864         * modules/gc-rijndael-tests (License): Put under LGPL.
72865
72866         * modules/gc-des-tests (License): Likewise.
72867
72868         * modules/gc-arcfour-tests (License): Likewise.
72869
72870         * modules/gc-arctwo-tests (License): Likewise.
72871
72872         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
72873
72874         * modules/gc-hmac-sha1-tests (Files): Likewise.
72875
72876         * modules/gc-hmac-md5-tests (License): Likewise.
72877
72878         * modules/gc-sha1-tests (License): Likewise.
72879
72880         * modules/gc-md5-tests (License): Likewise.
72881
72882         * modules/gc-md4-tests (License): Likewise.
72883
72884         * modules/gc-md2-tests (License): Likewise.
72885
72886         * modules/gc-tests (License): Likewise.
72887
72888         * modules/des-tests (License): Likewise.
72889
72890         * modules/md4-tests (License): Likewise.
72891
72892         * modules/md2-tests (License): Likewise.
72893
72894 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72895
72896         Sync from coreutils:
72897
72898         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
72899         * modules/lib-ignore: New file.
72900         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
72901         chdir-safer.m4, lchmod.m4.
72902         * modules/openat: Add mkdirat.c, openat-priv.h.
72903
72904 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         Sync from coreutils.
72907         * m4/lib-ignore.m4: New file.
72908         * m4/lchmod.m4: New file.
72909
72910 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         Sync from coreutils.
72913         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
72914         for write access: POSIX says that must fail.
72915         * lib/fts.c (diropen): Likewise.
72916         * lib/save-cwd.c (save_cwd): Likewise.
72917         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
72918         well, for minor improvements on hosts that lack O_DIRECTORY.
72919         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
72920         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
72921         Fall back on chown if open failed with EACCES.
72922
72923         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
72924         Report an error at compile-time if only a 1-second nominal clock
72925         resolution is found.
72926
72927         * lib/lchmod.h: New file.
72928         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
72929         (make_dir_parents): Use lchown rather than chown, and
72930         lchmod rather than chmod.
72931
72932         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
72933         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
72934         "proc" reported by n0dalus.
72935
72936         * lib/mountlist.c: Include <limits.h>.
72937         (dev_from_mount_options)
72938         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
72939         New function.  It no longer assumes "dev=" has the System V meaning
72940         on Linux (since it doesn't).  It also parses "dev=" more carefully.
72941         (read_file_system_list)
72942         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
72943         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
72944         dev= in that case.
72945
72946         * lib/posixtm.h (PDS_PRE_2000): New macro.
72947         * lib/posixtm.c (year): Arg is now syntax_bits rather than
72948         allow_century.  All usages changed.  Reject dates outside the range
72949         1969-1999 if PDS_PRE_2000 is used.
72950
72951 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         Sync from coreutils.
72954         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
72955         (Time of day items): Mention the possibility of leap seconds.
72956         Problem reported by Dr. David Alan Gilbert.
72957
72958 2006-01-09  Jim Meyering  <jim@meyering.net>
72959
72960         Sync from coreutils.
72961
72962         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
72963
72964         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
72965
72966         * lib/modechange.c (mode_compile): Reject an invalid mode string
72967         that starts with an octal digit.  From Andreas Gruenbacher.
72968
72969         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
72970         and dup to open_safer and dup_safer, respectively.
72971         (openat_permissive): Fix typo in comment.
72972
72973         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
72974         "gettext.h"; either no longer needed or are guaranteed by openat.h.
72975         (_): Remove; no longer needed.
72976         (openat): Renamed from rpl_openat; no need for rpl_openat
72977         since openat.h renames openat for us.
72978         Replace most of the body with a call to openat_permissive,
72979         to avoid duplicate code.
72980         Port to (probably hypothetical) environments were mode_t is
72981         wider than int.
72982         (openat_permissive): Require mode arg, so that we can check
72983         types better.  Put it just after flags.  Change cwd failure
72984         indicator from pointer-to-bool to pointer-to-errno-value.
72985         All callers changed.
72986         Invoke openat_save_fail and/or openat_restore_fail if
72987         cwd_errno is null, so that openat can call us.
72988         (openat_permissive, fdopendir, fstatat, unlinkat):
72989         Simplify errno handling to avoid some duplicate code,
72990         as it's OK to set errno on success.
72991         * lib/openat.h: Revamp code so that function macros depend on
72992         __OPENAT_PREFIX only, not also on AT_FDCWD.
72993         (openat_ro): Remove.  Caller changed to use openat_permissive.
72994         (openat_permissive): Now a macro, if not a function.
72995         (openat_restore_fail, openat_save_fail): Now always functions,
72996         since mkdirat needs them even if __OPENAT_PREFIX is defined.
72997
72998         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
72999         and openat.c.
73000         * lib/mkdirat.c: Include openat-priv.h.
73001         Remove definitions of macros defined therein.
73002         * lib/openat.c: Likewise.
73003
73004         * lib/mkdirat.c (mkdirat): New file and function.
73005         * lib/openat.h (mkdirat): Declare.
73006
73007         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73008
73009         * lib/openat.h (openat_permissive): Declare.
73010         (openat_ro): Define.
73011
73012         * lib/openat.c (EXPECTED_ERRNO): New macro.
73013         (openat_permissive): New function -- used in remove.c rewrite.
73014         (all functions): Set errno just before returning, only if there
73015         was an actual failure.
73016         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73017
73018         Emulate openat-family functions using Linux's procfs, if possible.
73019         Idea and some code based on Ulrich Drepper's glibc changes.
73020
73021         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73022         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73023         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73024         before falling back on save_cwd and restore_cwd.
73025         (fdopendir, fstatat, unlinkat): Likewise.
73026
73027         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73028         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73029
73030         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73031         as second argument to va_arg.  Otherwise, some versions of gcc
73032         warn that `if this code is reached, the program will abort'.
73033
73034 2006-01-09  Jim Meyering  <jim@meyering.net>
73035
73036         Sync from coreutils.
73037         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73038         Require openat-priv.h.
73039
73040 2006-01-09  Bruno Haible  <bruno@clisp.org>
73041
73042         * modules/strnlen (Include): Use strnlen.h.
73043
73044 2006-01-09  Bruno Haible  <bruno@clisp.org>
73045
73046         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73047
73048 2006-01-09  Bruno Haible  <bruno@clisp.org>
73049
73050         * lib/sysexit_.h (EX_OK): New macro.
73051         Suggested by Martin Lambers <marlam@marlam.de>.
73052
73053 2006-01-09  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73056         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73057
73058 2006-01-09  Bruno Haible  <bruno@clisp.org>
73059
73060         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73061         numbers.
73062
73063 2006-01-09  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73066         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73067         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73068         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73069
73070 2006-01-09  Bruno Haible  <bruno@clisp.org>
73071
73072         * build-aux/javacomp.sh.in: New file, moved from lib/.
73073         * modules/javacomp-script (Files): Update.
73074         (configure.ac): Add AC_CONFIG_FILES invocation.
73075         (EXTRA_DIST): Remove variable.
73076
73077         * build-aux/javaexec.sh.in: New file, moved from lib/.
73078         * modules/javaexec (Files): Update.
73079         (configure.ac): Add AC_CONFIG_FILES invocation.
73080         (EXTRA_DIST): Remove javaexec.sh.in.
73081
73082         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73083         * modules/csharpcomp-script (Files): Update.
73084         (configure.ac): Add AC_CONFIG_FILES invocation.
73085         (EXTRA_DIST): Remove variable.
73086
73087         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73088         * modules/csharpexec (Files): Update.
73089         (configure.ac): Add AC_CONFIG_FILES invocation.
73090         (EXTRA_DIST): Remove csharpexec.sh.in.
73091
73092 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73093
73094         Sync from coreutils.
73095
73096         Add POSIX ACL support
73097         * lib/acl.h (copy_acl, set_acl): Add declarations.
73098         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73099         systems other than Linux.
73100         (chmod_or_fchmod): New function: use fchmod when possible,
73101         and chmod otherwise.
73102         (file_has_acl): Add a POSIX ACL implementation, with a
73103         Linux-specific subcase.
73104         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73105         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73106         acls are unsupported.
73107         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73108         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73109         are unsupported.
73110
73111 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73112
73113         Sync from coreutils.
73114         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73115
73116 2006-01-07  Bruno Haible  <bruno@clisp.org>
73117
73118         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73119         gl_EARLY.
73120
73121 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73122
73123         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73124         Problem reported for Mingw by Mark Junker.
73125
73126 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73127
73128         * README: Gnulib normally doesn't generate a tarball.
73129
73130 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73131
73132         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73133         long int, not int, for nanosecond counts, so that people who are
73134         used to POSIX struct timespec won't be surprised.  Reported by Jim
73135         Meyering.
73136
73137 2005-12-28  Bruno Haible  <bruno@clisp.org>
73138
73139         * build-aux/config.rpath: Update from GNU gettext.
73140
73141 2005-12-16  Jim Meyering  <jim@meyering.net>
73142
73143         * modules/fprintftime: New module.
73144         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73145
73146 2005-12-16  Jim Meyering  <jim@meyering.net>
73147
73148         * m4/fprintftime.m4: New file.
73149
73150 2005-12-16  Jim Meyering  <jim@meyering.net>
73151
73152         * lib/fprintftime.c, lib/fprintftime.h: New files.
73153
73154 2005-12-15  Simon Josefsson  <jas@extundo.com>
73155
73156         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73157         new m4/socklen.m4.
73158
73159 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73160
73161         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73162         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73163
73164 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73165
73166         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73167         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73168         struct uparams is valid. Fall back to the default values if it is
73169         not.
73170
73171 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73172
73173         * modules/argp (Files): Add argp-pin.c
73174         (Depends-on): dirname
73175         (lib_SOURCES): Add argp-pin.c
73176
73177 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73178
73179         * m4/argp.m4:  Check if program_invocation_name and
73180         program_invocation_short_name are declared and define appropriate
73181         macros if they are not.
73182
73183 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73184
73185         * lib/argp-help.c (__argp_base_name): New function
73186         (__argp_short_program_name): Rewrite using __argp_base_name
73187         * lib/argp-namefrob.h: Define program_invocation_name and
73188         program_invocation_short_name if requested
73189         (__argp_base_name): Add prototype
73190         * lib/argp-parse.c (argp_def): Use gettext wrappers
73191         (argp_default_parser): Use __argp_base_name
73192         * lib/argp-pin.c: New file. Defines program_invocation_name and
73193         program_invocation_short_name on systems that lack them.
73194
73195 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73196
73197         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73198         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73199         porting problem reported by Georg Schwarz in
73200         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73201
73202 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73205         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73206         porting problem reported by Georg Schwarz in
73207         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73208
73209 2005-12-05  Bruno Haible  <bruno@clisp.org>
73210
73211         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73212         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73213         Reported by Mark Junker <mjscod@gmx.de>.
73214
73215 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73218         Use implementation from Albert Chin, with some
73219         comments/corrections by Stepan Kasal and myself.
73220
73221 2005-12-02  Bruno Haible  <bruno@clisp.org>
73222
73223         * gnulib-tool (func_import): Accept GPLed build tool modules when
73224         --lgpl is given.
73225         * modules/csharpcomp-script: New file.
73226         * modules/csharpcomp: Depend on it.
73227         * modules/javacomp-script: New file.
73228         * modules/javacomp: Depend on it.
73229         Suggested by Simon Josefsson.
73230
73231 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73232
73233         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73234         statement, to work around an HP-UX 10.20 compiler bug reported by
73235         Peter O'Gorman.
73236
73237 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * modules/savedir (Depends-on): Add openat.
73240
73241 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73244         (uintmax_t) [defined uintmax_t]: Do not declare.
73245         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73246         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73247         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73248         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73249         sake of portability to weird hosts that C allows (though we don't
73250         know of any practical examples).
73251
73252         * lib/savedir.h (fdsavedir): New decl.
73253         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73254         contains most of the former guts of savedir.
73255         (savedir): Use savedirstream.
73256         Include "openat.h".
73257
73258 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * modules/obstack (Files): Add m4/ulonglong.m4.
73261         Problem reported by Davide Angelocola.
73262
73263 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73266         coreutils no longer futzes with rounding modes.
73267
73268 2005-11-14  Jim Meyering  <jim@meyering.net>
73269
73270         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73271         replacement of mkstemp.
73272
73273 2005-11-10  Simon Josefsson  <jas@extundo.com>
73274
73275         * lib/readline.c: Remove EOL.
73276
73277 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         * modules/gethrxtime (Depends-on): Add gettime.
73280
73281 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73282
73283         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73284         or gettimeofday; no longer needed.
73285
73286 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73287
73288         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73289         time business.
73290         (gethrxtime) [! (HAVE_NANOUPTIME
73291         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73292         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73293         our own approximation.
73294
73295 2005-11-08  Eric Blake  <ebb9@byu.net>
73296
73297         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73298
73299 2005-11-08  Eric Blake  <ebb9@byu.net>
73300
73301         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73302
73303 2005-11-04  Bruno Haible  <bruno@clisp.org>
73304
73305         * gnulib-tool: Implement --update mode.
73306
73307 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         Fix porting problem reported by Theodoros V. Kalamatianos.
73310         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73311         Don't assume that futimes failing means we must fail.
73312
73313 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73316         variables to suggest the intended function of the PATH_MAX check.
73317
73318 2005-10-30  Kean Johnston  <jkj@sco.com>
73319
73320         Trivial changes to support SCO systems.
73321         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73322         as PATH_MAX.
73323         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73324         where __ptr is null when no I/O is pending.
73325
73326 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73327
73328         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73329         leave errno alone.  Problem reported by Dmitry V. Levin.
73330
73331 2005-10-28  Simon Josefsson  <jas@extundo.com>
73332
73333         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73334         Test more.
73335
73336         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73337
73338         * modules/md2, modules/md2-tests: New files.
73339
73340 2005-10-28  Simon Josefsson  <jas@extundo.com>
73341
73342         * m4/inet_ntop.m4: More tests.
73343
73344         * m4/gc-md2.m4, md2.m4: New file.
73345
73346 2005-10-28  Simon Josefsson  <jas@extundo.com>
73347
73348         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73349         "restrict" keywords, as per POSIX.  Protect the function
73350         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73351         Don't use K&R prototypes.  Check the sprintf return values.
73352         Re-define EAFNOSUPPORT if not present.  Indent.
73353
73354         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73355         suggested by Bruno Haible <bruno@clisp.org>.
73356
73357         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73358
73359         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73360
73361         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73362         libgcrypt).
73363
73364         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73365
73366         * lib/md2.h, lib/md2.c: New files.
73367
73368 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73371         errno alone.  Problem reported by Frederic Jolliton.
73372
73373 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         * modules/verify (License): Change from GPL to LGPL.  This is a
73376         tiny module and there are apparently near-equivalents that are
73377         under the BSD license.
73378
73379 2005-10-24  Simon Josefsson  <jas@extundo.com>
73380
73381         * modules/sha1: Relicense to LGPL.
73382
73383 2005-10-24  Simon Josefsson  <jas@extundo.com>
73384
73385         * lib/md4.h: Shrink buffer size, now that we changed the type.
73386
73387 2005-10-23  Simon Josefsson  <jas@extundo.com>
73388
73389         * gnulib-tool (func_import): Fix --tests-base.
73390
73391 2005-10-22  Simon Josefsson  <jas@extundo.com>
73392
73393         * modules/arcfour (Depends-on): Need stdint.
73394
73395 2005-10-22  Simon Josefsson  <jas@extundo.com>
73396
73397         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73398         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73399
73400 2005-10-22  Simon Josefsson  <jas@extundo.com>
73401
73402         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73403         suggested by Bruno Haible <bruno@clisp.org>.
73404
73405 2005-10-22  Simon Josefsson  <jas@extundo.com>
73406
73407         * lib/crc.h: Include stddef.h, for size_t.
73408
73409 2005-10-22  Simon Josefsson  <jas@extundo.com>
73410
73411         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73412         arcfour_context struct (simplify test vector testing in GNU
73413         Shishi).
73414
73415 2005-10-21  Simon Josefsson  <jas@extundo.com>
73416
73417         * modules/des, modules/des-tests: New files.
73418
73419         * modules/gc-des, modules/gc-des-tests: New files.
73420
73421         * tests/test-des.c, tests/test-gc-des.c: New file.
73422
73423 2005-10-21  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/arctwo, modules/arctwo-tests: New files.
73426
73427         * tests/test-arctwo.c: New file.
73428
73429         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73430
73431         * tests/test-gc-arctwo.c: New file.
73432
73433 2005-10-21  Simon Josefsson  <jas@extundo.com>
73434
73435         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73436         Bruno Haible <bruno@clisp.org>.
73437
73438         * m4/gc-des.m4: New file.
73439
73440 2005-10-21  Simon Josefsson  <jas@extundo.com>
73441
73442         * m4/arctwo.m4: New file.
73443
73444         * m4/gc-arctwo.m4: New file.
73445
73446 2005-10-21  Simon Josefsson  <jas@extundo.com>
73447
73448         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
73449         block.
73450
73451 2005-10-21  Simon Josefsson  <jas@extundo.com>
73452
73453         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
73454         <bruno@clisp.org>.
73455
73456         * lib/hmac-sha1.c (hmac_sha1): Likewise.
73457
73458         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
73459         Bruno Haible <bruno@clisp.org>.
73460
73461         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
73462         <bruno@clisp.org>.
73463
73464 2005-10-21  Simon Josefsson  <jas@extundo.com>
73465
73466         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
73467
73468 2005-10-21  Simon Josefsson  <jas@extundo.com>
73469
73470         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
73471
73472 2005-10-21  Simon Josefsson  <jas@extundo.com>
73473
73474         * lib/des.h, lib/des.c: New files.
73475
73476         * lib/gc-gnulib.c: Support DES.c
73477
73478 2005-10-21  Simon Josefsson  <jas@extundo.com>
73479
73480         * lib/arctwo.h, lib/arctwo.c: New files.
73481
73482         * lib/gc-gnulib.c: Support ARCTWO.
73483
73484 2005-10-21  Simon Josefsson  <jas@extundo.com>
73485
73486         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
73487         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73488
73489 2005-10-21  Simon Josefsson  <jas@extundo.com>
73490
73491         * gnulib-tool (func_import, func_create_testdir): Define automake
73492         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
73493         Makefile.am snippet),
73494         suggested by Bruno Haible <bruno@clisp.org>.
73495
73496         * modules/gc (Makefile.am): Use it.
73497
73498 2005-10-21  Bruno Haible  <bruno@clisp.org>
73499
73500         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
73501         patch.
73502
73503 2005-10-19  Simon Josefsson  <jas@extundo.com>
73504
73505         * tests/test-gc-rijndael.c: New file.
73506
73507         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
73508
73509 2005-10-19  Simon Josefsson  <jas@extundo.com>
73510
73511         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
73512         interface too.
73513
73514 2005-10-19  Simon Josefsson  <jas@extundo.com>
73515
73516         * tests/test-gc-arcfour.c: New file.
73517
73518         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
73519
73520 2005-10-19  Simon Josefsson  <jas@extundo.com>
73521
73522         * modules/gc-md4, modules/gc-md4-tests: New file.
73523
73524         * tests/test-gc-md4.c: New file.
73525
73526 2005-10-19  Simon Josefsson  <jas@extundo.com>
73527
73528         * m4/gc-md4.m4: New file.
73529
73530 2005-10-19  Simon Josefsson  <jas@extundo.com>
73531
73532         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
73533         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
73534         <kasal@ucw.cz>.
73535
73536 2005-10-19  Simon Josefsson  <jas@extundo.com>
73537
73538         * m4/gc-arcfour.m4: New file.
73539
73540         * m4/gc-rijndael.m4: New file.
73541
73542 2005-10-19  Simon Josefsson  <jas@extundo.com>
73543
73544         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
73545
73546 2005-10-19  Simon Josefsson  <jas@extundo.com>
73547
73548         * lib/gc-gnulib.c: Support ARCFOUR.
73549
73550 2005-10-19  Simon Josefsson  <jas@extundo.com>
73551
73552         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
73553         support.
73554
73555         * lib/gc.h: Add ECB enum type.
73556
73557         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
73558
73559 2005-10-18  Simon Josefsson  <jas@extundo.com>
73560
73561         * tests/test-md5.c: New file.
73562
73563         * modules/md5-tests: New file.
73564
73565 2005-10-18  Simon Josefsson  <jas@extundo.com>
73566
73567         * tests/test-md4.c: New file.
73568
73569         * modules/md4, modules/md4-tests: New files.
73570
73571 2005-10-18  Simon Josefsson  <jas@extundo.com>
73572
73573         * m4/md4.m4: New file.
73574
73575 2005-10-18  Simon Josefsson  <jas@extundo.com>
73576
73577         * lib/md4.h, lib/md4.c: New files, based on md5.?.
73578
73579 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
73580
73581         * gnulib-tool (func_create_testdir): Omit the second check whether
73582         BUILT_SOURCES in nonempty.
73583
73584 2005-10-17  Simon Josefsson  <jas@extundo.com>
73585
73586         * tests/test-rijndael.c: New file.
73587
73588 2005-10-17  Simon Josefsson  <jas@extundo.com>
73589
73590         * modules/sha1: Depend on stdint instead of md5.
73591
73592         * modules/md5: Depend on stdint, remove uint32_t.
73593
73594 2005-10-17  Simon Josefsson  <jas@extundo.com>
73595
73596         * modules/gc-sha1-tests: New file.
73597
73598         * tests/test-gc-sha1.c: New file.
73599
73600 2005-10-17  Simon Josefsson  <jas@extundo.com>
73601
73602         * m4/md5.m4: Remove call to uint32_t.m4.
73603
73604 2005-10-17  Simon Josefsson  <jas@extundo.com>
73605
73606         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
73607
73608         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
73609         md5.h.
73610
73611         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
73612
73613         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
73614
73615 2005-10-17  Simon Josefsson  <jas@extundo.com>
73616
73617         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
73618
73619 2005-10-17  Simon Josefsson  <jas@extundo.com>
73620
73621         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
73622
73623 2005-10-17  Simon Josefsson  <jas@extundo.com>
73624
73625         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
73626
73627         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
73628
73629 2005-10-17  Bruno Haible  <bruno@clisp.org>
73630
73631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
73632         that it can also be used in a test.
73633
73634 2005-10-16  Bruno Haible  <bruno@clisp.org>
73635
73636         * gnulib-tool (func_emit_tests_Makefile_am): Also define
73637         TESTS_ENVIRONMENT, so that individual tests can augment it.
73638
73639         * gnulib-tool (func_create_testdir): Use an intermediate target for
73640         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
73641         macros, like $(ALLOCA_H), which cannot be passed through the command
73642         line.
73643
73644 2005-10-15  Simon Josefsson  <jas@extundo.com>
73645
73646         * modules/rijndael-tests: New file.
73647
73648         * modules/rijndael: New file.
73649
73650 2005-10-15  Simon Josefsson  <jas@extundo.com>
73651
73652         * m4/rijndael.m4: New file.
73653
73654 2005-10-15  Simon Josefsson  <jas@extundo.com>
73655
73656         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
73657
73658         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
73659
73660 2005-10-14  Simon Josefsson  <jas@extundo.com>
73661
73662         * tests/test-arcfour.c: New file.
73663
73664         * modules/arcfour, modules/arcfour-tests: New files.
73665
73666 2005-10-14  Simon Josefsson  <jas@extundo.com>
73667
73668         * m4/arcfour.m4: New file.
73669
73670 2005-10-14  Simon Josefsson  <jas@extundo.com>
73671
73672         * lib/arcfour.h, lib/arcfour.c: New files.
73673
73674 2005-10-14  Roland McGrath  <roland@redhat.com>
73675
73676         Import from libc.  [BZ #1331]
73677         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
73678         macro argument.
73679         Reported by Matej Vela <vela@debian.org>.
73680
73681 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73682
73683         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
73684         include <wchar.h>; no longer needed.
73685
73686 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
73689
73690 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
73691         and  Ulrich Drepper  <drepper@redhat.com>
73692
73693         Import from libc.
73694         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
73695         instead of inline stream orientation test and two separate
73696         function calls.  Pay no attention to USE_IN_LIBIO.
73697
73698 2005-10-13  Simon Josefsson  <jas@extundo.com>
73699
73700         * modules/gc-hmac-md5-tests: New file.
73701
73702         * tests/test-gc-hmac-sha1.c: New file.
73703
73704         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
73705
73706         * modules/gc-hmac-md5-tests: New file.
73707
73708         * tests/test-gc-md5.c: New file.
73709
73710         * modules/gc-md5-tests: New file.
73711
73712 2005-10-13  Simon Josefsson  <jas@extundo.com>
73713
73714         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
73715         Move memory allocation outside of loop.
73716
73717 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
73720         intermediate directory is in a read-only file system.  Problem
73721         reported by Eric Blake.
73722
73723 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
73724
73725         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
73726
73727 2005-10-12  Simon Josefsson  <jas@extundo.com>
73728
73729         * tests/test-hmac-sha1.c: New file.
73730
73731         * modules/hmac-sha1-tests: New file.
73732
73733         * modules/hmac-sha1: New file.
73734
73735 2005-10-12  Simon Josefsson  <jas@extundo.com>
73736
73737         * modules/gc-sha1: New file.
73738
73739 2005-10-12  Simon Josefsson  <jas@extundo.com>
73740
73741         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
73742
73743         * tests/test-gc-pbkdf2-sha1.c: New file.
73744
73745 2005-10-12  Simon Josefsson  <jas@extundo.com>
73746
73747         * modules/gc-md5, modules/gc-hmac-md5: New files.
73748
73749         * modules/gc (Files): Remove md5, memxor and hmac files.
73750
73751 2005-10-12  Simon Josefsson  <jas@extundo.com>
73752
73753         * m4/gc-pbkdf2-sha1.m4: New file.
73754
73755         * m4/gc-hmac-sha1.m4: New file.
73756
73757         * m4/gc-sha1: New file.
73758
73759         * m4/hmac-sha1.m4: New file.
73760
73761 2005-10-12  Simon Josefsson  <jas@extundo.com>
73762
73763         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
73764
73765         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
73766
73767 2005-10-12  Simon Josefsson  <jas@extundo.com>
73768
73769         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
73770         suggested by Bruno Haible <bruno@clisp.org>.
73771
73772 2005-10-12  Simon Josefsson  <jas@extundo.com>
73773
73774         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
73775
73776 2005-10-12  Simon Josefsson  <jas@extundo.com>
73777
73778         * lib/gc-pbkdf2-sha1.c: New file.
73779
73780         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
73781
73782 2005-10-12  Simon Josefsson  <jas@extundo.com>
73783
73784         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
73785
73786         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
73787
73788 2005-10-12  Simon Josefsson  <jas@extundo.com>
73789
73790         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
73791         GC_USE_HMAC_MD5, respectively.
73792
73793         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
73794         (gc_md5): Fix typo.
73795
73796         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
73797
73798         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
73799
73800         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
73801
73802 2005-10-12  Bruno Haible  <bruno@clisp.org>
73803
73804         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
73805         Reported by Stepan Kasal <kasal@ucw.cz>.
73806
73807 2005-10-11  Simon Josefsson  <jas@extundo.com>
73808
73809         * tests/test-crc.c: New file.
73810
73811         * modules/crc, modules/crc-tests: New files.
73812
73813 2005-10-11  Simon Josefsson  <jas@extundo.com>
73814
73815         * m4/crc.m4: New file.
73816
73817 2005-10-11  Simon Josefsson  <jas@extundo.com>
73818
73819         * lib/gc.h: Add gc_hash and gc_hash_buffer.
73820
73821         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
73822
73823         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
73824
73825 2005-10-11  Simon Josefsson  <jas@extundo.com>
73826
73827         * lib/crc.h, lib/crc.c: New files.
73828
73829         * lib/gc.h (gc_hash_buffer): Add doc.
73830
73831 2005-10-11  Bruno Haible  <bruno@clisp.org>
73832
73833         * modules/c-strcasestr: New file.
73834         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
73835
73836 2005-10-11  Bruno Haible  <bruno@clisp.org>
73837
73838         * modules/c-strcase: New file.
73839         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
73840
73841 2005-10-11  Bruno Haible  <bruno@clisp.org>
73842
73843         * lib/strcasecmp.c: Include limits.h.
73844         (strcasecmp): Avoid integer overflow on exotic platforms.
73845         * lib/strncasecmp.c: Include limits.h.
73846         (strncasecmp): Avoid integer overflow on exotic platforms.
73847         Reported by Paul Eggert.
73848
73849 2005-10-11  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/c-strcasestr.h: New file, from GNU gettext.
73852         * lib/c-strcasestr.c: New file, from GNU gettext.
73853
73854 2005-10-11  Bruno Haible  <bruno@clisp.org>
73855
73856         * lib/c-strcase.h: New file, from GNU gettext.
73857         * lib/c-strcasecmp.c: New file, from GNU gettext.
73858         * lib/c-strncasecmp.c: New file, from GNU gettext.
73859
73860 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * modules/mempcpy (License): GPL -> LGPL.
73863         * modules/strchrnul (License): Likewise.
73864         * modules/sysexits (License): Likewise.
73865
73866 2005-10-08  Simon Josefsson  <jas@extundo.com>
73867
73868         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
73869
73870 2005-10-07  Simon Josefsson  <jas@extundo.com>
73871
73872         * m4/memxor.m4: Remove gl_C_RESTRICT call.
73873
73874 2005-10-06  Simon Josefsson  <jas@extundo.com>
73875
73876         * tests/test-hmac-md5.c: New file.
73877
73878         * modules/hmac-md5-tests: New file.
73879
73880         * modules/hmac-md5: New file.
73881
73882 2005-10-06  Simon Josefsson  <jas@extundo.com>
73883
73884         * m4/hmac-md5.m4: New file.
73885
73886         * m4/memxor.m4: Require gl_C_RESTRICT.
73887
73888 2005-10-06  Simon Josefsson  <jas@extundo.com>
73889
73890         * lib/memxor.c (memxor): Avoid casts and warnings.
73891
73892 2005-10-06  Simon Josefsson  <jas@extundo.com>
73893
73894         * lib/hmac-md5.c: New file.
73895
73896         * lib/hmac.h: New file.
73897
73898 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73899
73900         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
73901         promotes to int, not unsigned int, to catch the AIX 5.3
73902         compiler bug.
73903
73904 2005-10-05  Simon Josefsson  <jas@extundo.com>
73905
73906         * modules/memxor: New file.
73907
73908         * modules/iconv (Files): Move config.rpath to havelib, it is used
73909         there.
73910
73911         * modules/havelib (Files): Add config.rpath.
73912
73913 2005-10-05  Simon Josefsson  <jas@extundo.com>
73914
73915         * m4/memxor.m4: New file.
73916
73917 2005-10-05  Simon Josefsson  <jas@extundo.com>
73918
73919         * lib/memxor.c (memxor): Fix compiler error.
73920
73921         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
73922         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
73923
73924         * lib/memxor.h, lib/memxor.c: New files.
73925
73926         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
73927         we assume all systems have it, suggested by Jim Meyering
73928         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
73929         any systems lack sys/socket.h; mingw32 is known to lack it, but we
73930         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
73931         same reasons.
73932
73933 2005-10-05  Simon Josefsson  <jas@extundo.com>
73934
73935         * config/srclist.txt: Add glibc bug 1423 for md5.h.
73936
73937 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
73940         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
73941         needed, since the source code now assumes these .h files.
73942
73943 2005-10-05  Derek Price  <derek@ximbiot.com>
73944
73945         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
73946
73947 2005-10-05  Bruno Haible  <bruno@clisp.org>
73948
73949         * modules/stdint (License): Change to LGPL.
73950
73951 2005-10-04  Simon Josefsson  <jas@extundo.com>
73952
73953         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
73954         D. Baushke" <mdb@gnu.org>.
73955
73956 2005-10-04  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/verify.h (verify_true): Provide alternative definition for C++.
73959
73960 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
73963         (SSIZE_MAX): New macro, if not already defined.
73964         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
73965         than 2 GiB.
73966
73967 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         Sync from coreutils.
73970         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
73971         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
73972         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
73973         ULLONG_MAX doesn't work with 2.7.2.1.
73974
73975 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
73978         From Ben Pfaff.
73979
73980         * modules/exclude (Depends-on): Depend on verify.
73981         * modules/strtoimax (Depends-on): Likewise.
73982         * modules/utimecmp (Depends-on): Likewise.
73983
73984 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/exclude.c: Include verify.h.
73987         (verify): Remove.  All callers changed to use verify.h's version.
73988         * lib/strtoimax.c: Likewise.
73989         * lib/utimecmp.c: Likewis.e
73990
73991         Sync from coreutils.
73992         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
73993         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
73994         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
73995         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
73996         bother returning ENOSYS if settimeofday or stime fails; just let
73997         them return whatever errno they want to return.
73998         * lib/utimens.c: Include unistd.h, for dup2.
73999         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74000         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74001
74002 2005-10-02  Jim Meyering  <jim@meyering.net>
74003
74004         Sync from coreutils.
74005         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74006         from glibc-2.2.5 that fails for read-only files.
74007
74008 2005-10-02  Jim Meyering  <jim@meyering.net>
74009
74010         Sync from coreutils.
74011         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74012         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74013         `#if HAVE_CONFIG_H'.
74014         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74015         Remove AT_FDCWD test.
74016         Do not consume the fd unless successful.
74017         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74018         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74019         block, so that we don't even try to compile it if settimeofday is
74020         available.  This works around a compilation failure on OSF1 V5.1,
74021         due to stime requiring a `long int*' while tv_sec is `int'.
74022
74023 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74024
74025         Sync from coreutils.
74026         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74027         against `yes', rather than just testing for nonempty.
74028
74029 2005-10-01  Simon Josefsson  <jas@extundo.com>
74030
74031         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74032         and Darwin.
74033
74034         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74035         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74036         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74037         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74038         Check if struct addrinfo is declared.
74039
74040 2005-10-01  Simon Josefsson  <jas@extundo.com>
74041
74042         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74043         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74044         AI_* and EAI_* definitions.  Protect function declarations.
74045
74046 2005-10-01  Jim Meyering  <jim@meyering.net>
74047
74048         Sync from coreutils.
74049
74050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74051         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74052         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74054         in the inet and nsl libraries.  Required on Solaris 5.7.
74055
74056 2005-10-01  Jim Meyering  <jim@meyering.net>
74057
74058         Sync from coreutils.
74059         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74060         in the inet and nsl libraries.  Required on Solaris 5.7.
74061
74062 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74063
74064         * lib/getdelim.c (getdelim): Remove unused variables.
74065
74066 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74069         so that the code works even with ancient cpp.  Portability problem
74070         with GCC 2.7.2.1 reported by Thomas M.Ott.
74071
74072 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         * modules/regex (Depends-on): Add strcase.
74075
74076         * modules/gethostname (Licence): Change from GPL to LGPL, since
74077         gethostname.c is a trivial implementation of a standard library
74078         function.
74079         * modules/poll (License): Change from GPL to LGPL, since it's
74080         derived from LGPL code.
74081
74082 2005-09-27  Jim Meyering  <jim@meyering.net>
74083
74084         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74085         HAVE_CONFIG_H.
74086
74087         * lib/intprops.h (signed_type_or_expr__): Define.
74088         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74089         for unsigned types.
74090
74091 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74092
74093         * lib/verify.h (verify_expr): Remove, replacing with:
74094         (verify_true): New macro that returns true instead of void.
74095         (verify_type__): Remove.
74096         (verify): Use verify_true rather than verify_type__.
74097
74098 2005-09-26  Bruno Haible  <bruno@clisp.org>
74099
74100         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74101         is necessary.
74102         (lib_SOURCES): Remove mbchar.c.
74103         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74104         (Files): Add m4/mbrtowc.m4.
74105         * modules/mbiter: Likewise.
74106         * modules/mbuiter: Likewise.
74107
74108 2005-09-26  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74111         compile mbchar.c if they are not both present.
74112         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74113         * m4/mbiter.m4 (gl_MBITER): Likewise.
74114         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74115         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74116         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74117
74118 2005-09-25  Jim Meyering  <jim@meyering.net>
74119
74120         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74121         also uses socklen_t.
74122
74123 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * lib/utimens.c (ENOSYS): Define if not already defined.
74126         (futimens): Support having a null PATH if the file descriptor
74127         is nonnegative.
74128
74129         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74130         Remove.
74131         (__attribute): Define to empty unless GCC 3.1 or later.
74132         This works around a core dump on OpenBSD 3.4, which has GCC
74133         2.95.3, which dumps core when given __attribute__(()).  It also
74134         simplifies other tests, since we really don't want to bother with
74135         worrying about which ancient version of GCC supported what.
74136         Original problem reported by Yoann Vandoorselaere, with part of
74137         the fix suggested by Derek Price.
74138
74139 2005-09-24  Jim Meyering  <jim@meyering.net>
74140
74141         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74142         so we can once again use a positive bitfield width of 1 -- now we
74143         don't have to explain why we were using a bitfield width of 2.
74144
74145 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74148         and similarly for the other external symbols.  Problem reported
74149         by James Gallager.
74150
74151         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74152         bug reported by Jim Meyering.
74153
74154         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74156         not needed, since socklen is a prerequisite module.
74157
74158 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74159
74160         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74161         Problem reported by Eric Blake.
74162         (getaddrinfo): Initialize se so that it's not garbage.
74163         Redo internal storage allocation so that it doesn't make unportable
74164         assumptions about alignment.
74165         Fix a memory leak.
74166
74167         * lib/utimens.c (futimens): Use futimesat if available.
74168         Prefer it to futimes since it doesn't have the futimes bug.
74169
74170         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74171         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74172         Instead, declare a function that returns a pointer to an array,
74173         and use verify_type__ to declare the size of the array.
74174         Problem and germ of a solution reported by Bruno Haible.
74175         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74176         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74177
74178 2005-09-23  Jim Meyering  <jim@meyering.net>
74179
74180         Sync from coreutils.
74181         Correct build failure (socklen_t not defined) on at least
74182         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74183         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74184
74185 2005-09-23  Jim Meyering  <jim@meyering.net>
74186
74187         * modules/getaddrinfo (Depends-on): Add socklen.
74188
74189 2005-09-23  Bruno Haible  <bruno@clisp.org>
74190
74191         * tests/test-verify.c: New file.
74192
74193 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         Sync from coreutils.
74196
74197         * modules/argmatch (Depends-on): Add verify.
74198         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74199         unistd-safer.
74200         * modules/save-cwd (Depends-on): Likewise.
74201
74202         * modules/openat (Files): Add lib/openat-die.c.
74203         (Depends-on): Remove error, exitfail.
74204         Add dirname.
74205
74206         * modules/verify: New file.
74207         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74208         with "verify" module.
74209
74210 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74211
74212         Sync from coreutils.
74213
74214         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74215         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74216         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74217         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74218         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74219         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74220         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74221         Don't bother checking for string.h, stdlib.h, unistd.h.
74222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74223         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74224         module's job.
74225         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74226         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74227
74228         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74229         (gl_GETDATE): Use it.
74230
74231         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74232
74233 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74234
74235         Sync from coreutils.
74236
74237         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74238         stat-time.h.
74239         * lib/argmatch.h: Include verify.h
74240         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74241         (ARGMATCH_ASSERT): Remove; unused.
74242         * lib/canonicalize.c: Assume STDC_HEADERS.
74243         * lib/exclude.c: Include "strcase.h".
74244         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74245         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74246         and stdio-safer.h.
74247         (getusershell): Call fopen, not fopen_safer.
74248         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74249         Do not include unistd-safer.h.
74250         (save_cwd): Don't call fd_safer; no longer needed
74251         now that we include fcntl--.h.
74252
74253         * lib/getdate.y (relative_time): New type.
74254         (RELATIVE_TIME_0): New constant.
74255         (parser_control): Use relative_time instead of doing it ourselves.
74256         (%union): Add new relative_time rel member.
74257         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74258         Now typeless.
74259         (relunit, relunit_snumber): Now of type rel.
74260         (zone, rel, relunit, get_date): Adjust to above changes.
74261
74262         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74263         Do not include unistd-safer.h.
74264         (getloadavg): Don't call fd_safer; no longer needed
74265         now that we include fcntl--.h.
74266
74267         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74268         (make_dir_parents): Treat ENOSYS like EEXIST.
74269
74270         Improve quality of diagnostics on restore_cwd failure.
74271         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74272         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74273         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74274         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74275         each time through the loop.  Do not diagnose restore_cwd failure;
74276         that is the caller's job (and perhaps the caller does not care).
74277
74278         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74279         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74280         If the file already exists but is not a directory, don't bother
74281         to try to make its parents.
74282         Close potential file descriptor leak if we can't chdir("/") (!).
74283         Don't always return true if chdir($PWD) fails; return true only
74284         if the requested action was done successfully (except for the
74285         chdir($PWD)).
74286         Don't log final directory unless we actually made it.
74287         Refactor to avoid duplicate code to fix up permissions.
74288         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74289
74290         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74291         to make it a bit faster and (I hope) clearer.
74292         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74293         Fix bug in formats like %2N.
74294
74295         * lib/verify.h: New file.
74296
74297 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74298
74299         Sync from coreutils.
74300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74301
74302 2005-09-22  Jim Meyering  <jim@meyering.net>
74303
74304         Sync from coreutils.
74305
74306         * m4/lstat.m4 (gl_FUNC_LSTAT):
74307         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74308         Remove obsolete comment.
74309         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74310         * m4/xstrtod.m4: Likewise.
74311
74312         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74313
74314 2005-09-22  Jim Meyering  <jim@meyering.net>
74315
74316         Sync from coreutils.
74317
74318         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74319
74320         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74321         the .tm_year member, since otherwise gcc-4.0 would now warn about
74322         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74323
74324         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74325         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74326
74327         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74328         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74329         when run in a time zone for which daylight savings time is in effect
74330         for the starting date.
74331
74332         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74333         stop us from restricting permissions of just-created absolute-named
74334         directories.
74335         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74336         to restore initial working directory.
74337         * lib/mkdir-p.c (make_dir_parents): New parameter:
74338         different_working_dir, to tell caller if/when we change the working
74339         directory and are unable to return to the initial one.
74340         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74341         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74342         `return false'.  This fixes a bug introduced on 2004-07-30.
74343
74344         * lib/openat.c (fdopendir): Be sure to close the supplied
74345         file descriptor before returning.  This makes our replacement
74346         implementation a little closer to Solaris's, where fdopendir
74347         ties the file descriptor to the returned DIR* pointer.
74348         * lib/openat.c (unlinkat): New function.
74349         * lib/openat.h (unlinkat): Add prototype.
74350         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74351         (openat_restore_fail): Rename from openat_restore_die.
74352         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74353
74354         Provide an alternative to exiting immediately upon save_cwd or
74355         restore_cwd failure.  Now, an application can arrange e.g.,
74356         to perform a longjump in that case.
74357         * lib/openat.c: Include dirname.h.
74358         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74359         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74360         and openat_restore_die rather than calling error directly.
74361         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74362
74363         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74364         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74365         define.
74366
74367         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74368         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74369                             int utc, int nanoseconds);
74370         Background:
74371         date should not have to allocate a megabyte of virtual memory to
74372         handle a format argument like +%1048575T.  When implemented with
74373         strftime, it must allocate such a buffer, use strftime to fill it
74374         in, print it, then free it.
74375         With fprintftime, it simply prints everything and exits.
74376         With no need for memory allocation, that's one fewer way to fail.
74377         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74378         optional field width, not before, so we accept %9:z, not %:9z.
74379         (my_strftime): Be sure to use L_('x') for literals.
74380
74381         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74382         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74383         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74384         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74385         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74386         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74387         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74388         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74389         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74390         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74391         * lib/xgethostname.c, lib/xreadlink.c:
74392         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74393
74394         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74395         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74396         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74397         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74398         and don't include <sys/file.h>).
74399
74400 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74401
74402         Sync from coreutils.
74403
74404         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74405         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74406         [!LDAV_DONE]: Avoid unused variable warning.
74407
74408 2005-09-21  Bruno Haible  <bruno@clisp.org>
74409
74410         * lib/unicodeio.h (unicode_to_mb): New declaration.
74411
74412 2005-09-20  Derek Price  <derek@ximbiot.com>
74413
74414         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74415         getaddrinfo.h.
74416
74417 2005-09-20  Bruno Haible  <bruno@clisp.org>
74418
74419         * gnulib-tool: Remove trailing slashes from the values specified for
74420         --source-base, --m4-base, --tests-base, --aux-dir.
74421         Suggested by Simon Josefsson <jas@extundo.com>.
74422
74423 2005-09-20  Bruno Haible  <bruno@clisp.org>
74424
74425         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74426         func_modules_to_filelist, func_import, func_create_testdir): Make all
74427         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74428         change when gnulib-tool is invoked in a different locale.
74429
74430 2005-09-19  Simon Josefsson  <jas@extundo.com>
74431
74432         * m4/socklen.m4: Fix typo.
74433
74434 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74435
74436         Use a consistent style for including <config.h>.
74437         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74438         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74439         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74440         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74441         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74442         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74443         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74444         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74445         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74446         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
74447         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
74448         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
74449         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
74450         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
74451         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
74452         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
74453         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
74454         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
74455         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
74456         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
74457         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
74458         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
74459         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
74460         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
74461         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
74462         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
74463         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
74464         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
74465         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
74466         lib/xstrtoumax.c, lib/yesno.c:
74467         Standardize inclusion of config.h.
74468         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
74469         lib/inttostr.h:  Removed inclusion of config.h from header files.
74470         * lib/inttostr.c:  Adjusted in-tree users.
74471         * lib/timespec.h: Remove superfluous warning to include config.h.
74472         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
74473         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
74474         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
74475         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
74476         config.h with HAVE_CONFIG_H.
74477
74478 2005-09-19  Jim Meyering  <jim@meyering.net>
74479
74480         * modules/pathmax (License): Change to LGPL.
74481
74482 2005-09-19  Derek Price  <derek@ximbiot.com>
74483
74484         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
74485
74486 2005-09-19  Bruno Haible  <bruno@clisp.org>
74487
74488         * gnulib-tool (import): Provide default for --tests-base.
74489
74490 2005-09-19  Bruno Haible  <bruno@clisp.org>
74491
74492         * doc/quote.texi: New file, extracted from gnulib.texi.
74493         * doc/ctime.texi: New file, extracted from gnulib.texi.
74494         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
74495         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
74496         * doc/gnulib.texi: Include them.
74497
74498 2005-09-18  Bruno Haible  <bruno@clisp.org>
74499
74500         Portability fix.
74501         * gnulib-tool (func_readlink): New function.
74502         (func_ln_if_changed): Use it.
74503
74504 2005-09-18  Bruno Haible  <bruno@clisp.org>
74505
74506         * gnulib-tool: Support --with-tests also with --import.
74507         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
74508         (func_import): Use variables $testsbase and $inctests. Emit a
74509         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
74510         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
74511         SUBDIRS += $testsdir.
74512         (func_create_testdir): Update.
74513
74514 2005-09-18  Bruno Haible  <bruno@clisp.org>
74515
74516         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
74517         instead of $dry_run.
74518         (func_cp_if_changed, func_mv_if_changed): Remove functions.
74519         (func_ln_if_changed): Don't handle dry-run here.
74520         (func_import): In dry-run mode, detect more precisely which actions
74521         would be performed, and don't use "...ing" verbs.
74522
74523 2005-09-18  Bruno Haible  <bruno@clisp.org>
74524
74525         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
74526         (func_import): Use join on two temporary files instead of three nested
74527         loops, in order to determine which files are new or old.
74528
74529 2005-09-18  Bruno Haible  <bruno@clisp.org>
74530
74531         * gnulib-tool (func_import): Comment out code that spits out the
74532         new files with --dry-run.
74533
74534 2005-09-18  Bruno Haible  <bruno@clisp.org>
74535
74536         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
74537
74538 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * lib/stat-time.h: New file.
74541         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
74542         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
74543         in a different way.
74544         (timespec_cmp): New function.
74545         * lib/utimecmp.c: Include stat-time.h.
74546         (SYSCALL_RESOLUTION): Depend on whether various struct stat
74547         members exist, not on the obsolescent ST_MTIM_NSEC.
74548         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
74549
74550 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74551
74552         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
74553
74554 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         * MODULES.html.sh (File system functions): Add stat-time.
74557         * modules/stat-time: New file.
74558         * modules/timespec (Files): Remove m4/st_mtim.m4; this
74559         is now done in a different way, by the stat-time module.
74560         * modules/utimecmp (Depends-on): Add stat-time.
74561
74562 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * m4/st_mtim.m4: Remove.  Superseded by...
74565         * m4/stat-time.m4: New file.
74566         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
74567         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
74568
74569 2005-09-15  Derek Price  <derek@ximbiot.com>
74570
74571         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
74572
74573 2005-09-15  Derek Price  <derek@ximbiot.com>
74574
74575         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
74576         * lib/regex_internal.c: Ditto, using this...
74577         (__GNUC_PREREQ): ...new macro.
74578         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
74579         using...
74580         (__GNUC_PREREQ): ...this new macro.
74581
74582         * lib/strstr.h: Include string.h. Define strstr as a macro here.
74583
74584 2005-09-15  Derek Price  <derek@ximbiot.com>
74585             Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
74588         changes, consolidating in...
74589         * lib/regex_internal.h: ...this file.
74590
74591 2005-09-13  Jim Meyering  <jim@meyering.net>
74592
74593         * lib/canon-host.c: Filter through gnu indent and reword comments
74594         slightly.
74595         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
74596
74597 2005-09-13  Derek Price  <derek@ximbiot.com>
74598
74599         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
74600         failure.
74601         Reported by Jim Meyering  <jim@meyering.net>.
74602
74603 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74604
74605         * lib/base64.c: Typo.
74606         (base64_encode): Put b64str in initialized data section.
74607
74608 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
74609
74610         Merge glibc and coreutils changes into gnulib, plus a few
74611         extra fixes.
74612         * lib/md5.c: Use #error rather than a string.
74613         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
74614         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
74615         (__attribute__): Define to empty for non recent-GCC.
74616         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
74617         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
74618         Renamed from their non-__ counterparts, with new macros replacing
74619         them if not _LIBC.  Add __THROW attribute.
74620         (rol): Remove.
74621         (struct md5_ctx): Align buffer if using GCC.
74622         * lib/sha1.h (struct sha1_ctx): Likewise.
74623         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
74624         The old name was backwards.
74625         (NOTSWAP): Remove; not used.
74626         (rol): New macro, moved here from md5.h.
74627         (sha1_process_block): Remove a FIXME that doesn't make sense.
74628
74629 2005-09-12  Derek Price  <derek@ximbiot.com>
74630
74631         Return usable errors from canon-host.
74632         * lib/canon-host.h: New file.
74633         * lib/canon-host.c (canon_host): Wrap...
74634         (canon_host_r): ...this new function, which now relies exclusively on
74635         getaddrinfo.
74636         (ch_strerror): New function.
74637         (last_cherror): New global.
74638         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
74639         interface.
74640         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
74641         void *.
74642         (freeaddrinfo): Free ai->ai_canonname when set.
74643
74644 2005-09-12  Derek Price  <derek@ximbiot.com>
74645
74646         Make canon-host require getaddrinfo.
74647         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
74648         AC_LIBSOURCE canon-host.h.  Call...
74649         (gl_PREREQ_CANON_HOST): ...this new function, which requires
74650         gl_GETADDRINFO.
74651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
74652
74653 2005-09-12  Derek Price  <derek@ximbiot.com>
74654
74655         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
74656         LGPL.
74657         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
74658
74659 2005-09-12  Derek Price  <derek@ximbiot.com>
74660
74661         * lib/gai_strerror.c: Include config.h when available.  Include
74662         getaddrinfo.h before other headers to test interface.
74663         Reported by Larry Jones <lawrence.jones@ugs.com>.
74664
74665 2005-09-12  Derek Price  <derek@ximbiot.com>
74666             Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * modules/glob (Files): Add glob-libc.h.
74669
74670 2005-09-12  Derek Price  <derek@ximbiot.com>
74671             Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
74674         glob_.h, glob-libc.h.
74675         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
74676
74677 2005-09-12  Derek Price  <derek@ximbiot.com>
74678             Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
74681         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
74682         protecting things that should be done only in gnulib contexts.
74683         * lib/glob_.h: New file, containing only the glob things needed for
74684         gnulib.
74685         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
74686         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
74687         (glob, globfree, glob_pattern_p): Now defined simply in terms of
74688         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
74689         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
74690         and to respect the namespace rules better.
74691
74692 2005-09-08  Simon Josefsson  <jas@extundo.com>
74693
74694         * modules/socklen: New file.
74695
74696 2005-09-08  Simon Josefsson  <jas@extundo.com>
74697
74698         * m4/socklen.m4: New file.
74699
74700 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * modules/utimens (Files): Add m4/utimbuf.m4, since
74703         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
74704         Reported by Sergey Poznyakoff.
74705
74706 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
74709         definitions, since that's the preferred style in glibc.
74710         Fix a minor spacing issue, and update copyright notice to match
74711         glibc's.
74712
74713 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74714
74715         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
74716
74717 2005-09-06  Simon Josefsson  <jas@extundo.com>
74718
74719         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
74720         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
74721
74722 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
74725         warning.
74726
74727 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * config/srclist.txt: Add glibc bug 1302.
74730
74731 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         Change bitset word type from unsigned int to unsigned long int,
74734         as this has better performance on typical 64-bit hosts.
74735         Port bitset code to hosts with unusual word sizes.
74736         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
74737         (build_collating_symbol):
74738         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
74739         argument is a bitset.  This is merely a style issue, but it makes
74740         it clearer that an entire array is expected.
74741         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
74742         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
74743         Port to the case where bitset_word is not the same as unsigned int.
74744         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
74745         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
74746         Likewise.
74747         * lib/regexec.c (check_dst_limits_calc_pos_1,
74748         check_subexp_matching_top):
74749         (build_trtable, group_nodes_into_DFAstates):
74750         Likewise.
74751         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
74752         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
74753         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
74754         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
74755         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
74756         * lib/regcomp.c (optimize_subexps, lower_subexp):
74757         Work even if bitset_word has holes in its bitwise representation.
74758         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
74759         * lib/regexec.c (check_dst_limits_calc_pos_1,
74760         check_subexp_matching_top):
74761         Likewise.
74762         * lib/regex_internal.c (re_string_reconstruct):
74763         Don't assume UCHAR_MAX == 255.
74764         * lib/regex_internal.h (bitset_set_all): Likewise.
74765         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
74766         All uses changed.
74767         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
74768         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
74769         All uses changed.
74770         (BITSET_WORD_MAX): New macro.
74771         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
74772         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
74773         (bitset_empty, bitset_copy):
74774         Prefer sizeof (bitset) to multiplying it out ourselves.
74775         (bitset_not_merge): Remove; unused.
74776         (bitset_contain): Return bool, not unsigned int with one bit on.
74777         All callers changed.
74778         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
74779         alignment than re_node_set; do this by defining a new internal
74780         type struct dests_alloc and using it to allocate memory.
74781
74782 2005-09-05  Bruno Haible  <bruno@clisp.org>
74783
74784         * gnulib-tool (func_import): Fix comparison in handling of symbolic
74785         links.
74786
74787 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
74788
74789         * modules/size_max (Makefile.am): Add size_max.h
74790
74791 2005-09-04  Derek Price  <derek@ximbiot.com>
74792
74793         * gnulib-tool (func_import): Fix reversed $symbolic logic.
74794
74795 2005-09-03  Simon Josefsson  <jas@extundo.com>
74796
74797         * gnulib-tool: Fix typo.
74798
74799 2005-09-03  Simon Josefsson  <jas@extundo.com>
74800
74801         * config/srclist.txt: Add glibc bug 1293.
74802
74803 2005-09-03  Derek Price  <derek@ximbiot.com>
74804
74805         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
74806         From Larry Jones <lawrence.jones@ugs.com>.
74807
74808 2005-09-02  Simon Josefsson  <jas@extundo.com>
74809
74810         * modules/socklen: New file.
74811
74812 2005-09-02  Simon Josefsson  <jas@extundo.com>
74813
74814         * modules/havelib: New module.
74815
74816         * modules/gettext, modules/iconv, modules/lock, modules/readline:
74817         Use havelib.
74818
74819 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74820
74821         Check for arithmetic overflow when calculating sizes, to prevent
74822         some buffer-overflow issues.  These patches are conservative, in the
74823         sense that when I couldn't determine whether an overflow was possible,
74824         I inserted a run-time check.
74825         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
74826         macros.
74827         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
74828         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
74829         (re_xnrealloc, re_x2nrealloc): New inline functions.
74830         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
74831         parse_bracket_exp):
74832         (build_equiv_class, build_charclass): Check for arithmetic overflow
74833         in size expression calculations.
74834         * lib/regex_internal.c (re_string_realloc_buffers):
74835         (build_wcs_upper_buffer, re_node_set_add_intersect):
74836         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
74837         (re_dfa_add_node, register_state): Likewise.
74838         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
74839         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
74840         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
74841         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
74842
74843 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
74844
74845         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
74846         m4/ulonglong.m4.  Problem reported by Martin Lambers.
74847
74848 2005-09-02  Bruno Haible  <bruno@clisp.org>
74849
74850         Support for lib vs. lib64 distinction on biarch platforms.
74851         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
74852         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
74853         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
74854
74855 2005-09-02  Bruno Haible  <bruno@clisp.org>
74856
74857         * gnulib-tool (import): In the other first-use case, provide defaults
74858         as well.
74859
74860 2005-09-02  Bruno Haible  <bruno@clisp.org>
74861
74862         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
74863         patches not yet found in the latest gettext release.
74864
74865 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
74868         to avoid a collision with bits/local_lim.h in glibc.
74869         All uses changed.  Problem reported by Dmitry V. Levin in
74870         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
74871
74872         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
74873         bugs in int versus size_t comparisons.
74874         (re_string_context_at): Fix bug where the code assumed that
74875         Idx is signed.
74876
74877         Use bool where appropriate.
74878         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
74879         All callers changed.
74880         (calc_eclosure_iter): Likewise, for ROOT arg.
74881         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
74882         (build_charclass_op): Likewise, for NON_MATCH arg.
74883         * lib/regex_internal.c (re_string_allocate, re_string_construct):
74884         (re_string_construct_common): Likewise, for ICASE arg.
74885         * lib/regexec.c (re_search_2_stub, re_search_stub):
74886         Likewise, for RET_LEN arg.
74887         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
74888         (set_regs): Likewise, for FL_BACKTRACK arg.
74889         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
74890         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
74891         (calc_eclosure_iter, parse_bracket_exp):
74892         Use bool for internal variables that are booleans.
74893         * lib/regexec.c (re_search_internal, check_matching,
74894         proceed_next_node):
74895         (set_regs, build_sifted_states, sift_states_bkref):
74896         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
74897         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74898         (find_collation_sequence_value):
74899         Likewise.
74900         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
74901         (re_node_set_compare):
74902         Return bool, not int. All callers changed.
74903         * lib/regexec.c (check_halt_node_context, check_dst_limits):
74904         (build_trtable, check_node_accept): Likewise.
74905         * lib/regex_internal.h: Include stdbool.h.
74906
74907         Fix bugs uncovered when converting to bool.
74908         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
74909         failure instead of charging ahead blindly.
74910         * lib/regex_internal.c (register_state): Likewise.
74911         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
74912         for freeing internal storage.
74913         (group_nodes_into_DFA_states): Use unsigned int, not int, for
74914         bitset pieces used as boolean, to avoid undefined behavior
74915         on hosts that do int overflow checking.
74916
74917 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         * config/srclist.txt: Add glibc bugs 1285-1287.
74920
74921 2005-09-01  Jim Meyering  <jim@meyering.net>
74922
74923         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
74924         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
74925         Require gl_STAT_MACROS, too.
74926
74927 2005-09-01  Bruno Haible  <bruno@clisp.org>
74928
74929         * gnulib-tool (import): In the first-use case, provide defaults.
74930
74931 2005-09-01  Bruno Haible  <bruno@clisp.org>
74932
74933         * gnulib-tool (func_import): Remove the .tmp files.
74934
74935 2005-09-01  Bruno Haible  <bruno@clisp.org>
74936
74937         * gnulib-tool (func_import): Fix handling of symbolic links.
74938
74939 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
74942         old glibc regex code mishandles strings longer than 2**31 bytes.
74943         This patch fixes this when the regex code is used in gnulib
74944         (i.e., outside glibc).
74945
74946         This patch should not affect the use of the regex code inside
74947         glibc.  No doubt this problem also needs to be handled for glibc
74948         as well, but the result will be an incompatible change to the
74949         glibc ABI, and the old ABI will have to be supported too.  That
74950         can be the the subject for another patch.
74951
74952         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
74953         governing whether the rest of this patch is active.  By default,
74954         the macro is disabled and the patch has no effect.
74955         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
74956         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
74957         (struct re_pattern_buffer, re_search, re_search_2, re_match):
74958         (re_match_2, re_set_registers): Use the new types.
74959         * lib/regex_internal.h (Idx, re_hashval_t): New types.
74960         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
74961         New macros.
74962         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
74963         (re_string_context_at, bin_tree_t, re_dfastate_t):
74964         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
74965         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
74966         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
74967         (re_string_char_size_at, re_string_wchar_at):
74968         (re_string_elem_size_at):
74969         Use the new types and macros to port to 64-bit hosts.
74970         Use unsigned types for internal values, so that the code
74971         mostly works even for arrays larger than SSIZE_MAX.
74972         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
74973         (search_duplicated_node, calc_eclosure_iter, fetch_number):
74974         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
74975         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
74976         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
74977         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
74978         (calc_inveclosure, parse_dup_op, build_range_exp):
74979         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
74980         (fetch_number, create_token_tree, mark_opt_subexp):
74981         Likewise.
74982         * lib/regex_internal.c (re_string_construct_common,
74983         create_ci_newstate):
74984         (create_cd_newstate, re_string_allocate, re_string_construct):
74985         (re_string_realloc_buffers, build_wcs_upper_buffer):
74986         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74987         (re_string_reconstruct, re_string_peek_byte_case):
74988         (re_string_fetch_byte_case, re_string_context_at):
74989         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74990         (re_node_set_init_copy, re_node_set_add_intersect):
74991         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74992         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74993         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74994         (re_acquire_state, re_acquire_state_context, register_state):
74995         Likewise.
74996         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
74997         search_cur_bkref_entry):
74998         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
74999         (re_search_internal, re_search_2_stub, re_search_stub)
75000         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75001         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75002         (update_cur_sifted_state, check_dst_limits):
75003         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75004         (check_subexp_limits, sift_states_bkref, merge_state_array):
75005         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75006         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75007         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75008         (expand_bkref_cache, check_node_accept_bytes):
75009         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75010         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75011         (acquire_init_state_context, check_halt_node_context):
75012         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75013         (sift_states_backward, clean_state_log_if_needed):
75014         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75015         (find_recover_state, transit_state_sb, transit_state_mb):
75016         (transit_state_bkref, build_trtable, match_ctx_clean):
75017         Likewise.
75018         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75019         to work around an assumption that REG_MISSING is negative.
75020
75021         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75022         (seek_collating_symbol_entry) [defined _LIBC]:
75023         (lookup_collation_sequence_value) [defined _LIBC]:
75024         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75025         Use prototypes rather than old-style function definitions.
75026         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75027         (transit_state_sb) [0]:
75028         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75029
75030         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75031         rm_eo.
75032
75033         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75034         (optimize_subexps, lower_subexp):
75035         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75036         since the signed shift might overflow.  Use 1u<<31 instead.
75037         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75038         Likewise.
75039         * lib/regexec.c (check_dst_limits_calc_pos_1,
75040         check_subexp_matching_top): Likewise.
75041
75042         * lib/regcomp.c (optimize_subexps, lower_subexp):
75043         Use CHAR_BIT rather than 8, for clarity.
75044         * lib/regexec.c (check_dst_limits_calc_pos_1):
75045         (check_subexp_matching_top): Likewise.
75046         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75047         have to worry about portability issues when shifting it left.
75048         Remove no-longer-needed test for table_size > 0.
75049         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75050         in a word, as the resulting behavior is undefined.
75051         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75052         in one case, a <= should have been an <, and in another case the
75053         whole test was missing.
75054         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75055         the standard name CHAR_BIT.
75056         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75057         this is not true on one's complement and signed-magnitude hosts.
75058
75059         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75060         next_last_offset.
75061         (struct re_dfa_t): Remove unused member states_alloc.
75062         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75063
75064 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75067         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75068         and large-file glibc and in 32-bit large-file Solaris.
75069
75070 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75071
75072         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75073         lengths fit in regoff_t; this isn't true if regoff_t is the same
75074         width as size_t.
75075         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75076         (= START + RANGE) instead of RANGE.  This avoids overflow
75077         problems when regoff_t is the same width as size_t.
75078         All callers changed.
75079         (re_search_2_stub): Check for overflow when adding the
75080         sizes of the two strings.
75081         (re_search_stub): Check for overflow when adding START
75082         to RANGE; if it occurs, substitute the extreme value.
75083
75084 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75087
75088 2005-08-31  Jim Meyering  <jim@meyering.net>
75089
75090         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75091         a pointer-to-const.
75092         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75093         (register_state): Likewise.
75094         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75095         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75096         (group_nodes_into_DFAstates): Likewise.
75097
75098 2005-08-31  Jim Meyering  <jim@meyering.net>
75099
75100         * check-module: Add a FIXME comment.
75101
75102 2005-08-31  Eric Blake  <ebb9@byu.net>
75103
75104         * modules/unistd-safer (Files): Add unistd--.h.
75105         * modules/stdio-safer (Files): Add stdio--.h.
75106
75107 2005-08-31  Derek Price  <derek@ximbiot.com>
75108
75109         * lib/getdelim.c (getdelim): Return EOF on EOF.
75110         Reported by Larry Jones <lawrence.jones@ugs.com>.
75111
75112 2005-08-31  Bruno Haible  <bruno@clisp.org>
75113
75114         Avoid unnecessary diffs in the generated lib/Makefile.am.
75115         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75116         the generated files.
75117         (func_import): Don't set cmd.
75118
75119 2005-08-31  Bruno Haible  <bruno@clisp.org>
75120
75121         * lib/strstr.c: Include <stddef.h>, for NULL.
75122         * lib/strcasestr.c: Likewise.
75123         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75124
75125 2005-08-31  Bruno Haible  <bruno@clisp.org>
75126
75127         * gnulib-tool: New option --macro-prefix.
75128         (func_import): Use macro_prefix.
75129         (import): Handle option --macro-prefix.
75130
75131 2005-08-31  Bruno Haible  <bruno@clisp.org>
75132
75133         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75134         Also use new variables cached_lgpl, cached_libtool.
75135
75136 2005-08-31  Bruno Haible  <bruno@clisp.org>
75137
75138         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75139         always instantiating them.
75140
75141 2005-08-31  Bruno Haible  <bruno@clisp.org>
75142
75143         * gnulib-tool (func_import): Read the previous cached settings
75144         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75145         earlier added by gnulib but are now dropped. Warn when a gnulib file
75146         overwrites a non-gnulib file.
75147
75148 2005-08-31  Bruno Haible  <bruno@clisp.org>
75149
75150         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75151         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75152         projects that don't keep autogenerated files in CVS. Put into
75153         actioncmd only the specified modules, not the transitive closure.
75154
75155 2005-08-31  Bruno Haible  <bruno@clisp.org>
75156
75157         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75158         Create directories that shall be filled.
75159         (import): Don't look for gl_* macros in configure.ac. Recurse across
75160         all directories containing a gnulib-cache.m4 files, if meaningful.
75161
75162 2005-08-31  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75165         (import): Set seen_libtool when we see gl_LIBTOOL.
75166
75167 2005-08-31  Bruno Haible  <bruno@clisp.org>
75168
75169         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75170         declaration macro definitions from generated gnulib.m4.
75171
75172 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75173
75174         * lib/iconvme.h: Add prototype for iconv_alloc.
75175
75176 2005-08-29  Simon Josefsson  <jas@extundo.com>
75177
75178         * lib/iconvme.c: Fix errno.
75179
75180 2005-08-29  Bruno Haible  <bruno@clisp.org>
75181
75182         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75183         that it works when the directory contains spaces.
75184
75185 2005-08-29  Bruno Haible  <bruno@clisp.org>
75186
75187         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75188
75189 2005-08-29  Bruno Haible  <bruno@clisp.org>
75190
75191         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75192         Emit more advice.
75193
75194 2005-08-29  Bruno Haible  <bruno@clisp.org>
75195         and Stepan Kasal  <kasal@ucw.cz>
75196
75197         * check-module: If more parameters are given, check each of them
75198         separately; add more exceptions, as noted by Jim Meyering.
75199         (check_module): New procedure.
75200         (%exempt_header): Now contains all exceptions.
75201
75202 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75203
75204         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75205
75206 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75207
75208         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75209
75210 2005-08-28  Bruno Haible  <bruno@clisp.org>
75211
75212         * m4/gnulib-tool.m4: New file.
75213
75214 2005-08-27  Jim Meyering  <jim@meyering.net>
75215
75216         * modules/unistd-safer (Files): Add pipe-safer.c.
75217         * modules/fcntl-safer (Files): Add creat-safer.c.
75218
75219 2005-08-27  Jim Meyering  <jim@meyering.net>
75220
75221         * m4/stdlib-safer.m4: New file.  From coreutils.
75222         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75223         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75224         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75225         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75226         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75227
75228 2005-08-27  Jim Meyering  <jim@meyering.net>
75229
75230         * lib/fopen-safer.c: Merge minor changes from coreutils.
75231         * lib/dup-safer.c: Likewise.
75232         * lib/fd-safer.c: Likewise.
75233
75234         Merge from coreutils.
75235         * lib/stdio--.h: New file.
75236         * lib/stdlib--.h: New file.
75237         * lib/mkstemp-safer.c: New file.
75238
75239         GNU tar needs these.
75240         * lib/pipe-safer.c: New file.
75241         * lib/creat-safer.c: New file.
75242         * lib/fcntl--.h (creat): Define to creat_safer.
75243         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75244         * lib/unistd--.h (pipe): Define to pipe_safer.
75245         * lib/unistd-safer.h: Declare pipe_safer.
75246
75247 2005-08-26  Simon Josefsson  <jas@extundo.com>
75248
75249         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75250         Haible <bruno@clisp.org>.
75251
75252 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75253
75254         * lib/regex_internal.h: Remove all references to
75255         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75256         or better.
75257         (bitset_not, bitset_merge, bitset_not_merge):
75258         (bitset_mask, re_string_allocate, re_string_construct):
75259         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75260         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75261         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75262         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75263         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75264         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75265         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75266         (re_acquire_state_context):
75267         Remove unnecessary forward decls.
75268         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75269         Put __attribute at function definition,
75270         now that the function decl has been removed.
75271         * lib/regex_internal.c (re_string_peek_byte_case):
75272         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75273         Likewise.
75274
75275 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75276
75277         * m4/regex.m4: Add AC_PREREQ(2.50).
75278         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75279
75280 2005-08-25  Simon Josefsson  <jas@extundo.com>
75281
75282         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75283         __fsetlocking.
75284
75285 2005-08-25  Simon Josefsson  <jas@extundo.com>
75286
75287         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75288         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75289         GLIBC specific code.
75290
75291 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         Make regex safe for g++.  This fixes one real bug (an "err"
75294         that should have been "*err").  g++ problem reported by
75295         Sam Steingold.
75296         * lib/regex_internal.h (re_calloc): New macro, consistent with
75297         re_malloc etc.  All callers of calloc changed to use re_calloc.
75298         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75299         not int.  All callers changed.
75300         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75301         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75302         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75303         (find_recover_state): Change "err" to "*err"; this fixes what
75304         appears to be a real bug.
75305         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75306         versus int.
75307
75308 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * modules/regex (Depends-on): Add malloc, since the code
75311         assumes that !malloc(0) means failure.
75312
75313 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75314
75315         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75316
75317         alloca modernization/simplification for regex.
75318         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75319         needs to be at the start of the file, and can be moved into
75320         regex_internal.h and simplified.
75321         * lib/regex_internal.h: Include <alloca.h>.
75322         (__libc_use_alloca) [!defined _LIBC]: New macro.
75323         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75324         now works outside glibc.
75325
75326 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * config/srclist.txt: Add glibc bugs 1241, 1245.
75329
75330 2005-08-25  Jim Meyering  <jim@meyering.net>
75331
75332         * lib/open-safer.c: Include <config.h>.
75333         Otherwise, we'd lose LARGEFILE support in any file using
75334         e.g. "fcntl--.h"
75335
75336 2005-08-25  Bruno Haible  <bruno@clisp.org>
75337
75338         * m4/minmax.m4: Require autoconf 2.52.
75339         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75340         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75341         alternatives of translit over the alphabet.
75342         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75343
75344 2005-08-24  Simon Josefsson  <jas@extundo.com>
75345
75346         * tests/test-getpass.c: New file.
75347
75348 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75351         for GNU regex features.
75352
75353 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75356         * lib/regex.h (regerror): Likewise.
75357
75358         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75359         requires this.  (The code never needed it.)
75360
75361         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75362         All uses of recently-renamed identifiers changed to use the new,
75363         POSIX-compliant names.  The code will build and run just fine
75364         without these changes, but it's better to eat our own dog food
75365         and use the standard-conforming names.
75366
75367         * lib/regex.h: Fix a multitude of POSIX name space violations.
75368         These changes have an effect only for programs that define
75369         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75370         do not change anything for programs compiled in the normal way.
75371         Also, there is no effect on the ABI.
75372
75373         (_REGEX_SOURCE): New macro.
75374         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75375         defined and _GNU_SOURCE is not; this fixes a name space violation.
75376
75377         Rename the following macros to obey POSIX requirements.
75378         The old names are still visible as macros if _REGEX_SOURCE is defined.
75379         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75380         RE_BACKSLASH_ESCAPE_IN_LISTS.
75381         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75382         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75383         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75384         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75385         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75386         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75387         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75388         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75389         (REG_INTERVALS): renamed from RE_INTERVALS.
75390         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75391         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75392         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75393         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75394         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75395         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75396         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75397         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75398         RE_UNMATCHED_RIGHT_PAREN_ORD.
75399         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75400         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75401         (REG_DEBUG): renamed from RE_DEBUG.
75402         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75403         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75404         unusual, since we can't clash with the POSIX REG_ICASE.
75405         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75406         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75407         (REG_NO_SUB): renamed from RE_NO_SUB.
75408         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75409         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75410         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75411         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75412         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75413         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75414         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75415         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75416         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75417         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75418         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75419         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75420         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75421         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75422         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75423         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75424         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75425         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75426         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75427         (REG_FIXED): Renamed from REGS_FIXED.
75428         (REG_NREGS): Renamed from RE_NREGS.
75429
75430         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75431         of other REG_* macros, since POSIX says the user is allowed to
75432         #undef these macros selectively.
75433
75434         (reg_errcode_t): Update comment stating what other tables need
75435         to be consistent.
75436
75437         Rename the following enum values to obey POSIX requirements.
75438         The old names are still visible as macros.
75439         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75440         is not defined, since GNU is supposed to be a superset of POSIX as
75441         much as possible, and since we want reg_errcode_t to be a signed
75442         type for implementation consistency.
75443         (_REG_NOERROR): Renamed from REG_NOERROR.
75444         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75445         (_REG_BADPAT): Renamed from REG_BADPAT.
75446         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
75447         (_REG_ECTYPE): Renamed from REG_ECTYPE.
75448         (_REG_EESCAPE): Renamed from REG_EESCAPE.
75449         (_REG_ESUBREG): Renamed from REG_ESUBREG.
75450         (_REG_EBRACK): Renamed from REG_EBRACK.
75451         (_REG_EPAREN): Renamed from REG_EPAREN.
75452         (_REG_EBRACE): Renamed from REG_EBRACE.
75453         (_REG_BADBR): Renamed from REG_BADBR.
75454         (_REG_ERANGE): Renamed from REG_ERANGE.
75455         (_REG_ESPACE): Renamed from REG_ESPACE.
75456         (_REG_BADRPT): Renamed from REG_BADRPT.
75457         (_REG_EEND): Renamed from REG_EEND.
75458         (_REG_ESIZE): Renamed from REG_ESIZE.
75459         (_REG_ERPAREN): Renamed from REG_ERPAREN.
75460         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
75461         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
75462         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
75463         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
75464
75465         (_REG_RE_NAME, _REG_RM_NAME): New macros.
75466         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
75467         changed.  But support the old name if the new one is not defined
75468         and if _REGEX_SOURCE.
75469
75470         Change the following member names in struct re_pattern_buffer.
75471         The old names are still supported if !_REGEX_SOURCE.
75472         The new names are always supported, regardless of _REGEX_SOURCE.
75473         (re_buffer): Renamed from buffer.
75474         (re_allocated): Renamed from allocated.
75475         (re_used): Renamed from used.
75476         (re_syntax): Renamed from syntax.
75477         (re_fastmap): Renamed from fastmap.
75478         (re_translate): Renamed from translate.
75479         (re_can_be_null): Renamed from can_be_null.
75480         (re_regs_allocated): Renamed from regs_allocated.
75481         (re_fastmap_accurate): Renamed from fastmap_accurate.
75482         (re_no_sub): Renamed from no_sub.
75483         (re_not_bol): Renamed from not_bol.
75484         (re_not_eol): Renamed from not_eol.
75485         (re_newline_anchor): Renamed from newline_anchor.
75486
75487         Change the following member names in struct re_registers.
75488         The old names are still supported if !_REGEX_SOURCE.
75489         The new names are always supported, regardless of _REGEX_SOURCE.
75490         (rm_num_regs): Renamed from num_regs.
75491         (rm_start): Renamed from start.
75492         (rm_end): Renamed from end.
75493
75494         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
75495         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
75496         Prepend __ to parameter names.
75497
75498         Undo yesterday's changes.
75499
75500 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
75503         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
75504         lib/regex.c.
75505
75506 2005-08-24  Jim Meyering  <jim@meyering.net>
75507
75508         Sync from coreutils.
75509         * m4/fcntl-safer.m4: New file.
75510
75511         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
75512         and object files for this module.
75513
75514 2005-08-24  Jim Meyering  <jim@meyering.net>
75515
75516         Sync from coreutils.
75517         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
75518
75519 2005-08-24  Jim Meyering  <jim@meyering.net>
75520
75521         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
75522         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
75523
75524 2005-08-24  Jim Meyering  <jim@meyering.net>
75525
75526         * modules/fcntl-safer: New module.
75527         * modules/fts (Depends-on): Add fcntl-safer.
75528         * MODULES.html.sh (File descriptor based Input/Output):
75529         Add fcntl-safer.
75530
75531 2005-08-24  Bruno Haible  <bruno@clisp.org>
75532
75533         Support for unit test modules.
75534         * modules/README: Mention tests modules.
75535         * modules/TEMPLATE-TESTS: New file.
75536         * gnulib-tool: New options --extract-tests-module, --with-tests and
75537         --tests-base (unused for the moment).
75538         (testsbase, inctests): New variables.
75539         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
75540         (func_verify_module): Exclude TEMPLATE-TESTS.
75541         (func_verify_nontests_module, func_verify_tests_module): New functions.
75542         (func_get_dependencies): Add implicit dependency for tests modules.
75543         (func_get_tests_module): New function.
75544         (func_modules_transitive_closure): When --with-tests was specified,
75545         include the unit tests as well, unless explicitly avoided.
75546         (func_emit_lib_Makefile_am): Ignore the tests modules here.
75547         (func_emit_tests_Makefile_am): New function.
75548         (func_create_testdir): When --with-tests was specified, emit a
75549         tests/ directory.
75550         * MODULES.html.sh (Future developments): Update.
75551
75552 2005-08-24  Bruno Haible  <bruno@clisp.org>
75553
75554         * modules/tls-tests: New file.
75555         * tests/test-tls.c: New file, from GNU gettext.
75556
75557 2005-08-24  Bruno Haible  <bruno@clisp.org>
75558
75559         * modules/lock-tests: New file.
75560         * tests/test-lock.c: New file, from GNU gettext.
75561
75562 2005-08-24  Bruno Haible  <bruno@clisp.org>
75563
75564         * lib/lock.h: Add multiple inclusion guard.
75565         * lib/tls.h: Add multiple inclusion guard.
75566
75567 2005-08-24  Bruno Haible  <bruno@clisp.org>
75568
75569         * gnulib-tool: Add support for the --aux-dir option to
75570         --create-testdir, --create-megatestdir, --test, --megatest.
75571         (func_create_testdir, func_create_megatestdir): Optionally emit a
75572         AC_CONFIG_AUX_DIR directive.
75573         (create-testdir, create-megatestdir, test, megatest): Provide a
75574         default value for $auxdir.
75575
75576 2005-08-24  Bruno Haible  <bruno@clisp.org>
75577
75578         * gnulib-tool (import): Use compound statement instead of subshell
75579         where possible.
75580
75581 2005-08-24  Bruno Haible  <bruno@clisp.org>
75582
75583         * gnulib-tool (import): Change --aux-dir default to "build-aux".
75584
75585 2005-08-24  Bruno Haible  <bruno@clisp.org>
75586
75587         * gnulib-tool (func_version): Update.
75588
75589 2005-08-24  Bruno Haible  <bruno@clisp.org>
75590
75591         * gnulib-tool (func_import, func_create_testdir,
75592         func_create_megatestdir): Quote all autoconf macro arguments.
75593
75594 2005-08-24  Bruno Haible  <bruno@clisp.org>
75595
75596         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
75597         option --force, because --force causes the aclocal.m4 of each
75598         subdirectory to be newer than the corresponding config.h.in.
75599
75600 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
75603         All contents moved to gl_REGEX.
75604         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
75605         assume that it does.
75606
75607 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75608
75609         * lib/regex.h (REG_NOSYS)
75610         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
75611         Define, since POSIX requires it as of 2001.
75612         (_REG_ENOSYS)
75613         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
75614         New private symbol, used to keep the enum signed in all cases.
75615         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
75616         Youngman in
75617         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
75618
75619         * lib/regex_internal.c (re_string_skip_chars, register_state):
75620         (calc_state_hash):
75621         Remove forward decls; no longer needed now that we use prototypes.
75622         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
75623         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
75624         (clean_state_log_if_needed): Likewise.
75625
75626 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * config/srclist.txt: Add glibc bugs 1231-1233.
75629
75630 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         Fix problems reported by Sam Steingold in
75633         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
75634         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
75635         assumed that reg_errcode_t is a signed type, which is not
75636         necessarily true if _XOPEN_SOURCE is not defined.
75637         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
75638         since some compilers warn about it otherwise.
75639
75640 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
75643         (init_word_char, create_initial_state, duplicate_node_closure):
75644         (fetch_token, peek_token_bracket, build_range_exp):
75645         (build_collating_symbol): Remove forward decls; no longer needed
75646         now that we use prototypes.
75647
75648         * lib/regcomp.c:
75649         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
75650         (re_compile_fastmap_iter, regcomp, regerror, regfree):
75651         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
75652         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
75653         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
75654         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
75655         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
75656         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
75657         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
75658         (build_range_exp, build_collating_symbol, parse_bracket_exp):
75659         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
75660         (build_charclass, build_charclass_op, fetch_number, create_tree):
75661         (create_token_tree, mark_opt_subexp, duplicate_tree):
75662         Use prototypes rather than old-style definitions.
75663
75664         * lib/regex_internal.c:
75665         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
75666         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
75667         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75668         (re_string_reconstruct, re_string_peek_byte_case):
75669         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
75670         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75671         (re_node_set_init_copy, re_node_set_add_intersect):
75672         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75673         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75674         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75675         (re_acquire_state, re_acquire_state_context, register_state):
75676         (create_ci_newstate, create_cd_newstate, free_state):
75677         Likewise.
75678         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
75679         re_search_2):
75680         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
75681         (re_search_internal, prune_impossible_nodes):
75682         (acquire_init_state_context, check_matching, static):
75683         (check_halt_node_context, check_halt_state_context, proceed_next_node):
75684         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
75685         (update_regs, sift_states_backward, build_sifted_states):
75686         (clean_state_log_if_needed, merge_state_array):
75687         (update_cur_sifted_state, add_epsilon_src_nodes):
75688         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
75689         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
75690         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
75691         (find_recover_state, check_subexp_matching_top, transit_state_mb):
75692         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
75693         (check_arrival, check_arrival_add_next_nodes):
75694         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75695         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75696         (check_node_accept_bytes, check_node_accept, extend_buffers):
75697         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
75698         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
75699         (sift_ctx_init):
75700         Likewise.
75701
75702         * lib/regex_internal.h:
75703         (re_string_allocate, re_string_construct, re_string_reconstruct):
75704         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
75705         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
75706         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
75707         (re_string_context_at, re_string_peek_byte_case):
75708         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
75709         is defined, since we now use prototypes always.
75710
75711         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
75712         C89 or better.  All uses removed.
75713
75714 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75715
75716         * config/srclist.txt: Add glibc bugs 1220-1227.
75717
75718 2005-08-20  Jim Meyering  <jim@meyering.net>
75719
75720         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
75721         of unused local, dfa.
75722
75723 2005-08-20  Bruno Haible  <bruno@clisp.org>
75724
75725         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
75726
75727 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75728
75729         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
75730         (re_node_set_insert_last, re_dfa_add_node):
75731         Rename local variables to avoid GCC shadowing warnings.
75732
75733 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
75736         [defined lint]: Suppress bogus uninitialized-variable warnings.
75737
75738         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
75739         and let the caller return REG_ESPACE if out of space.  This
75740         removes an uninitialied-variable warning with GCC 4.0.1, and also
75741         avoids taking the address of a local variable.  All callers
75742         changed.
75743
75744 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75745
75746         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
75747         $LIBCSRC/posix/regexec.c.
75748         Add glibc bug 1217 for regcomp.c.
75749
75750 2005-08-19  Jim Meyering  <jim@meyering.net>
75751
75752         * lib/regexec.c (proceed_next_node): Redo local variables to
75753         avoid GCC shadowing warnings.
75754
75755 2005-08-18  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/strstr.c (strstr): Fix return value in multibyte case.
75758         * lib/strcasestr.c (strcasestr): Likewise.
75759
75760 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75761
75762         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
75763
75764 2005-08-17  Jim Meyering  <jim@meyering.net>
75765
75766         Make the %s format (seconds since the epoch) work for a negative
75767         number and when used with a zero-padded field width, e.g. %015s.
75768
75769         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
75770         label so that it precedes the code to set `digits'.  Otherwise,
75771         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
75772         print `00-22'.  Now, it prints `-0022', as it should.
75773
75774 2005-08-17  Bruno Haible  <bruno@clisp.org>
75775
75776         * modules/strstr (Files): Add m4/mbrtowc.m4.
75777         (Depends-on): Add mbuiter.
75778
75779 2005-08-17  Bruno Haible  <bruno@clisp.org>
75780
75781         * modules/strcasestr: New file.
75782         * MODULES.html.sh (String handling, based on ANSI C 89): Add
75783         strcasestr.
75784
75785 2005-08-17  Bruno Haible  <bruno@clisp.org>
75786
75787         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
75788
75789 2005-08-17  Bruno Haible  <bruno@clisp.org>
75790
75791         * modules/mbuiter: New file.
75792         * MODULES.html.sh (Extended multibyte and wide character utilities):
75793         Add mbuiter.
75794
75795 2005-08-17  Bruno Haible  <bruno@clisp.org>
75796
75797         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
75798         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
75799
75800 2005-08-17  Bruno Haible  <bruno@clisp.org>
75801
75802         * m4/strcasestr.m4: New file.
75803
75804 2005-08-17  Bruno Haible  <bruno@clisp.org>
75805
75806         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
75807         * lib/strstr.c: Completely rewritten, with multibyte locale support.
75808
75809 2005-08-17  Bruno Haible  <bruno@clisp.org>
75810
75811         * lib/strcasestr.h: New file.
75812         * lib/strcasestr.c: New file.
75813
75814 2005-08-17  Bruno Haible  <bruno@clisp.org>
75815
75816         * lib/strcasecmp.c: Use mbuiter.h.
75817
75818 2005-08-17  Bruno Haible  <bruno@clisp.org>
75819
75820         * lib/mbuiter.h: New file.
75821
75822 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
75825         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
75826         and gl_GETOPT are both invoked via different paths (as happens
75827         with GNU tar CVS because it uses both argp and getopt), the former
75828         wins.
75829
75830 2005-08-16  Bruno Haible  <bruno@clisp.org>
75831
75832         * modules/tls: New file.
75833         * MODULES.html.sh (Multithreading): Add tls.
75834
75835 2005-08-16  Bruno Haible  <bruno@clisp.org>
75836
75837         * modules/strnlen1: New file.
75838         * MODULES.html.sh (String handling): Add strnlen1.
75839
75840 2005-08-16  Bruno Haible  <bruno@clisp.org>
75841
75842         * modules/strcase (Files): Add m4/mbrtowc.m4.
75843         (Depends-on): Add strnlen1, mbchar.
75844
75845 2005-08-16  Bruno Haible  <bruno@clisp.org>
75846
75847         * modules/mbiter: New file.
75848         * MODULES.html.sh (Extended multibyte and wide character utilities):
75849         Add mbiter.
75850
75851 2005-08-16  Bruno Haible  <bruno@clisp.org>
75852
75853         * modules/mbfile: New file.
75854         * MODULES.html.sh (Extended multibyte and wide character utilities):
75855         Add mbfile.
75856
75857 2005-08-16  Bruno Haible  <bruno@clisp.org>
75858
75859         * modules/mbchar: New file.
75860         * MODULES.html.sh (Extended multibyte and wide character utilities):
75861         New section.
75862
75863 2005-08-16  Bruno Haible  <bruno@clisp.org>
75864
75865         * m4/tls.m4: New file, from GNU gettext.
75866
75867 2005-08-16  Bruno Haible  <bruno@clisp.org>
75868
75869         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
75870         always.
75871         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
75872
75873 2005-08-16  Bruno Haible  <bruno@clisp.org>
75874
75875         * m4/mbiter.m4: New file.
75876
75877 2005-08-16  Bruno Haible  <bruno@clisp.org>
75878
75879         * m4/mbfile.m4: New file.
75880
75881 2005-08-16  Bruno Haible  <bruno@clisp.org>
75882
75883         * m4/mbchar.m4: New file.
75884
75885 2005-08-16  Bruno Haible  <bruno@clisp.org>
75886
75887         * lib/tls.h: New file, from GNU gettext.
75888         * lib/tls.c: New file, from GNU gettext.
75889
75890 2005-08-16  Bruno Haible  <bruno@clisp.org>
75891
75892         * lib/strnlen1.h: New file.
75893         * lib/strnlen1.c: New file.
75894
75895 2005-08-16  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
75898         (mbi_init): Update.
75899         (mbi_avail, mbi_advance): Let the iteration end before the terminating
75900         NUL byte, not after it.
75901
75902 2005-08-16  Bruno Haible  <bruno@clisp.org>
75903
75904         * lib/strcase.h (strcasecmp): Add note in comments.
75905         * lib/strncasecmp.c: Use code from strcasecmp.c.
75906         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
75907         (strcasecmp): Work correctly in multibyte locales.
75908
75909 2005-08-16  Bruno Haible  <bruno@clisp.org>
75910
75911         * lib/mbiter.h: New file.
75912
75913 2005-08-16  Bruno Haible  <bruno@clisp.org>
75914
75915         * lib/mbfile.h: New file.
75916
75917 2005-08-16  Bruno Haible  <bruno@clisp.org>
75918
75919         * lib/mbchar.h: New file.
75920         * lib/mbchar.c: New file.
75921
75922 2005-08-16  Bruno Haible  <bruno@clisp.org>
75923
75924         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
75925         the valid ones. Makes the comparison operations transitive:
75926         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
75927         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
75928
75929 2005-08-15  Simon Josefsson  <jas@extundo.com>
75930
75931         * modules/ssize_t (License): Change to 'unlimited'.
75932
75933         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
75934
75935 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75936
75937         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
75938         Add comments for each pending glibc patch.
75939
75940 2005-08-15  Bruno Haible  <bruno@clisp.org>
75941
75942         * lib/regex.h (__restrict_arr): Don't define to __restrict if
75943         __cplusplus is defined.
75944
75945 2005-08-14  Jim Meyering  <jim@meyering.net>
75946
75947         Sync from coreutils.
75948
75949         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
75950         Use the hash-table-based cycle-detection code not just when
75951         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
75952         Reported by James Youngman in
75953         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
75954         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
75955         FTS_TIGHT_CYCLE_CHECK.
75956         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
75957         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
75958         once again.
75959         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
75960         * lib/fts.c (fd_safer): Remove decl.
75961         Include fcntl--.h rather than unistd-safer.h
75962         (fts_safe_changedir): Don't call fd_safer; no longer needed
75963         now that we include fcntl--.h.
75964
75965 2005-08-12  Simon Josefsson  <jas@extundo.com>
75966
75967         * modules/getndelim2: Use ssize_t module.
75968         * modules/getnline: Likewise.
75969         * modules/safe-read: Likewise.
75970         * modules/xreadlink: Likewise.
75971
75972         * modules/ssize_t: New file.
75973
75974 2005-08-12  Simon Josefsson  <jas@extundo.com>
75975
75976         * m4/readline.m4: Look for termcap, curses or ncurses if required.
75977
75978 2005-08-12  Simon Josefsson  <jas@extundo.com>
75979
75980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75981         ssize_t.
75982
75983 2005-08-12  Simon Josefsson  <jas@extundo.com>
75984
75985         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
75986         readline, getdelim and check_version.
75987         (Support for systems lacking ISO C 99: Sizes of integer types):
75988         Add size_max.
75989
75990 2005-08-12  Bruno Haible  <bruno@clisp.org>
75991
75992         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
75993
75994 2005-08-11  Simon Josefsson  <jas@extundo.com>
75995
75996         * modules/readline: New file.
75997
75998         * modules/strnlen (Files): Add strnlen.h.
75999
76000 2005-08-11  Simon Josefsson  <jas@extundo.com>
76001
76002         * m4/readline.m4: New file.
76003
76004 2005-08-11  Simon Josefsson  <jas@extundo.com>
76005
76006         * lib/readline.h, readline.c: New file.
76007
76008 2005-08-11  Simon Josefsson  <jas@extundo.com>
76009
76010         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76011         gl_AVOID.
76012
76013 2005-08-11  Bruno Haible  <bruno@clisp.org>
76014
76015         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76016
76017 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76018
76019         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76020
76021 2005-08-10  Simon Josefsson  <jas@extundo.com>
76022
76023         * tests/test-iconvme.c: New file.
76024
76025 2005-08-10  Simon Josefsson  <jas@extundo.com>
76026
76027         * m4/strnlen.m4: New file.
76028
76029         * m4/strndup.m4: Don't check for strnlen declaration, done in
76030         strnlen.m4.
76031
76032 2005-08-10  Simon Josefsson  <jas@extundo.com>
76033
76034         * lib/strndup.c: Use strnlen.h.
76035
76036         * lib/strnlen.h: New file.
76037
76038 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76039
76040         * README: Typos.
76041
76042 2005-08-02  Simon Josefsson  <jas@extundo.com>
76043
76044         * modules/readline: New file.
76045
76046 2005-08-02  Simon Josefsson  <jas@extundo.com>
76047
76048         * modules/getdelim: New file.
76049
76050         * modules/getline: Rewrite, don't use getndelim2.
76051
76052 2005-08-02  Simon Josefsson  <jas@extundo.com>
76053
76054         * m4/getline.m4: Separate out getdelim stuff into separate module.
76055
76056         * m4/getdelim.m4: New file.
76057
76058 2005-08-02  Simon Josefsson  <jas@extundo.com>
76059
76060         * lib/getline.h, getline.c: Rewrite.
76061
76062         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76063
76064 2005-07-31  Bruno Haible  <bruno@clisp.org>
76065
76066         * lib/lock.h (gl_lock_initializer): New macro.
76067         (gl_lock_define_initialized): Use it.
76068         (gl_rwlock_initializer): New macro.
76069         (gl_rwlock_define_initialized): Use it.
76070         (gl_recursive_lock_initializer): New macro.
76071         (gl_recursive_lock_define_initialized): Use it.
76072
76073 2005-07-30  Karl Berry  <karl@gnu.org>
76074
76075         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76076         Report from Ben Pfaff, regarding getopt.
76077
76078 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76081         normal way.
76082         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76083         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76084         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76085         (gl_GETOPT): Use the new macros.  Most of the implementation
76086         is moved to the new macros.  This is for programs like Emacs
76087         that don't want all the functionality of gl_GETOPT.
76088
76089 2005-07-26  Bruno Haible  <bruno@clisp.org>
76090
76091         * m4/lock.m4: Update from GNU gettext.
76092
76093 2005-07-26  Bruno Haible  <bruno@clisp.org>
76094
76095         * lib/lock.h: Update from GNU gettext.
76096         * lib/lock.c: Update from GNU gettext.
76097
76098 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76101         obsolescent AC_TRY_RUN.  Include the default includes files, for
76102         'exit'.
76103
76104 2005-07-24  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/visibility: New file.
76107         * MODULES.html.sh (Misc): Add visibility.
76108
76109 2005-07-24  Bruno Haible  <bruno@clisp.org>
76110
76111         * m4/visibility.m4: New file.
76112
76113 2005-07-24  Bruno Haible  <bruno@clisp.org>
76114
76115         * doc/visibility.texi: New file.
76116
76117 2005-07-22  Bruno Haible  <bruno@clisp.org>
76118
76119         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76120         $(ALLOCA_H), redundant through BUILT_SOURCES.
76121         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76122         redundant through BUILT_SOURCES.
76123         * modules/byteswap (Makefile.am): Remove explicit dependency on
76124         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76125         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76126         $(FNMATCH_H), redundant through BUILT_SOURCES.
76127         * modules/getopt (Makefile.am): Remove explicit dependency on
76128         $(GETOPT_H), redundant through BUILT_SOURCES.
76129         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76130         redundant through BUILT_SOURCES.
76131         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76132         redundant through BUILT_SOURCES.
76133         * modules/stdbool (Makefile.am): Remove explicit dependency on
76134         $(STDBOOL_H), redundant through BUILT_SOURCES.
76135         * modules/stdint (Makefile.am): Remove explicit dependency on
76136         $(STDINT_H), redundant through BUILT_SOURCES.
76137         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76138         Remove explicit dependency on $(SYSEXITS_H).
76139         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76140
76141 2005-07-18  Simon Josefsson  <jas@extundo.com>
76142
76143         * lib/check-version.c (check_version): Accept identical versions too.
76144
76145 2005-07-18  Bruno Haible  <bruno@clisp.org>
76146
76147         * modules/lock: New file.
76148         * MODULES.html.sh (Multithreading): New section.
76149
76150 2005-07-18  Bruno Haible  <bruno@clisp.org>
76151
76152         * m4/lock.m4: New file, from GNU gettext.
76153
76154 2005-07-18  Bruno Haible  <bruno@clisp.org>
76155
76156         * lib/lock.h: New file, from GNU gettext.
76157         * lib/lock.c: New file, from GNU gettext.
76158
76159 2005-07-18  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/lock.h (gl_once_t): New type.
76162         (gl_once_define, gl_once): New macros.
76163         * lib/lock.c (fresh_once): New variable.
76164         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76165         functions.
76166
76167 2005-07-16  Simon Josefsson  <jas@extundo.com>
76168
76169         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76170         workaround, suggested by Bruno.
76171
76172 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76173
76174         * modules/xalloc (Depends-on): Add xalloc-die.
76175         * modules/xvasprintf (Depends-on): Add xalloc-die.
76176
76177 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76180         with a minor change.
76181
76182 2005-07-15  Bruno Haible  <bruno@clisp.org>
76183
76184         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76185         When using lib/poll.c, define poll as rpl_poll.
76186
76187 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76188
76189         * modules/argp (Depends-on): Remove unlocked-io.
76190
76191 2005-07-14  Derek Price  <derek@ximbiot.com>
76192
76193         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76194         for glob symlink bug.
76195
76196 2005-07-14  Bruno Haible  <bruno@clisp.org>
76197
76198         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76199         Instead, test for *_unlocked function declarations directly.
76200
76201 2005-07-11  Simon Josefsson  <jas@extundo.com>
76202
76203         * modules/size_max: New file.
76204
76205         * modules/xsize: Depend on size_max module for size_max.m4.
76206
76207 2005-07-11  Simon Josefsson  <jas@extundo.com>
76208
76209         * lib/size_max.h: New file.
76210
76211 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76212
76213         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76214         copyright symbol and the year.
76215         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76216         (version_etc_va): Use parameterized copyright notice.
76217         Reword to conform to the current GNU coding standards.
76218
76219 2005-07-11  Karl Berry  <karl@gnu.org>
76220
76221         * doc/gnulib.texi (Quoting): new node.
76222         (Initial import): more info, from Patrice.
76223
76224 2005-07-11  Bruno Haible  <bruno@clisp.org>
76225
76226         * gnulib-tool (func_usage): Document option --avoid.
76227         (Command line options): Handle --avoid.
76228         (func_acceptable): New function.
76229         (func_modules_transitive_closure): Use it.
76230
76231 2005-07-11  Bruno Haible  <bruno@clisp.org>
76232
76233         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76234         Reported by Jim Meyering.
76235
76236 2005-07-10  Bruno Haible  <bruno@clisp.org>
76237
76238         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76239         Needed when size_t is smaller than 'unsigned int'.
76240         Reported by Paul Eggert.
76241
76242 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76243
76244         * modules/argp (Depends-on): Add unlocked-io
76245
76246 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76247
76248         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76249         block of defines.
76250
76251 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76254         fix now.
76255
76256 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76257         and Paul Eggert  <eggert@cs.ucla.edu>
76258
76259         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76260         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76261
76262 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * modules/regex (Files): Add lib/regex_internal.c,
76265         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76266         (Depends-on): Add extensions.
76267         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76268
76269 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76270
76271         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76272         pathconf.
76273         * m4/same.m4 (gl_SAME): Likewise.
76274         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76275
76276         * m4/regex.m4: Adjust to new libc regex implementation.
76277         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76278         all the .c and .h parts of (the new) regex.
76279         Quote the m4 stuff better.
76280         Check for RE_ICASE bug of old gnulib.
76281         Check for REG_STARTEND of recent libc.
76282         Rename local variables from jm_* to gl_*.
76283         Quote operand of "test -f".
76284         Say "recent enough" version of libc, not "version 2".
76285         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76286         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76287         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76288         Remove check for btowc, isascii.
76289         Require AM_LANGINFO_CODESET.
76290
76291 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * lib/regex.c, regex.h: Sync from libc.
76294         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76295         * lib/regexec.c:
76296         New files, synced from libc, except that regex_internal.h
76297         currently has a small porting fix.
76298
76299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76302         regex_internal.c, regexec.c.
76303         Add regex_internal.h too, but as a comment, since the libc version
76304         is currently broken in gnulib mode.
76305
76306 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         Support programs like Emacs that use gnulib but not gettext.
76309         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76310         * modules/gettext-h: New file.
76311         * modules/gettext (Files): Remove lib/gettext.h.
76312         (Depends-on): Add gettext-h.
76313         (Makefile.am): Remove lib_SOURCES.
76314         * modules/argmatch, modules/c-stack, modules/closeout:
76315         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76316         * modules/execute, modules/file-type, modules/getaddrinfo:
76317         * modules/getopt, modules/human, modules/javacomp:
76318         * modules/javaexec, modules/mkdir-p, modules/obstack:
76319         * modules/openat, modules/pagealign_alloc, modules/pipe:
76320         * modules/quotearg, modules/regex, modules/rpmatch:
76321         * modules/unicodeio, modules/userspec, modules/version-etc:
76322         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76323         * modules/xsetenv:
76324         Depend on gettext-h, not gettext.
76325
76326 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * gnulib-tool (func_import): Add support for 'public domain' license.
76329         * modules/alloca, modules/atexit, modules/memmove:
76330         Now public domain, not GPL.
76331         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76332         * modules/realloc, modules/strerror, modules/strtod:
76333         Now LGPL, not GPL.
76334
76335 2005-07-05  Bruno Haible  <bruno@clisp.org>
76336
76337         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76338         autoconf CVS. Needed for mingw.
76339
76340 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76341
76342         Remove the dependency of the strftime module on the tzset module.
76343         * modules/strftime (Depends-on): Remove dependency on tzset.
76344
76345 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         Remove the dependency of the strftime module on the tzset module.
76348         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76349         gl_FUNC_TZSET_CLOBBER.
76350
76351 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76352
76353         Remove the dependency of the strftime module on the tzset module.
76354         * lib/strftime.c (my_strftime)
76355         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76356         Copy the input structure, to work around some of the bug with
76357         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76358         Solaris releases, you should also use the tzset module, but we won't
76359         require it as a dependency any more since we don't want LGPLed code
76360         to depend on GPLed code.
76361
76362 2005-07-02  Jim Meyering  <jim@meyering.net>
76363
76364         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76365         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76366         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76367         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76368
76369 2005-07-02  Jim Meyering  <jim@meyering.net>
76370
76371         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76372
76373 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76374
76375         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76376         declares only 'struct timespec;' (!).
76377
76378 2005-07-01  Jim Meyering  <jim@meyering.net>
76379
76380         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76381         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76382         * lib/save-cwd.c, tempname.c:
76383         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76384         and don't include <sys/file.h>).
76385
76386 2005-06-29  Jim Meyering  <jim@meyering.net>
76387
76388         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76389         type name.  Use the variable name instead.
76390         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76391         Likewise.
76392
76393 2005-06-28  Simon Josefsson  <jas@extundo.com>
76394
76395         * modules/check-version (Files): Add check-version.m4.
76396
76397 2005-06-28  Simon Josefsson  <jas@extundo.com>
76398
76399         * m4/check-version.m4: New file, suggested by Jim Meyering
76400         <jim@meyering.net>.
76401
76402 2005-06-28  Simon Josefsson  <jas@extundo.com>
76403
76404         * lib/check-version.h, lib/check-version.c: New files.
76405
76406 2005-06-28  Simon Josefsson  <jas@extundo.com>
76407
76408         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76409         collision with global variable.  Better indentation.  Don't
76410         increment buffer pointer beyond buffer end.  Based on comments
76411         from Paul Eggert <eggert@cs.ucla.edu>.
76412
76413         * lib/base64.h: Indent.
76414
76415 2005-06-28  Simon Josefsson  <jas@extundo.com>
76416
76417         * doc/gnulib.texi (Library version handling): New section.
76418
76419 2005-06-28  Jim Meyering  <jim@meyering.net>
76420
76421         * check-module (find_included_lib_files): Hard-code another
76422         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76423         but modules/fts-lgpl (correctly) does not list those files.
76424
76425         * modules/canonicalize (Files): Add lib/pathmax.h.
76426
76427 2005-06-25  Simon Josefsson  <jas@extundo.com>
76428
76429         * modules/check-version: New file.
76430
76431 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76434         initializer of struct addrinfo, as an indication that we don't
76435         care how many members the structure has.
76436
76437 2005-06-24  Derek Price  <derek@ximbiot.com>
76438         and Bruno Haible  <bruno@clisp.org>
76439
76440         Remove stat module & update lstat.
76441         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76442         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76443         * m4/stat.m4: Remove this file.
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         * lib/stat.c: Remove this file...
76450         (slash_aware_lstat): ...moving this content and its support...
76451         * lib/lstat.c (rpl_lstat): ...into here.
76452         * lib/lstat.h: New file.
76453
76454 2005-06-24  Derek Price  <derek@ximbiot.com>
76455         and Bruno Haible  <bruno@clisp.org>
76456
76457         Remove stat module & update lstat.
76458         * config/srclist.txt (libc sources): Remove stat.
76459
76460 2005-06-24  Derek Price  <derek@ximbiot.com>
76461         and Bruno Haible  <bruno@clisp.org>
76462
76463         Remove stat module & update lstat.
76464         * MODULES.html.sh (stat): Remove.
76465         * MODULES.html: Regenerated.
76466         * modules/lstat (Description): Correct function name.
76467         (Files): Add "lstat.h".
76468         (Depends-on): Remove stat, add xalloc, stat-macros.
76469         * modules/stat: Remove this file.
76470         (Include): Add "lstat.h", remove <sys/stat.h>.
76471
76472 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
76473
76474         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
76475         (ranged_convert): Don't save conversion in a temporary struct.
76476         This causes a warning with GCC 4.0.0, and anyway in the typical
76477         case it's not worth the extra 100 bytes or so of code.
76478         (ranged_convert, __mktime_internal): When calling a function via a
76479         pointer P, use P () rather than (*P) (), as we now assume C89 or
76480         better.
76481
76482 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76483
76484         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
76485         "who -r" failed to give output.  Problem reported by Tim Waugh.
76486
76487         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
76488         (xcalloc): Use it to avoid needless tests.
76489         Problem reported by Jim Meyering.
76490
76491 2005-06-20  Derek Price  <derek@ximbiot.com>
76492
76493         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
76494         unnecessary for Autoconfs > 2.59c.
76495
76496 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76497
76498         * lib/argp.h (__option_is_short): Check upper limit of
76499         __key. Isprint() requires its argument to have the value
76500         of an unsigned char or EOF.
76501
76502 2005-06-16  Jim Meyering  <jim@meyering.net>
76503
76504         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
76505         when either N or S is zero.
76506
76507 2005-06-16  Derek Price  <derek@ximbiot.com>
76508
76509         * m4/bison.m4: Declare YACC & YFLAGS precious.
76510
76511 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
76512
76513         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
76514         multibyte string or pattern, fall back on unibyte matching.
76515         Problem reported by James Youngman.
76516
76517 2005-06-08  Bruno Haible  <bruno@clisp.org>
76518
76519         * modules/csharpcomp: New file.
76520         * MODULES.html.sh (C#): Add csharpcomp.
76521
76522 2005-06-08  Bruno Haible  <bruno@clisp.org>
76523
76524         * m4/csharpcomp.m4: New file, from GNU gettext.
76525
76526 2005-06-08  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/csharpcomp.h: New file, from GNU gettext.
76529         * lib/csharpcomp.c: New file, from GNU gettext.
76530         * lib/csharpcomp.sh.in: New file, from GNU gettext.
76531
76532 2005-06-08  Bruno Haible  <bruno@clisp.org>
76533
76534         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
76535         warning on mingw.
76536
76537 2005-06-07  Derek Price  <derek@ximbiot.com>
76538
76539         Sync from CVS.
76540         * lib/glob_.h: Indent nested #ifdef.
76541
76542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76543
76544         Sync from coreutils.
76545         Use "file name" when talking about file names, instead of "filename"
76546         or "path", as per the GNU coding standards.
76547         * lib/mkdir-p.c: Renamed from makepath.c.
76548         (make_dir_parents): Renamed from make_path.  All callers changed.
76549         * lib/mkdir-p.h: Likewise.  All includers changed.
76550         * lib/filenamecat.c: Renamed from path-concat.c.
76551         (file_name_concat): Renamed from path_concat.  All callers changed.
76552         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
76553         * lib/filenamecat.h: Likewise.  All includers changed.
76554         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
76555         in comments or local variable names.
76556         * lib/basename.c: Likewise.
76557         * lib/canonicalize.c, canonicalize.h: Likewise.
76558         * lib/dirname.c, dirname.h: Likewise.
76559         * lib/euidaccess.c: Likewise.
76560         * lib/exclude.c: Likewise
76561         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
76562         * lib/fsusage.c, fsuage.h: Likewise.
76563         * lib/fts.c, fts_.h: Likewise.
76564         * lib/getcwd.c: Likewise.
76565         * lib/getloadavg.c: Likewise.
76566         * lib/mkstemp.c: Likewise.
76567         * lib/mountlist.c, mountlist.h: Likewise.
76568         * lib/openat.c, openat.h: Likewise.
76569         * lib/readlink-stub.c: Likewise.
76570         * lib/readutmp.c, readutmp.h: Likewise.
76571         * lib/rename.c: Likewise.
76572         * lib/rmdir.c: Likewise.
76573         * lib/same.c: Likewise.
76574         * lib/savedir.c: Likewise.
76575         * lib/stripslash.c: Likewise.
76576         * lib/tempname.c: Likewise.
76577         * lib/xreadlink.c: Likewise.
76578         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
76579         All uses changed.
76580         * lib/exclude.h: Likewise.
76581
76582         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
76583         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76584         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
76585         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76586         * lib/pathmax.h: Include <limits.h> unconditionally, since other
76587         files have been getting away with it for years (MORE/BSD 4.3
76588         is extinct now).
76589         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
76590         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
76591
76592         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
76593         Define to 256, not 255, as per modern POSIX.
76594
76595 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76596
76597         Sync from coreutils.
76598         Use "file name" when talking about file names, instead of "filename"
76599         or "path", as per the GNU coding standards.
76600         * MODULES.html.sh: mkdir-p renamed from makepath.
76601         filenamecat renamed from path-concat.
76602         * modules/filenamecat: Renamed from modules/path-concat.
76603         (Files): filenamecat.h and filenamecat.c renamed from
76604         path-concat.h and path-concat.c.
76605         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
76606         (Include): filenamecat.h, not path-concat.h.
76607         * modules/mkdir-p: Renamed from modules/makepath.
76608         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
76609         makepath.c.
76610         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
76611         (Include): mkdir-p.h, not makepath.h.
76612
76613 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
76614
76615         Sync from coreutils.
76616         * m4/mkdir-p.m4: Renamed from makepath.m4.
76617         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
76618         Rename files from makepath.c to mkdir-p.c, and from
76619         makepath.h to mkdir-p.h.
76620         * m4/filenamecat.m4: Renamed from path-concat.m4.
76621         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
76622         Rename files from path-concat.c to filenamecat.c,
76623         and from path-concat.h to filenamecat.h.
76624         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
76625         "file name" in local variables or comments.
76626         * m4/rename.m4: Likewise.
76627
76628 2005-06-01  Bruno Haible  <bruno@clisp.org>
76629
76630         * modules/csharpexec: New file.
76631         * MODULES.html.sh (C#): New section.
76632
76633 2005-06-01  Bruno Haible  <bruno@clisp.org>
76634
76635         * m4/csharp.m4: New file, from GNU gettext.
76636         * m4/csharpexec.m4: New file, from GNU gettext.
76637
76638 2005-06-01  Bruno Haible  <bruno@clisp.org>
76639
76640         * lib/csharpexec.h: New file, from GNU gettext.
76641         * lib/csharpexec.c: New file, from GNU gettext.
76642         * lib/csharpexec.sh.in: New file, from GNU gettext.
76643
76644 2005-05-31  Derek Price  <derek@ximbiot.com>
76645             Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         Sync from cvs.
76648         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76649
76650 2005-05-31  Derek Price  <derek@ximbiot.com>
76651             Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         Sync from cvs.
76654         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
76655
76656 2005-05-29  Derek Price  <derek@ximbiot.com>
76657
76658         * config/srclist.txt (glob_.h, glob.c): Add these files.
76659
76660 2005-05-29  Derek Price  <derek@ximbiot.com>
76661
76662         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
76663         * modules/glob: New file.
76664         * modules/getlogin_r: Add link to POSIX spec in description.
76665
76666 2005-05-29  Derek Price  <derek@ximbiot.com>
76667             Paul Eggert  <eggert@cs.ucla.edu>
76668
76669         * m4/glob.m4: New file.
76670
76671 2005-05-29  Derek Price  <derek@ximbiot.com>
76672             Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         * lib/glob_.h, lib/glob.c: New files.
76675
76676 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * modules/fts (Files): Remove m4/inttypes-pri.m4.
76679         * modules/fts-lgpl (Depends-on): Remove gettext.
76680
76681 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
76684         and don't require gt_INTTYPES_PRI.
76685
76686 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
76687
76688         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
76689
76690         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
76691         the configuration hassle isn't worth it.
76692         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
76693         (LONGEST_MODIFIER, PRIuMAX): Remove.
76694
76695 2005-05-27  Bruno Haible  <bruno@clisp.org>
76696
76697         * lib/getlogin_r.h: Remove second include of <stddef.h>.
76698
76699 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
76700
76701         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
76702         _POSIX_PTHREAD_SEMANTICS for Solaris.
76703
76704 2005-05-25  Derek Price  <derek@ximbiot.com>
76705
76706         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
76707
76708 2005-05-25  Derek Price  <derek@ximbiot.com>
76709             Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * modules/getlogin_r, m4/getlogin_r.m4: New files.
76712         * lib/getlogin_r.c, getlogin_r.h: New files.
76713
76714 2005-05-25  Bruno Haible  <bruno@clisp.org>
76715             Derek Price  <derek@ximbiot.com>
76716
76717         * lib/getlogin_r.h: Simplify API documentation.
76718
76719 2005-05-23  Derek Price  <derek@ximbiot.com>
76720
76721         * modules/minmax (Files): Add m4/minmax.m4.
76722         (configure.ac): Add gl_MINMAX.
76723
76724 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
76727         so that unistd-safer.h (GPL'ed code) need not be included.
76728
76729 2005-05-22  Bruno Haible  <bruno@clisp.org>
76730
76731         * m4/minmax.m4: New file.
76732         Based on a patch by Derek Price <derek@ximbiot.com>.
76733
76734 2005-05-22  Bruno Haible  <bruno@clisp.org>
76735
76736         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
76737         (INT64_MIN): Fix definition.
76738         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
76739
76740         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
76741         NEED_SIGNED_INT_TYPES.
76742
76743         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
76744         HAVE_SYSTEM_INTTYPES.
76745
76746 2005-05-22  Bruno Haible  <bruno@clisp.org>
76747
76748         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
76749         Also include <sys/param.h> if it defines MIN, MAX.
76750         Based on a patch by Derek Price <derek@ximbiot.com>.
76751
76752 2005-05-21  Jim Meyering  <jim@meyering.net>
76753
76754         * modules/fts (Files): Add m4/inttypes-pri.m4.
76755         (Depends-on): Add lstat and remove gettext.  Alphabetize.
76756
76757 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         New fts module.
76760         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
76761         (setup_dir, free_dir): New functions.
76762         (enter_dir, leave_dir): Define trivial
76763         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
76764         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
76765         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
76766         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
76767         Move to fts-cycle.c.
76768         (fts_open): Use setup_dir.
76769         (fts_close): Use free_dir.
76770         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
76771         This adds a label and some gotos, but the alternatives were messier.
76772         Check for memory allocation failure when entering a dir.
76773         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
76774         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
76775         (FTS): New member fts_cycle, that is a union that contains the
76776         old active_dir_ht and cycle_state.  All uses changed to mention
76777         fts_cycle.ht and fts_cycle.state.
76778         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
76779         fts.c, with the following changes:
76780         (setup_dir, free_dir): New functions.
76781         (enter_dir): Now returns bool.  Return true if successful, false
76782         if memory exhausted.  All callers changed.
76783         Do not bother partly cleaning up on
76784         memory allocation failure; that is free_dir's job.
76785         However, free ad if hash_insert fails, to avoid memory leak.
76786         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
76787         fts->fts_options to see which union member to use.
76788
76789 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
76792         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
76793
76794 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
76797
76798 2005-05-20  Jim Meyering  <jim@meyering.net>
76799
76800         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
76801         Now a macro, to pacify GCC.
76802
76803 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76804
76805         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
76806         of -1.
76807
76808 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
76809
76810         * lib/chown.c (rpl_chown): Return -1 on failure.
76811
76812 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
76815         Don't check for stddef.h.
76816         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
76817         don't use its results.
76818         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
76819         since we include them unconditionally.  Don't require
76820         AM_STDBOOL_H, since stdbool is a prerequisite.
76821         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
76822         since we assume C89 or better.
76823         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
76824         as we don't use their results.
76825         Don't check for fchdir, memmove, memset, strrchr, as we use
76826         them unconditionally.
76827         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
76828         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
76829
76830 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
76833         Include <stddef.h> unconditionally, since we assume C89 now.
76834         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
76835         * lib/fts.c: Include fts_.h first, to check interface.
76836         Do not include intprops.h; no longer needed.
76837         Include cycle-check.h and hash.h, since fts_.h no longer does.
76838         Remove unnecessary casts of closedir to void.
76839         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
76840         decide whether to decrement nlinks.
76841         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
76842         (FTS): Use struct hash_table * instead of Hash_table, so that
76843         we no longer need to include hash.h here.
76844
76845 2005-05-18  Jim Meyering  <jim@meyering.net>
76846
76847         * modules/dirfd (License): Change to LGPL.  Most of the code
76848         is already in the public domain.
76849
76850 2005-05-18  Jim Meyering  <jim@meyering.net>
76851
76852         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
76853         Reported by Yoann Vandoorselaere.
76854
76855 2005-05-17  Jim Meyering  <jim@meyering.net>
76856
76857         * m4/fts.m4: New file, from coreutils.
76858
76859 2005-05-17  Jim Meyering  <jim@meyering.net>
76860
76861         * lib/fts.c, lib/fts_.h: New files, from coreutils.
76862
76863 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         Sync from coreutils.
76866         * m4/unlinkdir.m4: New file.
76867
76868 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         Sync from coreutils.
76871         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
76872         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
76873         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
76874         White space changes only.
76875         * lib/makepath.c (make_path): Port to hosts where leading "//" is
76876         special.
76877         * lib/yesno.c: Include getline.h, not ctype.h.
76878         (yesno): Don't remove leading white space; POSIX doesn't allow it.
76879         Use getline to remove arbitrary restriction on response length.
76880
76881 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76882
76883         * config/srclist-update: Spell out "Street" in FSF postal
76884         mail address; this is the style the FSF seems to prefer.
76885
76886         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
76887         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
76888         this updates FSF postal mail address.
76889
76890         Sync from coreutils.
76891         * modules/unlinkdir: New file.
76892         * modules/yesno (Depends-on): Add getline.
76893         * MODULES.html.sh (File system functions): Add unlinkdir.
76894
76895 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
76898         lib/strsep.h:
76899         Change the initial comment to refer to GPL, not LGPL.
76900         gnulib-tool will change it to LGPL as needed.
76901
76902         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
76903         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
76904         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
76905         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
76906         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
76907         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
76908         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
76909         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
76910         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
76911         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
76912         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
76913         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
76914         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
76915         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
76916         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
76917         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
76918         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
76919         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
76920         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
76921         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
76922         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
76923         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
76924         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
76925         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
76926         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
76927         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
76928         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
76929         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
76930         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
76931         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
76932         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
76933         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
76934         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
76935         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
76936         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
76937         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
76938         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
76939         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
76940         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
76941         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
76942         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
76943         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
76944         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
76945         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
76946         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
76947         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
76948         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
76949         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
76950         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
76951         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
76952         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76953         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
76954         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
76955         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
76956         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
76957         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
76958         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
76959         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
76960         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
76961         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
76962         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
76963         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
76964         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
76965         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
76966         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
76967         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
76968         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
76969         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
76970         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
76971         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
76972         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
76973         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
76974         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
76975         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
76976         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
76977         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
76978         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
76979         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
76980         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
76981         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
76982         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
76983         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
76984         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
76985         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
76986         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
76987         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
76988         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
76989         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
76990         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
76991         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
76992         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
76993         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
76994         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
76995         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
76996         lib/yesno.c, lib/yesno.h:
76997         Update FSF postal mail address.
76998
76999 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77002         tests/test-memmem.c, tests/test-stpncpy.c:
77003         Update FSF postal mail address.
77004
77005 2005-05-13  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77008         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77009         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77010         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77011         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77012         Add support for 64-bit integers in the MSVC compiler.
77013
77014 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77015
77016         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77017
77018 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77019
77020         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77021
77022 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * doc/getdate.texi (General date syntax): Don't say that date
77025         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77026         Problem reported by Nic Ferrier.
77027
77028 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77029
77030         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77031         specified in ai_socktype. Fix invalid ai_protocol
77032         check. ai_protocol is usually set to 0 or depending on
77033         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77034         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77035         ai_socktype / ai_protocol in the returned addrinfo structure.
77036
77037 2005-05-10  Simon Josefsson  <jas@extundo.com>
77038
77039         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77040         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77041
77042 2005-05-10  Karl Berry  <karl@gnu.org>
77043
77044         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77045         (from http://www.gnu.org/licenses).
77046         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77047         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77048         fdl.texi suffices.
77049
77050 2005-05-10  Karl Berry  <karl@gnu.org>
77051
77052         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77053         (COPYING.DOC): remove.
77054
77055         * config/srclist-update: new FSF address.
77056
77057 2005-05-10  Derek Price  <derek@ximbiot.com>
77058
77059         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77060         possible.
77061
77062 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77063             Bruno Haible  <bruno@clisp.org>
77064
77065         * modules/inet_ntop: New file.
77066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77067         inet_ntop.
77068
77069 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77070             Bruno Haible  <bruno@clisp.org>
77071
77072         * m4/inet_ntop.m4: New file.
77073
77074 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77075             Bruno Haible  <bruno@clisp.org>
77076
77077         * lib/inet_ntop.h: New file.
77078         * lib/inet_ntop.c: New file, from glibc with modifications.
77079
77080 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77081
77082         * modules/time_r (License): Change to LGPL.
77083         * modules/extensions (License): Change to LGPL.  Actually,
77084         the license is more permissive than that, but currently gnulib-tool
77085         doesn't know how to handle more-permissive licenses.
77086
77087         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77088         Problem reported by Dave Love.
77089
77090 2005-05-08  Jim Meyering  <jim@meyering.net>
77091
77092         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77093         blank.
77094
77095 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77096
77097         * modules/argmatch (Depends-on): Add stdbool.
77098         * modules/backupfile (Depends-on): Likewise.
77099         * modules/chdir-long (Depends-on): Likewise.
77100         * modules/closeout (Depends-on): Likewise.
77101         * modules/cycle-check (Depends-on): Likewise.
77102         * modules/dirname (Depends-on): Likewise.
77103         * modules/fnmatch (Depends-on): Likewise.
77104         * modules/fsusage (Depends-on): Likewise.
77105         * modules/fwriteerror (Depends-on): Likewise.
77106         * modules/getcwd (Depends-on): Likewise.
77107         * modules/getloadavg (Depends-on): Likewise.
77108         * modules/hard-locale (Depends-on): Likewise.
77109         * modules/makepath (Depends-on): Likewise.
77110         * modules/mountlist (Depends-on): Likewise.
77111         * modules/nanosleep (Depends-on): Likewise.
77112         * modules/posixtm (Depends-on): Likewise.
77113         * modules/quotearg (Depends-on): Likewise.
77114         * modules/readtokens (Depends-on): Likewise.
77115         * modules/readtokens0 (Depends-on): Likewise.
77116         * modules/readutmp (Depends-on): Likewise.
77117         * modules/save-cwd (Depends-on): Likewise.
77118         * modules/strftime (Depends-on): Likewise.
77119         * modules/userspec (Depends-on): Likewise.
77120         * modules/utimecmp (Depends-on): Likewise.
77121         * modules/xgetcwd (Depends-on): Likewise.
77122         * modules/xnanosleep (Depends-on): Likewise.
77123         * modules/xstrtod (Depends-on): Likewise.
77124         * modules/yesno (Depends-on): Likewise.
77125
77126 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77129         needless checks.
77130
77131 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         Merge from coreutils.  Among other things,
77134         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77135         * lib/fd-safer.c: New file.
77136         * lib/fcntl-safer.h, open-safer.c: Remove.
77137         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77138         * lib/dup-safer.c: Include unistd-safer.h first.
77139         Don't include errno.h.
77140         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77141         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77142         * lib/file-type.c: Rely on file-type.h change.
77143         * lib/getloadavg.c: Include unistd-safer.h.
77144         (getloadavg): Use safer open.
77145         * lib/getusershell.c: Include "stdio-safer.h".
77146         (getusershell): Use safer fopen.
77147         * lib/long-options.c (long_options): Use NULL rather than 0.
77148         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77149         'free'.
77150         * lib/modechange.c: Likewise.
77151         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77152         (MODE_DONE): New constant.
77153         (struct mode_change): Remove 'next' member.
77154         (make_node_op_equals): New function; like the old one of the
77155         same name, except it allocates an array.
77156         (mode_compile, mode_create_from_ref): Use it.
77157         (mode_compile): Allocate result as an array, not a linked list.
77158         Parse octal string ourself, so that we catch mistakes like "+0".
77159         (mode_adjust): Arg is an array, not a linked list.
77160         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77161         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77162         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77163         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77164         Remove.  This is now stat-macros.h's job.
77165         (talloc): Remove.  All callers replaced by xalloc, so that
77166         our invokers don't have to worry about reporting memory failures.
77167         (make_node_op_equals): Remove.
77168         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77169         New constants.
77170         (struct mode_change): Moved here from modechange.h.
77171         (mode_append_entry): Remove.
77172         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77173         apps to have incorrect behavior.  Use simpler algorithm for head
77174         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77175         Detect more invalid usages rather than having somewhat-random behavior.
77176         Don't insert an "a=" action, as that leads to incorrect behavior.
77177         (mode_compile, mode_create_from_ref): Return NULL on error instead
77178         of an enum, since now there's only one way to have an error.  All
77179         callers changed.
77180         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77181         at the correct time.  Simplify calculation of "+u" and its ilk.
77182         Don't mishandle "+X".
77183         (mode_free): Remove "register" and localize decls.
77184         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77185         (struct mode_change): Move to modechange.c; callers don't
77186         need to see this stuff.
77187         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77188         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77189         (mode_change, mode_adjust): Reflect the new signatures noted above.
77190         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77191         that might redefine system include files.
77192         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77193         (my_usleep): Use NULL rather than (void *) 0.
77194         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77195         Use siginterrupt to specify that system calls should be interrupted.
77196         (rpl_nanosleep): Move initialization of suspended closer to call of
77197         my_usleep.
77198         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77199         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77200         (desirable_utmp_entry): New function.
77201         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77202         using x2nrealloc, to simplify logic.
77203         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77204         size calculation.  Do not assume utmp file is a regular file.
77205         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77206         (READ_UTMP_CHECK_PIDS): New constant.
77207         * lib/save-cwd.c: Include unistd-safer.h.
77208         (save_cwd): Use fd_safer.
77209         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77210         [!_LIBC] Include "stat-macros.h" instead.
77211         * lib/unistd-safer.h (fd_safer): New decl.
77212
77213 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * modules/getloadavg (Depends-on): Add unistd-safer.
77216         * modules/getusershell (Depends-on): Add stdio-safer.
77217         * modules/lstat (Depends-on): Remove xalloc.
77218         * modules/mkstemp (Depends-on): Add stat-macros.
77219         * modules/modechange (Depends-on): Remove xstrtol.
77220         Add stat-macros, xalloc.
77221         * modules/save-cwd (Depends-on): Add unistd-safer.
77222         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77223         * modules/unistd-safer (Files): Add lib/fd-safer.c
77224         (Makefile.am): Remove lib_SOURCES.
77225
77226         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77227         Remove fcntl-safer; unistd-safer supersedes it.
77228
77229 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77232         AC_HEADER_STAT.
77233         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77234         (gl_PREREQ_CHOWN): Remove.
77235         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77236         it.  Don't require AC_HEADER_STAT.
77237         (gl_PREREQ_LSTAT): Remove.
77238         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77239         Don't require AC_HEADER_STAT.
77240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77241         (gl_PREREQ_RMDIR): Remove.
77242         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77243         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77244         the stat-macros module a prerequisite.
77245         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77246         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77247         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77248         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77249         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77250         variable names.
77251         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77252         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77253         variable prefixes.
77254         * m4/fcntl-safer.m4: Remove.
77255         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77256         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77257         Invoke gl_PREREQ_FD_SAFER.
77258         (gl_PREREQ_FD_SAFER): New macro.
77259         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77260         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77261         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77262         Remove duplicate call to AC_LIBOBJ(readutmp).
77263         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77264
77265         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77266         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77267
77268 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77269
77270         * MODULES.html.sh (Misc): Add byteswap.
77271
77272 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77273
77274         * modules/getcwd (Depends-on): Add extensions.
77275         * modules/openat (Depends-on): Likewise.
77276
77277 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77278
77279         * modules/byteswap: New file.
77280
77281 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77282
77283         * m4/byteswap.m4: New file.
77284
77285 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77286
77287         * lib/byteswap_.h: New file.
77288
77289 2005-04-25  Karl Berry  <karl@gnu.org>
77290
77291         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77292
77293 2005-04-25  Albert Chin  <china@thewrittenword.com>
77294
77295         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77296         Toolkit C bug.
77297
77298 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77299
77300         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77301         (func_ln_if_changed): Remove forcibly for no error message
77302         in case file does not exist.
77303
77304 2005-04-19  Simon Josefsson  <jas@extundo.com>
77305
77306         * gnulib-tool (Options): Make --symlink mean --symbolic.
77307
77308 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77309
77310         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77311
77312 2005-04-16  Simon Josefsson  <jas@extundo.com>
77313
77314         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77315
77316 2005-04-15  Simon Josefsson  <jas@extundo.com>
77317
77318         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77319
77320 2005-04-15  Simon Josefsson  <jas@extundo.com>
77321
77322         * gnulib-tool: Rename --symlink to --symbolic.
77323
77324 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77325
77326         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77327         symbolic links to files instead of copying/moving.  Add --aux-dir,
77328         specifying directory relative --dir where auxiliary build tools
77329         are placed.
77330
77331 2005-04-14  Bruno Haible  <bruno@clisp.org>
77332
77333         * modules/allocsa (License): Change to LGPL.
77334         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77335
77336 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77339         that "UTC +1 second" continues to work.  Problem reported
77340         by Dmitry V. Levin.
77341         (relunit_snumber): New rule.
77342         (relunit): Use it.
77343
77344 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77345
77346         * lib/getdate.y (universal_time_zone_table): New constant.
77347         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77348         universal_time_zone_table.
77349         (lookup_zone): Prefer universal_time_zone_table to
77350         local_time_zone_table, so that "GMT" time stamps are allowed in
77351         London during the summer.  Problem reported by Ian Abbott.
77352
77353 2005-04-12  Jim Meyering  <jim@meyering.net>
77354
77355         * lib/human.c (humblock): Set *options even when returning due to
77356         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77357         warning from gcc-4.
77358
77359 2005-04-09  Jim Meyering  <jim@meyering.net>
77360
77361         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77362         -Wuninitialized: initialize tm0.tm_year.
77363
77364 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77367         count, since there's no maximum.  All uses changed.
77368         Add member dsts_seen.
77369         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77370         not being INT_MAX.
77371         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77372         Use pc_rels_seen to decide whther a date is absolute.
77373
77374         * lib/getdate.y (number): Don't overwrite year.
77375         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77376         check.
77377
77378 2005-04-02  Simon Josefsson  <jas@extundo.com>
77379
77380         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77381         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77382
77383 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77384
77385         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77386         where no absolute path name can be longer than PATH_MAX.
77387
77388 2005-03-27  Jim Meyering  <jim@meyering.net>
77389
77390         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77391
77392 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77395         "one's complement" -> "ones' complement" in comment, as per Knuth.
77396         "value of type" -> "type or expression" in comment.
77397         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77398
77399 2005-03-26  Jim Meyering  <jim@meyering.net>
77400
77401         Comment nits.
77402         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77403         Correct typos: s/or/of/.
77404
77405 2005-03-26  Jim Meyering  <jim@meyering.net>
77406
77407         * modules/check-include-files: Move to ../ and rename to...
77408         * check-module: ...this.
77409
77410 2005-03-25  Jim Meyering  <jim@meyering.net>
77411
77412         * modules/xvasprintf (Files): Add xalloc.h.
77413
77414 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * modules/gettext (Files): config/config.rpath ->
77417         build-aux/config.rpath
77418         * modules/iconv (Files): Likewise.
77419         Problem reported by Oskar Liljeblad.
77420
77421 2005-03-23  Jim Meyering  <jim@meyering.net>
77422
77423         * modules/check-include-files: New script to check for
77424         missing dependencies, multiple includes, etc.
77425
77426         * modules/c-strtold (Depends-on): Add xalloc.
77427         * modules/c-strtod (Depends-on): Add xalloc.
77428         * modules/hash (Depends-on): Add xalloc.
77429         (Files): Remove lib/xalloc.h.
77430
77431         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77432         * modules/userspec (Files): Add lib/inttostr.h.
77433
77434 2005-03-23  Jim Meyering  <jim@meyering.net>
77435
77436         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77437
77438 2005-03-22  Jim Meyering  <jim@meyering.net>
77439
77440         * modules/stat-macros: New module.
77441         * modules/canonicalize, modules/euidaccess, modules/file-type,
77442         * modules/filemode, modules/lchown, modules/makepath,
77443         * modules/rmdir, modules/stat: Depend on new stat-macros module
77444         rather than listing lib/stat-macros.h manually.
77445         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77446
77447 2005-03-22  Jim Meyering  <jim@meyering.net>
77448
77449         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
77450
77451 2005-03-22  Bruno Haible  <bruno@clisp.org>
77452
77453         * config/srclist.txt: Replace target directory 'config' with
77454         'build-aux'.
77455         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
77456         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
77457         ../build-aux/.
77458
77459 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * modules/chdir-long (Depends-on): Add mempcpy.
77462
77463         * modules/acl, modules/backupfile, modules/c-strtod,
77464         modules/c-strtold, modules/canon-host, modules/canonicalize,
77465         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
77466         modules/exclude, modules/exitfail, modules/file-type,
77467         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
77468         modules/getdate, modules/getline, modules/getpagesize,
77469         modules/getpass, modules/getugroups, modules/group-member,
77470         modules/hard-locale, modules/hash, modules/human, modules/idcache,
77471         modules/inttostr, modules/long-options, modules/makepath,
77472         modules/md5, modules/memcasecmp, modules/memcoll,
77473         modules/modechange, modules/mountlist, modules/path-concat,
77474         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
77475         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
77476         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
77477         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
77478         modules/strftime, modules/strndup, modules/strverscmp,
77479         modules/timespec, modules/unlocked-io, modules/userspec,
77480         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
77481         modules/yesno:
77482         Remove lib_SOURCES line from Makefile.am section, as this is now
77483         done automatically by the corresponding Autoconf macro.
77484
77485 2005-03-21  Jim Meyering  <jim@meyering.net>
77486
77487         Changes imported from coreutils.
77488
77489         * lib/cycle-check.c: Don't include xalloc.h.
77490
77491         * lib/path-concat.c: Don't include assert.h.
77492         (path_concat): Remove assertion that would have triggered
77493         for ABASE starting with more than one slash.
77494         Reported by Andreas Schwab.
77495
77496         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
77497         properly when ABASE is an absolute file name.
77498         Correct the description of this function.
77499         Include <assert.h>.
77500         Add an assertion and a test driver.
77501         This fixes a bug introduced on 2004-07-02.
77502         Andreas Schwab reported the resulting failure of cp --parents:
77503         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
77504
77505 2005-03-21  Jim Meyering  <jim@meyering.net>
77506
77507         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
77508         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
77509
77510 2005-03-21  Jim Meyering  <jim@meyering.net>
77511         and  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
77514         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
77515         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
77516         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
77517         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
77518         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
77519         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
77520         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
77521         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
77522         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
77523         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
77524         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
77525         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
77526         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
77527         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
77528         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
77529         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
77530         for these modules.
77531
77532 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
77533
77534         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
77535         (which shouldn't happen), generate nothing instead of returning 0
77536         immediately, so that nstrftime (NULL, ...) doesn't return 0.
77537
77538 2005-03-16  Bruno Haible  <bruno@clisp.org>
77539
77540         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
77541         HAVE_LONGLONG_64BIT.
77542
77543 2005-03-16  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
77546         HAVE_LONGLONG_64BIT.
77547
77548 2005-03-16  Bruno Haible  <bruno@clisp.org>
77549
77550         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
77551         HAVE_LONGLONG_64BIT.
77552
77553 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77554
77555         * lib/strftime.c (my_strftime): Prepend space to format so that we can
77556         reliably distinguish strftime failure from empty output on POSIX
77557         hosts.
77558
77559 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
77560
77561         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
77562         (iconv_string): Don't guess a size-zero buffer, as that might cause
77563         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
77564         result would be 'too large', where 'too large' is (heuristically)
77565         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
77566         overflow concerns.  This will prevent some unwanted malloc failures
77567         when the inputs are very large.
77568
77569 2005-03-15  Karl Berry  <karl@gnu.org>
77570
77571         * config/srclist.txt (config.rpath): from gettext.
77572         * config/config.rpath: update.
77573
77574 2005-03-15  Bruno Haible  <bruno@clisp.org>
77575
77576         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
77577         to 'negate'.
77578
77579         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
77580         variable.
77581
77582         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
77583         results.
77584
77585 2005-03-14  Simon Josefsson  <jas@extundo.com>
77586
77587         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
77588         <fx@gnu.org>.
77589
77590 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
77593         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
77594         intprops.h.
77595         * lib/strtol.c: Likewise.
77596
77597 2005-03-14  Jim Meyering  <jim@meyering.net>
77598
77599         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
77600         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
77601         to be nonzero so that we (and caller) can detect the difference
77602         between a valid zero-length expansion and an error return, even
77603         when the underlying strftime fails before writing anything into
77604         that location.
77605
77606 2005-03-14  Bruno Haible  <bruno@clisp.org>
77607
77608         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
77609         Update from GNU gettext 0.14.3.
77610
77611 2005-03-10  Jim Meyering  <jim@meyering.net>
77612
77613         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
77614
77615 2005-03-10  Jim Meyering  <jim@meyering.net>
77616
77617         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
77618         so that this module works on systems without fchdir.
77619
77620 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         Factor int-properties macros into a single file, except for
77623         glibc-related files.
77624         * lib/intprops.h: New file.
77625         * lib/getloadavg.c: Include it instead of limits.h.
77626         (INT_STRLEN_BOUND): Remove.
77627         * lib/human.c: Include intprops.h.
77628         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
77629         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
77630         302/1000.
77631         * lib/inttostr.h: Include intprops.h instead of limits.h.
77632         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
77633         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
77634         for consistency with intprops.h.
77635         (time_t_is_integer, twos_complement_arithmetic): Use them.
77636         * lib/sig2str.h: Include <signal.h>, intprops.h.
77637         (INT_STRLEN_BOUND): Remove.
77638         * lib/strftime.c (TYPE_SIGNED): Remove.
77639         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
77640         * lib/strtol.c: Adjust comments to match intprops.h.
77641         * lib/userspec.c: Include intprops.h.
77642         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
77643         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
77644         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
77645         instead of rolling our own expressions.
77646         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
77647
77648         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
77649         instead of int.
77650         (my_strftime): Do not mishandle years close to INT_MAX, by doing
77651         the right thing even if adding 1900 would overflow.  Similarly
77652         for tm_mon + 1 and tm_yday + 1.
77653         Make %Y always equivalent to %C%y, and similarly for %G and %g.
77654         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
77655         (DO_SIGNED_NUMBER): New macro.
77656         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
77657
77658 2005-03-07  Bruno Haible  <bruno@clisp.org>
77659
77660         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
77661
77662 2005-03-07  Bruno Haible  <bruno@clisp.org>
77663
77664         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
77665
77666 2005-03-04  Derek R. Price  <derek@ximbiot.com>
77667
77668         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
77669         (func_import): Only replace files via --import when they have actually
77670         changed.
77671
77672 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77673
77674         * m4/mmap-anon.m4: New file.
77675         * m4/pagealign_alloc.m4: New file.
77676
77677 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77678             Bruno Haible  <bruno@clisp.org>
77679
77680         * modules/pagealign_alloc: New file.
77681         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
77682
77683 2005-03-03  Derek R. Price  <derek@ximbiot.com>
77684             Bruno Haible  <bruno@clisp.org>
77685
77686         * lib/pagealign_alloc.h: New file.
77687         * lib/pagealign_alloc.c: New file.
77688
77689 2005-03-03  Bruno Haible  <bruno@clisp.org>
77690
77691         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
77692         Use an all-permissive copyright notice, recommended by RMS.
77693
77694 2005-03-02  Bruno Haible  <bruno@clisp.org>
77695
77696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
77697         of AIX, the replacement has to be done only after <string.h> is
77698         included, therefore not in config.h. stpncpy.h does the replacement,
77699         and stpncpy.c uses it.
77700
77701 2005-03-02  Bruno Haible  <bruno@clisp.org>
77702
77703         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
77704         stpncpy.c uses it.
77705
77706 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
77709         The workaround isn't strictly needed for POSIX conformance, and
77710         it's too much of a pain to configure and maintain.  We'll ask
77711         people to fix their kernels instead.
77712         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
77713         (NANOSLEEP_BUG_WORKAROUND): Remove.
77714         (xnanosleep): Remove the workaround.
77715
77716 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
77719         Reported by Derek Price.
77720         (Include): Add "timespec.h".
77721
77722         * modules/xnanosleep (Depends-on): Remove gethrxtime.
77723
77724 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
77727         to detect nanosleep bug.
77728
77729 2005-03-01  Bruno Haible  <bruno@clisp.org>
77730
77731         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
77732
77733 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * modules/gethrxtime: New file.
77736         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
77737         (Depends-on): Add gethrxtime.
77738         (configure.ac): Add gl_XNANOSLEEP.
77739         (Makefile.am): Remove lib_SOURCES line.
77740
77741 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
77744         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
77745
77746 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
77749         * lib/timespec.h (gettime): Return void, since it always
77750         succeeds now.  All uses changed.
77751         * lib/gettime.c (gettime): Likewise.
77752         [HAVE_NANOTIME]: Prefer nanotime.
77753         Assume gettimeofday succeeds, as POSIX requires.
77754         Assime time () succeeds, since other code already does.
77755         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
77756         (timespec_subtract): Remove.
77757         (NANOSLEEP_BUG_WORKAROUND): New constant.
77758         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
77759         things considerably.  Use it only on GNU/Linux hosts, since the
77760         workaround shouldn't be needed elsewhere.
77761
77762 2005-02-24  Bruno Haible  <bruno@clisp.org>
77763
77764         * modules/gettext (Files): Add m4/glibc2.m4.
77765
77766 2005-02-24  Bruno Haible  <bruno@clisp.org>
77767
77768         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
77769         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
77770         * m4/progtest.m4:
77771         Update from GNU gettext 0.14.2.
77772         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
77773
77774 2005-02-24  Bruno Haible  <bruno@clisp.org>
77775
77776         * lib/localcharset.c: Update from GNU gettext 0.14.2.
77777         * lib/config.charset: Update from GNU gettext 0.14.2.
77778
77779 2005-02-24  Bruno Haible  <bruno@clisp.org>
77780
77781         * lib/gettext.h: Update from GNU gettext 0.14.2.
77782
77783 2005-02-23  Simon Josefsson  <jas@extundo.com>
77784
77785         * m4/iconvme.m4: New file.
77786
77787 2005-02-23  Jim Meyering  <jim@meyering.net>
77788
77789         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
77790         change.
77791         Thanks to Bruno Haible for catching it.
77792
77793 2005-02-22  Simon Josefsson  <jas@extundo.com>
77794
77795         * modules/iconvme: New file.
77796
77797         * MODULES.html.sh: Add iconvme.
77798
77799 2005-02-22  Simon Josefsson  <jas@extundo.com>
77800
77801         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
77802
77803 2005-02-22  Simon Josefsson  <jas@extundo.com>
77804
77805         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
77806
77807 2005-02-22  Jim Meyering  <jim@meyering.net>
77808
77809         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
77810         s/ifndef/ifdef/.
77811
77812 2005-02-20  Neil Conway  <neilc@samurai.com>
77813
77814         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
77815         returned by OSX/Darwin if the specified buffer is not large
77816         enough for the hostname.
77817
77818 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77819
77820         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
77821         pass it to _help, otherwise the latter coredumps trying to
77822         dereference state.root_argp.
77823
77824 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * modules/chdir-long (Depends-on): Add memrchr.
77827         * modules/memrchr (Files): Add lib/memrchr.h.
77828         (Include): "memrchr.h".
77829
77830 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77831
77832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
77833
77834 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * lib/memrchr.h: New file.
77837         * lib/chdir-long.c: Include it.
77838         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
77839         Don't bother including stddef.h.
77840
77841 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
77844         inclusion.
77845         Include <sys/types.h>, for dev_t.
77846         (ME_DUMMY, ME_REMOTE): Move from here....
77847         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
77848         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
77849         Dmitry V. Levin.
77850         Include mountlist.h first, to test the interface.
77851
77852 2005-01-29  Bruno Haible  <bruno@clisp.org>
77853
77854         * lib/progname.c (program_name): Initialize.
77855         Needed when linking statically on MacOS X.
77856
77857 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         Sync from coreutils.
77860         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
77861         (Depends-on): Add c-strtod.
77862         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
77863
77864 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         Sync from coreutils.
77867         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
77868
77869         Remove files that are specific to coreutils.
77870         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
77871
77872 2005-01-28  Bruno Haible  <bruno@clisp.org>
77873
77874         * modules/javacomp: New file.
77875         * MODULES.html.sh (Java): Add javacomp.
77876
77877 2005-01-28  Bruno Haible  <bruno@clisp.org>
77878
77879         * m4/javacomp.m4: New file, from GNU gettext.
77880
77881 2005-01-28  Bruno Haible  <bruno@clisp.org>
77882
77883         * lib/javacomp.sh.in: New file, from GNU gettext.
77884         * lib/javacomp.h: New file, from GNU gettext.
77885         * lib/javacomp.c: New file, from GNU gettext.
77886
77887 2005-01-26  Simon Josefsson  <jas@extundo.com>
77888
77889         * lib/gai_strerror.c: Use GPL in header.
77890
77891 2005-01-26  Bruno Haible  <bruno@clisp.org>
77892
77893         * modules/javaexec: New file.
77894         * MODULES.html.sh (Java): Add javaexec.
77895
77896 2005-01-26  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/javaexec.m4: New file, from GNU gettext.
77899
77900 2005-01-26  Bruno Haible  <bruno@clisp.org>
77901
77902         * lib/javaexec.sh.in: New file, from GNU gettext.
77903         * lib/javaexec.h: New file, from GNU gettext.
77904         * lib/javaexec.c: New file, from GNU gettext.
77905
77906 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77907
77908         * modules/lchown (Depends-on): Remove lchown.h
77909
77910 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77911
77912         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
77913         must be defined if the header file was not found, in order
77914         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
77915
77916 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77917
77918         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
77919         initializers for struct pentry_state.
77920         (__argp_error): Check return value of __asprintf
77921         (__argp_failure): Translate error message
77922
77923         * lib/argp-parse.c: Removed braces around the expansion of N_()
77924
77925 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
77928         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
77929         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
77930         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
77931         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
77932         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
77933         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
77934         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
77935         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
77936         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
77937         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
77938         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
77939         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
77940         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
77941         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
77942         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
77943         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
77944         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
77945         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
77946         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
77947         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
77948         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
77949         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
77950         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
77951         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
77952         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
77953         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
77954         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
77955         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
77956         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
77957         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
77958         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
77959         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
77960         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
77961         xstrtol.m4, xstrtoumax.m4, yesno.m4:
77962         Use an all-permissive copyright notice, recommended by RMS.
77963
77964 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
77965
77966         * modules/chdir-long (Depends-on): Remove mempcpy.
77967
77968 2005-01-21  Jim Meyering  <jim@meyering.net>
77969
77970         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
77971         same value as for Solaris 9.
77972
77973         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
77974         component length.  This included changing the parameter to be
77975         of type `char *' rather than `char const *'.
77976         * lib/chdir-long.h (chdir_long): Update prototype.
77977
77978         * lib/openat.c (fdopendir, fstatat): New functions.
77979         * lib/openat.h: Include headers required for use of DIR and struct
77980         stat.
77981         [AT_SYMLINK_NOFOLLOW]: Define.
77982         (fdopendir, fstatat): Add prototypes.
77983
77984 2005-01-21  Bruno Haible  <bruno@clisp.org>
77985
77986         * modules/classpath: New file.
77987         * MODULES.html.sh (Java): Add classpath.
77988
77989 2005-01-21  Bruno Haible  <bruno@clisp.org>
77990
77991         * lib/classpath.h: New file, from GNU gettext.
77992         * lib/classpath.c: New file, from GNU gettext.
77993
77994 2005-01-20  Simon Josefsson  <jas@extundo.com>
77995
77996         * modules/version-etc-fsf: New file.
77997
77998 2005-01-20  Simon Josefsson  <jas@extundo.com>
77999
78000         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78001         * lib/version-etc.c: Remove version_etc_copyright.
78002         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78003         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78004
78005 2005-01-20  Simon Josefsson  <jas@extundo.com>
78006
78007         * lib/base64.h (isbase64): Add.
78008
78009         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78010         using a unsigned prototype, don't inline.
78011         (base64_decode): Use it.
78012
78013 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78014
78015         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78016         it.
78017
78018 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         * lib/save-cwd.c (save_cwd): Remove code to support the case
78021         where fchdir is missing or flaky.
78022
78023 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78026
78027 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78028
78029         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78030         AC_LIBSOURCES now does this.
78031         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78032         with new ullong_max module.
78033
78034 2005-01-19  Bruno Haible  <bruno@clisp.org>
78035
78036         * modules/sh-quote: New file.
78037         * MODULES.html.sh (Executing programs): Add sh-quote.
78038
78039 2005-01-19  Bruno Haible  <bruno@clisp.org>
78040
78041         * lib/sh-quote.h: New file, from GNU gettext.
78042         * lib/sh-quote.c: New file, from GNU gettext.
78043
78044 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78045
78046         Merge from coreutils.
78047         * m4/ullong_max.m4: New file.
78048         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78049         (gl_MACROS): Assume localeconv exists.
78050
78051 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         Merge changes from coreutils, as described below in several
78054         changelogs dated today.
78055
78056         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78057         (O_DIRECTORY): Remove; not needed here, since "." must be
78058         a directory.  All uses removed.
78059         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78060         universal on Suns, and we also need to test for IRIX.
78061         Revamp code to use 'if' rather than '#if'.
78062         Avoid unnecessary comparison of cwd->desc to 0.
78063
78064         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78065         for known valid error numbers rather than observed invalid ones.
78066
78067 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78068
78069         * modules/ullong_max: New file.
78070
78071         * modules/chdir-long, modules/openat: New files.
78072         * modules/save-cwd (Depends-on): Depend on chdir-long.
78073         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78074
78075 2005-01-18  Jim Meyering  <jim@meyering.net>
78076
78077         Merge from coreutils.
78078         * m4/chdir-long.m4, m4/openat.m4: New files.
78079         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78080         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78081         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78082         is sane and DOES follow symlinks.  Besides, testing 20 different
78083         systems found no broken chown implementations.
78084         Prompted by a change in rsync's copy of this macro.
78085         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78086
78087         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78088
78089         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78090         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78091         NULL-means-set-to-current-time semantics.
78092         Remove temporary file immediately, rather than waiting
78093         for configure's at-exit trap code to do it.
78094
78095 2005-01-18  Jim Meyering  <jim@meyering.net>
78096
78097         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78098
78099         * lib/utimens.c (futimens): Account for the fact that futimes
78100         can also fail with errno == ENOSYS or errno == ENOENT.
78101         Patch from Dmitry V. Levin.
78102
78103         Change the name of the robust chdir function from chdir to chdir_long.
78104         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78105         (restore_cwd): Use chdir_long, not chdir.
78106         * lib/chdir-long.c: Renamed from chdir.c.
78107         * lib/chdir-long.h: Renamed from chdir.h.
78108         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78109         Hurd.
78110
78111 2005-01-18  Bruno Haible  <bruno@clisp.org>
78112
78113         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78114         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78115         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78116         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78117         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78118         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78119         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78120         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78121         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78122         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78123         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78124         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78125         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78126         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78127         Use an all-permissive copyright notice, recommended by RMS.
78128
78129 2005-01-18  Bob Proulx  <bob@proulx.com>
78130
78131         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78132         simplify offsetof() macro construct to avoid compile failure with
78133         native HP-UX 11.0 ANSI C compiler.
78134
78135 2005-01-17  Bruno Haible  <bruno@clisp.org>
78136
78137         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78138         redundant because stpncpy.m4 takes care of it.
78139
78140 2005-01-17  Bruno Haible  <bruno@clisp.org>
78141
78142         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78143
78144 2005-01-17  Bruno Haible  <bruno@clisp.org>
78145
78146         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78147         used.
78148
78149 2005-01-17  Bruno Haible  <bruno@clisp.org>
78150
78151         * lib/fwriteerror.h (fwriteerror): Change specification to include
78152         fclose.
78153         * lib/fwriteerror.c: Include <stdbool.h>.
78154         (fwriteerror): At the end, close the file stream. Record whether
78155         stdout was already closed.
78156
78157 2005-01-17  Bruno Haible  <bruno@clisp.org>
78158
78159         * lib/execute.c (environ): Declare if needed.
78160         * lib/pipe.c (environ): Likewise.
78161         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78162
78163 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78164
78165         * modules/argp: Depend on vsnprintf
78166
78167 2005-01-10  Jim Meyering  <jim@meyering.net>
78168
78169         * modules/closeout (Depends-on): Add atexit.
78170
78171 2005-01-06  Bruno Haible  <bruno@clisp.org>
78172
78173         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78174
78175 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78178         definitions to be after all include files, to avoid collisions.
78179         Problem reported by Bob Proulx.
78180
78181 2005-01-04  Jim Meyering  <jim@meyering.net>
78182
78183         Changes imported from coreutils.
78184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78185         as the mkstemp template, use a temporary directory and an
78186         8.3-friendly template to avoid trouble on systems like DJGPP.
78187         Reported by Juan M. Guerrero via Stepan Kasal.
78188         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78189         close. Remove the temporary directory right away, rather than waiting
78190         for configure's at-exit trap code to do it.
78191         Suggestion from Stepan Kasal.
78192
78193 2005-01-01  Simon Josefsson  <jas@extundo.com>
78194
78195         * gnulib-tool: Print #include directives when --import'ing.
78196
78197 2004-12-28  Simon Josefsson  <jas@extundo.com>
78198
78199         * tests/test-base64.c: Include required header files.  Remove
78200         unused variables.
78201
78202 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78203
78204         * modules/error (Depends-on): Remove gettext.
78205
78206 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78209         not needed.  This removes a dependency on the gettext module.
78210         [defined _LIBC]: Do not include <libintl.h>; not needed.
78211
78212 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78215         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78216
78217 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78220         HAVE_DECL_STRTOLD.
78221
78222 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78223
78224         * modules/getdate (Depends-on): Remove alloca-opt.
78225
78226 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78229
78230 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78231
78232         * lib/argp-parse.c: Include <stddef.h>.
78233         (alignof, alignto): New macros.
78234         (parser_init): Don't assume that void * is aligned sufficiently
78235         for struct option.
78236
78237         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78238         need to extend the stack.
78239         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78240         large.
78241
78242 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78243
78244         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78245
78246 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78247
78248         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78249         (2004-10-24) change.  Apparently this was a false alarm.
78250
78251         * modules/getdate: Depend on alloca-opt, not alloca.
78252
78253 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78254
78255         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78256         Remove now-obsolete comment about AIX.
78257         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78258         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78259         (YYMAXDEPTH): New macro.
78260
78261 2004-12-18  Simon Josefsson  <jas@extundo.com>
78262
78263         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78264
78265 2004-12-18  Bruno Haible  <bruno@clisp.org>
78266
78267         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78268
78269 2004-12-18  Bruno Haible  <bruno@clisp.org>
78270
78271         * lib/fatal-signal.c (fatal_signals): Make non-const.
78272         (init_fatal_signals): New function.
78273         (uninstall_handlers, install_handlers): Ignore signals that were set to
78274         SIG_IGN.
78275         (at_fatal_signal): Call init_fatal_signals.
78276         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78277         SIG_IGN.
78278         Reported by Paul Eggert.
78279
78280 2004-12-18  Bruno Haible  <bruno@clisp.org>
78281
78282         * doc/alloca.texi: New file.
78283         * doc/alloca-opt.texi: New file.
78284
78285 2004-12-17  Jim Meyering  <jim@meyering.net>
78286
78287         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78288         Otherwise, install-sh could exit with improper exit status when
78289         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78290
78291 2004-12-16  Simon Josefsson  <jas@extundo.com>
78292
78293         * tests/test-base64.c: Add license.
78294
78295 2004-12-15  Stepan Kasal  <address@hidden>
78296
78297         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78298
78299 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * modules/getcwd (Files): Add m4/d-ino.m4.
78302         Suggested by Mark D. Baushke.
78303
78304 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         * lib/getdate.y (textint): New member "negative".
78307         (time_zone_hhmm): New function.
78308         Expect 14 shift-reduce conflicts, not 13.
78309         (o_colon_minutes): New rule.
78310         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78311         (yylex): Set the "negative" member of signed numbers.
78312
78313 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         * doc/getdate.texi (Time of day items, Time zone items):
78316         Describe new formats +00:00, UTC+00:00.
78317
78318 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78319
78320         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78321         spurious "-l"s.  Problem reported by Stepan Kasal.
78322
78323 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78324
78325         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78326         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78327
78328 2004-12-04  Simon Josefsson  <jas@extundo.com>
78329
78330         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78331         Vandoorselaere <yoann@prelude-ids.org>.
78332
78333 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78334
78335         Changes imported from coreutils.
78336         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78337         exist.
78338         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78339
78340 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78341
78342         Changes imported from coreutils.
78343         * lib/hard-locale.c: Assume <locale.h> exists.
78344         Include "strdup.h".
78345         (GLIBC_VERSION): New macro.
78346         (hard_locale): Assume setlocale exists.
78347         Rewrite to avoid #ifdef.
78348         Use strdup rather than malloc + strcpy.
78349         * lib/human.c: Assume <locale.h> exists.
78350         (human_readable): Assume localeconv exists.
78351
78352 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78353
78354         * modules/hard-locale (Depends-on): Add strdup.
78355
78356 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78357
78358         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78359         convert T2, not T.  (Imported from libc.)
78360
78361 2004-11-30  Simon Josefsson  <jas@extundo.com>
78362
78363         * modules/restrict (License): Change to LGPL.
78364
78365 2004-11-30  Simon Josefsson  <jas@extundo.com>
78366
78367         * m4/restrict.m4: Add copyright and copying conditions.
78368
78369 2004-11-30  Simon Josefsson  <jas@extundo.com>
78370
78371         * m4/base64.m4: New file.
78372
78373 2004-11-30  Simon Josefsson  <jas@extundo.com>
78374
78375         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78376         base64.
78377
78378         * tests/test-base64.c: New file.
78379
78380         * modules/base64: New file.
78381
78382 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78385         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78386
78387         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78388
78389 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78392         (__getcwd.c): Don't restore errno; glibc doesn't.
78393         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78394         first, falling back to our code only if its results look suspicious.
78395         Ensure that the resulting buffer is only as large as necessary.
78396
78397         * lib/readutmp.c: Include readutmp.h first.
78398         Include <errno.h>, since readutmp.h no longer does that.
78399         * lib/readutmp.h: Don't include <errno.h>,
78400         <sys/param.h>, <time.h>; not needed to establish interface.
78401         (errno): Remove decl.
78402         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78403         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78404         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78405
78406 2004-11-28  Simon Josefsson  <jas@extundo.com>
78407
78408         * lib/base64.h, base64.c: New file.
78409
78410 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78413
78414 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78415
78416         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78417         (Depends-on): Remove pathmax, same.  Add mempcpy.
78418         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78419         (Makefile.am): Append getcwd.h to lib_SOURCES.
78420         (Include): Add getcwd.h.
78421         (Maintainer): Change from Jim Meyering to "all, glibc",
78422         since getdate now uses intended-for-glibc code.
78423         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78424         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78425
78426 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78429         HP's ANSI C compiler.
78430         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78431         Declaring int functions causes warnings on some modern systems and
78432         shouldn't be needed to compile on ancient ones.
78433         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78434         defined.
78435
78436         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78437         with the following changes.
78438         (__set_errno): Parenthesize properly.
78439         Include <stdbool.h>.
78440         (MIN, MAX, MATCHING_INO): New macros.
78441         (__getcwd): Define with prototype, not K&R form.
78442         Use heuristics to allocate default buffer on stack if possible.
78443         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78444         behavior, and to avoid the PATH_MAX limit when computing
78445         ../../../../...
78446         Use MATCHING_INO to compare inode number to file.
78447         Check for arithmetic overflow in size calculations.
78448         Fix bug in reallocation of dot array that caused getcwd to fail
78449         on directories nested deeper than 75.
78450         Be more careful about saving errno on error.
78451         Do not use realloc; use only free+malloc, as this is a bit
78452         more flexible and avoids a needless copy operation.
78453         Do not inspect st_dev and st_ino for symbolic links; POSIX
78454         doesn't specify the latter.
78455         Check for closedir errors.
78456         Avoid needless casts.
78457         Use "#ifdef weak_alias" around weak_alias, to be like other
78458         glibc code.
78459         The following changes to getcwd.c have effect only when used in
78460         gnulib; they have no effect inside glibc proper.
78461         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
78462         as alloca isn't used.
78463         (alloca, __alloca): Likewise.
78464         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
78465         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78466         unconditionally, as gnulib assumes C89 or better.
78467         Do not include <sys/param.h>.
78468         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
78469         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
78470         better.
78471         (NULL) [!defined NULL]: Remove; we assume C89 or better.
78472         Include <dirent.h> in a way that is compatible with modern Autoconf.
78473         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
78474         New macros, if not already defined.
78475         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
78476         Use "_LIBC", not "defined _LIBC", for consistency.
78477         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
78478         a mempcpy module.
78479         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
78480         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
78481         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
78482         credit only to Jim Meyering and adjust the copyright dates.
78483         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
78484         <stdlib.h>, <unistd.h>, "pathmax.h".
78485         Instead, include "xgetcwd.h" (first) and "getcwd.h".
78486         (INITIAL_BUFFER_SIZE): Remove.
78487         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
78488
78489 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
78492         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
78493         Use the _ONCE methods, for efficiency.
78494         Check for fcntl.h.  In test program, include <errno.h>
78495         and <fcntl.h> if available.  Remove old K&R cruft from
78496         test program.  Check for common errors in GNU/Linux,
78497         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
78498         don't do AC_LIBOBJ, as that's getcwd.m4's job.
78499         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
78500         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
78501         name accordingly.
78502         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
78503         accommodate new getcwd.c.
78504         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
78505         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
78506         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
78507         that's all we need now.
78508
78509 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78510
78511         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
78512         argp-parse.c depends on getopt internals, that means we should
78513         always use our getopt, to be on the safe side.
78514         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
78515         order not to spoil the result of an eventual previous invocation
78516         of gl_GETOPT_SUBSTITUTE.
78517
78518 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78519
78520         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
78521         redefinition warnings. To avoid them, include the defines
78522         in `#if !defined __need_getopt ... #endif'. The only place
78523         where __getopt_argv_const is used is in definitions
78524         of getopt_long and getopt_long_only below, which are as well
78525         protected by `#ifndef __need_getopt'.
78526         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
78527         __need_getopt after including <stdio.h> and <unistd.h> These
78528         headers might have defined it.
78529
78530 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
78533
78534 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
78537         (futimens): New function, which uses futimes if available.
78538         (futimens, utimens): Support timespec==NULL, with same semantics
78539         as utime and utimens.
78540         * lib/utimens.h (futimens): New decl.
78541
78542 2004-11-23  Jim Meyering  <jim@meyering.net>
78543
78544         * lib/getopt_.h: Remove trailing blanks.
78545
78546 2004-11-23  Jim Meyering  <jim@meyering.net>
78547
78548         * lib/__fpending.c: Add comment.
78549
78550 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * modules/canonicalize (Depends-on): Add xreadlink.
78553         Problem reported by James Youngman.
78554
78555 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
78556
78557         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
78558         New macros.
78559         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
78560         optopt): Use them instead of invoking ## directly; otherwise, the
78561         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
78562
78563 2004-11-19  Bruno Haible  <bruno@clisp.org>
78564
78565         * lib/strtok_r.c: Move comments from here...
78566         * lib/strtok_r.h: ... to here.
78567
78568 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78569
78570         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
78571         implementations that mishandle size_t overflow.
78572
78573 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
78576         might fail.  Problem reported by Yoann Vandoorselaere.
78577         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
78578         implementations that mishandle size_t overflow.
78579
78580 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * modules/canon-host (Depends-on): Add strdup.
78583
78584 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
78587
78588 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * lib/canon-host.c: Include "strdup.h".
78591         (canon_host): Use getaddrinfo if available, so that IPv6 works.
78592         Use strdup instead of malloc/strcpy to duplicate strings.
78593
78594         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
78595         (human_space_before_unit): New constant.
78596         * lib/human.c (human_readable): Support it.
78597
78598         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
78599         (xgetcwd): Set errno correctly when failing.
78600         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
78601         the failure is actually due to a PATH_MAX problem.
78602
78603         Further getopt changes to make it more likely that glibc will
78604         buy the changes back.
78605         * lib/getopt.c (POSIXLY_CORRECT): New constant.
78606         (getopt): Use it, so to preserve glibc semantic
78607         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
78608         when compiling for libc.
78609         * lib/getopt_.h (__getopt_argv_const): Bring it back.
78610         (getopt_long, getopt_long_only): Use it.
78611
78612         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78613         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
78614         (getopt): Argv is now char * const *, as per standard.
78615         (_getopt_internal_r, _getopt_internal): Argv is now char **,
78616         not char *__getopt_argv_const *.
78617         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78618         _getopt_long_only_r): Likewise.
78619         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
78620         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78621         _getopt_long_r, _getopt_long_only_r): Likewise.
78622         * lib/getopt_.h (__getopt_argv_const): Remove.
78623         (getopt): Argv is now char * const *, as per standard.
78624
78625         * lib/getdate.y (tORDINAL): New token.
78626         (day, relunit): Allow it for relative times.
78627         (relative_time_table): Use tORDINAL for ordinals.
78628
78629 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
78632         Document that "second" isn't allowed as an ordinal number.
78633
78634 2004-11-16  Jim Meyering  <jim@meyering.net>
78635
78636         * modules/closeout (Depends-on): Add fpending.
78637
78638 2004-11-15  Jim Meyering  <jim@meyering.net>
78639
78640         * lib/closeout.c: Include "__fpending.h" once again.
78641         Include <stdbool.h>.
78642         (close_stdout): Don't fail just because stdout was closed initially,
78643         since some programs don't write to stdout in the normal course of
78644         operation (other than --version and --help), and we don't want this
78645         function to make e.g. `touch file >&-' fail.
78646         But do fail if it was closed and someone has tried to write to it.
78647         E.g., `printf foo >&-' must fail.
78648
78649 2004-11-13  Jim Meyering  <jim@meyering.net>
78650
78651         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
78652
78653 2004-11-12  Simon Josefsson  <jas@extundo.com>
78654
78655         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
78656         small doc fix is still pending.
78657
78658 2004-11-11  Simon Josefsson  <jas@extundo.com>
78659
78660         * modules/strtok_r: New file.
78661
78662         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78663         strtok_r.
78664
78665 2004-11-11  Simon Josefsson  <jas@extundo.com>
78666
78667         * m4/strtok_r.m4: New file.
78668
78669         * m4/getopt.m4: Replace opterr.
78670
78671 2004-11-11  Simon Josefsson  <jas@extundo.com>
78672
78673         * lib/strtok_r.h, strtok_r.c: New file.
78674
78675 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78676
78677         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
78678         of replacing opterr, getopt, etc.  This should handle the
78679         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
78680
78681 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
78682
78683         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
78684         we can stop lying to compilers about the constness of argv when we
78685         are compiled outside glibc.
78686         (getopt, getopt_long, getopt_long_only): Use it.
78687         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
78688         _getopt_internal, getopt): Likewise.
78689         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
78690         _getopt_long_only_r): Likewise.
78691         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
78692         _getopt_long_r, _getopt_long_only_r): Likewise.
78693
78694         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
78695         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
78696         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
78697         the other external symbols.
78698         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
78699         declaration, since the above renaming now works around collisions.
78700
78701 2004-11-11  Jim Meyering  <jim@meyering.net>
78702
78703         * lib/linebreak.c: Remove trailing blanks.
78704         * lib/alloca_.h: Likewise.
78705         * lib/acosl.c: Likewise.
78706         * lib/euidaccess.c: Likewise.
78707         * lib/allocsa.h: Likewise.
78708
78709 2004-11-10  Simon Josefsson  <jas@extundo.com>
78710
78711         * m4/getaddrinfo.m4: New file.
78712
78713 2004-11-10  Simon Josefsson  <jas@extundo.com>
78714
78715         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
78716
78717 2004-11-10  Simon Josefsson  <jas@extundo.com>
78718
78719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78720         getaddrinfo.
78721
78722         * modules/getaddrinfo: New file.
78723
78724 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
78727
78728 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/mktime.c (SHR): New macro, which is a portable
78731         substitute for >> that should work even on Crays.
78732         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
78733         Problem reported by Mark D. Baushke in
78734         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
78735         * lib/getdate.y (SHR): Likewise.
78736         (tm_diff): Use it.
78737         * lib/strftime.c (SHR): Likewise.
78738         (tm_diff): Use it.
78739         * lib/quotearg.c (struct quoting_options): Use unsigned int for
78740         quote_these_too, so that right shifts are well defined.  All uses
78741         changed.
78742
78743 2004-11-10  Jim Meyering  <jim@meyering.net>
78744
78745         Ensure that no close failure goes unreported.
78746         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
78747         return early when it seems there's nothing to flush.
78748         Don't include __fpending.h.
78749
78750 2004-11-10  Jim Meyering  <jim@meyering.net>
78751
78752         * modules/closeout (Depends-on): Remove fpending.
78753
78754 2004-11-10  Jim Meyering  <jim@meyering.net>
78755
78756         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
78757
78758 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78759
78760         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
78761         gl_FUNC_STRFTIME.
78762         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
78763         and AC_REQUIRE when possible, to avoid duplicate checks.
78764         Check for <wchar.h>.
78765
78766 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
78769
78770 2004-11-09  Bruno Haible  <bruno@clisp.org>
78771
78772         * m4/sockpfaf.m4: New file.
78773
78774 2004-11-05  Bruno Haible  <bruno@clisp.org>
78775
78776         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
78777         Reported by Mark D. Baushke <mdb@cvshome.org>.
78778
78779 2004-11-04  Bruno Haible  <bruno@clisp.org>
78780
78781         2004-09-11  Bruno Haible  <bruno@clisp.org>
78782                 * allocsa.valgrind: New file.
78783         2004-02-06  Bruno Haible  <bruno@clisp.org>
78784                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
78785                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
78786                 Reported by Christopher Seip <chris.seip@hp.com>.
78787
78788 2004-11-04  Bruno Haible  <bruno@clisp.org>
78789
78790         * modules/allocsa (Files): Add lib/allocsa.valgrind.
78791         (Makefile.am): Distribute it.
78792
78793 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
78794
78795         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
78796         with errno == ERANGE if the buffer is too small.
78797         Problem reported by Mark D. Baushke.
78798
78799 2004-11-03  Albert Chin  <china@thewrittenword.com>
78800             Paul Eggert  <eggert@cs.ucla.edu>
78801
78802         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
78803         equivalent, substitute $ac_type for equivalent type rather than
78804         blindly using uint32_t *always* which won't work if uint32_t is not
78805         available.  Define _UINT32_T to work around typedef of uint32_t if
78806         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
78807         2.5.1.
78808
78809 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * m4/jm-macros.m4: Sync from coreutils.
78812         (gl_MACROS): Check for mbrlen, for pathchk.
78813         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
78814
78815 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78816
78817         * lib/xreadlink.c (MAXSIZE): New macro.
78818         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
78819         size does not exceed MAXSIZE.  Avoid cast.
78820         As suggested by Mark D. Baushke in
78821         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
78822         if readlink fails with buffer size just under MAXSIZE, try again
78823         with MAXSIZE.
78824
78825 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
78828
78829 2004-11-02  Derek R. Price  <derek@ximbiot.com>
78830         and  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
78833         (get_date): Overparenthesize to avoid GCC warning.
78834
78835 2004-11-02  Bruno Haible  <bruno@clisp.org>
78836
78837         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
78838         returns void.
78839
78840 2004-11-02  Bruno Haible  <bruno@clisp.org>
78841
78842         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
78843         function returns void.
78844
78845 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78846
78847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
78848         fflush_unlocked, flockfile, funlockfile, funlockfile,
78849         fputs_unlocked, putc_unlocked.
78850
78851 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78854         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
78855         already declared.
78856
78857 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78858
78859         * modules/getdate (Files): Add doc/getdate.texi.
78860         (Depends-on): Add setenv, xalloc.
78861
78862 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/getdate.y: Add support for TZ="foo" within a date string.
78865         Fix some bugs near time_t boundaries.  Reject dates with
78866         out-of-range components, e.g., "Sept 31".
78867         Include <stdlib.h>, "setenv.h", "xalloc.h".
78868         (ISDIGIT_LOCALE): Remove; unused.
78869         Note that the TZ and time functions used here are not reentrant.
78870         (mktime_ok, get_tz): New functions.
78871         (TZBUFSIZE): New constant.
78872         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
78873         This requires that we sometimes generate our own TZ="XXX..." setting.
78874
78875 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78876
78877         * doc/getdate.texi: New file, from coreutils with modifications for
78878         the new TZ parsing.
78879
78880 2004-10-27  Derek R. Price  <derek@ximbiot.com>
78881
78882         * lib/mktime.c (not_equal_tm): Remove redundant check.
78883
78884 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78885
78886         * modules/regex (lib_SOURCES): Add regex.c.
78887         Reported by James Youngman in
78888         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
78889
78890 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
78891
78892         * lib/getdate.y: Use Bison 1.875 features, and some minor
78893         code cleanups.  This change does not affect semantics.
78894         Don't include <stdlib.h>; no longer needed.
78895         Don't include unlocked-io.h; only the "#if TEST" code uses
78896         stdio, and performance isn't crucial there.
78897         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
78898         Bison 1.875 features as described below.
78899         All uses of "PC." replaced by "pc->".
78900         (YYSTYPE): Add a forward declaration.
78901         (yylex, yyerror): Use full prototypes in forward decls.
78902         Use "%pure-parser" rather than obsolescent "%pure_parser".
78903         Use %parse-param and %lex-param instead of obsolescent
78904         YYPARSE_PARAM and YYLEX_PARAM.
78905         (meridian_table, month_and_day_table, time_units_table,
78906         relative_time_table, time_zone_table, military_table,
78907         lookup_zone, lookup_word, get_date):
78908         Use NULL instead of 0 where appropriate.
78909         (to_hour): Avoid abort (), to avoid a dependency on
78910         stdlib.h.
78911         (yyerror, yylex): Now accepts parser_control * arg.
78912         (main) [TEST]: Use '\0' rather than 0 for char.
78913
78914 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
78917
78918 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
78919
78920         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
78921         It's now the caller's responsibility to handle the case where
78922         !HAVE_GETPAGESIZE && !defined getpagesize.
78923
78924         * lib/mktime.c (leapyear): Arg is long int, not int.
78925
78926 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
78929
78930 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
78931
78932         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
78933         missing.  Problem reported by James Youngman.
78934
78935 2004-10-16  Simon Josefsson  <jas@extundo.com>
78936
78937         * gnulib-tool: Fix comments.  Fix parse problem.
78938         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
78939
78940 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
78943         implementation of getopt_long.  Problem reported by Alexander Taler in:
78944         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
78945
78946 2004-10-15  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool: Untabify. Initialize supplied_libname.
78949         (func_usage): More homogenous output.
78950         (func_modules_transitive_closure, func_modules_to_filelist,
78951         func_emit_lib_Makefile_am): New functions.
78952         (func_import): New function, extracted from big case statement. Use
78953         func_get_license, func_modules_transitive_closure,
78954         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
78955         opt_lgpl. Don't use test -a, as it's not portable.
78956         (func_create_testdir): Use func_modules_transitive_closure,
78957         func_modules_to_filelist, func_emit_lib_Makefile_am.
78958
78959 2004-10-15  Bruno Haible  <bruno@clisp.org>
78960
78961         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
78962
78963 2004-10-15  Bruno Haible  <bruno@clisp.org>
78964
78965         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
78966         the portions belonging to each module.
78967         Suggested by Derek Robert Price <derek@ximbiot.com>.
78968
78969 2004-10-12  Simon Josefsson  <jas@extundo.com>
78970
78971         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
78972         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
78973         to real functions.
78974
78975 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78976
78977         * modules/vsnprintf: New file.
78978
78979 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78980
78981         * m4/vsnprintf.m4: New file.
78982
78983 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
78984
78985         * lib/vsnprintf.h: New file.
78986         * lib/vsnprintf.c: New file.
78987
78988 2004-10-11  Bruno Haible  <bruno@clisp.org>
78989
78990         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
78991         vsnprintf.
78992
78993 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
78996
78997 2004-10-07  Bruno Haible  <bruno@clisp.org>
78998
78999         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79000         fits into the provided buffer.
79001
79002 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79003
79004         * lib/diacrit.c, diacrit.h: Add GPL notice.
79005
79006         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79007         notice.
79008         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79009         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79010         This avoids a potential constant-folding bug.
79011
79012 2004-10-05  Bruno Haible  <bruno@clisp.org>
79013
79014         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79015         for the declaration of strsep.
79016
79017 2004-10-05  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79020
79021 2004-10-04  Simon Josefsson  <jas@extundo.com>
79022
79023         * modules/memmem: New file.
79024         * tests/test-memmem.c: New file.
79025         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79026
79027 2004-10-04  Simon Josefsson  <jas@extundo.com>
79028
79029         * m4/memmem.m4: New file.
79030
79031 2004-10-04  Simon Josefsson  <jas@extundo.com>
79032
79033         * lib/memmem.h: New file.
79034         * lib/memmem.c: New file, taken from glibc.
79035
79036 2004-10-04  Simon Josefsson  <jas@extundo.com>
79037
79038         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79039         '#ifdef USE_UNLOCKED_IO'.
79040
79041 2004-10-04  Simon Josefsson  <jas@extundo.com>
79042
79043         * config/srclist.txt: Add memmem from glibc.
79044
79045 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79048
79049         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79050         modules/exclude, modules/getdate, modules/getline,
79051         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79052         modules/getusershell, modules/linebuffer, modules/md5,
79053         modules/mountlist, modules/posixtm, modules/readtokens,
79054         modules/readutmp, modules/regex, modules/sha1,
79055         modules/version-etc, modules/yesno:
79056         Remove dependency on unlocked-io.
79057
79058 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79059
79060         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79061
79062         * m4/unlocked-io.m4: Add copyright notice.
79063         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79064
79065 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79068         * lib/xmalloc.c (xmemdup): Likewise.
79069         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79070         XFREE): Remove these long-obsolescent macros.
79071         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79072         * lib/xstrdup.c: Remove.
79073
79074         * lib/regex.c (re_comp): Cast gettext return value to char *,
79075         Problem reported by Martin Neitzel via Mark D. Baushke.
79076
79077 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79080         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79081         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79082         regex.c, sha1.c, version-etc.c, yesno.c:
79083         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79084         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79085         the includer's responsibility.
79086
79087         Sync from coreutils.
79088
79089         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79090         points to the start of a string, as the C Standard says the
79091         resulting behavior is undefined.
79092
79093         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79094         simple -> simple_backups, numbered_existing ->
79095         numbered_existing_backups, numbered -> numbered_backups
79096         to avoid shadowing problems.  All uses changed.
79097         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79098         * lib/backupfile.c (check_extension, numbered_backup):
79099         Rename locals to avoid shadowing 'basename'.
79100         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79101         once.
79102
79103         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79104         * lib/.cvsignore: Add getopt.h.
79105
79106 2004-10-04  Bruno Haible  <bruno@clisp.org>
79107
79108         * modules/README: New file.
79109         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79110         not a module.
79111
79112 2004-10-02  Jim Meyering  <jim@meyering.net>
79113
79114         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79115
79116 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79117
79118         * modules/strsep: New file.
79119
79120 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79121
79122         * m4/strsep.m4: New file.
79123
79124 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79125
79126         * lib/strsep.h: New file.
79127         * lib/strsep.c: New file.
79128
79129 2004-10-01  Simon Josefsson  <jas@extundo.com>
79130
79131         * lib/snprintf.c (snprintf): Handle size==0.
79132
79133 2004-10-01  Simon Josefsson  <jas@extundo.com>
79134             Bruno Haible  <bruno@clisp.org>
79135
79136         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79137         (snprintf): Declare 'args'.
79138
79139 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * lib/snprintf.c: Remove comments as to why each header is needed.
79142
79143 2004-10-01  Bruno Haible  <bruno@clisp.org>
79144
79145         * MODULES.html.sh: Add strsep.
79146
79147 2004-09-30  Simon Josefsson  <jas@extundo.com>
79148
79149         * modules/snprintf: New file.
79150
79151 2004-09-30  Simon Josefsson  <jas@extundo.com>
79152
79153         * m4/snprintf.m4: New file.
79154
79155 2004-09-30  Simon Josefsson  <jas@extundo.com>
79156
79157         * lib/snprintf.h, lib/snprintf.c: New files.
79158
79159 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79160
79161         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79162         (hol_entry_help): Never translate an empty string.
79163         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79164         * lib/argp.h (OPTION_NO_TRANS): New option.
79165
79166 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * modules/argp (Maintainer): Replace Simon Josefsson
79169         by Sergey Poznyakoff.
79170
79171 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79174         changes merged back into glibc.
79175
79176 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79177
79178         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79179
79180 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79181
79182         * lib/xvasprintf.c: Include xalloc.h.
79183         (xvasprintf): Use xalloc_die, not xmalloc_die.
79184
79185 2004-09-29  Bruno Haible  <bruno@clisp.org>
79186
79187         * modules/alloca-opt: New file, derived from modules/alloca.
79188         * modules/allocsa: Depend on alloca-opt instead of alloca.
79189         * modules/setenv: Likewise.
79190         * modules/vasnprintf: Likewise.
79191         * MODULES.html.sh: Add alloca-opt.
79192
79193 2004-09-28  Simon Josefsson  <jas@extundo.com>
79194
79195         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79196         LGPL, and to replace license template from GPL to LGPL.
79197
79198 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * modules/dummy: Change license to LGPL.
79201
79202 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79205
79206 2004-09-24  Simon Josefsson  <jas@extundo.com>
79207
79208         * modules/minmax (License): Change from GPL to LGPL.
79209
79210 2004-09-23  Simon Josefsson  <jas@extundo.com>
79211
79212         * gnulib-tool (--import): Typo.
79213
79214 2004-09-23  Simon Josefsson  <jas@extundo.com>
79215
79216         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79217
79218 2004-09-22  Bruno Haible  <bruno@clisp.org>
79219
79220         * modules/*: Add 'License' field.
79221         * gnulib-tool: Accept --extract-license option.
79222         (func_get_license): New function.
79223
79224 2004-09-21  Bruno Haible  <bruno@clisp.org>
79225
79226         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79227         Reported by Simon Josefsson.
79228
79229 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79230
79231         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79232         gl_AC_TYPE_LONG_LONG.
79233
79234 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79237
79238 2004-09-18  Simon Josefsson  <jas@extundo.com>
79239         and  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79242         calls with autoreconf.  Define GL_LIB.
79243
79244 2004-09-14  Karl Berry  <karl@gnu.org>
79245
79246         * config/srclist.txt: unsync setenv.c, sigh.
79247
79248 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79251         Problem reported by Bruno Haible in:
79252         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79253
79254 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         * config/srclist.txt: Comment out argp-pvh.c.
79257
79258 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79261         in case some system header has #define'd it.  Problem reported by
79262         Soeren D. Schulze in
79263         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79264
79265 2004-09-09  Karl Berry  <karl@gnu.org>
79266
79267         * regex.[ch]: delete from the root.  These were supposed to be
79268                 synced with emacs cvs, but this has not happened for about
79269                 a year, and anyway nothing else uses emacs regex.[ch].
79270                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79271                 lib/regex[.ch] is untouched.
79272
79273 2004-09-09  Bruno Haible  <bruno@clisp.org>
79274
79275         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79276
79277 2004-09-09  Bruno Haible  <bruno@clisp.org>
79278
79279         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79280         modifications.
79281         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79282
79283 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79284
79285         * modules/xvasprintf: New file.
79286         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79287
79288 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79289
79290         * lib/xvasprintf.h: New file.
79291         * lib/xvasprintf.c: New file.
79292         * lib/xasprintf.c: New file.
79293
79294 2004-09-08  Bruno Haible  <bruno@clisp.org>
79295
79296         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79297
79298 2004-09-08  Bruno Haible  <bruno@clisp.org>
79299
79300         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79301         length is > INT_MAX.
79302         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79303         more.
79304
79305 2004-09-08  Bruno Haible  <bruno@clisp.org>
79306
79307         * lib/stdint_.h: New file, taken from GNU clisp.
79308
79309 2004-09-08  Bruno Haible  <bruno@clisp.org>
79310             Oskar Liljeblad  <oskar@osk.mine.nu>
79311
79312         * modules/stdint: New file.
79313         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79314
79315 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79316
79317         Import from coreutils.
79318         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79319         strings on unbounded length.  alloca's performance benefits aren't
79320         that important here.
79321         (V_STRDUP): Remove.
79322         (parse_with_separator): New function, with most of the internals
79323         of the old parse_user_spec.  Allow user to omit both user and group,
79324         for compatibility with FreeBSD.
79325         Clone only the user name, not the entire spec.
79326         Do not set *uid, *gid unless entirely successful.
79327         Avoid memory leak in some failing cases.
79328         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79329         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79330         (parse_user_spec): Rewrite to use parse_with_separator.
79331
79332 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * modules/userspec: Don't depend on alloca.
79335
79336 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79337
79338         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79339
79340 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79343         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79344         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79345
79346 2004-08-16  Simon Josefsson  <jas@extundo.com>
79347
79348         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79349         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79350         Add --dry-run for --import.
79351         Let user provided command line parameters override configure.ac
79352         settings.
79353
79354 2004-08-12  Simon Josefsson  <jas@extundo.com>
79355
79356         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79357         as discussed with Paul Eggert in threads rooted at
79358         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79359         and
79360         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79361         Before, the test was empty, and relied on ELIDE_CODE in source
79362         code.)
79363         (gl_PREREQ_GETOPT): New macro.
79364         (gl_GETOPT): Use them.
79365
79366 2004-08-12  Simon Josefsson  <jas@extundo.com>
79367
79368         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79369         * lib/getopt_.h: Renamed from getopt.h.
79370
79371 2004-08-12  Simon Josefsson  <jas@extundo.com>
79372
79373         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79374         Change default library name from libfoo to libgnu.
79375         Now, if you have a configure.ac that says:
79376                 gl_SOURCE_BASE(gl)
79377                 gl_M4_BASE(gl/m4)
79378                 gl_MODULES(error getopt etcetera)
79379                 gl_INIT
79380         you can import all you need by running:
79381                 ../gnulib/gnulib-tool --import
79382
79383         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79384         (Makefile.am): Rewrite, use logic from argz.
79385         (Include): Use <getopt.h> instead of "getopt.h".
79386
79387 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79388
79389         * modules/argp (Files): Add m4/unlocked-io.m4.
79390         (Depends-on): Add extensions.
79391
79392 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79395         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79396         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79397         Check for program_invocation_name, program_invocation_short_name,
79398         flockfile, funlockfile, features.h, _getopt_long_only_r.
79399
79400 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79401
79402         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79403         its complicated substitute.
79404         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79405         and program_invocation_name.
79406         (__argp_basename) [!_LIBC]: Remove; the only use was
79407         replaced by its body.
79408         (__argp_short_program_name): Change condition from
79409         !defined __argp_short_program_name to
79410         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79411         to match argp-namefrob.h.
79412         (__argp_failure): Don't assume strerror_r returns char *.
79413         * lib/argp-parse.c (N_): Define unconditionally.
79414         (argp_default_options): Fill out initializers with 0 to avoid
79415         gcc warnings.
79416
79417 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79420         getopt1.c.
79421
79422 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         Merge from coreutils.
79425
79426         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79427
79428         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79429         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79430
79431 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         Merge from coreutils.
79434
79435         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79436         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79437         for Reliant Unix 5.43.
79438
79439         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79440         (union fooround): Use uintmax_t, not long int.
79441         The rest is a merge from libc:
79442         [defined _LIBC]: Include <shlib-compat.h>.
79443         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79444
79445         * lib/settime.c (settime): Recode to avoid warning with
79446         Sun Forte C 6U2.
79447
79448         * lib/strverscmp.c: Convert to UTF-8.
79449
79450 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79453         m4/uintmax_t.m4.
79454
79455 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79456
79457         * modules/xalloc-die: New file.
79458         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
79459
79460         * modules/md5 (Files): Add m4/uint32_t.m4.
79461         * modules/sha1: Renamed from modules/sha.
79462         (Files):
79463         Rename lib/sha.h to lib/sha1.h.
79464         Rename lib/sha.c to lib/sha1.c.
79465         Rename m4/sha.m4 to m4/sha1.m4.
79466         (lib_SOURCES): Likewise.
79467         (configure.ac): Rename gl_SHA to gl_SHA1.
79468         (Include): sha.h -> sha1.h.
79469
79470 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
79473         * m4/sha1.m4: Renamed from sha.m4.
79474         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
79475
79476 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79477
79478         * lib/obstack.h (obstack_empty_p):
79479         Don't assume that chunk->contents is suitably aligned.
79480         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
79481         Likewise. Problem reported by Benno in
79482         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
79483
79484         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
79485         readable.  This could be improved further but it'd take some work.
79486
79487 2004-08-08  Simon Josefsson  <jas@extundo.com>
79488
79489         * modules/xgethostname (Depends-on): Remove exit and error (not
79490         used).
79491
79492         * modules/getpass-gnu: Add getpass.h.
79493         (Depends-on): Add stdbool.
79494         * modules/getpass: Add getpass.h.
79495
79496 2004-08-08  Simon Josefsson  <jas@extundo.com>
79497
79498         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
79499         Check getpass declaration.
79500
79501 2004-08-08  Simon Josefsson  <jas@extundo.com>
79502
79503         * lib/xgethostname.c: Don't include error.h (not used).
79504
79505         * lib/getpass.h: Add.
79506         * lib/getpass.c: Include getpass.h first.
79507
79508 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * lib/xalloc-die.c: New file.
79511         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
79512         All uses removed.
79513         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
79514         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
79515         xalloc-die.c.
79516         (_, N_, xalloc_die): Move to xalloc-die.c.
79517         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
79518         so that we needn't mess with xalloc_msg_memory_exhausted.
79519
79520         * lib/sha1.h: Renamed from sha.h.
79521         (SHA1_H): Renamed from _SHA_H.
79522         (sha1_ctx): Renamed from sha_ctx.
79523         (sha1_init_ctx): Renamed from sha_init_ctx.
79524         (sha1_process_block): Renamed from sha_process_block.
79525         (sha1_process_bytes): Renamed from sha_process_bytes.
79526         (sha1_finish_ctx): Renamed from sha_finish_ctx.
79527         (sha1_read_ctx): Renamed from sha_read_ctx.
79528         (sha1_stream): Renamed from sha_stream.
79529         (sha1_buffer): Renamed from sha_buffer.
79530         * lib/sha1.c: Likewise; renamed from sha.c.
79531         Do not include <sys/types.h>.
79532         Include <stddef.h> rather than <stdlib.h>.
79533
79534 2004-08-08  Bruno Haible  <bruno@clisp.org>
79535
79536         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
79537         FILESYSTEM_PREFIX_LEN.
79538         * lib/progreloc.c: Likewise.
79539         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
79540
79541 2004-08-06  Simon Josefsson  <jas@extundo.com>
79542
79543         * modules/progname (Depends-on): Don't depend on stdbool.
79544
79545 2004-08-06  Simon Josefsson  <jas@extundo.com>
79546
79547         * modules/getsubopt: New file.
79548         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79549         getsubopt.
79550
79551 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79552
79553         More merge from coreutils.
79554
79555         * m4/utimens.m4, m4/utimecmp.m4: New files.
79556         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
79557         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
79558         prereq.m4, sha.m4: Import changes from coreutils.
79559
79560 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         More merge from coreutils.
79563         * modules/raise, modules/readtokens0, modules/utimens:
79564         * modules/utimecmp, module/xnanosleep: New files.
79565         * modules/strftime: Add lib/strftime.h.
79566         Change include from <time.h> to "strftime.h".
79567         * modules/yesno: Add lib/yesno.h.
79568         * modules/backupfile: Remove lib/addext.c.
79569         * modules/euidaccess: Add stat-macros.h.
79570         * modules/canonicalize, modules/euidaccess,
79571         modules/filemode, modules/lchown, modules/makepath,
79572         modules/rmdir, modules/stat: Likewise.
79573
79574 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
79575
79576         Merge from tar.
79577         * lib/argp-help.c (make_hol, hol_append): Don't assume that
79578         SIZE_MAX is a valid preprocessor constant.
79579         (__argp_basename): Change from "#ifndef _LIBC"
79580         to "#ifndef __argp_short_program_name", so that
79581         we don't compile these functions for tar.
79582
79583         More merges from coreutils.
79584         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
79585         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
79586         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
79587         * lib/addext.c: Remove; no longer needed.
79588         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
79589         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
79590         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
79591         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
79592         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
79593         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
79594         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
79595         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
79596         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
79597         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79598         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
79599         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
79600         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
79601         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
79602         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
79603         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
79604         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
79605         Import changes from coreutils.
79606
79607 2004-08-05  Simon Josefsson  <jas@extundo.com>
79608
79609         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
79610
79611 2004-08-05  Simon Josefsson  <jas@extundo.com>
79612
79613         * m4/getsubopt.m4: New file.
79614
79615 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79616
79617         Merge from coreutils.
79618
79619         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
79620         * m4/getcwd-path-max.m4: New files.
79621
79622         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
79623         FILESYSTEM_PREFIX_LEN ->
79624         FILE_SYSTEM_PREFIX_LEN.
79625         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
79626         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
79627         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
79628         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
79629
79630         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
79631         prerequisite modules now handle the DOS stuff.
79632         Don't check for unistd.h.
79633
79634 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         Merge from coreutils.
79637
79638         * lib/.gdb-history: Remove; this doesn't belong here.
79639
79640         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
79641         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
79642         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
79643         * lib/getcwd.c: New files.
79644
79645         * lib/dirname.h: Include <stdbool.h>.
79646         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
79647         for consistency with POSIX terminology.  All uses changed.
79648         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
79649         (strip_trailing_slashes): Use bool for booleans.
79650         * lib/stripslash.c (strip_trailing_slashes): Likewise.
79651
79652         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
79653         sometimes returns a positive errno value even when it succeeds.
79654         (print_errno_message) [!LIBC]: Fall back on strerror if
79655         __strerror_r fails.
79656
79657         * lib/path-concat.c (mempcpy): Don't define if a system header defines
79658         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
79659         (longest_relative_suffix): New function.
79660         (path_concat): Use it.  Assume first argument is not NULL.
79661         Port to DOS.  Omit redundant separators.
79662         Report an error instead of returning NULL.
79663         Use mempcpy instead of memcpy.
79664         (xpath_concat): Remove: not declared or used.
79665
79666         * lib/same.h: Include <stdbool.h>
79667         (same_name): Return bool, not int.
79668         * lib/same.c (same_name): Likewise.
79669         (errno): Don't declare; we assume C89 or better now.
79670
79671         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
79672         if not already defined.
79673
79674         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
79675         * lib/dup-safer.c (errno): Likewise.
79676
79677 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
79678
79679         Merge from coreutils.
79680         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
79681         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
79682         * modules/path-concat: Don't depend on strdup.
79683
79684 2004-08-03  Simon Josefsson  <jas@extundo.com>
79685
79686         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
79687         * lib/progname.h: Don't include stdbool.h.
79688
79689 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
79692         * MODULES.html.sh (func_all_modules): Remove fatal.
79693
79694 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
79697
79698 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
79701         working.
79702
79703 2004-08-02  Simon Josefsson  <jas@extundo.com>
79704
79705         * lib/getsubopt.h: New file, with comments from Bruno Haible.
79706         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
79707         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
79708
79709 2004-08-01  Simon Josefsson  <jas@extundo.com>
79710
79711         * lib/xgetdomainname.c: Include stdlib.h, for free().
79712
79713 2004-07-19  Bruno Haible  <bruno@clisp.org>
79714
79715         * MODULES.html.sh (func_all_modules): Add dummy.
79716
79717 2004-07-16  Simon Josefsson  <jas@extundo.com>
79718
79719         * modules/dummy: New file.
79720
79721 2004-07-16  Simon Josefsson  <jas@extundo.com>
79722
79723         * lib/dummy.c: New file.
79724
79725 2004-07-16  Bruno Haible  <bruno@clisp.org>
79726
79727         * lib/backupfile.h: Add extern "C" for C++.
79728         * lib/closeout.h: Likewise.
79729         * lib/copy-file.h: Likewise.
79730         * lib/findprog.h: Likewise.
79731         * lib/full-write.h: Likewise.
79732         * lib/pathname.h: Likewise.
79733         * lib/progname.h: Likewise.
79734         * lib/stpcpy.h: Likewise.
79735         * lib/stpncpy.h: Likewise.
79736         * lib/strcase.h: Likewise.
79737         * lib/strstr.h: Likewise.
79738         * lib/xalloc.h: Likewise.
79739
79740         * lib/mbswidth.h: Add extern "C" for C++.
79741         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
79742
79743 2004-07-13  Robert Millan  <robertmh@gnu.org>
79744
79745         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
79746
79747 2004-07-09  Simon Josefsson  <jas@extundo.com>
79748
79749         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
79750         failed without this.)
79751
79752 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79753
79754         * modules/chown (Files): Add lib/fchown-stub.c, since
79755         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
79756
79757 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         * lib/fchown-stub.c: New file.
79760
79761 2004-06-24  Jim Meyering  <jim@meyering.net>
79762
79763         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
79764
79765 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79766
79767         * modules/argz: Omit "#include".
79768
79769         * MODULES.html.sh (func_all_modules): Add calloc, to match
79770         2004-06-01 addition of calloc module.
79771
79772 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * m4/argz.m4: New file, which is autoupdated from libtool.
79775
79776 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
79779         libtool.
79780
79781 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * config/srclist-update: Don't insist on "USA." before the
79784         close-comment, as libtool omits the period and puts the */ on a
79785         separate line.
79786         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
79787         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
79788
79789 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
79790
79791         * modules/argz: New file.
79792         * MODULES.html.sh (func_all_modules): Add argz.
79793
79794 2004-06-12  Jim Meyering  <jim@meyering.net>
79795         and  Paul Eggert  <eggert@cs.ucla.edu>
79796
79797         * modules/hash (Files): Add lib/xalloc.h.
79798         * modules/pipe (Depends-on): Add wait-process.
79799         * modules/stat (Depends-on): Add xalloc.
79800         * modules/userspec (Files): Add lib/userspec.h.
79801         * modules/xstrto
79802
79803         Upgrade from gettext-0.13.
79804         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
79805         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
79806         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
79807
79808 2004-06-10  Jim Meyering  <jim@meyering.net>
79809
79810         * lib/calloc.c: New file.
79811
79812 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * lib/getdate.y (yylex): Allow space between sign and number.
79815         Problem reported by Dan Jacobson.
79816
79817 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79818
79819         Merge from coreutils CVS.
79820
79821         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
79822         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
79823         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
79824         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
79825         xstrtol.m4: Fix copyright date and/or serial number.
79826
79827         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
79828         See if we need an fchown replacement.
79829         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
79830         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
79831         and use the replacement function if we detect either defect.
79832
79833         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
79834         gl_UTIMECMP.
79835
79836 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
79837         and  Jim Meyering  <jim@meyering.net>
79838
79839         Merge from coreutils CVS.
79840
79841         * lib/stat-macros.h: New file, with contents from file-type.h
79842         and coreutils' system.h.
79843         * lib/file-type.c: Include "stat-macros.h".
79844         * lib/file-type.h (file_type): Move all macro definitions to new file,
79845         stat-macros.h.
79846
79847         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
79848         Wrap old code with this conditional.
79849         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
79850         function that does not dereference symlinks.
79851         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
79852
79853         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
79854         dependency problems.
79855         (xreadlink): Accept new arg SIZE, for efficiency.
79856         All decls and uses changed.
79857         * lib/xreadlink.h: Include <stddef.h>, for size_t.
79858
79859         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
79860         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
79861
79862         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
79863         sysexits.h.
79864
79865 2004-06-01  Jim Meyering  <jim@meyering.net>
79866
79867         * m4/calloc.m4: New file.
79868
79869 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
79870
79871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
79872         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
79873         Also, fix a typo in a diagnostic.
79874
79875 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
79878         or AC_FUNC_REALLOC.
79879
79880 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
79883         macros to be defined.
79884         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
79885         the allocator returns NULL because the requested size is zero.
79886
79887 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
79890         var.  Add comment explaining why libc still defines it.  This
79891         merges the following patch from glibc:
79892         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
79893
79894 2004-05-20  Andreas Schwab  <schwab@suse.de>
79895
79896         * m4/free.m4: Replace free if it not known to work, not the other
79897         way round.
79898
79899 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
79902         present in glibc since revision 1.1 of this file.
79903         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
79904         obstack_alignment_mask, obstack_alloc, obstack_base,
79905         obstack_blank, obstack_blank_fast, obstack_chunk_size,
79906         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
79907         obstack_grow0, obstack_init, obstack_int_grow,
79908         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
79909         obstack_next_free, obstack_object_size, obstack_ptr_grow,
79910         obstack_ptr_grow_fast, obstack_room): Remove declarations of
79911         nonexistent functions.
79912
79913 2004-05-18  Karl Berry  <karl@gnu.org>
79914
79915         * config/srclist.txt: break link for vasnprintf.c.
79916
79917 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         Port obstack to the AS/400, where pointers are 16 bytes wide and
79920         you cannot cast an integer to a valid pointer.  This patch is
79921         currently waiting to be integrated into glibc; see
79922         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
79923
79924         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
79925         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
79926         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
79927         (struct obstack): temp member is now a union of a pointer and
79928         an integer, instead of an integer.  All integer uses changed.
79929         This does not affect the physical layout of struct obstack,
79930         except on hosts (like the AS/400) where the size or alignment of
79931         void * is greater than that of ptrdiff_t.
79932         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
79933         __STDC__)]: Store temporary in pointer member of union, not
79934         integer member.
79935         * lib/obstack.c: Include <stddef.h>, for offsetof.
79936         (struct fooalign): Remove; it doesn't need a name.
79937         (union fooround): Change double to long double, and add void *.
79938         (DEFAULT_ALIGNMENT): Use offsetof to compute.
79939         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
79940         not a macro.  Hence the values are always int; so remove all
79941         casts-to-int in uses.
79942
79943 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
79944
79945         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
79946         we can get this patch merged into glibc.
79947
79948 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79949             Paul Eggert  <eggert@cs.ucla.edu>
79950
79951         * m4/argp: Depend on alloca.
79952
79953 2004-05-17  Derek R. Price  <derek@ximbiot.com>
79954             Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
79957         freecoding.
79958
79959 2004-05-17  Bruno Haible  <bruno@clisp.org>
79960
79961         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
79962         precision that consists of a '.' followed by an empty digit string.
79963         Patch by Tor Lillqvist <tml@iki.fi>.
79964
79965 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
79968         for backward compatibility with older code.  We need our own
79969         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
79970         it under some other name, and our alloca.h will define it.
79971
79972 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
79973             Derek Price  <derek@ximbiot.com>
79974
79975         * lib/alloca.c: Include <alloca.h>, to get our interface.
79976         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
79977         include <alloca.h> first.  Use C89 prototype for alloca; this
79978         requires including <stddef.h> for size_t.  Use extern "C" if C++.
79979         Use #elif for simplicity, since we can assume C89 now.
79980         Don't try to source the system alloca.h since it will not be found
79981         and to prevent recursively including its replacement.
79982         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
79983         * lib/regex.c: Likewise.
79984
79985 2004-05-16  Derek Price  <derek@ximbiot.com>
79986             Paul Eggert  <eggert@cs.ucla.edu>
79987
79988         getline cleanup.  This changes the getndelim2 API: both order of
79989         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
79990         no delimiter).
79991
79992         * lib/getline.c: Don't include stddef.h or stdio.h, since our
79993         interface does that.
79994         (getline): Always use getdelim, so that we don't have two
79995         copies of this code.
79996         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
79997         if available.
79998         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
79999         (GETNDELIM2_MAXIMUM): New macro.
80000         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80001         instead of the old practice of delim2==0.  All callers changed.
80002         Return -1 on overflow, instead of returning junk.
80003         Do not set *linesize unless allocation succeeds.
80004         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80005         that we include sys/types.h.
80006         * lib/getnline.h: Likewise.
80007         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80008         (getndelim2): Reorder arguments.
80009         * lib/getnline.c (getnline, getndelim):
80010         Don't discard the NMAX argument.
80011         (getnline): Invoke getndelim, to avoid code duplication.
80012         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80013         of (size_t) -1 by callers of the getnline family.
80014
80015 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80018         Check for gettimeofday.
80019         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80020         Check for settimeofday, stime.
80021
80022 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/nanosleep.c (suspended): Change its type from int to
80025         sig_atomic_t volatile.
80026         (first_call): Make it private to rpl_nanosleep, and have it
80027         be zero initially as that's a bit faster.
80028         (my_usleep): Round up fractional times instead of truncating them,
80029         as this is the usual meaning for 'sleep'.
80030
80031         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80032         doesn't work.
80033         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80034         (ENOSYS): Define if not defined.
80035         (settime): Fall back on stime if it exists and settimeofday fails.
80036         But don't bother with fallbacks if a method fails with errno == EPERM.
80037
80038 2004-05-11  Jim Meyering  <jim@meyering.net>
80039
80040         Prior to this change, the save_cwd caller required read access to the
80041         current directory on most systems (ones with the fchdir function).
80042
80043         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80044         fails, try write-only, and finally, resort to using xgetcwd.
80045
80046 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * lib/obstack.c, obstack.h: Import changes from libc.
80049
80050 2004-04-28  Bruno Haible  <bruno@clisp.org>
80051
80052         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80053         also implicitly appends .exe to executables.
80054         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80055         accepts Windows pathnames.
80056         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80057         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80058         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80059         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80060         Reported by Derek Robert Price <derek@ximbiot.com>.
80061
80062 2004-04-21  Karl Berry  <karl@gnu.org>
80063
80064         * config/srclist.txt (localcharset.c): break sync.
80065
80066 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80067
80068         * m4/host-os.m4: Add a copyright notice.
80069
80070 2004-04-20  Jim Meyering  <jim@meyering.net>
80071
80072         Change UTILS_ to gl_ in AC_DEFINE'd names.
80073         Change utils_- and jm_-prefixed variables, too.
80074         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80075         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80076         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80077
80078         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80079         Don't emit trailing blanks.
80080         Also rename jm_-prefixed variables to have gl_ prefix.
80081
80082         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80083         Also rename jm_-prefixed variables to have gl_ prefix.
80084
80085         * m4/jm-macros.m4: Reflect the renamings.
80086         * m4/prereq.m4: Likewise.
80087
80088 2004-04-20  Jim Meyering  <jim@meyering.net>
80089
80090         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80091         memory.
80092
80093 2004-04-20  Jim Meyering  <jim@meyering.net>
80094             Bruno Haible  <bruno@clisp.org>
80095
80096         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80097         memory when realloc fails.
80098
80099 2004-04-19  Jim Meyering  <jim@meyering.net>
80100
80101         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80102         now that readutmp.c may call `free (0)'.
80103
80104 2004-04-19  Bruno Haible  <bruno@clisp.org>
80105
80106         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80107         * m4/inttypes_h.m4: Likewise.
80108         * m4/stdint_h.m4: Likewise.
80109         * m4/intmax_t.m4: Likewise.
80110         * m4/uintmax_t.m4: Likewise.
80111
80112 2004-04-18  Jim Meyering  <jim@meyering.net>
80113
80114         * m4/prereq.m4: Don't forbid jm_ prefix.
80115
80116         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80117         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80118         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80119         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80120         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80121         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80122         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80123         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80124         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80125         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80126         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80127         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80128         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80129         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80130         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80131         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80132         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80133         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80134         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80135
80136 2004-04-18  Jim Meyering  <jim@meyering.net>
80137
80138         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80139         failure, don't leak memory and do call END_UTMP_ENT.
80140
80141 2004-04-16  Jim Meyering  <jim@meyering.net>
80142
80143         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80144         coreutils' stat program.
80145         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80146
80147 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80148
80149         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80150         C89.
80151         (CHAR_BIT): Remove, since we assume C89.
80152         Include <stdint.h> if available, as per current Autoconf CVS advice.
80153
80154 2004-03-31  Jim Meyering  <jim@meyering.net>
80155
80156         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80157         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80158         * m4/xalloc.m4: Likewise.
80159
80160 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80161
80162         Merge from coreutils.
80163
80164         * m4/inttostr.m4: New file.
80165         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80166         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80167         Require gl_CLOCK_TIME.
80168         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80169
80170 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80171
80172         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80173         not bool, to be more consistent with Unix conventions.
80174         Suggested by Bruno Haible.
80175
80176         Merge from coreutils.
80177
80178         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80179         * lib/umaxtostr.c: New files.
80180
80181         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80182         the usual <time.h> dance.
80183         (get_date): Change signature to support fractional time stamps.
80184         All callers changed.
80185         * lib/getdate.y: Include "getdate.h" first, as we can now
80186         assume C89 and don't need to worry about 'const'.
80187         Similarly, include "unlocked-io.h" near start, not in middle.
80188         Include <limits.h>.
80189         (textint.value): Use long int rather than int.
80190         (textint.digits): Use size_t rather than int.
80191         (BILLION, LOG10_BILLION): New constants.
80192         (parser_control): New member rel_ns.  Members day_ordinal,
80193         time_zone, month, day, hour, minutes, rel_year, rel_month,
80194         rel_day, rel_hour, rel_minutes, rel_seconds
80195         are now long int, not int.  Member seconds is now struct timespec,
80196         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80197         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80198         not int.
80199         (%union.intval): Now long int, not int.
80200         New member timespec.
80201         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80202         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80203         (spec): Now is a timespec or an item list.
80204         (timespec, items): New nonterminals.
80205         (time, rel, relunit, number, get_date):
80206         Add support for fractional seconds.
80207         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80208         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80209         (to_hour): First arg is now long int, not int.
80210         (to_year): Returns long int, not int.
80211         Don't treat year -70 like 70.
80212         (tm_diff): Returns long int, not int.
80213         (lookup_word): Use bool instead of int when appropriate.
80214         (yylex): Use size_t for count, not int.
80215         Detect overflow when parsing large integer constants.
80216         Add support for fractions.
80217         (get_date): Make pointers 'const' if possible.
80218         Use more-portable code to detect integer overflow.
80219         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80220         Don't use ctime; it's not reliable if the year has >4 digits.
80221
80222         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80223         This is for compatibility with BSD.
80224
80225         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80226         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80227         From coreutils' system.h.
80228
80229         * lib/userspec.c: Don't include "posixver.h".
80230         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80231         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80232         compatible extension.  Simplify code by removing a boolean int
80233         that was always nonzero if a string was nonnull.
80234
80235 2004-03-30  Jim Meyering  <jim@meyering.net>
80236
80237         Merge from coreutils.
80238
80239         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80240         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80241         on some systems one must include <grp.h> before it.
80242         Reported by Christian Krackowizer.
80243
80244 2004-03-30  Jim Meyering  <jim@meyering.net>
80245
80246         Merge from coreutils.
80247
80248         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80249
80250         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80251         an empty input stream.
80252
80253         * lib/readtokens.c: Include <stdbool.h>.
80254         (readtoken): Use `size_t' rather than int/long.
80255         All callers adjusted.
80256         Use `bool' rather than `int' where appropriate.
80257         Use memset rather than an explicit loop.
80258         Use x2nrealloc rather than xrealloc.
80259         Allow the use of `\0' as a delimiter.
80260         (readtokens): Likewise.
80261         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80262
80263 2004-03-30  Jim Meyering  <jim@meyering.net>
80264
80265         * m4/realloc.m4: Remove file, since now it does no more than
80266         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80267         the `configure.ac' section of module/realloc.
80268         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80269
80270 2004-03-30  Bruno Haible  <bruno@clisp.org>
80271
80272         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80273         nonnull.
80274
80275 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80276
80277         Merge changes to getloadavg.c from coreutils and Emacs.
80278
80279         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80280         Define to an expression, not to the empty string.
80281         Include cloexec.h and xalloc.h.
80282         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80283         Use set_cloexec_flag rather than rolling our own.
80284         * lib/cloexec.c, lib/cloexec.h: New files.
80285
80286 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80287
80288         * m4/cloexec.m4: New file.
80289
80290 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80291
80292         * lib/getopt.h: Sync with libc CVS.
80293
80294 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80295             Bruno Haible  <bruno@clisp.org>
80296
80297         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80298         mbswidth.
80299
80300 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80301             Bruno Haible  <bruno@clisp.org>
80302
80303         * lib/mbswidth.h: Include <wchar.h> only if
80304         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80305         <wchar.h>.
80306         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80307
80308 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80309
80310         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80311         Sync with libc CVS.
80312         * lib/getopt_int.h: New file, also synced from libc.
80313
80314 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80315
80316         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80317         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80318         Bring back getopt.c, getopt.h, getopt1.c.
80319
80320 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80321
80322         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80323         All uses changed.  Check for sa_sigaction member; this fixes
80324         a bug first reported by Jason Andrade in
80325         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80326
80327 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80328
80329         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80330         '#if' expressions.  Unlike the code it replaces, it does not
80331         depend on (defined _SC_PAGESIZE).  However, it does depend on
80332         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80333         first reported by Jason Andrade in
80334         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80335
80336 2004-02-25  Simon Josefsson  <jas@extundo.com>
80337
80338         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80339
80340 2004-02-25  Simon Josefsson  <jas@extundo.com>
80341
80342         * lib/strdup.h: New file.
80343         * lib/strdup.c: Include it.
80344         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80345         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80346
80347 2004-02-23  Karl Berry  <karl@gnu.org>
80348
80349         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80350         (from fencepost.gnu.org:/gd/gnuorg).
80351
80352 2004-02-23  Karl Berry  <karl@gnu.org>
80353
80354         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80355         * config/srclist.txt: add maintain/standards documents.
80356
80357 2004-02-18  Bruno Haible  <bruno@clisp.org>
80358
80359         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80360         Reported by Derek Robert Price <derek@ximbiot.com>.
80361
80362 2004-02-16  Karl Berry  <karl@gnu.org>
80363
80364         * config/mkinstalldirs, install-sh: update from automake.
80365
80366 2004-02-06  Karl Berry  <karl@gnu.org>
80367
80368         * m4/po.m4: update from gettext 0.14.1.
80369
80370 2004-02-06  Karl Berry  <karl@gnu.org>
80371
80372         * lib/config.charset: update from gettext 0.14.1.
80373
80374 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80375
80376         Add comments and code, prompted by suggestions from Bruno Haible
80377         for sh-quote.
80378         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80379         describing the enum quoting_style values.
80380         * lib/quotearg.c (quotearg_alloc): New function.
80381         (quotearg_buffer_restyled): Treat lone { and } as special.
80382         Treat = as special.  Work around bug with older shells
80383         that "see" a '\' that is really the 2nd byte of a multibyte char.
80384         Quote empty string with shell_quoting_style.
80385
80386 2004-02-03  Bruno Haible  <bruno@clisp.org>
80387
80388         * m4/pipe.m4: New file, from GNU gettext.
80389
80390 2004-02-03  Bruno Haible  <bruno@clisp.org>
80391
80392         * lib/pipe.h: New file, from GNU gettext.
80393         * lib/pipe.c: New file, from GNU gettext.
80394
80395 2004-01-27  Bruno Haible  <bruno@clisp.org>
80396
80397         * m4/execute.m4: New file, from GNU gettext.
80398
80399 2004-01-27  Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/execute.h: New file, from GNU gettext.
80402         * lib/execute.c: New file, from GNU gettext.
80403         * lib/w32spawn.h: New file, from GNU gettext.
80404
80405 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80406
80407         Merge from diffutils.
80408
80409         * lib/file-type.c (file_type): Add typed memory objects.
80410         * lib/file-type.h (S_TYPEISTMO): New macro.
80411
80412         * lib/c-stack.h (c_stack_action): Remove argv argument.
80413         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80414         (die): Don't calculate message unless segv_action returns.
80415         (get_stack_location, min_address_from_argv, max_address_from_argv,
80416         volatile stack_base, volatile_stack_size): Remove.
80417         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80418         that every segmentation violation is a stack overflow.  (Ouch!)
80419         See Debian bug 136249 (still outstanding) for more info about why
80420         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80421
80422 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80423
80424         Exit-status fix from coreutils.
80425
80426         Use exit_failure consistently in place of EXIT_FAILURE,
80427         so that program exit statuses are consistent on failure.
80428
80429         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80430         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80431         * lib/argmatch.h: Comment fix to match the above.
80432         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80433         Now a macro referring to exit_failure, instead of a separate
80434         variable.  Include "exitfail.h" to get it.
80435         * lib/xstrtol.h: Include "exitfail.h".
80436         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80437
80438         * lib/long-options.c (parse_long_options): Use prototype
80439         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80440         for clarity.
80441
80442 2004-01-21  Jim Meyering  <jim@meyering.net>
80443
80444         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80445         so as not to conflict with a different-sized __mktime_internal
80446         function in GNU libc.
80447         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
80448         Problem building statically-linked `ls' reported by Michael Brunnbauer.
80449
80450 2004-01-20  Karl Berry  <karl@gnu.org>
80451
80452         * config/config.guess: update from config.
80453
80454         * config/srclistvars.sh: GNUWWWLICENSES for karl.
80455
80456 2004-01-20  Bruno Haible  <bruno@clisp.org>
80457
80458         Safer stack allocation.
80459         * lib/setenv.c: Include allocsa.h.
80460         (alloca): Remove fallback definition.
80461         (freea): Remove macro.
80462         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
80463         instead of freea.
80464
80465 2004-01-20  Bruno Haible  <bruno@clisp.org>
80466
80467         * m4/eealloc.m4: New file, from GNU gettext.
80468
80469 2004-01-20  Bruno Haible  <bruno@clisp.org>
80470
80471         * m4/allocsa.m4: New file, from GNU gettext.
80472
80473 2004-01-20  Bruno Haible  <bruno@clisp.org>
80474
80475         * lib/xallocsa.h: New file, from GNU gettext.
80476         * lib/xallocsa.c: New file, from GNU gettext.
80477
80478 2004-01-20  Bruno Haible  <bruno@clisp.org>
80479
80480         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
80481
80482 2004-01-20  Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
80485         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
80486         specially.
80487
80488 2004-01-20  Bruno Haible  <bruno@clisp.org>
80489
80490         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
80491         patch.
80492
80493 2004-01-20  Bruno Haible  <bruno@clisp.org>
80494
80495         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
80496
80497 2004-01-20  Bruno Haible  <bruno@clisp.org>
80498
80499         * lib/eealloc.h: New file.
80500
80501 2004-01-20  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/binary-io.h: Avoid warnings on Cygwin.
80504
80505 2004-01-20  Bruno Haible  <bruno@clisp.org>
80506
80507         * lib/allocsa.h: New file, from GNU gettext.
80508         * lib/allocsa.c: New file, from GNU gettext.
80509
80510 2004-01-18  Karl Berry  <karl@gnu.org>
80511
80512         * doc/gpl.texi, doc/lgpl.texi: new files.
80513
80514 2004-01-18  Karl Berry  <karl@gnu.org>
80515
80516         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
80517         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
80518
80519 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80520
80521         Merge from coreutils.
80522
80523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
80524         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
80525         (gl_DEFAULT_POSIX2_VERSION): Move
80526         the documentation from 'configure' into 'config.hin',
80527         so that 'configure --help' isn't burdened by it and
80528         we don't have to worry about its formatting there.
80529         Reword the documentation so that it's more succinct
80530         and can be run together into a single paragraph.
80531         * m4/same.m4 (gl_SAME): Check for pathconf.
80532
80533 2004-01-15  Paul Eggert  <eggert@twinsun.com>
80534
80535         Merge from coreutils.
80536
80537         * lib/posixver.c: Include posixver.h.
80538
80539         * lib/same.c: Include <stdbool.h>, <limits.h>.
80540         (_POSIX_NAME_MAX): Define if not defined.
80541         (MIN): New macro.
80542         (same_name): If file names are silently truncated, report
80543         that the file names are the same if they are the same after
80544         the silent truncation.
80545
80546         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
80547         conversion function.
80548         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
80549         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
80550         longer needed.
80551
80552 2004-01-15  Jim Meyering  <jim@meyering.net>
80553
80554         Merge from coreutils.
80555
80556         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
80557         if no library is required.
80558         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
80559         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
80560         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
80561         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
80562         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
80563         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
80564         value, $ac_cv_search_crypt, if it's "none required".
80565         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
80566         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
80567         not gl_FUNC_GETLOADAVG.
80568         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
80569         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
80570
80571 2004-01-15  Jim Meyering  <jim@meyering.net>
80572
80573         Merge from coreutils.
80574
80575         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
80576         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
80577         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
80578
80579         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
80580         optional configure-time default.
80581
80582         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80583
80584         * lib/xreadlink.c (xreadlink): Correct outdated comment.
80585
80586 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
80587
80588         Merge from coreutils.
80589
80590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
80591         value, $ac_cv_search_nanosleep, if it's "none required".
80592
80593 2004-01-14  Paul Eggert  <eggert@twinsun.com>
80594
80595         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
80596         with like-named macro in fnmatch.c.
80597         (EXT): Use an internal constant instead.
80598
80599         Merge fnmatch patches from glibc.
80600         * lib/fnmatch.c (mbsinit): Remove define.
80601         Add libc_hidden_ver (__fnmatch, fnmatch).
80602         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
80603         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
80604
80605 2004-01-14  Karl Berry  <karl@gnu.org>
80606
80607         * config/install-sh: update from automake.
80608
80609 2004-01-13  Karl Berry  <karl@gnu.org>
80610
80611         * config/install-sh: update from automake.
80612
80613 2004-01-09  Karl Berry  <karl@gnu.org>
80614
80615         * config/install-sh: update from automake.
80616
80617 2004-01-05  Karl Berry  <karl@gnu.org>
80618
80619         * config/config.{sub,guess}: update from config.
80620
80621 2003-12-31  Karl Berry  <karl@gnu.org>
80622
80623         * config/depcomp: update from automake.
80624
80625 2003-12-14  Karl Berry  <karl@gnu.org>
80626
80627         * lib/config.charset: update from gettext-runtime.
80628
80629 2003-12-03  Paul Eggert  <eggert@twinsun.com>
80630
80631         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
80632         Bug reported by Alfred M. Szmidt.
80633
80634 2003-12-03  Bruno Haible  <bruno@clisp.org>
80635
80636         * m4/gettext.m4: Upgrade from gettext-0.13.
80637         * m4/po.m4: Upgrade from gettext-0.13.
80638         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
80639         * m4/intmax.m4: New file, from gettext-0.13.
80640         * m4/printf-posix.m4: New file, from gettext-0.13.
80641
80642 2003-11-29  Karl Berry  <karl@gnu.org>
80643
80644         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
80645
80646 2003-11-25  Paul Eggert  <eggert@twinsun.com>
80647             Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/printf-parse.h: Don't include sys/types.h.
80650         (ARG_NONE): New macro.
80651         (char_directive): Change type of *arg_index fields to size_t.
80652         * lib/printf-parse.c: Don't include sys/types.h.
80653         (SSIZE_MAX): Remove macro.
80654         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
80655         Remove unnecessary overflow check.
80656         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
80657         fields.
80658
80659 2003-11-25  Bruno Haible  <bruno@clisp.org>
80660
80661         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
80662
80663 2003-11-25  Bruno Haible  <bruno@clisp.org>
80664
80665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
80666         gt_TYPE_SSIZE_T.
80667
80668 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80669
80670         * modules/alloca: Remove dependency on xalloc.
80671
80672 2003-11-24  Paul Eggert  <eggert@twinsun.com>
80673
80674         * lib/alloca.c: Remove dependency on xalloc module.
80675         (xalloc_die): Remove.
80676         (memory_full) [!defined emacs]: New macro.
80677         [!defined emacs]: Don't include xalloc.h.
80678         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
80679         address arithmetic overflows.  Change datatypes a bit to avoid
80680         unnecessary casts.
80681
80682 2003-11-22  Jim Meyering  <jim@meyering.net>
80683
80684         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
80685         s/size/size_t/.
80686
80687 2003-11-21  Karl Berry  <karl@gnu.org>
80688
80689         * config/config.{sub,guess}: update from config.
80690
80691 2003-11-18  Karl Berry  <karl@gnu.org>
80692
80693         * config/config.{sub,guess}: update from config.
80694
80695         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
80696
80697 2003-11-17  Paul Eggert  <eggert@twinsun.com>
80698
80699         * README: Mention that S+T cannot overflow if S is the size of
80700         an existing object and T is sufficiently small.
80701
80702 2003-11-17  Jim Meyering  <jim@meyering.net>
80703
80704         On systems without utime and without a utimes function capable of
80705         dealing with a NULL struct utimbuf* argument, this utime replacement
80706         could -- in unusual circumstances -- leak a file descriptor.
80707         * lib/utime.c: Include <unistd.h> and <errno.h>.
80708         (utime_null): Be sure to close `fd' and to preserve errno.
80709         Reported by Geoff Collyer via Arnold Robbins.
80710
80711 2003-11-17  Bruno Haible  <bruno@clisp.org>
80712
80713         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
80714         (Depends-on): Add xsize.
80715
80716 2003-11-17  Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
80719
80720 2003-11-17  Bruno Haible  <bruno@clisp.org>
80721
80722         * lib/vasnprintf.c (alloca): Remove fallback definition.
80723         (freea): Remove definition.
80724         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
80725         Reported by Paul Eggert.
80726
80727 2003-11-16  Paul Eggert  <eggert@twinsun.com>
80728             Bruno Haible  <bruno@clisp.org>
80729
80730         Protect against address arithmetic overflow.
80731         * lib/printf-args.h: Include stddef.h.
80732         (arguments): Change type of field 'count' to size_t.
80733         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
80734         'unsigned int' where appropriate.
80735         * lib/printf-parse.h: Include sys/types.h.
80736         (char_directive): Change type of *arg_index fields to ssize_t.
80737         (char_directives): Change type of fields 'count', max_*_length to
80738         size_t.
80739         * lib/printf-parse.c: Include sys/types.h and xsize.h.
80740         (SSIZE_MAX): Define fallback value.
80741         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
80742         instead of 'int' where appropriate. Check a_allocated, d_allocated
80743         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
80744         * lib/vasnprintf.c: Include xsize.h.
80745         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
80746         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
80747         overflow. Avoid wraparound when converting a width or precision from
80748         decimal to binary.
80749
80750 2003-11-16  Bruno Haible  <bruno@clisp.org>
80751
80752         Update from GNU gettext.
80753         * lib/printf-parse.c: Generalize to it can be compiled for wide
80754         strings.
80755         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
80756         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
80757         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
80758         SNPRINTF): New macros.
80759         Don't include <alloca.h> if the file is used inside libintl.
80760         (local_wcslen): New function, for Solaris 2.5.1.
80761         (VASNPRINTF): Use it instead of wcslen.
80762
80763 2003-11-16  Bruno Haible  <bruno@clisp.org>
80764
80765         * lib/xsize.h (xmax): New function.
80766         (xsum, xsum3, xsum4): Declare as "pure" functions.
80767
80768 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80769
80770         * modules/xalloc (Files): Undo latest change, since xalloc.h
80771         no longer needs SIZE_MAX or PTRDIFF_MAX.
80772
80773 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80774
80775         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
80776         gl_PTRDIFF_MAX.
80777
80778 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80779
80780         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
80781         "return", to pacify some unknown compiler.  Problem reported
80782         by Joerg Schilling.
80783
80784 2003-11-12  Paul Eggert  <eggert@twinsun.com>
80785
80786         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
80787         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
80788         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
80789         heuristic is just as accurate as far as we know, and it removes a
80790         dependency on size_max.m4 and ptrdiff_max.m4.
80791
80792 2003-11-11  Bruno Haible  <bruno@clisp.org>
80793
80794         * modules/xsize (Files): Add m4/size_max.m4.
80795         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
80796
80797 2003-11-11  Bruno Haible  <bruno@clisp.org>
80798
80799         * m4/size_max.m4: New file.
80800         * m4/ptrdiff_max.m4: New file.
80801         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
80802         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
80803         (gl_XALLOC): Invoke it.
80804
80805 2003-11-11  Bruno Haible  <bruno@clisp.org>
80806
80807         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
80808         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
80809         defined.
80810
80811 2003-11-10  Paul Eggert  <eggert@twinsun.com>
80812
80813         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
80814         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
80815         rejected some allocations of exactly SIZE_MAX - 2 bytes.
80816         From Bruno Haible.
80817         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
80818         not (size_t) -1, since it's defined here.
80819
80820 2003-11-09  Karl Berry  <karl@gnu.org>
80821
80822         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
80823
80824 2003-11-06  Paul Eggert  <eggert@twinsun.com>
80825
80826         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
80827         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
80828         Reject sizes of exactly SIZE_MAX bytes.
80829         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
80830         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
80831
80832 2003-11-05  Bruno Haible  <bruno@clisp.org>
80833
80834         * lib/xsize.h: Include limits.h, to avoid a possible collision with
80835         SIZE_MAX defined in <limits.h> on Solaris.
80836
80837 2003-11-04  Jim Meyering  <jim@meyering.net>
80838
80839         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
80840         variable names, rather than @VAR@.
80841         * modules/poll: Likewise.
80842
80843 2003-11-04  Bruno Haible  <bruno@clisp.org>
80844
80845         * modules/xsize: New file.
80846         * modules/linebreak: Depend on xsize.
80847         * MODULES.html.sh (func_all_modules): Add xsize.
80848
80849 2003-11-04  Bruno Haible  <bruno@clisp.org>
80850
80851         * m4/xsize.m4: New file.
80852
80853 2003-11-04  Bruno Haible  <bruno@clisp.org>
80854
80855         * lib/xsize.h: New file.
80856         * lib/linebreak.c: Include xsize.h.
80857         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
80858         argument for overflow.
80859         Suggested by Paul Eggert.
80860
80861 2003-11-03  Karl Berry  <karl@gnu.org>
80862
80863         * config/config.{guess,sub}: update from config.
80864
80865 2003-11-03  Jim Meyering  <jim@meyering.net>
80866
80867         * modules/userspec (lib_SOURCES): Add userspec.h.
80868         (Include): Add "userspec.h".
80869         Improve description.
80870
80871 2003-11-03  Jim Meyering  <jim@meyering.net>
80872
80873         * lib/userspec.c: Include "userspec.h".
80874         * lib/userspec.h: New file.
80875
80876 2003-11-03  Bruno Haible  <bruno@clisp.org>
80877
80878         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
80879
80880 2003-11-03  Bruno Haible  <bruno@clisp.org>
80881
80882         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
80883         available, to avoid (extremely rare) race condition.
80884         Suggested by Paul Eggert.
80885
80886 2003-11-02  Karl Berry  <karl@gnu.org>
80887
80888         * config/srclist.txt (vasprintf.c): sync broken, sigh.
80889
80890 2003-10-31  Paul Eggert  <eggert@twinsun.com>
80891
80892         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
80893         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
80894         (read_filesystem_list): Set and use me_type_malloced.
80895         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
80896         whatever the type happens to be), for brevity and consistency.
80897         Check for size calculation overflow on Alphas running OSF/1.
80898
80899 2003-10-31  Jim Meyering  <jim@meyering.net>
80900
80901         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
80902
80903         * lib/linebuffer.c: Include <string.h> for declaration of memset.
80904
80905 2003-10-30  Paul Eggert  <eggert@twinsun.com>
80906             Bruno Haible  <bruno@clisp.org>
80907
80908         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
80909         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
80910
80911 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
80914         netbsd*-gnu*.  Suggested by Robert Millan.
80915
80916 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80917
80918         * modules/group-member: Depend on stdbool.
80919
80920 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80921
80922         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
80923
80924 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80925
80926         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
80927         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
80928         after the 'gnu' in these cases.  This fixes some bugs in the
80929         previous change, and is based on suggestions by Robert Millan.
80930
80931 2003-10-29  Paul Eggert  <eggert@twinsun.com>
80932
80933         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
80934         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
80935         no longer needed.
80936         * lib/quotearg.c (quotearg_n_options): Use it.
80937         * lib/group-member.c: Include <stdbool.h>.
80938         (free_group_info): Arg is now const *; don't free arg.
80939         (get_group_info): Now returns bool and accepts struct group_info *,
80940         rather than returning a malloc'ed struct group_info *.
80941         All uses changed.  Check for overflow in internal size calculation.
80942
80943         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
80944         rather than xmalloc/xrealloc.
80945         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
80946         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
80947         conformance bug: the old code used a pointer after freeing the
80948         storage that it addressed.
80949         * lib/hash.c (hash_initialize): Simplify the code by using
80950         xalloc_oversized rather than doing it by hand.
80951         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
80952         the buffer preserved.  Use free and xmalloc instead.
80953         * lib/quotearg.c (quotearg_n_options): Likewise.
80954         Use a simpler test for size overflow.  Don't use xalloc_oversized
80955         because unsigned int might be wider than size_t (!); this suggests
80956         that we should switch from unsigned int to size_t for slot numbers.
80957
80958 2003-10-28  Paul Eggert  <eggert@twinsun.com>
80959
80960         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
80961         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
80962         NetBSD kernels.  Requested by Richard Stallman.
80963
80964 2003-10-27  Paul Eggert  <eggert@twinsun.com>
80965
80966         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
80967         to allocate the returned structure.  Do not allocate a subarray,
80968         as x2nrealloc will do that.
80969         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
80970         instead of xnrealloc.
80971         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
80972
80973 2003-10-27  Bruno Haible  <bruno@clisp.org>
80974
80975         * lib/stdbool_.h: Better support for BeOS.
80976
80977 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80978
80979         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
80980         now uses inline.
80981
80982 2003-10-26  Paul Eggert  <eggert@twinsun.com>
80983
80984         * lib/xalloc.h (xalloc_oversized): New static inline function, for
80985         callers that want to do their own size-overflow checking.  Include
80986         <stdbool.h>, since xalloc_oversized returns bool.
80987         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
80988         to use xalloc_oversized.
80989
80990         Add two functions x2realloc, x2nrealloc, for programs that grow
80991         arrays dynamically by doubling their sizes.
80992         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
80993         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
80994         New functions.
80995
80996         Port to C99 semantics for 'inline' of external functions.
80997         Bug reported by Bruno Haible.
80998         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
80999         with the old contents of xnmalloc.
81000         (xnmalloc, xmalloc): Use it.
81001         (xnrealloc_inline): New static inline function,
81002         with the old contents of xnrealloc.
81003         (xnrealloc, xrealloc): Use it.
81004
81005         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81006         that.
81007
81008 2003-10-26  Karl Berry  <karl@gnu.org>
81009
81010         * config/srclist.txt (COPYING.DOC): no longer available from
81011         /gd/gnuorg; don't know where the ultimate source is.
81012
81013 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81014
81015         Fix several address-calculation bugs in the hash modules,
81016         plus some minor code cleanup.
81017
81018         * lib/hash.h: Include <stdbool.h>, for bool.
81019         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81020         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81021         hash_get_n_entries, hash_get_max_bucket_length,
81022         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81023         hash_rehash): Use size_t rather than unsigned.
81024         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81025         hash_get_n_buckets_used, hash_get_n_entries,
81026         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81027         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81028         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81029         Likewise.
81030         (SIZE_MAX): Define if not defined.
81031         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81032         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81033         hash_print):
81034         Use const * when possible.
81035         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81036         (check_tuning): Fix bug: if tuning parameters were very close to
81037         0 or 1, rounding errors could have caused subscript violations.
81038         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81039         (hash_initialize): Add 'fail:' label
81040         to free table and return NULL, and use it to simplify code.
81041         Use calloc rather than clearing the storage ourself.
81042         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81043         buffer size calculations.
81044         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81045         Include <stddef.h>, for size_t.
81046         * lib/hash-pjw.c (hash_pjw): Likewise.
81047         Switch to method described by Bruno Haible.
81048         Include <limits.h>, for CHAR_BIT.
81049         (SIZE_BITS): New macro.
81050
81051 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81052
81053         * m4/getline.m4 (AM_FUNC_GETLINE):
81054         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81055         hosts.  Problem reported by Derek Robert Price in
81056         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81057         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81058         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81059
81060 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81061
81062         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81063         ceiling the allocation at NMAX bytes rather than silently
81064         discarding input bytes before NMAX is reached.  This makes
81065         a difference only if NMAX exceeds SIZE_MAX / 2.
81066
81067         * lib/obstack.c: Merge from glibc.
81068         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81069         Add libc_hidden_def (_obstack_newchunk).
81070         (_obstack_free) [! defined _LIBC]: Remove.
81071         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81072         a clone of the function body.
81073         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81074         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81075
81076         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81077         glibc.
81078         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81079         arg to memcpy.
81080
81081         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81082         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81083         Don't use lvalue casts, as GCC plans to remove support for them
81084         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81085         was also present in the non-GCC version, indicating that this
81086         code had always been buggy and had never been widely used.
81087         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81088         Use the fast variant of each macro, rather than copying the
81089         definiens of the fast variant; that way, we'll be more likely to
81090         catch future bugs in the fast variants.
81091
81092 2003-10-20  Bruno Haible  <bruno@clisp.org>
81093
81094         * modules/wait-process: New file.
81095         * MODULES.html.sh (func_all_modules): Add wait-process.
81096
81097 2003-10-20  Bruno Haible  <bruno@clisp.org>
81098
81099         * m4/wait-process.m4: New file.
81100
81101 2003-10-20  Bruno Haible  <bruno@clisp.org>
81102
81103         * lib/wait-process.h: New file, from GNU gettext.
81104         * lib/wait-process.c: New file, from GNU gettext.
81105
81106 2003-10-19  Jim Meyering  <jim@meyering.net>
81107
81108         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81109         HPUX 10.20.
81110
81111 2003-10-18  Karl Berry  <karl@gnu.org>
81112
81113         * config/config.guess: update from config.
81114
81115 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81116
81117         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81118         (getgroups): First arg is int, not size_t.
81119         Don't let 'free' mangle errno.
81120
81121 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81122
81123         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81124
81125 2003-10-16  Karl Berry  <karl@gnu.org>
81126
81127         * config/config.{guess,sub}: update from config.
81128
81129 2003-10-16  Jim Meyering  <jim@meyering.net>
81130
81131         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81132         memcpy.
81133
81134 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81135
81136         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81137         (SIZE_MAX): Remove.
81138         (new_exclude, add_exclude_file): Initial size no longer needs to
81139         be a power of 2.
81140         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81141         our own address arithmetic overflow checking.
81142
81143         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81144         (fnmatch): Do not alloca more than 2000 wide characters;
81145         instead, use malloc for large buffers.
81146         Check for address arithmetic overflow, and return -1
81147         with errno set to ENOMEM in that case.
81148         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81149         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81150         instead, return -1.  Check for address arithmetic overflow.
81151
81152 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81153
81154         Handle invalid suffixes and overflow independently, so that
81155         callers can treat them independently as needed.  Fix some bugs in
81156         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81157         suffix for a human-readable blocksize.  The major caller-visible
81158         change is the addition of a new
81159         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81160         that both overflow and suffix chars were found.
81161
81162         * lib/human.c (humblock): Don't check separately for invalid suffix
81163         char; that is xstrtoumax's job (now that its bug is fixed).
81164         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81165         INTMAX_MAX]: New macros.
81166         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81167         TYPE_MAXIMUM): New macros.
81168         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81169         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81170         if overflow occurs, as it's what __strtol does and it's more useful
81171         in practice.
81172         (__xstrtol): If __strtol reports some error other than ERANGE,
81173         reflect it to the caller as LONGINT_INVALID.  If it reports
81174         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81175         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81176         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81177         value.
81178         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81179         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81180         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81181         [defined UINTMAX_MAX]: New macros.
81182
81183 2003-10-14  Bruno Haible  <bruno@clisp.org>
81184
81185         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81186
81187 2003-10-14  Bruno Haible  <bruno@clisp.org>
81188
81189         * m4/sig_atomic_t: New file, from GNU gettext.
81190         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81191
81192 2003-10-14  Bruno Haible  <bruno@clisp.org>
81193
81194         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81195         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81196         Also use volatile where needed.
81197
81198 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81199
81200         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81201         Change maintainer from Bruno Haible to 'all'.
81202
81203 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81204
81205         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81206
81207 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81208
81209         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81210         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81211         and define in terms of the other primitives.
81212         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81213         (SIZE_MAX): Define if not already defined.
81214         (array_size_overflow): New function.
81215         (xalloc_die): Abort instead of exiting if 'error' returns.
81216         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81217         (xmalloc, xrealloc): Use them.
81218         (xcalloc): Check for address arithmetic overflow.
81219         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81220         a bit faster than strcpy.
81221
81222 2003-10-10  Simon Josefsson  <jas@extundo.com>
81223
81224         * modules/argp (Depends-on): Add restrict and strcase.
81225
81226 2003-10-10  Simon Josefsson  <jas@extundo.com>
81227
81228         * m4/argp.m4: Add AC_C_INLINE.
81229
81230 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81231
81232         Merge getpass from libc, plus a few fixes.
81233
81234         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81235         Include <stdbool.h>.
81236         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81237         __fsetlocking to empty.
81238         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81239         do include <bits/libc-lock.h>.
81240         Do not include <fcntl.h>; not needed.
81241         [_LIBC]: Include <wchar.h>.
81242         (NOTCANCEL_MODE): New macro.
81243         (flockfile, funlockfile) [_LIBC]: New macros.
81244         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81245         [!_LIBC]: New macros.
81246         (call_fclose): New function.
81247         (getpass): Use it.  Save tty stream separately; this simplifies the
81248         code and makes it more reliable if stdin happens to equal stdout.
81249         Invoke __fsetlocking on tty.
81250         Handle thread cancellation if needed.
81251         Namespace cleanup (use __tcgetattr, __getline).
81252         Use bool for Booleans.
81253         [USE_IN_LIBIO]: Handle wide streams.
81254         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81255         stream might go where.
81256
81257         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81258         doesn't have to include <stdio.h> before us.
81259         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81260         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81261         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81262         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81263         if not declared, so that we can use getpass.c code from libc without
81264         rewriting it.
81265         (flockfile, ftrylockfile, funlockfile): New macros.
81266
81267 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81268
81269         * modules/getpass: Depend on stdbool.
81270
81271 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81272
81273         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81274
81275 2003-10-07  Karl Berry  <karl@gnu.org>
81276
81277         * config/config.{guess,sub}: update from config.
81278
81279 2003-10-06  Jim Meyering  <jim@meyering.net>
81280             Bruno Haible  <bruno@clisp.org>
81281
81282         This lets translators provide better translations for the
81283         "Written by ..." part of --version output.
81284         * lib/version-etc.h: Include stdarg.h.
81285         (version_etc_copyright): Declare as readonly.
81286         (version_etc): Make this function variadic with a NULL-terminated list
81287         of author name strings.
81288         (version_etc_va): New declaration.
81289         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81290         (version_etc_copyright): Declare as readonly.
81291         (version_etc_va): New function. Provide a different translatable string
81292         for each possible number of authors < 10. Abbreviate when there are 10
81293         authors or more.
81294         (version_etc): Make this function variadic. Call version_etc_va.
81295         Suggestion from Gary V. Vaughan.
81296
81297         * lib/long-options.h (parse_long_options): Change prototype: the
81298         authors string is moved to the end and becomes variadic.
81299         * lib/long-options.c: Include stdarg.h.
81300         (parse_long_options): Make this function variadic, too.
81301         Call version_etc_va, not version_etc.
81302
81303 2003-10-06  Bruno Haible  <bruno@clisp.org>
81304
81305         * modules/version-etc-2: Remove file.
81306         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81307
81308 2003-10-06  Bruno Haible  <bruno@clisp.org>
81309
81310         * modules/fatal-signal: New file.
81311         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81312
81313 2003-10-06  Bruno Haible  <bruno@clisp.org>
81314
81315         * m4/fatal-signal.m4: New file.
81316         * m4/signalblocking.m4: New file, from GNU gettext.
81317
81318 2003-10-06  Bruno Haible  <bruno@clisp.org>
81319
81320         * lib/version-etc-2.h: Remove file.
81321         * lib/version-etc-2.c: Remove file.
81322
81323 2003-10-06  Bruno Haible  <bruno@clisp.org>
81324
81325         * lib/fatal-signal.h: New file, from GNU gettext.
81326         * lib/fatal-signal.c: New file, from GNU gettext.
81327
81328 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81329
81330         * README: Rework advice for preventing empty .o files.
81331         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81332         not <sys/types.h>.
81333
81334 2003-10-04  Karl Berry  <karl@gnu.org>
81335
81336         * lib/argp*: update from libc.
81337
81338 2003-10-04  Karl Berry  <karl@gnu.org>
81339
81340         * config/config.{guess,sub}: update from config.
81341
81342 2003-10-02  Bruno Haible  <bruno@clisp.org>
81343
81344         * modules/lchown (Include): Add lchown.h.
81345         * modules/time_r (Include): Use "..." syntax.
81346         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81347
81348 2003-10-01  Simon Josefsson  <jas@extundo.com>
81349
81350         * MODULES.html.sh (func_all_modules): Move gethostname from section
81351         'based on' to section 'lacking' POSIX:2001.
81352
81353 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81354
81355         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81356         to output mode on the same stream.
81357
81358 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81359
81360         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81361         Fix arg typo in previous patch.
81362
81363 2003-09-28  Jim Meyering  <jim@meyering.net>
81364
81365         * lib/error.c: Correct cpp indentation.
81366
81367 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81368
81369         * modules/free: New file.
81370
81371 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81372
81373         * m4/free.m4: New file.
81374
81375 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81376
81377         * lib/minmax.h (MIN, MAX)
81378         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81379         Omit the special code that used __typeof__, since we worry that
81380         it could be more trouble than it's worth.  See:
81381         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81382         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81383
81384         * lib/free.c: New file.
81385
81386 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81387
81388         Trivial fixes to Makefile.am parts of module listings.
81389         * modules/strstr: Append strstr.h to lib_SOURCES.
81390         * modules/strcase: Likewise, for strcase.h.
81391
81392 2003-09-27  Karl Berry  <karl@gnu.org>
81393
81394         * config/mkinstalldirs: update from automake.
81395
81396 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81397
81398         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81399         (error_tail): Do not loop, reallocating temporary buffer, since
81400         the output cannot contain more wide characters than the input
81401         contains bytes, the size must be big enough already.  This avoids
81402         one potential size overflow calculation.  Check for size overflow
81403         when calculating temporary buffer size.  Free temporary buffer
81404         when done, if it was allocated with malloc; this plugs a memory
81405         leak.  Remove casts from void * to pointers, that are no longer
81406         needed now that we're assuming C89 or better.
81407
81408         Merge error changes from glibc.
81409
81410         * lib/error.c, error.h: Update copyright notice header to match glibc.
81411         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81412         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81413         Disable cancellation while printing error.
81414         * lib/error.h: Prepend __ to parameter names.
81415
81416 2003-09-26  Jim Meyering  <jim@meyering.net>
81417
81418         * lib/error.c (error_tail): Move some declarations
81419         into inner scope where the local variables are used.
81420
81421 2003-09-26  Bruno Haible  <bruno@clisp.org>
81422
81423         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81424         stpncpy().
81425         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81426
81427 2003-09-26  Bruno Haible  <bruno@clisp.org>
81428
81429         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81430         (stpncpy): Define as alias for gnu_stpncpy.
81431         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81432
81433 2003-09-25  Simon Josefsson  <jas@extundo.com>
81434
81435         * lib/xgetdomainname.h: New file.
81436         * lib/xgetdomainname.c: New file.
81437
81438 2003-09-25  Simon Josefsson  <jas@extundo.com>
81439             Bruno Haible  <bruno@clisp.org>
81440
81441         * modules/getdomainname: New file.
81442         * modules/xgetdomainname: New file.
81443         * MODULES.html.sh (func_all_modules): Add getdomainname,
81444         xgetdomainname.
81445
81446 2003-09-25  Simon Josefsson  <jas@extundo.com>
81447             Bruno Haible  <bruno@clisp.org>
81448
81449         * m4/getdomainname.m4: New file.
81450
81451 2003-09-25  Simon Josefsson  <jas@extundo.com>
81452             Bruno Haible  <bruno@clisp.org>
81453
81454         * lib/getdomainname.h: New file.
81455         * lib/getdomainname.c: New file.
81456
81457 2003-09-25  Karl Berry  <karl@gnu.org>
81458
81459         * lib/argp-fmtstream.c, argp-help.c: update from libc.
81460
81461 2003-09-25  Karl Berry  <karl@gnu.org>
81462
81463         * config/install-sh: update from automake.
81464
81465 2003-09-25  Bruno Haible  <bruno@clisp.org>
81466
81467         * modules/version-etc-2: New file, from modules/version-etc with
81468         modifications.
81469         * MODULES.html.sh (func_all_modules): Add version-etc-2.
81470
81471 2003-09-25  Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
81474         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
81475
81476 2003-09-24  Simon Josefsson  <jas@extundo.com>
81477
81478         * modules/xgethostname: Add xgethostname.h.
81479
81480 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81481
81482         * lib/linebuffer.c (freebuffer): Don't free the argument, just
81483         the buffer associated with the argument.  Bug reported by
81484         Simon Josefsson.
81485
81486 2003-09-24  Paul Eggert  <eggert@twinsun.com>
81487
81488         * README: Document assumptions that 'int' is at least 32 bits
81489         wide, that integer arithmetic is 2's complement without overflow,
81490         that there are no holes in integer values, that adding sizes of
81491         two nonoverlapping objects can't overflow, and that all-bits-zero
81492         yields scalar zero.  Fix spelling and capitalization typos.
81493
81494 2003-09-19  Karl Berry  <karl@gnu.org>
81495
81496         * lib/argp.h: update from libc.
81497
81498 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81499
81500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
81501         to avoid spurious warnings like "AC_RUN_IFELSE was called before
81502         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
81503
81504 2003-09-17  Paul Eggert  <eggert@twinsun.com>
81505
81506         * gnulib-tool: Use "test -h", not "test -L", for portability
81507         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
81508         (tags_regexp): Remove, since \| doesn't conform to POSIX.
81509         (sed_extract_prog): Issue s commands one-by-one, rather than
81510         using \| in one s command.
81511
81512 2003-09-16  Paul Eggert  <eggert@twinsun.com>
81513
81514         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
81515         input error, instead of returning NULL the next time we are called
81516         (and therefore losing track of errno).
81517
81518 2003-09-16  Bruno Haible  <bruno@clisp.org>
81519
81520         * gnulib-tool (func_create_testdir): Warn about duplicated
81521         dependencies.
81522
81523 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81524
81525         * modules/argmatch, modules/fatal, modules/obstack,
81526         modules/xalloc, modules/xgethostname: Sort dependencies by
81527         importance, not alphabetically.
81528
81529 2003-09-15  Paul Eggert  <eggert@twinsun.com>
81530
81531         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
81532         fails, so that the caller gets the proper errno.
81533
81534         * lib/readutmp.c (read_utmp): Likewise.
81535         Check for fstat error.  Close stream and free storage
81536         when failing.
81537
81538 2003-09-14  Karl Berry  <karl@gnu.org>
81539
81540         * config/srclist.txt (strdup.c): disable for c89 changes.
81541
81542 2003-09-14  Jim Meyering  <jim@meyering.net>
81543
81544         * lib/getloadavg.c: Correct cpp indentation.
81545         * lib/strdup.c: Likewise.
81546         * lib/vasnprintf.c: Likewise.
81547
81548 2003-09-14  Bruno Haible  <bruno@clisp.org>
81549
81550         * modules/fwriteerror: New file.
81551         * MODULES.html.sh (func_all_modules): Add fwriteerror.
81552
81553 2003-09-14  Bruno Haible  <bruno@clisp.org>
81554
81555         * lib/fwriteerror.h: New file.
81556         * lib/fwriteerror.c: New file.
81557
81558 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81559
81560         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
81561         modules/xgethostname, modules/xalloc: Depend on exit.
81562
81563 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81564
81565         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
81566
81567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
81568         and AC_MINIX, too, so that their extensions are available.
81569
81570         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
81571         This macro has been superseded by gl_BACKUPFILE.
81572
81573         More patches to assume C89 or better.
81574
81575         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
81576
81577         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
81578         unconditionally.
81579         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
81580         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
81581         Include <string.h>, <stdlib.h> unconditionally.
81582         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
81583         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
81584         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
81585         headers or for string.h.
81586         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
81587         or strtoul.
81588
81589         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
81590         headers.
81591         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
81592         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81593         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
81594         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
81595         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81596         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
81597         memcpy, memset.
81598         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
81599         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
81600         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
81601         strtol.
81602         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
81603         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
81604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
81605         strtoul.
81606
81607 2003-09-12  Paul Eggert  <eggert@twinsun.com>
81608
81609         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
81610         * lib/obstack.c [!defined _LIBC]: Likewise.
81611         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
81612         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
81613         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
81614
81615         More changes to assume C89 or better.
81616
81617         * lib/error.c (error_tail): Assume vprintf.
81618
81619         * lib/argmatch.c (getenv): Remove decl.
81620         * lib/progreloc.c (get_full_program_name): Define via prototype.
81621         * lib/setenv.c (clearenv): Likewise.
81622         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
81623         needed.
81624         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
81625         (malloc, memcpy): Remove decls.
81626         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
81627         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
81628         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81629         (memcpy): Remove macro.
81630         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
81631         (__P): Remove.  All uses removed.
81632         (PTR): Remove.  All uses changed to void *.
81633         (CHAR_BIT, NULL): Remove.
81634         (spaces, zeros, memset_space, memset_zero)
81635         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
81636         Remove.
81637         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
81638         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
81639         Define with prototype.
81640         Remove now-unnecessary prototype decl.
81641         (extra_args_spec): Assume ANSI C.  All uses changed.
81642         (extra_args_spec_iso): Remove.
81643         (my_strftime, emacs_strftimeu): Define via prototype.
81644         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
81645         unconditionally.
81646         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
81647         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
81648         (strtoul, strtol): Remove decls.
81649         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
81650         LONG_MAX): Remove.
81651         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
81652         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
81653         (LOCALE_PARAM_PROTO): New macro.
81654         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
81655         (INTERNAL (strtol), strtol): Define with a prototype.
81656         (PARAMS): Remove.  All uses removed.
81657         * lib/tempname.c: Include <string.h> unconditionally.
81658         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
81659         * lib/xgethostname.c (main): Define with a prototype.
81660         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
81661         Include <stdlib.h> unconditionally.
81662         (calloc, malloc, realloc, free): Remove decls.
81663         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
81664         Include <stdlib.h> unconditionally.  Sort include file names.
81665         (strtod): Remove.
81666         (xstrtod): Define with a prototype.
81667         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
81668         (strtol, strtoul): Remove decls.
81669
81670 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81671
81672         More patches to assume C89 or better.
81673         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
81674         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
81675         string.h, memchr, STDC_HEADERS.
81676
81677 2003-09-11  Paul Eggert  <eggert@twinsun.com>
81678
81679         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
81680         Include <stdlib.h>, <string.h> unconditionally.
81681         Remove now-unnecessary cast to char *.
81682         * lib/strnlen.c: Include <string.h> unconditionally.
81683         * lib/yesno.c (yesno): Define with a prototype.
81684
81685 2003-09-11  Bruno Haible  <bruno@clisp.org>
81686
81687         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
81688
81689 2003-09-10  Jim Meyering  <jim@meyering.net>
81690
81691         * lib/error.c: Correct indentation of cpp directives.
81692
81693 2003-09-10  Bruno Haible  <bruno@clisp.org>
81694
81695         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
81696         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
81697         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
81698         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
81699         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
81700         <stdlib.h> and <string.h> checks.
81701         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
81702         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
81703
81704 2003-09-10  Bruno Haible  <bruno@clisp.org>
81705
81706         * lib/strcspn.c: Include <string.h> unconditionally.
81707         * lib/strpbrk.c: Include <string.h> unconditionally.
81708         * lib/strstr.c: Include <string.h> unconditionally.
81709         * lib/unicodeio.c: Include <string.h> unconditionally.
81710         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
81711         * lib/unsetenv.c: Likewise.
81712         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
81713         * lib/yesno.c: Include <stdlib.h> unconditionally.
81714         (rpmatch): Add prototype.
81715
81716 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81717
81718         More patches to assume C89 or better.
81719         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
81720         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
81721         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
81722         or for string.h.
81723         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
81724         stdlib.h.
81725         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
81726         C headers.
81727         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
81728         string.h.
81729         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
81730         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
81731         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
81732         or for string.h.
81733         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
81734         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
81735         C headers.
81736         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
81737         memcpy.
81738         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
81739         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
81740         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
81741         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
81742         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
81743         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
81744         string.h, free.
81745         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
81746         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
81747         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
81748         C headers, or for string.h.
81749         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
81750         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
81751         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
81752         headers, memory.h, stdlib.h, string.h, strings.h.
81753         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
81754         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
81755         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
81756         strchr.
81757         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
81758         headers, memory.h, string.h.
81759         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
81760         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
81761         free.
81762         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
81763         headers.
81764         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
81765         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
81766         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
81767         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
81768         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
81769
81770 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81771
81772         More K&R removal.
81773
81774         * lib/acosl.c (main): Use a prototype.
81775         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
81776         tanl.c: Likewise.
81777
81778         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
81779
81780         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
81781         (getopt, etopt_long, getopt_long_only, _getopt_internal)
81782         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
81783         with a prototype.
81784         * lib/getopt.c (const): Remove macro.
81785         Include <string.h> unconditionally.
81786         (my_index): Remove; all uses changed to strchr.
81787         (strlen): Remove decl.
81788         (exchange): Remove forward decl; no longer needed.
81789         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
81790         Define with prototype.
81791         * lib/getopt1.c (const): Remove macro.
81792         (getopt_long, getopt_long_only, main): Define with prototype.
81793
81794         * lib/getugroups.c: Include <string.h> unconditionally.
81795
81796         * lib/getusershell.c: Include <stdlib.h> unconditionally.
81797         (getusershell, setusershell, endusershell, readname, main):
81798         Define with prototypes.
81799
81800         * lib/group-member.c: Include group-member.h first.
81801         Include <stdlib.h> unconditionally.
81802
81803         * lib/hard-locale.c: Include hard-locale.h first.
81804         Include <stdlib.h>, <string.h> unconditionally.
81805
81806         * lib/hash.c (free, malloc): Remove decls.
81807         Include <stdlib.h> unconditionally.
81808
81809         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
81810         (getenv): Do not declare.
81811
81812         * lib/idcache.c: Include <string.h> unconditionally.
81813
81814         * lib/long-options.c: Include long-options.h first, to test interface.
81815         Include <stdlib.h> unconditionally.
81816
81817         * lib/makepath.c: Include makepath.h first, to test interface.
81818         Include <stdlib.h> and <string.h> unconditionally.
81819
81820         * lib/linebuffer.c: Include <stdlib.h>.
81821         (free): Remove decl.
81822
81823         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
81824         stddef.h. rpl_malloc returns void *, not char *.
81825         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
81826         prototype.
81827
81828         * lib/md5.h: Include <limits.h> unconditionally.
81829         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
81830         (__P): Remove; all uses removed.
81831         * lib/md5.c: Include "md5.h" first.
81832         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
81833         md5_buffer, md5_process_bytes, md5_process_block):
81834         Define with prototypes.
81835         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
81836         * lib/sha.c: Include "sha.h" first.
81837         Include <stdlib.h>, <string.h> unconditionally.
81838
81839         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
81840         * lib/memcmp.c (__ptr_t): Likewise.
81841         * lib/memrchr.c (__ptr_t): Likewise.
81842         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
81843         Include <string.h> unconditionally.
81844         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
81845         * lib/memchr.c: Include <stdlib.h> unconditionally.
81846         * lib/memchr.c (LONG_MAX): Remove.
81847         * lib/memrchr.c (LONG_MAX): Likewise.
81848         * lib/memchr.c (__memchr): Define via a prototype.
81849         * lib/memrchr.c (__memrchr): Likewise.
81850         * lib/memcmp.c (__P): Remove, and remove all uses.
81851         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
81852         Remove forward decls; no longer needed.
81853         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
81854         Use types required by C89 in prototype.
81855
81856         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
81857         * lib/savedir.c: Likewise.
81858         * lib/mkdir.c (free): Remove decl.
81859         * lib/rmdir.c (rmdir): Define with a prototype.
81860         * lib/savedir.c: Include savedir.h first, to test interface.
81861
81862         * lib/mktime.c (STDC_HEADERS): Remove.
81863         Include <stdlib.h>, <string.h> unconditionally.
81864
81865         * lib/modechange.c: Include <stdlib.h> unconditionally.
81866         (malloc): Remove decl.
81867
81868         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
81869         (free): Remove decl.
81870
81871         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
81872         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
81873         (This type really should be intptr_t, but that's a C99ism.)
81874         (_obstack_memcpy): Remove: all uses changed to memcpy.
81875         Include <string.h> unconditionally.
81876         (struct obstack): Assume __STDC__ for types of members
81877         chunkfun, freefun, extra_arg.
81878         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
81879         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
81880         obstack_begin, obstack_specify_allocation,
81881         obstack_specify_allocation_with_arg, obstack_chunkfun,
81882         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
81883         Remove unprototyped decls and the macros that use them.
81884         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
81885         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
81886         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
81887         (defined __STDC__ && __STDC__)]:
81888         Remove nonprototyped code.
81889         Include <stdlib.h> unconditionally.
81890         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
81891         _obstack_allocated_p, _obstack_free, obstack_free,
81892         _obstack_memory_used, print_and_abort):
81893         Define using prototypes.
81894         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
81895         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
81896         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
81897         obstack_next_free, obstack_object_size, obstack_room) [0]:
81898         Remove unused, unprototyped code.
81899
81900         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
81901
81902         * lib/physmem.c (physmem_total, physmem_available, main): Define
81903         with prototypes.
81904
81905         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
81906         (main): Define with a prototype.
81907
81908         * lib/posixver.c (getenv): Remove decl.
81909
81910         * lib/putenv.c (malloc): Returns void *, not char *.
81911         Include <string.h> unconditionally.
81912         (strchr, memcpy, NULL): Do not define.
81913
81914         * lib/readtokens.c: Include readtokens.h first, to test interface.
81915         Include <stdlib.h>, <string.h> unconditionally.
81916         (init_tokenbuffer): Define with a prototype.
81917
81918         * lib/regex.c (PARAMS): Remove.  All uses removed.
81919         All uses of _RE_ARGS removed, too.
81920         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81921         unconditionally.
81922         (bzero): Assume memset exists.
81923         (memcmp, memcpy, NULL): Remove.
81924         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
81925         char, or assignments to local vars of type signed char.
81926         (init_syntax_once, PREFIX(extract_number_and_incr),
81927         PREFIX(print_partial_compiled_pattern),
81928         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
81929         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
81930         PREFIX(regex_grow_registers), PREFIX(regex_compile),
81931         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
81932         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
81933         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
81934         wcs_compile_range, byte_compile_range, truncate_wchar,
81935         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
81936         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
81937         count_mbs_length, wcs_re_match_2_internal,
81938         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
81939         PREFIX(alt_match_null_string_p),
81940         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
81941         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
81942         regfree, PREFIX(extract_number)): Define with prototype.  Remove
81943         now-unnecessary declaration, if any.
81944         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
81945         regcomp, regexec):
81946         Remove now-unnecessary casts among pointer types.
81947         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
81948
81949         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
81950         (free): Remove decl.
81951
81952         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
81953
81954         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
81955         (free): Remove decl.
81956
81957         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
81958         * lib/xgetcwd.c: Likewise.
81959
81960         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
81961         (free): Remove decl.
81962
81963         * lib/strchrnul.c (strchrnul): Define with a prototype.
81964         Fix bug: c_in was not converted to char before searching.
81965
81966         The following changes are not K&R related:
81967
81968         * lib/group-member.h: Include <sys/types.h>, so that this file is
81969         self-contained.
81970         * lib/makepath.h: Likewise.
81971
81972         * lib/getusershell.c (readname, default_index, line_size, readname):
81973         Use size_t, not int, for sizes.
81974         (readname): If the size overflows, report an error instead of
81975         looping forever.
81976
81977 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81978
81979         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
81980         libc.
81981
81982 2003-09-09  Paul Eggert  <eggert@twinsun.com>
81983
81984         * README: New section: portability guidelines.
81985
81986 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81987
81988         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
81989         C89 spec.
81990
81991 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
81992
81993         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
81994
81995 2003-09-08  Paul Eggert  <eggert@twinsun.com>
81996
81997         Assume C89 or better; remove K&R cruft.
81998         A few of these changes were first proposed by Derek Robert Price
81999         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82000
82001         * lib/addext.c: Include <string.h> unconditionally.
82002         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82003         Don't declare getenv or malloc.
82004
82005         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82006         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82007         (NULL): Remove.
82008         (find_stack_direction, alloca): Use prototypes.
82009
82010         * lib/atexit.c (atexit): Define using a prototype.
82011
82012         * lib/basename.c, dirname.c, stripslash.c:
82013         Include <string.h> unconditionally.
82014
82015         * lib/bcopy.c: Include <stddef.h>.
82016         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82017
82018         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82019
82020         * lib/error.h (error, error_at_line, error_print_progname)
82021         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82022         * lib/error.c: Include error.h first, to check interface.
82023         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82024         (VA_START): Remove; all uses changeed to va_start.
82025         (exit, strerror): Remove decls.
82026         (error_print_progname): Prototype uncondionally.
82027         Don't include <errno.h>; no longer needed.
82028         (private_strerror): Remove.
82029         (error_tail): Always define.
82030         (error, error_at_line): Assume C89 or better; always use prototypes.
82031         * lib/fatal.c: Include "fatal.h" first, to test interface.
82032         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82033         (VA_START): Remove; all uses changed to va_start.
82034         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82035         this case.
82036         (exit): Remove decl.
82037         (fatal): Prototype unconditionally.  Assume va_start works.
82038         Abort at end, to pacify gcc.
82039
82040         * lib/euidaccess.c (main): Define with a prototype.
82041
82042         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82043
82044         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82045
82046         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82047         prototypes.
82048         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82049         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82050         (getenv): Remove decl.
82051         (fnmatch): Define using a prototype.
82052         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82053         (FCT): Define using a prototype.
82054
82055         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82056
82057         * lib/gethostname.c: Include <stddef.h>.
82058         (gethostname): Define with prototype.  Length is size_t, not int.
82059
82060 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82061
82062         Assume C89 or better; remove K&R cruft.
82063         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82064         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82065         string.h, getenv, malloc.
82066         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82067         headers.
82068         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82069         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82070         do not check for strerror.
82071         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82072         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82073         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82074         do not check for doprnt or vprintf.
82075         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82076         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82077
82078 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82079
82080         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82081         getversion.c should have been removed then, but was accidentally
82082         preserved.
82083
82084         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82085         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82086
82087 2003-09-08  Karl Berry  <karl@gnu.org>
82088
82089         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82090                 config, forget about prep.
82091
82092         * config/depcomp, missing: update from automake.
82093
82094 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82095
82096         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82097         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82098
82099 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82100
82101         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82102         copy_tm_result.  Bug reported by Simon Josefsson in
82103         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82104
82105 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82106
82107         * m4/time_r.m4: New file.
82108         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82109         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82110         is. Check for timegm declaration.
82111         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82112         Do not check for gmtime_r.
82113         Replace mktime if __mktime_internal does not exist and if mktime
82114         hasn't been replaced already.
82115
82116 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82117
82118         * lib/time_r.c, lib/time_r.h: New files.
82119
82120         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82121         __localtime_r.
82122         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82123         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82124
82125         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82126         __gmtime_r.
82127         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82128         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82129         Include <time_r.h>.
82130
82131         * lib/timegm.c: Switch to glibc implementation, with the following
82132         changes:
82133         [defined HAVE_CONFIG_H]: Include <config.h>.
82134         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82135         (__mktime_internal) [!defined _LIBC]: New decl.
82136         (__gmtime_r) [!defined _LIBC]: New macro and function.
82137         (timegm): Use a prototype, since gnulib assumes C89.
82138         Do not bother declaring tmp to be const, as it's not really usefu.
82139         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82140         (timegm): Declare only if HAVE_DECL_TIMEGM.
82141
82142 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82143
82144         * MODULES.html.sh (func_all_modules): Add time_r.
82145         * modules/time_r: New file.
82146         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82147         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82148
82149 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82150
82151         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82152         Bug reported by Lute Kamstra in
82153         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82154
82155         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82156         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82157         course with correspondingly smaller numbers for tomorrow and
82158         yesterday.  From Tadayoshi Funaba.  Originally installed into
82159         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82160         coreutils merge?).
82161
82162 2003-08-31  Simon Josefsson  <jas@extundo.com>
82163
82164         * modules/timegm: New file.
82165         * MODULES.html.sh (func_all_modules): Add timegm.
82166
82167 2003-08-31  Simon Josefsson  <jas@extundo.com>
82168
82169         * m4/timegm.m4: New file.
82170
82171 2003-08-31  Simon Josefsson  <jas@extundo.com>
82172
82173         * lib/timegm.h: New file.
82174         * lib/timegm.c: New file.  Based on
82175         wget-1.8.2/src/http.c:mktime_from_utc.
82176
82177 2003-08-31  Karl Berry  <karl@gnu.org>
82178
82179         * lib/argp.h: update from libc.
82180
82181 2003-08-28  Bruno Haible  <bruno@clisp.org>
82182
82183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82184         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82185         followed by '#define fnmatch fnmatch_posix' gives an error.
82186
82187 2003-08-28  Bruno Haible  <bruno@clisp.org>
82188
82189         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82190         warning on QNX, which defines O_BINARY to 000000.
82191
82192 2003-08-27  Jim Meyering  <jim@meyering.net>
82193
82194         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82195         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82196         would fail after 32.  Reported by Danny Levinson.  Details here:
82197         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82198
82199 2003-08-24  Bruno Haible  <bruno@clisp.org>
82200
82201         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82202         MSVC7 <stdio.h> is included later.
82203
82204 2003-08-22  Simon Josefsson  <jas@extundo.com>
82205
82206         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82207
82208 2003-08-20  Karl Berry  <karl@gnu.org>
82209
82210         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82211
82212 2003-08-20  Bruno Haible  <bruno@clisp.org>
82213
82214         * modules/progname: New file.
82215         * MODULES.html.sh (func_all_modules): Add progname.
82216
82217 2003-08-20  Bruno Haible  <bruno@clisp.org>
82218
82219         * lib/progname.h: New file, from GNU gettext.
82220         * lib/progname.c: New file, from GNU gettext.
82221         * lib/progreloc.c: New file, from GNU gettext.
82222
82223 2003-08-19  Jim Meyering  <jim@meyering.net>
82224
82225         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82226         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82227
82228 2003-08-19  Bruno Haible  <bruno@clisp.org>
82229
82230         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82231         more.
82232
82233 2003-08-19  Bruno Haible  <bruno@clisp.org>
82234
82235         * lib/xstrdup.c: Assume <string.h> exists.
82236
82237 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82238
82239         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82240         in makefile rules.
82241
82242 2003-08-18  Jim Meyering  <jim@meyering.net>
82243
82244         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82245         * m4/lib-ld.m4: Likewise.
82246
82247 2003-08-18  Jim Meyering  <jim@meyering.net>
82248
82249         * lib/setenv.h: Indent nested cpp directive.
82250         * lib/vasnprintf.c: Remove trailing blanks.
82251
82252 2003-08-17  Simon Josefsson  <jas@extundo.com>
82253
82254         * modules/xstrndup: New file.
82255         * MODULES.html.sh (func_all_modules): Add xstrndup.
82256
82257 2003-08-17  Simon Josefsson  <jas@extundo.com>
82258
82259         * modules/argp: Fix autoconf macro name. Add more dependencies.
82260
82261 2003-08-17  Simon Josefsson  <jas@extundo.com>
82262
82263         * m4/xstrndup.m4: New file.
82264
82265 2003-08-17  Simon Josefsson  <jas@extundo.com>
82266
82267         * m4/argp.m4: New file.
82268
82269 2003-08-17  Simon Josefsson  <jas@extundo.com>
82270             Bruno Haible  <bruno@clisp.org>
82271
82272         * lib/xstrndup.h: New file.
82273         * lib/xstrndup.c: New file.
82274
82275 2003-08-17  Bruno Haible  <bruno@clisp.org>
82276
82277         * modules/strndup (Files, Include): Add lib/strndup.h.
82278
82279 2003-08-17  Bruno Haible  <bruno@clisp.org>
82280
82281         * modules/euidaccess (Files): Add lib/euidaccess.h.
82282
82283 2003-08-17  Bruno Haible  <bruno@clisp.org>
82284
82285         * lib/strndup.h: New file.
82286
82287 2003-08-17  Bruno Haible  <bruno@clisp.org>
82288
82289         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82290         like AC_GNU_SOURCE.
82291         * modules/extensions (configure.ac): Comment out the invocation of
82292         gl_USE_SYSTEM_EXTENSIONS.
82293
82294 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82295
82296         Merges from coreutils, etc.
82297         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82298         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82299         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82300         fixing a typo.
82301         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82302         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82303
82304 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82305
82306         Document merge from coreutils.
82307         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82308         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82309         * modules/utime: Add m4/utimes-null.m4.
82310
82311 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82312
82313         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82314         space, undoing this 2003-08-12 change:
82315         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82316
82317 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82318
82319         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82320         strtoul.c from libc, undoing this 2003-08-12 change:
82321         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82322
82323 2003-08-16  Jim Meyering  <jim@meyering.net>
82324
82325         Merges from coreutils.
82326         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82327         prefix.  Adjust cache variables similarly.  Create 500 rather than
82328         just 300 files, to exercise bug on Darwin6.5, too.
82329         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82330         $missing_dir.
82331         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82332         AM_SYS_POSIX_TERMIOS.
82333         Reported by mkc@mathdogs.com.
82334         Also change use of $am_cv_sys_posix_termios
82335         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82336         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82337         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82338         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82339         in /proc/mounts until it finds one with matching device number.  This
82340         is unnecessary when the FILE argument *is* a mount point.  No stat call
82341         is necessary in that case.  So, disable the statvfs-testing code on
82342         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82343         as RedHat bug# 84846.
82344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82345         to 1MB, so as not to render systems with no stack size limit (e.g.,
82346         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82347         Include <unistd.h>.  On some systems,
82348         it is required for the definition of _SC_PAGESIZE.
82349
82350 2003-08-16  Jim Meyering  <jim@meyering.net>
82351
82352         Merge from coreutils.
82353         * lib/xstrtoimax.c: #else #if -> #elif.
82354         * lib/xstrtoumax.c: Likewise.
82355
82356 2003-08-16  Jim Meyering  <jim@meyering.net>
82357
82358         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82359         * m4/utimes.m4: Removed.
82360         * m4/utimes-null.m4: Renamed from utimes.m4.
82361
82362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82363         to 1MB, so as not to render systems with no stack size limit (e.g.,
82364         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82365         Include <unistd.h>.  On some systems,
82366         it is required for the definition of _SC_PAGESIZE.
82367
82368 2003-08-16  Jim Meyering  <jim@meyering.net>
82369         and Paul Eggert  <eggert@cs.ucla.edu>
82370
82371         Merges from coreutils, etc.
82372
82373         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82374         using the latest version from cvs.  This avoids problems with #line
82375         directives using a vendor (Sun) compiler.
82376         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82377         Don't set GETGROUPS_LIB here; now it's
82378         done via getgroups.m4's wrapper function.
82379         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82380         rather than just in sh-util/configure.in, so that the
82381         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82382         same.
82383         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82384         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82385         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82386         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82387         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82388         Remove code that is now done by the newly-required macros.
82389         Append $(EXEEXT) to DF_PROG.
82390         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82391         Do not invoke or require the following here,
82392         since prereq.m4 or some gnulib .m4 now does this for us:
82393         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82394         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82395         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82396         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82397         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82398         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82399         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82400         AC_FUNC_OBSTACK.
82401         Do not replace the following functions, as this is now the job
82402         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82403         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82404         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82405         atexit getpass, strdup, getpagesize.
82406         Replace 'raise'.
82407         Do not check for the following functions, as this is now the job
82408         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82409         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82410         setregid.
82411         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82412         Check for sys/sysctl.h.
82413         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82414         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82415         of checking for ssize_t ourselves.
82416
82417         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82418         Require every macro that gnulib/modules/* suggests for us.
82419         (jm_PREREQ_ADDEXT): New macro.
82420         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82421         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82422
82423         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82424         (gl_PHYSMEM): Use it.
82425         Also check for `table' function.
82426         Check for new headers and functions.
82427         Add check for sys/sysmp.h.
82428         With suggestions from Kaveh Ghazi.
82429         Ignore headers that are present but cannot be compiled.  This
82430         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82431         C 5.4.
82432
82433 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82434
82435         Document merge from coreutils.
82436         * modules/userspec: Depend on posixver.
82437         * modules/strftime: Depend on tzset.
82438
82439 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82440
82441         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82442         rather than tab, after '#' in shell-script copyright notices.
82443         Suggested by Bruno Haible.
82444
82445 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82446
82447         * config/srclist-update: Use three spaces, rather than tab, after '#'
82448         in shell-script copyright notices.  Suggested by Bruno Haible.
82449         Remove unnecessary parenthesization in regular expression.
82450
82451 2003-08-15  Jim Meyering  <jim@meyering.net>
82452
82453         Merge from coreutils.
82454         * lib/xgethostname.c: Include <stdlib.h>.
82455         (xghostname): Don't exit for anything other than memory-related
82456         failure; just return NULL.
82457         * lib/userspec.c: Include "posixver.h".
82458         (parse_user_spec): Accept `.' as a separator only
82459         in pre-POSIX-200112 mode.
82460         * lib/strtoimax.c: Use #elif rather than #else #if.
82461         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
82462         Remove function, now that we can rely on a working tzset function.
82463         [!_LIBC]: Ensure that the required autoconf test has been run.
82464         [!defined _NL_CURRENT && HAVE_STRFTIME]:
82465         Use underlying_strftime for %r.
82466         * lib/sha.c: Merge in some clean-up and optimization changes from
82467         glibc.
82468         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
82469         Ensure that it is a multiple of 64.
82470         Rearrange loop exit tests so as to avoid performing an
82471         additional fread after encountering an error or EOF.
82472         * lib/realloc.c: Update copyright date.
82473
82474 2003-08-15  Jim Meyering  <jim@meyering.net>
82475         and Paul Eggert  <eggert@twinsun.com>
82476
82477         Merge from coreutils.
82478         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
82479         member but strut utmpx does not.  Needed for AIX 4.3.3.
82480         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
82481
82482 2003-08-15  Jim Meyering  <jim@meyering.net>
82483         and Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         Merges from coreutils, etc.
82486         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
82487         Require gl_FUNC_TZSET_CLOBBER.
82488         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
82489         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
82490         members.
82491
82492 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82493
82494         Help the merge from coreutils.
82495         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
82496         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
82497         * m4/tzset.m4: Use it too.
82498
82499 2003-08-14  Paul Eggert  <eggert@twinsun.com>
82500
82501         * modules/tzset: New file.
82502
82503 2003-08-14  Jim Meyering  <jim@meyering.net>
82504
82505         Merges from coreutils.
82506         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
82507         variable names, rather than @FNMATCH_H@.
82508         * modules/alloca: Likewise for $(ALLOCA_H).
82509
82510         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
82511         the three copies of the literal target, `fnmatch.h'.
82512         * modules/alloca (alloca.h): Likewise.
82513
82514 2003-08-14  Jim Meyering  <jim@meyering.net>
82515
82516         Merge from coreutils.
82517         * m4/tzset.m4: New file.
82518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
82519         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
82520         otherwise, AIX 5.1 systems would end up using the latter.
82521         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
82522         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
82523         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
82524         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
82525
82526 2003-08-14  Jim Meyering  <jim@meyering.net>
82527
82528         Merge from coreutils.
82529         * lib/obstack.h: Whitespace changes.
82530         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
82531         and xcalloc return values.
82532         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
82533         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
82534         hang on OSF/1 5.1 for DIR on both local and remote file systems.
82535         Reported by (and fix confirmed by) Nelson H. F. Beebe.
82536         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82537         error from mntctl.
82538         Use mntctl's return value to drive the entry-processing loop, since
82539         we can't rely on the value of the vmt_length member in the last
82540         entry.  On some systems doing so could result in exhausting
82541         virtual memory.  Based in part on a patch from Mike Jetzer.
82542
82543 2003-08-14  Jim Meyering  <jim@meyering.net>
82544         and Paul Eggert  <eggert@twinsun.com>
82545
82546         Merges from coreutils, plus other fixes.
82547         * lib/physmem.c: Merge in portability changes from gcc/libiberty
82548         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
82549         for credits and details.  Thanks to Kaveh Ghazi for helping
82550         to keep these files in sync.
82551         (ARRAY_SIZE): Define it.
82552         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
82553         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
82554         (memcasecmp): Don't assume size_t fits in unsigned int.
82555         Remove casts and duplicate code.
82556         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
82557         (memcpy): Remove definition.
82558         Merge in some clean-up and optimization changes from glibc.
82559         [BLOCKSIZE]: Move definition to top of file.
82560         Ensure that it is a multiple of 64.
82561         Rearrange loop exit tests so as to avoid performing an
82562         additional fread after encountering an error or EOF.
82563         * lib/md5.h (md5_uintptr): Define.
82564         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
82565         return to the initial working directory.  Preserve errno
82566         for caller.
82567         * lib/idcache.c: Include "xalloc.h".
82568         (xmalloc, xrealloc): Remove decls.
82569         (getuser): Remove casts no longer required in C89.
82570         * lib/human.c: Include stdio.h, for sprintf.
82571         * lib/group-member.c: Include "xalloc.h".
82572         (xmalloc, xrealloc): Remove decls.
82573         (get_group_info): Remove casts no longer required in C89.
82574         * lib/getusershell.c (readname): Remove casts no longer required in
82575         C89.
82576         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
82577         * lib/getline.c: Whitespace fix, from coreutils.
82578
82579 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82580
82581         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
82582         Check for isascii.
82583
82584         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82585         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82586         Undo previous (whitespace-only) change.
82587
82588 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82589
82590         * lib/exclude.c: Include <ctype.h>
82591         (IN_CTYPE_DOMAIN): New macro.
82592         (is_space): New fn.
82593         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
82594         and empty lines.
82595
82596         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82597         Undo previous (whitespace-only) change.
82598
82599 2003-08-13  Paul Eggert  <eggert@twinsun.com>
82600
82601         * config/srclist-update: Change update back to the old behavior,
82602         leaving whitespace alone.  Use one 'sed' command rather than a
82603         pipeline.
82604         (fixlicense): Now a variable, not a function.
82605         (remove_trailing_blanks): Remove.
82606         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
82607         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82608         Undo previous (whitespace-only) change.
82609
82610 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82611
82612         Merge from coreutils.
82613         * modules/euidaccess: Add lib_SOURCES, include for new
82614         file euidaccess.h
82615
82616 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82617
82618         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
82619         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
82620         Normalize leading white space and remove trailing white space.
82621
82622         Merge from coreutils
82623         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
82624
82625         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
82626         0.12.1.  These files are now being upgraded automatically by
82627         ../config/srclist-update.
82628
82629 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82630
82631         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
82632         Normalize leading white space and remove trailing white space.
82633         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
82634         notice, as per ../config/srclist-update.
82635
82636         Merge from coreutils.
82637         * lib/euidaccess.h: New file.
82638         * lib/euidaccess.c: Include it.
82639         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
82640         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
82641         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
82642
82643 2003-08-12  Paul Eggert  <eggert@twinsun.com>
82644
82645         * config/srclist-update: Add copyright notice.
82646         (remove_id_lines, remove_trailing_blanks): New constants.
82647         (fixfile): Use them to normalize spacing a bit in copied files.
82648         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
82649         Normalize leading white space and remove trailing white space.
82650
82651         * config/texinfo.tex: Sync with texinfo.
82652
82653         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
82654         strtoul.c from libc, to merge coreutils whitespace changes.
82655
82656         * config/srclist.txt: Get the following m4 files from gettext:
82657         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
82658         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
82659         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
82660         wint_t.m4.
82661
82662 2003-08-12  Karl Berry  <karl@gnu.org>
82663
82664         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
82665         been made.
82666
82667 2003-08-11  Paul Eggert  <eggert@twinsun.com>
82668
82669         * modules/gnu-source, m4/gnu-source.m4:
82670         Remove; we're assuming Autoconf 2.54 or later now.
82671         Suggested by Bruno Haible.
82672         * MODULES.html.sh (func_all_modules): Remove gnu-source.
82673
82674 2003-08-11  Bruno Haible  <bruno@clisp.org>
82675
82676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
82677
82678 2003-08-11  Bruno Haible  <bruno@clisp.org>
82679
82680         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
82681         (vasnprintf): Use it instead of wcslen.
82682
82683 2003-08-11  Bruno Haible  <bruno@clisp.org>
82684
82685         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
82686         value to ensure that _Bool promotes to int. Use #define for _Bool when
82687         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
82688
82689 2003-08-10  Karl Berry  <karl@gnu.org>
82690
82691         * lib/regex.h: update from libc (whitespace fix).
82692
82693 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82694
82695         Merge some files from coreutils.  These changes were
82696         originally made by Jim Meyering.
82697         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
82698         many older Unixes require this.
82699         * lib/alloca.c (alloca): Remove cast to argument of free;
82700         no longer needed in C89.
82701         * lib/alloca_.h, regex.h: Fix white space to match
82702         what GNU indent does.
82703
82704 2003-08-09  Paul Eggert  <eggert@twinsun.com>
82705
82706         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
82707         apparently Emacs's Unicode mode got confused before my 2003-08-05
82708         checkin.
82709
82710 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82711
82712         * m4/extensions.m4: New file.
82713         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
82714         Require gl_USE_SYSTEM_EXTENSIONS.
82715         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
82716         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
82717
82718 2003-08-08  Paul Eggert  <eggert@twinsun.com>
82719
82720         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
82721         * modules/extensions, modules/gnu-source: New files.
82722         * modules/timespec, modules/unlocked-io: Depend on extensions.
82723
82724 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82725
82726         * modules/restrict: New file.
82727         * MODULES.html.sh (func_all_modules): Add restrict.
82728         * modules/regex: Depend on restrict.
82729
82730 2003-08-07  Paul Eggert  <eggert@twinsun.com>
82731
82732         * m4/restrict.m4: New file.
82733         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
82734
82735 2003-08-07  Bruno Haible  <bruno@clisp.org>
82736
82737         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
82738         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
82739
82740 2003-08-07  Bruno Haible  <bruno@clisp.org>
82741
82742         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
82743         makes the module 'getndelim2' compatible with the module 'getline'.
82744
82745 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82746
82747         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
82748         byte with "\201" to avoid glitches when editing that source file
82749         with multi-gnome-terminal.
82750
82751 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82752
82753         * lib/bumpalloc.h: Remove.
82754
82755 2003-08-05  Paul Eggert  <eggert@twinsun.com>
82756
82757         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
82758         * modules/bumpalloc: Remove.
82759
82760 2003-08-04  Paul Eggert  <eggert@twinsun.com>
82761
82762         * lib/getloadavg.c: Change copyright notice and spacing to conform to
82763         GNU coding style.
82764
82765         Merge from coreutils.
82766         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
82767         1. From glibc.
82768         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
82769         from Karl Berry, implemented by Jim Meyering.
82770         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
82771         from Dmitry V. Levin.
82772         Remove anachronistic cast of xrealloc.
82773         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
82774         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
82775         type. Otherwise, it wouldn't compile with at least /bin/cc on
82776         ymp-cray-unicos9.0.2.X.
82777         Combine two mostly-identical uses of alloca into one.
82778         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
82779
82780 2003-08-04  Dave Love  <d.love@dl.ac.uk>
82781
82782         [From Emacs.]
82783
82784         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
82785         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
82786         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
82787         obsolete NLIST_NAME_UNION.
82788         [__GNU__]: Undef BSD and FSCALE.
82789         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
82790
82791 2003-08-03  Paul Eggert  <eggert@twinsun.com>
82792
82793         * lib/stdbool_.h (_Bool): Make it signed char, instead of
82794         an enum type, so that it's guaranteed to promote to int.  See:
82795         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
82796
82797 2003-08-03  Karl Berry  <karl@gnu.org>
82798
82799         * config/depcomp: update from automake.
82800
82801 2003-07-31  Paul Eggert  <eggert@twinsun.com>
82802
82803         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
82804         (strerror): Don't assume that a printable int fits in 14 bytes.
82805
82806 2003-07-31  Bruno Haible  <bruno@clisp.org>
82807
82808         * modules/getpass-gnu: New file.
82809         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
82810
82811 2003-07-31  Bruno Haible  <bruno@clisp.org>
82812
82813         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
82814
82815 2003-07-24  Karl Berry  <karl@gnu.org>
82816
82817         * config/missing: update from automake.
82818
82819 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
82820             Bruno Haible  <bruno@clisp.org>
82821
82822         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
82823         * lib/getline.c (getline, getdelim): Likewise.
82824         Remove _GNU_SOURCE define; now it's defined in config.h through
82825         m4/getline.m4.
82826
82827 2003-07-23  Karl Berry  <karl@gnu.org>
82828
82829         * config/config.sub: update from prep.
82830
82831 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82832
82833         * modules/xalloc (Depends-on): Add exitfail.
82834         * modules/xmemcoll: Likewise.
82835
82836 2003-07-22  Paul Eggert  <eggert@twinsun.com>
82837
82838         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
82839         over-parenthesization in macros.
82840
82841         Sync with coreutils.
82842
82843         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
82844         required by C99.
82845
82846         Use `exit_failure' for xalloc and xmemcoll instead of their own
82847         private exit-failure variables.
82848         * lib/xalloc.h (xalloc_exit_failure): Remove.
82849         * lib/xmalloc.c: Likewise.  Include exitfail.h.
82850         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
82851         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
82852         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
82853         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
82854
82855 2003-07-20  Jim Meyering  <jim@meyering.net>
82856
82857         * modules/closeout (Depends-on): Add exitfail.
82858         Suggestion from Bruno Haible.
82859
82860 2003-07-19  Karl Berry  <karl@gnu.org>
82861
82862         * config/config.sub: update from prep.
82863
82864 2003-07-18  Paul Eggert  <eggert@twinsun.com>
82865
82866         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
82867         Remove.
82868         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
82869         to test that it can stand by itself.  Include "exitfail.h".
82870         Clients should set exit_failure instead.
82871         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
82872
82873 2003-07-18  Bruno Haible  <bruno@clisp.org>
82874
82875         * modules/getndelim2: New file.
82876         * modules/getline: Share files with module getndelim2.
82877         * modules/getnline: Depend on getndelim2 instead of sharing files with
82878         it. Add getnline.c to lib_SOURCES.
82879         * MODULES.html.sh (func_all_modules): Add getndelim2.
82880
82881 2003-07-18  Bruno Haible  <bruno@clisp.org>
82882
82883         * m4/getndelim2.m4: New file.
82884         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
82885         invoke gl_PREREQ_GETNDELIM2.
82886         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
82887         gl_PREREQ_GETNDELIM2.
82888         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
82889         gl_GETNDELIM2.
82890
82891 2003-07-18  Bruno Haible  <bruno@clisp.org>
82892
82893         * lib/getndelim2.h: New file.
82894         * lib/getndelim2.c: Make into a module of its own. Include config.h,
82895         getndelim2.h.
82896         (getndelim2): Make non-static. Change return type to ssize_t.
82897         * lib/getline.h: Change argument names.
82898         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
82899         * lib/getnline.c: Include getndelim2.h.
82900
82901 2003-07-18  Andreas Schwab  <schwab@suse.de>
82902
82903         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
82904
82905 2003-07-17  Karl Berry  <karl@gnu.org>
82906
82907         * config/config.sub: update from prep.
82908
82909 2003-07-17  Bruno Haible  <bruno@clisp.org>
82910
82911         * modules/getnline: New file.
82912         * modules/getline: Add lib/getndelim2.c to source file list.
82913         * MODULES.html.sh (func_all_modules): Add getnline.
82914
82915 2003-07-17  Bruno Haible  <bruno@clisp.org>
82916
82917         * m4/getnline.m4: New file.
82918
82919 2003-07-17  Bruno Haible  <bruno@clisp.org>
82920
82921         * m4/Makefile.am.in: Remove file.
82922         * m4/Makefile.am: Remove file.
82923         * m4/Makefile.in: Remove file.
82924
82925 2003-07-17  Bruno Haible  <bruno@clisp.org>
82926
82927         * lib/getnline.h: New file.
82928         * lib/getnline.c: New file.
82929         * lib/getndelim2.c: New file, extracted from getline.c.
82930         (getndelim2): Renamed from getdelim2, with added nmax argument.
82931         * lib/getline.c: Include getndelim2.c.
82932         (getdelim2): Moved out to getndelim2.c.
82933         (getline, getdelim): Update.
82934
82935 2003-07-17  Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/Makefile.am: Remove file.
82938         * lib/Makefile.in: Remove file.
82939
82940 2003-07-17  Bruno Haible  <bruno@clisp.org>
82941
82942         * configure.in: Remove file.
82943         * Makefile.in: Remove file.
82944
82945 2003-07-17  Bruno Haible  <bruno@clisp.org>
82946
82947         * MODULES.html.sh: Put the </BODY> right before </HTML>.
82948
82949 2003-07-16  Karl Berry  <karl@gnu.org>
82950
82951         * config/srclist-update: was running fixlicense twice, which caused
82952                 texinfo.tex to be nullified for some reason.  Simplify,
82953                 $gplsrc is no longer needed as far as I can see?
82954
82955 2003-07-16  Jim Meyering  <jim@meyering.net>
82956
82957         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
82958
82959 2003-07-15  Paul Eggert  <eggert@twinsun.com>
82960
82961         * config/srclist.txt: Get the following files from gettext-runtime/intl
82962         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
82963         ref-del.sin.  From Bruno Haible.
82964         * config/srclist-update (fixfile): Change grep pattern again, since the
82965         previous fix didn't work (there was another trailing $).  Use
82966         '[$]' to escape the $s.
82967
82968 2003-07-15  Karl Berry  <karl@gnu.org>
82969
82970         * lib/vasnprintf.c: update from gettext.
82971
82972 2003-07-15  Karl Berry  <karl@gnu.org>
82973
82974         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
82975         gets expanded when surrounded by '$'.
82976
82977 2003-07-15  Jim Meyering  <jim@meyering.net>
82978
82979         * modules/save-cwd: Don't depend on error.  From Derek Price.
82980
82981 2003-07-15  Jim Meyering  <jim@meyering.net>
82982
82983         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
82984
82985 2003-07-14  Simon Josefsson  <jas@extundo.com>
82986
82987         * modules/mempcpy: New file.
82988         * MODULES.html.sh (func_all_modules): Add mempcpy.
82989
82990 2003-07-14  Simon Josefsson  <jas@extundo.com>
82991
82992         * m4/mempcpy.m4: New file.
82993
82994 2003-07-14  Simon Josefsson  <jas@extundo.com>
82995
82996         * lib/mempcpy.h: New file.
82997         * lib/mempcpy.c: New file.
82998
82999 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83000
83001         * modules/getdate, modules/posixtm: Depend on mktime.
83002
83003 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83004
83005         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83006         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83007         unicodeio.c, unicodeio.h, unlocked-io.h:
83008         Switch from LGPL to GPL.
83009
83010 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83011
83012         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83013         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83014         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83015         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83016         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83017         updated automatically by ../config/srclist-update.  This changes
83018         their license from LPGL to GPL.
83019
83020 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83021
83022         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83023         assumed to refer to the root of the most recent stable gettext version.
83024         * config/srclistvars.sh: Add defaults for eggert.
83025         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83026         Match "This program" as well as "The program".  This is needed
83027         for gettext.
83028
83029 2003-07-14  Jim Meyering  <jim@meyering.net>
83030
83031         Don't emit diagnostics.  Let callers do that.
83032         * lib/save-cwd.c: Don't include "error.h".
83033         (save_cwd): Don't call error.  Ensure that errno is valid
83034         when returning nonzero.
83035
83036         * lib/save-cwd.h (restore_cwd): Update prototype.
83037         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83038         Simplify.  Don't call error upon failure.  Let callers do that.
83039         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83040         when auditing is enabled.  But don't bother updating the #if.
83041
83042 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83043
83044         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83045         it breaks C++ compilation.
83046         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83047
83048 2003-07-10  Simon Josefsson  <jas@extundo.com>
83049
83050         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83051
83052 2003-07-10  Jim Meyering  <jim@meyering.net>
83053
83054         * m4/clock_time.m4: Remove trailing blank.
83055         * m4/intmax_t.m4: Likewise.
83056
83057 2003-07-10  Jim Meyering  <jim@meyering.net>
83058
83059         * lib/vasnprintf.c: Remove trailing blanks.
83060         Make cpp indentation consistent.
83061
83062 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83063
83064         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83065         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83066         Switch from LGPL to GPL.
83067
83068 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83069
83070         * config/srclist.txt: Sort sublists.  Add
83071         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83072         that differ from gnulib for one reason or another; we'd like this list
83073         to be smaller but for now let's document what we have.
83074
83075 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83076
83077         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83078         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83079         and sweeter "eval x=$x".
83080         * config/srclist.txt: Get lib/argp* from glibc.
83081
83082 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83083
83084         * lib/mktime.c: Fix some boundary cases and remove need for floating
83085         point.
83086
83087         Issue a compile-time diagnostic if time_t is floating point, or if
83088         two's complement arithmetic is not in effect, or if arithmetic
83089         right shift does not propagate the sign.  These assumptions were
83090         all in the original code but they weren't checked.
83091
83092         (TIME_T_MIDPOINT, verify): New macros.
83093         (__isleap): Remove; it has integer overflow problems.
83094         (leapyear): New function, without those problems.
83095         (ydhms_tm_diff): Remove; splitting into two parts.
83096         (ydhms_diff): New function, containing the arithmetic part of
83097         the old ydhms_tm_diff function.  Issue a compile-time
83098         diagnostic if we are not using C99 integer division.
83099         Avoid casts when possible.
83100         (guess_time_tm): New function, containing the checking part of
83101         the old ydhms_tm_diff function.  Return the new value, rather than
83102         the difference between it and the old.  Accept a new argument T
83103         so that *T specifies the old value.  Check for overflow in the result.
83104
83105         (__mktime_internal): Use a time_t offset, not a long int offset.
83106         This undoes the 2003-06-04 change, which is no longer needed now
83107         that we have better overflow checking.
83108         (localtime_offset): Likewise.
83109
83110         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83111         and long are 64-bit but int is only 32-bit.
83112         (ydhms_diff): Use long int to store year1 and yday1.
83113         Issue a compile-time diagnostic if long int is not wide enough.
83114
83115         (__mktime_internal): Use long int to store adjusted year and yday.
83116         Use plain C rather than preprocessor commands, if that doesn't
83117         affect efficiency.
83118         Check for overflow (and try to repair) after each probe
83119         rather than checking only at the very end.  This avoids some bugs
83120         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83121         does not equal GMT offset at maximum time).
83122         Use integer to check for overflow rather than floating point; this
83123         is more portable to non-IEEE hosts, and is a tad faster.
83124         When we detect that we are oscillating between two values,
83125         don't check whether tm_isdst has the requested value, since
83126         we already know the answer.  When tm_isdst has the wrong value,
83127         use a different heuristic to find the right one, based on the
83128         extreme values actually observed in practice in tz2003a,
83129         rather than the (overly optimistic) "previous 3 calendar quarters".
83130
83131         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83132         "T const" to accommodate glibc style.
83133         (check_result): Use less-confusing report format.  "long" -> "long int.
83134         (main): Likewise.
83135         Don't loop if the iteration overflows time_t.
83136         Allow a negative step in the iteration.
83137
83138 2003-07-06  Karl Berry  <karl@gnu.org>
83139
83140         * config/depcomp: update from automake.
83141         * config/config.sub: update from prep.
83142
83143 2003-07-03  Karl Berry  <karl@gnu.org>
83144
83145         * config/config.guess: update from prep.
83146
83147 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83148
83149         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83150         xreadlink.c now includes it unconditionally.
83151
83152 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83153
83154         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83155         having it depend on HAVE_SYS_TYPES_H.
83156
83157 2003-07-01  Bruno Haible  <bruno@clisp.org>
83158
83159         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83160         <sys/types.h> should be sufficient.
83161         Reported by Paul Eggert.
83162
83163 2003-06-26  Karl Berry  <karl@gnu.org>
83164
83165         * config/depcomp: update from automake.
83166
83167 2003-06-26  Bruno Haible  <bruno@clisp.org>
83168
83169         * modules/human: Depend on module stdbool.
83170
83171 2003-06-25  Bruno Haible  <bruno@clisp.org>
83172
83173         * modules/readlink: New file.
83174         * modules/xreadlink: Depend on it.
83175         * MODULES.html.sh (func_all_modules): Add readlink.
83176
83177 2003-06-25  Bruno Haible  <bruno@clisp.org>
83178
83179         * m4/readlink.m4: New file.
83180
83181 2003-06-25  Bruno Haible  <bruno@clisp.org>
83182
83183         * lib/readlink.c: New file.
83184
83185 2003-06-22  Karl Berry  <karl@gnu.org>
83186
83187         * config/srclist.txt: update mkinstalldirs from automake.
83188         * config/mkinstalldirs: update.
83189
83190 2003-06-22  Bruno Haible  <bruno@clisp.org>
83191
83192         Portability to mingw32.
83193         * m4/ssize_t.m4: New file, from GNU gettext.
83194         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83195         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83196
83197 2003-06-22  Bruno Haible  <bruno@clisp.org>
83198
83199         * modules/safe-read: Add m4/ssize_t.m4.
83200         * modules/xreadlink: Add m4/ssize_t.m4.
83201
83202 2003-06-20  Bruno Haible  <bruno@clisp.org>
83203
83204         Assume C89, so PARAMS isn't needed.
83205         * lib/unicodeio.h (PARAMS): Remove.
83206         * lib/unicodeio.c: Don't use PARAMS.
83207
83208 2003-06-18  Karl Berry  <karl@gnu.org>
83209
83210         * config/config.{guess,sub}: update from prep.
83211
83212 2003-06-18  Jim Meyering  <jim@meyering.net>
83213
83214         Merge changes from coreutils.
83215         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83216         Remove explicit declarations of xmalloc and realloc.
83217         Include xalloc.h.
83218         (read_utmp): Remove anachronistic cast of xmalloc.
83219
83220 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83221
83222         Assume C89, so PARAMS isn't needed.
83223         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83224         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83225         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83226         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83227         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83228         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83229         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83230         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83231         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83232         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83233         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83234         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83235         no longer needed. Anyway, config.h should always be included before any
83236         other file.
83237
83238 2003-06-11  Simon Josefsson  <jas@extundo.com>
83239
83240         * modules/sysexits: New file.
83241         * MODULES.html.sh (func_all_modules): Add sysexits.
83242
83243 2003-06-11  Simon Josefsson  <jas@extundo.com>
83244
83245         * lib/sysexit_.h: New file.
83246
83247 2003-06-11  Derek Price  <derek@ximbiot.com>
83248
83249         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83250         necessary.
83251
83252 2003-06-11  Bruno Haible  <bruno@clisp.org>
83253
83254         * m4/sysexits.m4: New file.
83255
83256 2003-06-10  Simon Josefsson  <jas@extundo.com>
83257
83258         * lib/argp.h: New file, from glibc.
83259         * lib/argp-ba.c: New file, from glibc.
83260         * lib/argp-eexst.c: New file, from glibc.
83261         * lib/argp-fmtstream.c: New file, from glibc.
83262         * lib/argp-fmtstream.h: New file, from glibc.
83263         * lib/argp-fs-xinl.c: New file, from glibc.
83264         * lib/argp-help.c: New file, from glibc.
83265         * lib/argp-namefrob.h: New file, from glibc.
83266         * lib/argp-parse.c: New file, from glibc.
83267         * lib/argp-pv.c: New file, from glibc.
83268         * lib/argp-pvh.c: New file, from glibc.
83269         * lib/argp-xinl.c: New file, from glibc.
83270
83271 2003-06-10  Simon Josefsson  <jas@extundo.com>
83272
83273         * modules/strchrnul: New file.
83274
83275 2003-06-10  Simon Josefsson  <jas@extundo.com>
83276
83277         * modules/argp: New file.
83278
83279 2003-06-10  Simon Josefsson  <jas@extundo.com>
83280
83281         * m4/strchrnul.m4: New file.
83282
83283 2003-06-10  Simon Josefsson  <jas@extundo.com>
83284
83285         * lib/strchrnul.h: New file.
83286         * lib/strchrnul.c: New file.
83287
83288 2003-06-10  Bruno Haible  <bruno@clisp.org>
83289
83290         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83291
83292 2003-06-07  Karl Berry  <karl@gnu.org>
83293
83294         * config/config.{guess,sub}: update from prep.
83295
83296 2003-06-07  Jim Meyering  <jim@meyering.net>
83297
83298         * modules/strtod: Use $(...) notation, not @...@ for
83299         AC_REPLACE'd variables.
83300         * modules/localcharset: Likewise.
83301
83302 2003-06-07  Jim Meyering  <jim@meyering.net>
83303
83304         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83305         in place of my name in the copyright comment.
83306         Remove definition and uses of __P.
83307
83308         From coreutils.
83309         * lib/stat.c: Don't declare xmalloc explicitly.
83310         Instead, include "xalloc.h".
83311         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83312         xrealloc, and xcalloc return values.
83313         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83314         Improve comment.
83315         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83316
83317 2003-06-07  Bruno Haible  <bruno@clisp.org>
83318
83319         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83320         avoid AC_CONFIG_LINKS.
83321         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83322         fnmatch.h, to avoid AC_CONFIG_LINKS.
83323         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83324
83325 2003-06-07  Bruno Haible  <bruno@clisp.org>
83326
83327         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83328         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83329         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83330         directory.
83331         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83332         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83333         directory.
83334
83335 2003-06-06  Jim Meyering  <jim@meyering.net>
83336
83337         Merge from coreutils.
83338         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83339         Consolidate declarations and initializations of *_base* locals.
83340
83341         Merge from coreutils.
83342         This avoids a core dump on systems without GNU putenv,
83343         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83344         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83345         (unsetenv): New static function, from GNU libc.
83346         (rpl_putenv): Use it.
83347
83348         * lib/modechange.c: Remove trailing blanks.
83349
83350         Merge from coreutils.
83351         * lib/fsusage.c: Remove declaration of statfs.
83352         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83353
83354         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83355
83356 2003-06-06  Jim Meyering  <jim@meyering.net>
83357
83358         * lib/stdbool_.h: Renamed from stdbool.h.in.
83359
83360 2003-06-06  Jim Meyering  <jim@meyering.net>
83361             Bruno Haible  <bruno@clisp.org>
83362
83363         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83364         Adjust Makefile.am snippet not to redirect directly to target.
83365         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83366
83367 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83368
83369         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83370         mismatch, look in future quarters as well as past.  This fixes a
83371         bug when processing fall-backwards gaps immediately after a long
83372         period of daylight-saving time.
83373
83374         * lib/mktime.c: Assume freestanding C89 or better.
83375         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83376         (__P): Remove; not used.
83377         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83378         (mktime, not_equal_tm, print_tm, check_result,
83379         main): Use prototypes.  Use const * where appropriate.
83380         (main): Fix typo in testing code that uncovered by above changes.
83381         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83382
83383 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83384
83385         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83386         locale.h, localeconv.  This merges changes from coreutils.
83387
83388         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83389         It can be removed after the next Autoconf is released.
83390         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83391         needed.
83392
83393 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83394
83395         * lib/mktime.c: Fix Debian bug 177940
83396         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83397         (localtime_offset): Now long int, not time_t, because we want it
83398         to be guaranteed to be signed.  All uses changed.
83399         (__mktime_internal): If overflow would occur when adding offset,
83400         don't add it.
83401
83402         Merge 'human' changes from coreutils.  Rewrite to support
83403         locale-specific notations like thousands separators.
83404         * lib/human.c: Simplify authorship notice.
83405         Include human.h immediately after config.h.
83406         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83407         <limits.h>: Do not include, since human.h does.
83408         (SIZE_MAX, UINTMAX_MAX): New macros.
83409         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83410         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83411         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83412         (power_letter): Renamed from suffixes.
83413         (generate_suffix_backwards): Remove.
83414         (adjust_value): Now takes int style (because of human.h changes)
83415         and long double value (for greater precision on some platforms).
83416         (group_number): New function.
83417         (human_readable): Use it.  Use integer options, not enum.
83418         Put the options before the sizes in the arg list.
83419         Support all the new options.
83420         The old human_readable function has been removed;
83421         use inttostr.h instead.
83422         (human_readable, default_block_size, humblock):
83423         Use uintmax_t, not int, for block sizes.
83424         (human_readable_inexact, block_size_types): Remove.
83425         (block_size_opts): New constant.
83426         (human_options): Renamed from human_block_size, with new signature
83427         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83428         * lib/human.h: Add copyright and authorship notice.
83429         Include <limits.h> and <stdbool.h> unconditionally.
83430         (PARAMS): Remove.  All uses removed.
83431         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83432         (enum human_inexact_style): Remove tag; now a nameless enum.
83433         (human_floor, human_ceiling, human_round_to_even): Now have
83434         values 2, 0, 1 rather than -1, 1, 0.
83435         (human_group_digits, human_suppress_point_zero, human_autoscale,
83436         human_base_1024, human_SI, human_B): New constants.
83437         (human_readable_inexact, human_block_size): Remove.
83438         (human_readable): Size args are now uintmax_t, not int.
83439         (human_options): New decl.
83440
83441         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83442         unnecessary now that we assume C89 or better.  This change
83443         imported from coreutils.
83444
83445         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83446         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
83447         in the 2003-05-30 sync from glibc.
83448
83449         .h files should stand alone, but we shouldn't include <sys/types.h>
83450         if we can get away with just <stddef.h>.
83451
83452         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
83453         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
83454         rather than <sys/types.h>, as we merely need size_t.
83455         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
83456         to get size_t.
83457         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
83458         Include <stdio.h>, to get FILE.
83459         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
83460         memcasecmp.h has included <stddef.h> and all we need is size_t.
83461         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
83462         our interface, instead of including <sys/types.h>
83463
83464 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83465
83466         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
83467         now, as glibc mktime is buggy on non-glibc systems.
83468
83469 2003-06-03  Karl Berry  <karl@gnu.org>
83470
83471         * config/config.sub: update from prep.
83472
83473 2003-06-02  Paul Eggert  <eggert@twinsun.com>
83474
83475         [from coreutils]
83476         Fix some minor time-related bugs with POSIX time arguments.
83477         Some valid time stamps were being rejected (notably -1, and
83478         time stamps before 1900 on 64-bit hosts).  And some invalid
83479         time stamps were being accepted, e.g. September 31.
83480
83481         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
83482         that we can return (time_t) -1 successfully.
83483         * lib/posixtm.c: Likewise.
83484         [HAVE_STDBOOL_H]: Include <stdbool.h>.
83485         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
83486         (t): Remove static var.
83487         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
83488         of static var.  All uses changed.
83489         (year): Do not reject years before 1900; they can occur with
83490         64-bit time_t.
83491         (posix_time_parse): Do not check for out-of-range components;
83492         that is now the caller's responsibility, since our checks were
83493         only approximations.
83494         (posixtime): Use mktime to check for out-of-range components,
83495         since it knows them exactly.
83496         If mktime returns (time_t) -1, check whether an error actually occurred
83497         by invoking localtime on -1.
83498         (main) [TEST_POSIXTIME]: Check for input data errors, and report
83499         posixtime failures better.
83500         Improve the test data (in comments only).
83501
83502 2003-06-02  Karl Berry  <karl@gnu.org>
83503
83504         * config/mkinstalldirs (version): new variable.
83505         (--version): new option.
83506         (usage): improve message.
83507
83508 2003-05-30  Karl Berry  <karl@gnu.org>
83509
83510         * lib/mktime.c: update from libc.
83511
83512 2003-05-30  Bruno Haible  <bruno@clisp.org>
83513
83514         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
83515         * config/config.rpath: Upgrade to gettext-0.12.1.
83516
83517 2003-05-30  Bruno Haible  <bruno@clisp.org>
83518
83519         * m4/gettext.m4: Upgrade to gettext-0.12.1.
83520         * m4/nls.m4: New file, from gettext-0.12.1.
83521         * m4/po.m4: New file, from gettext-0.12.1.
83522         * m4/progtest.m4: Upgrade to gettext-0.12.1.
83523
83524 2003-05-30  Bruno Haible  <bruno@clisp.org>
83525
83526         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
83527         * lib/localcharset.h: Likewise.
83528         * lib/localcharset.c: Likewise.
83529
83530 2003-05-29  Karl Berry  <karl@gnu.org>
83531
83532         * config/config.rpath: update from gettext.
83533
83534 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83535
83536         Assume the headers required for C89 freestanding compilers.
83537         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
83538         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
83539         * m4/human.m4 (gl_HUMAN): Likewise.
83540         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
83541         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
83542         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83543         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
83544         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83545         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
83546
83547 2003-05-28  Paul Eggert  <eggert@twinsun.com>
83548
83549         Assume the headers required for C89 freestanding compilers.
83550         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
83551         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
83552         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
83553         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
83554         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
83555         define, since <limits.h> is guaranteed to do that.
83556         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
83557         * lib/exclude.c: Include <stdbool.h> unconditionally.
83558         * lib/tempname.c: Include <stddef.h> unconditionally.
83559         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
83560         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
83561         <stddef.h> does that.
83562         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
83563         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
83564         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
83565         needed.
83566         * lib/xstrtol.c: Likewise.
83567         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
83568         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
83569
83570         * lib/addext.c (addext): Use assignment rather than cast, to avoid
83571         warnings on some platforms.
83572
83573         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83574         arbitrarily.
83575
83576 2003-05-26  Jim Meyering  <jim@meyering.net>
83577
83578         Merge in a change from coreutils:
83579         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
83580         that is guaranteed to be `no'.  Use `no_such_member' to indicate
83581         that condition, rather than `-1' which is slightly misleading.
83582         Change the name of the cache variable to have the gl_ prefix.
83583         Prompted by a patch from Richard Dawe for DJGPP.
83584
83585 2003-05-24  Karl Berry  <karl@gnu.org>
83586
83587         * config/config.guess: update from prep.
83588
83589 2003-05-22  Karl Berry  <karl@gnu.org>
83590
83591         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
83592
83593 2003-05-20  Karl Berry  <karl@gnu.org>
83594
83595         * config/config.guess: update from prep.
83596
83597 2003-05-18  Karl Berry  <karl@gnu.org>
83598
83599         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
83600         might actually be set by the user.
83601
83602         * config/depcomp, install-sh, mdate-sh: update from automake.
83603
83604 2003-05-17  Bruno Haible  <bruno@clisp.org>
83605
83606         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
83607         invalid expansion for AC_EGREP_CPP.
83608         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
83609         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
83610         Suggested by Akim Demaille <akim@epita.fr> in
83611         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
83612
83613 2003-05-12  Jim Meyering  <jim@meyering.net>
83614
83615         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
83616         the space-padded-by-default conversion specifiers, %e, %k, %l.
83617
83618 2003-05-12  Bruno Haible  <bruno@clisp.org>
83619
83620         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
83621         the string is longer than 4 KB.
83622
83623 2003-05-11  Karl Berry  <karl@gnu.org>
83624
83625         * config/config.{guess,sub}: update from prep.
83626
83627 2003-05-09  Bruno Haible  <bruno@clisp.org>
83628
83629         * modules/error: Add m4/strerror_r.m4 to file list.
83630
83631 2003-05-03  Bruno Haible  <bruno@clisp.org>
83632
83633         Upgrade to Unicode-4.0.
83634         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
83635         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
83636         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
83637         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
83638         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
83639         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
83640         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
83641         Change width of U+E0100..U+E01EF from 1 to 0.
83642
83643 2003-04-25  Jim Meyering  <jim@meyering.net>
83644
83645         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
83646         of type size_t, not int.
83647
83648 2003-04-25  Bruno Haible  <bruno@clisp.org>
83649
83650         * lib/copy-file.c: Include <stddef.h>, for size_t.
83651
83652 2003-04-21  Paul Eggert  <eggert@twinsun.com>
83653
83654         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
83655         code which expansion is under static control.  Patch imported from
83656         Akim Demaille's patch to Bison; see
83657         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
83658
83659 2003-04-14  Bruno Haible  <bruno@clisp.org>
83660
83661         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
83662
83663 2003-04-11  Jim Meyering  <jim@meyering.net>
83664
83665         Merge changes from Coreutils.
83666
83667         2003-03-22  Jim Meyering  <jim@meyering.net>
83668
83669         * lib/strftime.c (widen): Cast alloca return value to proper type.
83670
83671         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
83672
83673         From GNU libc.
83674         * lib/strftime.c (my_strftime): Handle very large width
83675         specifications for numeric values correctly.  Improve checks for
83676         overflow.
83677
83678         2003-01-19  Jim Meyering  <jim@meyering.net>
83679
83680         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
83681         definitions.
83682         (nl_get_alt_digit) [! defined my_strftime]: Define.
83683         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
83684         _nl_get_alt_digit and _nl_get_walt_digit.
83685
83686         * lib/strftime.c (my_strftime): Merge in locale-related changes from
83687         libc. These changes have no effect outside of _LIBC.
83688
83689 2003-04-10  Bruno Haible  <bruno@clisp.org>
83690
83691         * modules/findprog: New file.
83692         * MODULES.html.sh (func_all_modules): Add it.
83693
83694 2003-04-10  Bruno Haible  <bruno@clisp.org>
83695
83696         * m4/findprog.m4: New file.
83697         * m4/eaccess.m4: New file.
83698
83699 2003-04-10  Bruno Haible  <bruno@clisp.org>
83700
83701         * lib/findprog.h: New file, from GNU gettext.
83702         * lib/findprog.c: New file, from GNU gettext.
83703
83704 2003-04-05  Jim Meyering  <jim@meyering.net>
83705
83706         Merge changes from Coreutils.
83707
83708         * lib/exclude.h (PARAMS): Remove definition and uses.
83709         * lib/exclude.c: Remove uses of `PARAMS'.
83710
83711         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
83712         Add test-cases for DOS filenames. Declare program_name.
83713         (main): Set up program_name.  Patch by Rich Dawe.
83714
83715         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83716         error from mntctl.
83717         Use mntctl's return value to drive the entry-processing loop, since
83718         we can't rely on the value of the vmt_length member in the last
83719         entry.  On some systems doing so could result in exhausting
83720         virtual memory.  Based in part on a patch from Mike Jetzer.
83721
83722 2003-04-04  Bruno Haible  <bruno@clisp.org>
83723
83724         * modules/linebreak: New file.
83725         * MODULES.html.sh (func_all_modules): Add it.
83726
83727 2003-04-04  Bruno Haible  <bruno@clisp.org>
83728
83729         * m4/linebreak.m4: New file.
83730
83731 2003-04-04  Bruno Haible  <bruno@clisp.org>
83732
83733         * lib/linebreak.h: New file, from GNU gettext.
83734         * lib/linebreak.c: New file, from GNU gettext with slight
83735         modifications.
83736         * lib/lbrkprop.h: New file, from GNU gettext.
83737
83738 2003-04-03  Bruno Haible  <bruno@clisp.org>
83739
83740         * modules/utf8-ucs4: New file.
83741         * modules/utf16-ucs4: New file.
83742         * modules/ucs4-utf8: New file.
83743         * modules/ucs4-utf16: New file.
83744         * MODULES.html.sh (func_all_modules): Add them.
83745
83746 2003-04-03  Bruno Haible  <bruno@clisp.org>
83747
83748         * m4/utf-ucs4.m4: New file.
83749         * m4/ucs4-utf.m4: New file.
83750
83751 2003-04-03  Bruno Haible  <bruno@clisp.org>
83752
83753         * lib/utf8-ucs4.h: New file, from GNU gettext.
83754         * lib/utf16-ucs4.h: New file, from GNU gettext.
83755         * lib/ucs4-utf8.h: New file, from GNU gettext.
83756         * lib/ucs4-utf16.h: New file, from GNU gettext.
83757
83758 2003-04-02  Bruno Haible  <bruno@clisp.org>
83759
83760         * modules/binary-io: New file.
83761         * MODULES.html.sh (func_all_modules): Add it.
83762
83763 2003-04-02  Bruno Haible  <bruno@clisp.org>
83764
83765         * lib/binary-io.h: New file, from GNU gettext.
83766
83767 2003-04-01  Bruno Haible  <bruno@clisp.org>
83768
83769         * modules/pathname: New file.
83770         * MODULES.html.sh (func_all_modules): Add it.
83771
83772 2003-04-01  Bruno Haible  <bruno@clisp.org>
83773
83774         * lib/pathname.h: New file, from GNU gettext.
83775         * lib/concatpath.c: New file, from GNU gettext.
83776
83777 2003-03-30  Bruno Haible  <bruno@clisp.org>
83778
83779         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
83780
83781 2003-03-30  Bruno Haible  <bruno@clisp.org>
83782
83783         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
83784         function chown() doesn't exist.
83785
83786 2003-03-28  Bruno Haible  <bruno@clisp.org>
83787
83788         * modules/copy-file: New file.
83789         * MODULES.html.sh (func_all_modules): Add it.
83790
83791 2003-03-28  Bruno Haible  <bruno@clisp.org>
83792
83793         * m4/copy-file.m4: New file.
83794
83795 2003-03-28  Bruno Haible  <bruno@clisp.org>
83796
83797         * lib/copy-file.h: New file, from GNU gettext.
83798         * lib/copy-file.c: New file, from GNU gettext.
83799
83800 2003-03-18  Jim Meyering  <jim@meyering.net>
83801
83802         * lib/quote.c (quote_n): Fix typo in comment.
83803
83804 2003-03-18  Bruno Haible  <bruno@clisp.org>
83805
83806         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
83807         checking.
83808         * m4/onceonly_2_57.m4: Likewise.
83809
83810 2003-03-17  Bruno Haible  <bruno@clisp.org>
83811
83812         * m4/onceonly.m4: Require autoconf 2.54 or newer.
83813         (m4_quote): Remove macro.
83814         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
83815
83816 2003-03-14  Jim Meyering  <jim@meyering.net>
83817
83818         Merge changes from Coreutils.
83819         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
83820         to be const, in order to avoid warnings.
83821         (obstack_room): Likewise.
83822         (obstack_empty_p): Likewise.
83823
83824 2003-03-14  Bruno Haible  <bruno@clisp.org>
83825
83826         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
83827         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
83828
83829 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83830
83831         Merge changes from Bison.
83832         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
83833         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
83834         when compiling Bison 1.875's `bitset bset = obstack_alloc
83835         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
83836         * lib/hash.c: Include <stdbool.h> unconditionally.
83837
83838 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83839
83840         * m4/onceonly.m4 (m4_quote): New macro.
83841         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
83842         Quote AC_FOREACH variable-expansions properly.
83843
83844 2003-03-13  Paul Eggert  <eggert@twinsun.com>
83845
83846         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
83847
83848 2003-03-09  Paul Eggert  <eggert@twinsun.com>
83849
83850         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
83851         Reported by Bruce Becker; see:
83852         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
83853
83854 2003-03-03  Paul Eggert  <eggert@twinsun.com>
83855             Bruno Haible  <bruno@clisp.org>
83856
83857         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
83858         Reported by John Hughes, see
83859         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
83860
83861 2003-02-20  Bruno Haible  <bruno@clisp.org>
83862
83863         * MODULES.html.sh (func_all_modules): Add poll.
83864
83865 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83866
83867         * modules/poll: New file.
83868
83869 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83870
83871         * lib/poll_.h: New file.
83872         * lib/poll.c: New file.
83873
83874 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
83875
83876         * m4/poll.m4: New file.
83877
83878 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83879
83880         * modules/mathl: New file.
83881
83882 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83883
83884         * lib/mathl.h: New file.
83885         * lib/acosl.c: New file.
83886         * lib/asinl.c: New file.
83887         * lib/atanl.c: New file.
83888         * lib/ceill.c: New file.
83889         * lib/cosl.c: New file.
83890         * lib/expl.c: New file.
83891         * lib/floorl.c: New file.
83892         * lib/frexpl.c: New file.
83893         * lib/ldexpl.c: New file.
83894         * lib/logl.c: New file.
83895         * lib/sincosl.c: New file.
83896         * lib/sinl.c: New file.
83897         * lib/sqrtl.c: New file.
83898         * lib/tanl.c: New file.
83899         * lib/trigl.c: New file.
83900         * lib/trigl.h: New file.
83901
83902 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
83903
83904         * m4/mathl.m4: New file.
83905
83906 2003-02-18  Bruno Haible  <bruno@clisp.org>
83907
83908         * MODULES.html.sh (func_all_modules): Add mathl.
83909
83910 2003-02-17  Bruno Haible  <bruno@clisp.org>
83911
83912         * modules/mkdtemp: New module.
83913         * MODULES.html.sh (func_all_modules): Add it.
83914
83915 2003-02-17  Bruno Haible  <bruno@clisp.org>
83916
83917         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
83918
83919 2003-02-17  Bruno Haible  <bruno@clisp.org>
83920
83921         * lib/mkdtemp.h: New file, from GNU gettext.
83922         * lib/mkdtemp.c: New file, from GNU gettext.
83923
83924 2003-02-02  Jim Meyering  <jim@meyering.net>
83925
83926         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
83927         e.g. glibc-2.2.93.
83928
83929 2003-01-31  Bruno Haible  <bruno@clisp.org>
83930
83931         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
83932         'rpl_rename'.
83933         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
83934         'rpl_strnlen'.
83935         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
83936         'rpl_strtod'.
83937         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
83938         'rpl_utime'.
83939
83940 2003-01-31  Bruno Haible  <bruno@clisp.org>
83941
83942         * lib/rename.c: #undef rename before defining rpl_rename.
83943         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
83944
83945 2003-01-30  Bruno Haible  <bruno@clisp.org>
83946
83947         * modules/vasnprintf, modules/vasprintf: New modules.
83948         * MODULES.html.sh (func_all_modules): Add them.
83949
83950 2003-01-30  Bruno Haible  <bruno@clisp.org>
83951
83952         * m4/signed.m4: New file, from GNU gettext.
83953         * m4/longdouble.m4: New file, from GNU gettext.
83954         * m4/wchar_t.m4: New file, from GNU gettext.
83955         * m4/wint_t.m4: New file, from GNU gettext.
83956         * m4/vasnprintf.m4: New file.
83957         * m4/vasprintf.m4: New file.
83958
83959 2003-01-30  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/printf-args.h: New file, from GNU gettext.
83962         * lib/printf-args.c: New file, from GNU gettext.
83963         * lib/printf-parse.h: New file, from GNU gettext.
83964         * lib/printf-parse.c: New file, from GNU gettext.
83965         * lib/vasnprintf.h: New file, from GNU gettext.
83966         * lib/vasnprintf.c: New file, from GNU gettext.
83967         * lib/asnprintf.c: New file, from GNU gettext.
83968         * lib/vasprintf.h: New file, from GNU gettext with modifications.
83969         * lib/vasprintf.c: New file, from GNU gettext.
83970         * lib/asprintf.c: New file, from GNU gettext.
83971
83972 2003-01-29  Bruno Haible  <bruno@clisp.org>
83973
83974         * modules/stpncpy: New module.
83975         * MODULES.html.sh (func_all_modules): Add it.
83976
83977 2003-01-29  Bruno Haible  <bruno@clisp.org>
83978
83979         * m4/stpncpy.m4: New file.
83980
83981 2003-01-29  Bruno Haible  <bruno@clisp.org>
83982
83983         * lib/stpncpy.h: New file, from GNU gettext with modifications.
83984         * lib/stpncpy.c: New file, from GNU gettext with modifications.
83985
83986 2003-01-28  Bruno Haible  <bruno@clisp.org>
83987
83988         * modules/c-ctype: New module.
83989         * MODULES.html.sh (func_all_modules): Add it.
83990
83991 2003-01-28  Bruno Haible  <bruno@clisp.org>
83992
83993         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
83994         Paul Eggert.
83995         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
83996         Paul Eggert.
83997
83998 2003-01-27  Bruno Haible  <bruno@clisp.org>
83999
84000         * modules/xsetenv: New module.
84001         * MODULES.html.sh (func_all_modules): Add it.
84002
84003 2003-01-27  Bruno Haible  <bruno@clisp.org>
84004
84005         * lib/xsetenv.h: New file, from GNU gettext.
84006         * lib/xsetenv.c: New file, from GNU gettext.
84007
84008 2003-01-23  Jim Meyering  <jim@meyering.net>
84009
84010         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84011         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84012
84013 2003-01-23  Bruno Haible  <bruno@clisp.org>
84014
84015         * modules/minmax: New module.
84016         * MODULES.html.sh (func_all_modules): Add it.
84017
84018 2003-01-23  Bruno Haible  <bruno@clisp.org>
84019
84020         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84021         Eggert.
84022
84023 2003-01-22  Bruno Haible  <bruno@clisp.org>
84024
84025         * modules/exit: New module.
84026         * MODULES.html.sh (func_all_modules): Add it.
84027
84028 2003-01-22  Bruno Haible  <bruno@clisp.org>
84029
84030         * lib/exit.h: New file, from GNU gettext.
84031
84032 2003-01-19  Bruno Haible  <bruno@clisp.org>
84033
84034         * gnulib-tool: Recognize option --extract-maintainer.
84035         (func_get_maintainer): New function.
84036         * modules/*: Add Maintainer entry.
84037
84038 2003-01-16  Jim Meyering  <jim@meyering.net>
84039
84040         * m4/regex.m4: The `regex' struct is both input and output.
84041         Initialize it before each use.  Patch by Tim Waugh.
84042
84043 2003-01-16  Bruno Haible  <bruno@clisp.org>
84044
84045         * MODULES.html.sh: Add a table of contents. Add the module name as
84046         leftmost column. Add hyperlinks.
84047
84048 2003-01-15  Bruno Haible  <bruno@clisp.org>
84049
84050         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84051
84052 2003-01-15  Bruno Haible  <bruno@clisp.org>
84053
84054         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84055         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84056         suffix.
84057
84058 2003-01-15  Bruno Haible  <bruno@clisp.org>
84059
84060         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84061
84062 2003-01-15  Bruno Haible  <bruno@clisp.org>
84063
84064         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84065         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84066
84067 2003-01-14  Jim Meyering  <jim@meyering.net>
84068
84069         * lib/same.c (same_name): Tweak a comment.
84070
84071 2003-01-14  Bruno Haible  <bruno@clisp.org>
84072
84073         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84074         when a string comparison is sufficient.
84075
84076 2003-01-14  Bruno Haible  <bruno@clisp.org>
84077
84078         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84079         'unsigned int'.
84080
84081 2003-01-14  Bruno Haible  <bruno@clisp.org>
84082
84083         * lib/hash-pjw.c: Add comment about low quality of this function.
84084
84085 2003-01-13  Bruno Haible  <bruno@clisp.org>
84086
84087         * modules/stpcpy: Distribute lib/stpcpy.h.
84088         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84089
84090 2003-01-13  Bruno Haible  <bruno@clisp.org>
84091
84092         * modules/*: Add a description.
84093         * modules/strpbrk: Fix Makefile.am snippet.
84094         * modules/strtoimax: Fix dependencies.
84095         * modules/strtoumax: Likewise.
84096
84097 2003-01-13  Bruno Haible  <bruno@clisp.org>
84098
84099         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84100         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84101         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84102
84103 2003-01-13  Bruno Haible  <bruno@clisp.org>
84104
84105         * gnulib-tool (func_create_testdir): Store config/* files in the main
84106         directory.
84107         * config.rpath: Move to ...
84108         * config/config.rpath: ... here.
84109         * modules/gettext: Contains config/config.rpath, not config.rpath.
84110         * modules/iconv: Likewise.
84111
84112 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84113
84114         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84115         to avoid collisions with libcurses and libreadline.
84116
84117         * m4/getstr.m4: Remove.
84118         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
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         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84126         * lib/getstr.h, getstr.c: Remove.
84127         * lib/getline.c: Include "getline.h", to check interface.
84128         Move body of old getstr.c here: this defines MIN_CHUNK and
84129         declares getdelim2, which is renamed from getstr.
84130         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84131
84132         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84133         All uses changed.
84134         * lib/linebuffer.h: Likewise.
84135         (readline): Remove backward-compatibility macro.
84136
84137 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84138
84139         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84140         to avoid collisions with libcurses and libreadline.
84141         * getstr: Remove.
84142         * MODULES.html.sh: Remove getstr.
84143         * modules/getline: Depend on unlocked-io, not getstr.
84144
84145 2003-01-12  Jim Meyering  <jim@meyering.net>
84146
84147         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84148
84149 2003-01-10  Bruno Haible  <bruno@clisp.org>
84150
84151         * modules/alloca: Change Makefile.am requirements. Simplify Include
84152         requirements. Add lib/alloca_.h to file list.
84153
84154 2003-01-10  Bruno Haible  <bruno@clisp.org>
84155
84156         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84157
84158 2003-01-10  Bruno Haible  <bruno@clisp.org>
84159
84160         * lib/alloca_.h: New file.
84161         * lib/getdate.y: Unconditionally include alloca.h.
84162         * lib/makepath.c: Likewise.
84163         * lib/setenv.c: Likewise.
84164         * lib/userspec.c: Likewise.
84165
84166 2003-01-09  Karl Berry  <karl@gnu.org>
84167
84168         * MODULES.html.sh: include `dirname $0` in PATH, to find
84169         gnulib-tool.
84170
84171 2003-01-09  Bruno Haible  <bruno@clisp.org>
84172
84173         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84174         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84175
84176 2003-01-09  Bruno Haible  <bruno@clisp.org>
84177
84178         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84179
84180 2003-01-09  Bruno Haible  <bruno@clisp.org>
84181
84182         * lib/stdbool.h.in: New file.
84183
84184 2003-01-09  Bruno Haible  <bruno@clisp.org>
84185
84186         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84187         * MODULES.html.sh: Likewise.
84188
84189 2003-01-08  Jim Meyering  <jim@meyering.net>
84190
84191         * lib/full-write.c: Undefine and define-away `const' after inclusion
84192         of errno.h, not before.  Suggestion from Bruno Haible.
84193
84194 2003-01-08  Bruno Haible  <bruno@clisp.org>
84195
84196         * modules/full-read: Depend on full-write.
84197
84198 2003-01-08  Bruno Haible  <bruno@clisp.org>
84199
84200         * lib/safe-read.c: Include specification header first, to ensure its
84201         selfcontainedness.
84202         * lib/full-write.c: Likewise.
84203
84204 2003-01-07  Jim Meyering  <jim@meyering.net>
84205
84206         * lib/full-write.c: Rework so that it may serve to define full_read,
84207         too.
84208         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84209
84210 2003-01-07  Bruno Haible  <bruno@clisp.org>
84211
84212         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84213         <inttypes.h>.
84214         * lib/xstrtol.h: Likewise.
84215         * lib/xstrtoimax.c: Likewise.
84216         * lib/xstrtoumax.c: Likewise.
84217         * lib/human.h: Likewise.
84218
84219         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84220         on systems that have <inttypes.h> but not <stdint.h>.
84221
84222 2003-01-07  Bruno Haible  <bruno@clisp.org>
84223
84224         * MODULES.html.sh: Add copyright notice.
84225         (missed_files): Omit CVS directory entries.
84226         (func_module): Make it work with sed-3.02.
84227         * MODULES.txt: Remove file.
84228
84229 2003-01-06  Jim Meyering  <jim@meyering.net>
84230
84231         * lib/version-etc.c: Update year in translatable copyright string.
84232
84233 2003-01-03  Karl Berry  <karl@gnu.org>
84234
84235         * config/config.{guess,sub}: update from prep.
84236
84237 2003-01-02  Karl Berry  <karl@gnu.org>
84238
84239         * doc/COPYING.DOC: belatedly updated to 1.2.
84240
84241 2003-01-01  Karl Berry  <karl@gnu.org>
84242
84243         * gnulib-tool (func_verify_module): report module name $module in
84244         error message, not $1.
84245         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84246         be created, only if it doesn't exist.
84247         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84248
84249 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84250
84251         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84252
84253 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84254
84255         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84256         memcmp if strcoll doesn't work.
84257
84258 2002-12-31  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84261         nonempty.
84262
84263 2002-12-31  Bruno Haible  <bruno@clisp.org>
84264
84265         * lib/memcoll.c (STRCOLL): New macro.
84266         (memcoll): Use it.
84267
84268 2002-12-31  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/localcharset.h: New file.
84271         * lib/localcharset.c: Include it.
84272         * lib/unicodeio.c: Likewise.
84273
84274 2002-12-31  Bruno Haible  <bruno@clisp.org>
84275
84276         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84277         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84278
84279 2002-12-31  Bruno Haible  <bruno@clisp.org>
84280
84281         * lib/getline.h: Include <stddef.h>, for size_t.
84282
84283         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84284         * lib/unicodeio.c: Don't include <stddef.h>.
84285
84286 2002-12-31  Bruno Haible  <bruno@clisp.org>
84287
84288         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84289         HAVE_TM_ZONE.
84290
84291 2002-12-24  Karl Berry  <karl@gnu.org>
84292
84293         * config/config.guess: update from prep.
84294
84295 2002-12-24  Bruno Haible  <bruno@clisp.org>
84296
84297         General infrasructure.
84298         * m4/README: Rewritten.
84299         * m4/onceonly.m4: New file.
84300         * m4/onceonly_2_57.m4: New file.
84301
84302         Module atexit.
84303         * m4/atexit.m4: New file.
84304
84305         Module strtod.
84306         * m4/strtod.m4: New file.
84307
84308         Module strtol.
84309         * m4/strtol.m4: New file.
84310
84311         Module strtoul.
84312         * m4/strtoul.m4: New file.
84313
84314         Module memchr.
84315         * m4/memchr.m4: New file.
84316
84317         Module memcmp.
84318         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84319         (jm_FUNC_MEMCMP): Invoke it.
84320
84321         Module memcpy.
84322         * m4/memcpy.m4: New file.
84323
84324         Module memmove.
84325         * m4/memmove.m4: New file.
84326
84327         Module memset.
84328         * m4/memset.m4: New file.
84329
84330         Module strcspn.
84331         * m4/strcspn.m4: New file.
84332
84333         Module strpbrk.
84334         * m4/strpbrk.m4: New file.
84335
84336         Module strstr.
84337         * m4/strstr.m4: New file.
84338
84339         Module strerror.
84340         * m4/strerror.m4: New file.
84341
84342         Module mktime.
84343         * m4/mktime.m4: Renamed from jm-mktime.m4.
84344         (gl_PREREQ_MKTIME): New macro.
84345         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84346
84347         Module malloc.
84348         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84349         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84350         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84351
84352         Module realloc.
84353         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84354         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84355         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84356
84357         Module strftime.
84358         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84360         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84361         gl_TM_GMTOFF.
84362         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84363
84364         Module xalloc.
84365         * m4/xalloc.m4: New file.
84366
84367         Module alloca.
84368         * m4/alloca.m4: New file.
84369
84370         Module putenv.
84371         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84372         (jm_FUNC_PUTENV): Invoke it.
84373
84374         Module setenv.
84375         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84376         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84377         when invoked twice.
84378         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84379         gt_FUNC_SETENV.
84380
84381         Module memrchr.
84382         * m4/memrchr.m4: New file.
84383
84384         Module stpcpy.
84385         * m4/stpcpy.m4: New file.
84386
84387         Module strcase.
84388         * m4/strcase.m4: New file.
84389
84390         Module strdup.
84391         * m4/strdup.m4: New file.
84392
84393         Module strnlen.
84394         * m4/strnlen.m4: New file.
84395
84396         Module strndup.
84397         * m4/strndup.m4: New file.
84398
84399         Module xstrtod.
84400         * m4/xstrtod.m4: New file.
84401
84402         Module xstrtol.
84403         * m4/xstrtol.m4: New file.
84404
84405         Module getdate.
84406         * m4/getdate.m4: New file.
84407
84408         Module unlocked-io.
84409         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84410         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84411         * m4/jm-glibc-io.m4n: Remove file.
84412
84413         Module long-options.
84414         * m4/long-options.m4: New file.
84415
84416         Module md5.
84417         * m4/md5.m4: New file.
84418
84419         Module sha.
84420         * m4/sha.m4: New file.
84421
84422         Module getstr.
84423         * m4/getstr.m4: New file.
84424
84425         Module getline.
84426         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84427         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84428         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84429         simply getline. Infoke gl_PREREQ_GETLINE.
84430
84431         Module obstack.
84432         * m4/obstack.m4: New file.
84433
84434         Module hash.
84435         * m4/hash.m4: New file.
84436
84437         Module readtokens.
84438         * m4/readtokens.m4: New file.
84439
84440         Module strverscmp.
84441         * m4/strverscmp.m4: New file.
84442
84443         Module stdbool.
84444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84445         OSF/1.
84446
84447         Module strtoll.
84448         * m4/strtoll.m4: New file.
84449
84450         Module strtoull.
84451         * m4/strtoull.m4: New file.
84452
84453         Module strtoimax.
84454         * m4/strtoimax.m4: New file.
84455
84456         Module strtoumax.
84457         * m4/strtoumax.m4: New file.
84458
84459         Module xstrtoimax.
84460         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
84461         jm_AC_PREREQ_XSTRTOIMAX.
84462         Moved the strtol prerequisites to strtol.m4.
84463         Moved the strtoll prerequisites to strtoll.m4.
84464         Moved the strtoimax prerequisites to strtoimax.m4.
84465
84466         Module xstrtoumax.
84467         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
84468         jm_AC_PREREQ_XSTRTOUMAX.
84469         Moved the strtoul prerequisites to strtoul.m4.
84470         Moved the strtoull prerequisites to strtoull.m4.
84471         Moved the strtoumax prerequisites to strtoumax.m4.
84472
84473         Module chown.
84474         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
84475         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
84476
84477         Module dup2.
84478         * m4/dup2.m4: New file.
84479
84480         Module ftruncate.
84481         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
84482         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
84483
84484         Module getgroups.
84485         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
84486         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
84487
84488         Module gettimeofday.
84489         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
84490         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
84491         gl_PREREQ_GETTIMEOFDAY.
84492
84493         Module mkdir.
84494         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
84495         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
84496
84497         Module mkstemp.
84498         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
84499         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
84500         jm_AC_TYPE_UINTMAX_T.
84501         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
84502
84503         Module stat.
84504         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
84505         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
84506
84507         Module lstat.
84508         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
84509         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
84510
84511         Module timespec.
84512         * m4/timespec.m4 (gl_TIMESPEC): New macro.
84513         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
84514         * m4/st_mtim.m4: Indentation.
84515
84516         Module nanosleep.
84517         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
84518         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
84519         gl_PREREQ_NANOSLEEP.
84520
84521         Module regex.
84522         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
84523         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
84524         (gl_REGEX): New macro.
84525
84526         Module rename.
84527         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
84528         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
84529
84530         Module rmdir.
84531         * m4/rmdir.m4: New file.
84532
84533         Module utime.
84534         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
84535         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
84536         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
84537
84538         Module dirname.
84539         * m4/dirname.m4: New file.
84540
84541         Module getopt.
84542         * m4/getopt.m4: New file.
84543
84544         Module unistd-safer.
84545         * m4/unistd-safer.m4: New file.
84546
84547         Module fnmatch.
84548         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
84549         declaration.
84550         (gl_PREREQ_FNMATCH_EXTRA): New macro.
84551         (gl_FUNC_FNMATCH_POSIX): New macro.
84552         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
84553         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
84554         simply fnmatch.
84555
84556         Module exclude.
84557         * m4/exclude.m4: New file.
84558
84559         Module human.
84560         * m4/human.m4: New file.
84561
84562         Module acl.
84563         * m4/acl.m4: Nop.
84564
84565         Module backupfile.
84566         * m4/backupfile.m4: New file.
84567         * m4/d-ino.m4: Indentation.
84568
84569         Module fsusage.
84570         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
84571         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
84572         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
84573
84574         Module dirfd.
84575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
84576         requirements.
84577
84578         Module euidaccess.
84579         * m4/euidaccess.m4: New file.
84580
84581         Module file-type.
84582         * m4/file-type.m4: New file.
84583
84584         Module fileblocks.
84585         * m4/fileblocks.m4: New file.
84586
84587         Module filemode.
84588         * m4/filemode.m4: New file.
84589
84590         Module isdir.
84591         * m4/isdir.m4: New file.
84592
84593         Module lchown.
84594         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
84595         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
84596
84597         Module makepath.
84598         * m4/makepath.m4: New file.
84599
84600         Module modechange.
84601         * m4/modechange.m4: New file.
84602
84603         Module mountlist.
84604         * m4/mountlist.m4: New file.
84605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
84606         Indentation.
84607
84608         Module path-concat.
84609         * m4/path-concat.m4: New file.
84610
84611         Module pathmax.
84612         * m4/pathmax.m4: New file.
84613
84614         Module same.
84615         * m4/same.m4: New file.
84616
84617         Module save-cwd.
84618         * m4/save-cwd.m4: New file.
84619
84620         Module savedir.
84621         * m4/savedir.m4: New file.
84622
84623         Module xgetcwd.
84624         * m4/xgetcwd.m4: New file.
84625         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
84626
84627         Module xreadlink.
84628         * m4/xreadlink.m4: New file.
84629
84630         Module safe-read.
84631         * m4/safe-read.m4: New file.
84632
84633         Module safe-write.
84634         * m4/safe-write.m4: New file.
84635
84636         Module closeout.
84637         * m4/closeout.m4: New file.
84638
84639         Module stdio-safer.
84640         * m4/stdio-safer.m4: New file.
84641
84642         Module getpass.
84643         * m4/getpass.m4: New file.
84644
84645         Module getugroups.
84646         * m4/getugroups.m4: New file.
84647
84648         Module group-member.
84649         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
84650         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
84651
84652         Module idcache.
84653         * m4/idcache.m4: New file.
84654
84655         Module userspec.
84656         * m4/userspec.m4: New file.
84657
84658         Module gettime.
84659         * m4/clock_time.m4: New file.
84660         * m4/gettime.m4: New file.
84661
84662         Module settime.
84663         * m4/settime.m4: New file.
84664
84665         Module posixtm.
84666         * m4/posixtm.m4: New file.
84667
84668         Module gethostname.
84669         * m4/gethostname.m4: New file.
84670
84671         Module canon-host.
84672         * m4/canon-host.m4: New file.
84673
84674         Module gettext.
84675         * m4/codeset.m4: New file, from gettext-0.11.5.
84676         * m4/gettext.m4: New file, from gettext-0.11.5.
84677         * m4/glibc21.m4: New file, from gettext-0.11.5.
84678         * m4/iconv.m4: New file, from gettext-0.11.5.
84679         * m4/intdiv0.m4: New file, from gettext-0.11.5.
84680         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
84681         * m4/inttypes.m4: New file, from gettext-0.11.5.
84682         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
84683         * m4/isc-posix.m4: New file, from gettext-0.11.5.
84684         * m4/lcmessage.m4: New file, from gettext-0.11.5.
84685         * m4/lib-ld.m4: New file, from gettext-0.11.5.
84686         * m4/lib-link.m4: New file, from gettext-0.11.5.
84687         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
84688         * m4/progtest.m4: New file, from gettext-0.11.5.
84689         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
84690         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
84691         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
84692
84693         Module localcharset.
84694         * m4/localcharset.m4: New file.
84695
84696         Module hard-locale.
84697         * m4/hard-locale.m4: New file.
84698
84699         Module mbswidth.
84700         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
84701         onceonly macros.
84702         * m4/mbrtowc.m4: Add comment.
84703
84704         Module memcasecmp.
84705         * m4/memcasecmp.m4: New file.
84706
84707         Module memcoll.
84708         * m4/memcoll.m4: New file.
84709
84710         Module unicodeio.
84711         * m4/unicodeio.m4: New file.
84712
84713         Module rpmatch.
84714         * m4/rpmatch.m4: New file.
84715
84716         Module yesno.
84717         * m4/yesno.m4: New file.
84718
84719         Module exitfail.
84720         * m4/exitfail.m4: New file.
84721
84722         Module c-stack.
84723         * m4/c-stack.m4 (gl_C_STACK): New macro.
84724         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
84725
84726         Module error.
84727         * m4/error.m4 (gl_ERROR): New macro.
84728         (jm_PREREQ_ERROR): Use onceonly macros.
84729
84730         Module fatal.
84731         * m4/fatal.m4: New file.
84732
84733         Module getloadavg.
84734         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
84735         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
84736
84737         Module getpagesize.
84738         * m4/getpagesize.m4: New file.
84739
84740         Module getusershell.
84741         * m4/getusershell.m4: New file.
84742
84743         Module physmem.
84744         * m4/physmem.m4: New file.
84745
84746         Module posixver.
84747         * m4/posixver.m4: New file.
84748
84749         Module quotearg.
84750         * m4/quotearg.m4: New file.
84751
84752         Module quote.
84753         * m4/quote.m4: New file.
84754
84755         Module readutmp.
84756         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
84757
84758         Module sig2str.
84759         * m4/sig2str.m4: New file.
84760
84761         Other.
84762         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
84763         ulonglong.m4.
84764         * m4/intmax_t.m4: New file.
84765         * m4/d-type.m4: Indentation.
84766         * m4/jm-macros.m4: Update.
84767         * m4/prereq.m4 (jm_PREREQ): Update.
84768         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
84769         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
84770         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
84771         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
84772         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
84773         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
84774         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
84775         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
84776         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
84777         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
84778         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
84779         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
84780         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
84781         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
84782         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
84783         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
84784         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
84785         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
84786         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
84787
84788 2002-12-24  Bruno Haible  <bruno@clisp.org>
84789
84790         * MODULES.txt: Update according to m4/ changes.
84791
84792         Module gettext.
84793         * config.rpath: New file, from gettext-0.11.5.
84794
84795         * modules/*: New module descriptions.
84796         * gnulib-tool: New file.
84797         * MODULES.html.sh: New file.
84798
84799 2002-12-21  Karl Berry  <karl@gnu.org>
84800
84801         * doc/fdl.texi: update to version 1.2.
84802
84803 2002-12-19  Karl Berry  <karl@gnu.org>
84804
84805         * config/config.guess: update from prep.
84806
84807 2002-12-18  Bruno Haible  <bruno@clisp.org>
84808
84809         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
84810         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
84811
84812 2002-12-17  Bruno Haible  <bruno@clisp.org>
84813
84814         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
84815         stdlib.h, string.h.
84816
84817 2002-12-17  Bruno Haible  <bruno@clisp.org>
84818
84819         * lib/canon-host.c (strdup): Remove unused declaration.
84820
84821         * lib/fsusage.c: Include full_read.h.
84822         (get_fs_usage): Use full_read instead of safe_read.
84823
84824         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
84825
84826 2002-12-12  Karl Berry  <karl@gnu.org>
84827
84828         * config/config.guess: update from prep.
84829
84830 2002-12-11  Bruno Haible  <bruno@clisp.org>
84831
84832         * m4/setenv.m4: New file, from gettext-0.11.5.
84833
84834 2002-12-11  Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
84837         not unsetenv().
84838         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
84839         modifications:
84840
84841         2002-12-11  Bruno Haible  <bruno@clisp.org>
84842
84843                 * setenv.c (alloca): Fall back to malloc.
84844                 (freea): New macro.
84845                 (setenv): Use freea() to free memory allocated with alloca().
84846
84847         2002-11-13  Bruno Haible  <bruno@clisp.org>
84848
84849                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
84850                 function declarations.
84851                 * unsetenv.c (unsetenv): Likewise.
84852
84853         2002-03-04  Bruno Haible  <bruno@clisp.org>
84854
84855                 Portability to AIX 4.3.3.
84856                 * unsetenv.c: New file, extracted from setenv.c.
84857                 * setenv.c: Move the unsetenv() function to unsetenv.c.
84858
84859         2001-12-20  Bruno Haible  <bruno@clisp.org>
84860
84861                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
84862                 use malloc instead. For SunOS 4.
84863
84864         2001-12-11  Bruno Haible  <bruno@clisp.org>
84865
84866                 * setenv.c: Declare alloca.
84867                 (compar_fn_t): New typedef.
84868                 (KNOWN_VALUE, STORE_VALUE): Use it.
84869
84870         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
84871         setenv.h.
84872
84873 2002-12-10  Paul Eggert  <eggert@twinsun.com>
84874
84875         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
84876         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
84877         Choose values that are less likely to collide with system fnmatch
84878         options.
84879         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
84880         defined (e.g., a pure POSIX system).
84881         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
84882         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
84883
84884 2002-12-06  Paul Eggert  <eggert@twinsun.com>
84885
84886         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
84887         a pain in practice to deal with generated m4 files.  This change
84888         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
84889
84890         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
84891         and jm-glibc-io.m4, as they are no longer a special case.
84892         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
84893         kludge and the auto-generation stuff.  Check only whether the
84894         functions are declared, not whether they exist, since older hosts
84895         that don't declare the functions can't use the optimization anyway.
84896
84897 2002-12-06  Jim Meyering  <jim@meyering.net>
84898
84899         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
84900
84901         Merge in changes from libc's misc/error.c, in preparation
84902         for the merge of gnulib's changes back into libc.
84903
84904         * lib/error.c (_): Define only if not already defined.
84905         Move definition to follow all #include directives.
84906         Include unlocked-io.h only if !_LIBC.
84907         [_LIBC]: Include <libio/libioP.h>.
84908         [USE_IN_LIBIO]: Include <libio/iolibio.h>
84909         (fflush): Tweak definition to use INTUSE.
84910         (putc): Define.
84911
84912 2002-12-05  Paul Eggert  <eggert@twinsun.com>
84913
84914         * lib/alloca.c [defined emacs]: Include "lisp.h".
84915         (xalloc_die) [defined emacs]: New macro.
84916         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
84917         [! defined emacs]: Include <xalloc.h>.
84918         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
84919         (pointer): Typedef to POINTER_TYPE *.
84920         (malloc): Remove decl; we now always use xmalloc.
84921         (alloca): Use old-style definition, since Emacs needs this.
84922         Check for arithmetic overflow when computing combined size.
84923
84924 2002-12-04  Paul Eggert  <eggert@twinsun.com>
84925
84926         Do not generate unlocked-io.h automatically, since it's easier to
84927         maintain it by hand.
84928
84929         * lib/unlocked-io.h: New file, from GNU diffutils,
84930         but with proper copyright notice and attribution.
84931         * lib/gen-uio: Remove.
84932         * lib/Makefile.am: Add copyright notice.
84933         (libfetish_a_SOURCES): Add unlocked-io.h.
84934         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
84935         (DISTCLEANFILES, io_functions): Remove macros.
84936         (EXTRA_DIST): Remove gen_uio.
84937         (unlocked-io.h): Remove rule.
84938
84939 2002-12-04  Jim Meyering  <jim@meyering.net>
84940
84941         Reflect the fact that stat.c and lstat.c are no longer generated.
84942         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
84943         (DISTCLEANFILES): Likewise.
84944         (EXTRA_DIST): Likewise.
84945         (all_local): Don't depend on stat.c or lstat.c.
84946         (stat.c, lstat.c): Remove rules.
84947         (EXTRA_DIST): Remove xstat.in.
84948
84949         * lib/xstat.in: Remove file.  Contents moved into stat.c.
84950         * lib/stat.c: New file.  Contents mostly from xstat.in.
84951         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
84952         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
84953
84954         * lib/safe-read.c: Rework so that it may serve to define safe_write,
84955         too.
84956         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
84957
84958 2002-12-03  Jim Meyering  <jim@meyering.net>
84959
84960         * lib/safe-read.c, safe-write.c: Change variable names and comments,
84961         but not semantics, to minimize the differences between these two files.
84962         (safe_read): Change comment to mention SAFE_READ_ERROR.
84963
84964         * lib/safe-read.c (IS_EINTR): Define.
84965         (safe_read): Use IS_EINTR in place of in-function cpp directives.
84966
84967 2002-12-02  Jim Meyering  <jim@meyering.net>
84968
84969         * lib/safe-read.c (EINTR): Define.
84970         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84971         (INT_MAX): Provide fallback.
84972         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
84973
84974         * lib/safe-read.h (SAFE_READ_ERROR): Define.
84975
84976 2002-12-02  Bruno Haible  <bruno@clisp.org>
84977
84978         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
84979         Define, taken from safe-read.c.
84980         (INT_MAX): Provide fallback.
84981         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
84982         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
84983
84984         * lib/safe-read.c (EINTR): Remove definition.
84985         (safe_read): Don't use EINTR if it is absent.
84986
84987 2002-12-01  Jim Meyering  <jim@meyering.net>
84988
84989         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
84990         zero.
84991         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
84992
84993 2002-11-27  Paul Eggert  <eggert@twinsun.com>
84994
84995         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
84996         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
84997         with `if (! (value < limit)) abort ();', for readability.
84998
84999 2002-11-26  Karl Berry  <karl@gnu.org>
85000
85001         * lib/strdup.c: copy from libc again, with jim's ok.
85002         * lib/.cppi-disable: re-add strdup.c
85003
85004 2002-11-25  Karl Berry  <karl@gnu.org>
85005
85006         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85007         instead of "strtol.c".
85008
85009 2002-11-25  Karl Berry  <karl@gnu.org>
85010
85011         * config/install-sh: update from automake for variable quoting, $0 in
85012         error msgs, etc.
85013
85014         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85015         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85016         entry.
85017
85018 2002-11-25  Jim Meyering  <jim@meyering.net>
85019
85020         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85021
85022 2002-11-24  Karl Berry  <karl@gnu.org>
85023
85024         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85025         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85026
85027 2002-11-24  Jim Meyering  <jim@meyering.net>
85028
85029         Update from coreutils:
85030
85031         * lib/mktime.c: Merge in changes from libc.
85032
85033         Avoid a link-time failure on some Linux systems.
85034         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85035         (otherwise).
85036         (__mon_yday): Declare with the STATIC attribute.
85037         (__mktime_internal): Likewise.
85038         Based on a report from Greg Schafer.
85039
85040 2002-11-23  Jim Meyering  <jim@meyering.net>
85041
85042         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85043         Use `unsigned', not `int', as type of index.
85044
85045         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85046
85047         * lib/fsusage.c: Remove unneeded parentheses around operands of
85048         `defined'.
85049
85050 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85051
85052         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85053         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85054         so that we can be included first.
85055         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85056         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85057         No need to include stddef.h or sys/types.h any more.
85058         Surround local include files with "", not "<>".
85059         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85060         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85061         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85062         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85063         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85064         (ISPRINT): Remove; no longer needed now that we assume C89.
85065
85066         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85067         Preserve errno.
85068
85069         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85070         quotearg_char): Use SIZE_MAX rather than
85071         (size_t) -1 when we are talking about "infinity".
85072
85073         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85074
85075 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85076
85077         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85078         hint that one should use `if (! x) abort ();' rather than `assert
85079         (x);', and anyway it's one less thing to worry about configuring.
85080         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85081         hash_rehash, hash_insert): Use abort rather than assert.
85082
85083 2002-11-22  Bruno Haible  <bruno@clisp.org>
85084
85085         * lib/safe-read.h: Assume C89. Add comments.
85086         (safe_read): Change return type to size_t.
85087         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85088         byte counts > SSIZE_MAX correctly.
85089         * lib/safe-write.h: New file.
85090         * lib/safe-write.c: New file.
85091         * lib/full-read.h: New file.
85092         * lib/full-read.c: New file.
85093         * lib/full-write.h: Assume C89. Add comments.
85094         * lib/full-write.c: Include safe-write.h.
85095         (full_write): Rewritten to use safe_write.
85096         Suggested by Jim Meyering and Paul Eggert.
85097
85098 2002-11-21  Jim Meyering  <jim@meyering.net>
85099
85100         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85101
85102         Merge in changes from the coreutils.
85103
85104         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85105         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85106         <stdint.h>.
85107         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85108         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85109         int.  Work more efficiently if X is the same width as uintmax_t.
85110         Do not compare X to -1, to avoid bogus compiler warning.
85111         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85112         Don't assume that f_frsize and f_bsize are the same type.
85113
85114         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85115         warning on FreeBSD.
85116
85117         * lib/makepath.c (make_path): Restore umask *before* creating the final
85118         component.
85119         (make_path): Minor reformatting.
85120
85121         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85122         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85123         HAVE_MALLOC/HAVE_REALLOC.
85124
85125         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85126         dummy ones.  At least on GNU/Linux systems, `auto' means something
85127         else.
85128         From Michael Stone.
85129
85130 2002-11-21  Bruno Haible  <bruno@clisp.org>
85131
85132         Remove case insensitive option matching.
85133         * lib/argmatch.h (argcasematch): Remove declaration.
85134         (ARGCASEMATCH): Remove macro.
85135         (__xargmatch_internal): Remove case_sensitive argument.
85136         (XARGMATCH): Update.
85137         (XARGCASEMATCH): Remove macro.
85138         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85139         case_sensitive argument.
85140         (argcasematch): Remove function.
85141         (__xargmatch_internal): Remove case_sensitive argument.
85142         (main): Use XARGMATCH instead of XARGCASEMATCH.
85143
85144         * lib/xmalloc.c: Change compile-time error message. Add comment about
85145         required autoconf version.
85146
85147 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85148
85149         Merge argmatch cleanups from Bison.  Assume C89.
85150
85151         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85152         Include stdlib.h, for EXIT_FAILURE.
85153         Always include <string.h>, since we assume C89.
85154         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85155         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85156         Include <stddef.h> instead, since it's all we need for size_t.
85157         (PARAMS): Remove.  All uses removed.
85158         (ARRAY_CARDINALITY): Do not bother to #undef.
85159         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85160         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85161         Remove unnecessary parentheses.
85162         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85163         Insert necessary parentheses.
85164         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85165         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85166
85167 2002-11-19  Bruno Haible  <bruno@clisp.org>
85168
85169         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85170         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85171
85172         * lib/mbswidth.h (PARAMS): Remove macro.
85173         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85174         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85175
85176         * lib/gcd.h (PARAMS): Remove macro.
85177         (gcd): Use ANSI C function declarations.
85178         * lib/gcd.c (gcd): Likewise.
85179
85180 2002-11-15  Bruno Haible  <bruno@clisp.org>
85181
85182         * lib/strcspn.c: Include <stddef.h>.
85183         (strcspn): Use ANSI C function declaration. Change return type to
85184         size_t. Use NULL.
85185         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85186         (strpbrk): Use NULL.
85187         * lib/strpbrk.h (PARAMS): Remove macro.
85188         (strpbrk): Use ANSI C function declaration.
85189         * lib/strstr.c: Don't include <sys/types.h>.
85190         * lib/strstr.h (PARAMS): Remove macro.
85191         (strstr): Use ANSI C function declarations.
85192
85193 2002-11-14  Karl Berry  <karl@gnu.org>
85194
85195         * config/mkinstalldirs: `do' on separate line, instead of
85196         `for var; do'.
85197
85198 2002-11-06  Bruno Haible  <bruno@clisp.org>
85199
85200         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85201         * lib/gcd.c (gcd): Likewise.
85202
85203 2002-11-05  Bruno Haible  <bruno@clisp.org>
85204
85205         * lib/gcd.h: New file, from gettext-0.11.5.
85206         * lib/gcd.c: New file, from gettext-0.11.5.
85207
85208 2002-11-05  Bruno Haible  <bruno@clisp.org>
85209
85210         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85211         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85212         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85213         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85214
85215         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85216         <libintl.h>.
85217         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85218         <libintl.h>.
85219
85220         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85221         * lib/human.c: Include gettext.h instead of <libintl.h>.
85222         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85223         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85224         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85225         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85226         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85227         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85228         (textdomain): Remove definition.
85229         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85230
85231         * lib/long-options.c: Remove include of <libintl.h> and definition of
85232         _.
85233         * lib/same.c: Remove include of <libintl.h> and definition of _.
85234
85235 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85236
85237         * lib/config.charset: A few additions for Solaris.
85238
85239 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85240
85241         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85242         * lib/localcharset.c (locale_charset): Declare as extern "C".
85243
85244 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85245
85246         * lib/config.charset: msdos in uk_UA uses CP1125.
85247
85248 2002-11-04  Bruno Haible  <bruno@clisp.org>
85249
85250         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85251         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85252         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85253         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85254         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85255
85256 2002-11-04  Bruno Haible  <bruno@clisp.org>
85257
85258         * lib/localcharset.c (locale_charset): Don't return an empty string.
85259
85260 2002-11-04  Bruno Haible  <bruno@clisp.org>
85261
85262         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85263         aliases.
85264
85265 2002-11-04  Bruno Haible  <bruno@clisp.org>
85266
85267         * lib/config.charset: Update for newest glibc. Add canonical names
85268         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85269
85270 2002-11-04  Bruno Haible  <bruno@clisp.org>
85271
85272         * lib/config.charset: Add support for NetBSD.
85273
85274 2002-11-04  Bruno Haible  <bruno@clisp.org>
85275
85276         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85277
85278 2002-11-01  Bruno Haible  <bruno@clisp.org>
85279
85280         * configure.in: Add AC_CONFIG_AUX_DIR call.
85281         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85282         test/Makefile.
85283         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85284
85285 2002-09-28  Karl Berry  <karl@gnu.org>
85286
85287         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85288         installed automake until the next release, since changes have been
85289         made.
85290
85291 2002-09-25  Karl Berry  <karl@gnu.org>
85292
85293         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85294         * lib/getopt*: copy from libc/posix.
85295         * lib/gettext.h: copy from gettext.
85296         * lib/.cppi-disable: add strdup.c, gettext.h.
85297
85298 2002-09-25  Karl Berry  <karl@gnu.org>
85299
85300         * config/srclist.txt: enable gettext.h check.
85301         * config/config.{guess,sub}: update from prep.
85302         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85303                 from automake 1.6.3.
85304         See srclist*.
85305
85306 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85307
85308         * regex.c (PATFETCH): Remove the translating fetch.
85309         (PATFETCH_RAW): Rename to PATFETCH.
85310         (set_image_of_range): New fun.
85311         (SET_RANGE_TABLE_WORK_AREA): Use it.
85312         (regex_compile): Don't translate the pattern chars so eagerly.
85313         Only do it when inserting an `exactn' bytecode or when handling
85314         a char-range.
85315         (mutually_exclusive_p): Avoid empty statement.
85316
85317 2002-07-06  Jim Meyering  <meyering@lucent.com>
85318
85319         * m4/README: Don't mention Makefile.am.in.
85320         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85321
85322 2002-07-01  Jim Meyering  <meyering@lucent.com>
85323
85324         * lib/c-stack.c: Include sys/time.h.
85325         From Volker Borchert.
85326
85327 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85328
85329         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85330
85331 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85332
85333         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85334         New macro.  Use it uniformly instead of
85335         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85336         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85337         reported by Vin Shelton.
85338
85339 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85340
85341         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85342         Do not assume SA_SIGINFO behavior.
85343         Bug reported by Jim Meyering on NetBSD 1.5.2.
85344
85345 2002-06-22  Jim Meyering  <meyering@lucent.com>
85346
85347         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85348         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85349
85350         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85351         now that configure.ac uses AC_GNU_SOURCE.
85352         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85353         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85354
85355         Update to latest tools.  Suggestions from Paul Eggert.
85356         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85357         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85358         * m4/fnmatch.m4: Likewise.
85359         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85360         to AC_HEADER_STDBOOL
85361
85362 2002-06-22  Jim Meyering  <meyering@lucent.com>
85363
85364         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85365         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85366
85367 2002-06-22  Jim Meyering  <meyering@lucent.com>
85368
85369         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85370
85371         * lib/exitfail.c, exitfail.h: Likewise.
85372         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85373
85374         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85375         of fnmatch.h.
85376         (EXTRA_DIST): Add fnmatch_loop.c.
85377         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85378
85379         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85380         * lib/fnmatch.c: Update from diffutils-2.8.2.
85381         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85382         * lib/fnmatch.h: Remove file.
85383
85384 2002-06-21  Jim Meyering  <meyering@lucent.com>
85385
85386         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85387         * m4/mbrtowc.m4: Likewise.
85388
85389         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85390         * m4/mbswidth.m4: Reflect name change:
85391         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85392         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85393
85394         * m4/lib-link.m4: Update from gettext-0.11.2.
85395         * m4/gettext.m4: Likewise.
85396
85397         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85398         From Alfred M. Szmidt.
85399
85400 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85401
85402         * lib/file-type.h: Report an error if neither S_ISREG nor
85403         S_IFREG is defined, instead of using a test specific to glibc
85404         2.2.  This should be safe, since POSIX requires S_ISREG and
85405         Unix Version 7 had S_IFREG.  We don't need to check for
85406         <sys/types.h> since we don't use any symbols that it defines.
85407
85408 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85409
85410         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85411         $@-t, so that each temporary file name is unique and valid in the first
85412         8 characters, for operation under DOS.
85413
85414 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85415
85416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85417
85418 2002-06-15  Jim Meyering  <meyering@lucent.com>
85419
85420         Work even with DJGPP 2.03, which lacks support for symlinks.
85421         From Richard Dawe.
85422         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85423         is defined.
85424         * lib/lchown.c (S_ISLNK): Likewise.
85425
85426 2002-06-15  Jim Meyering  <meyering@lucent.com>
85427
85428         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85429         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85430         have been included before this file.
85431
85432 2002-06-14  Jim Meyering  <meyering@lucent.com>
85433
85434         * lib/file-type.h: Use the version from diffutils-2.8.2.
85435         * lib/file-type.c: Likewise.
85436
85437 2002-06-07  Jim Meyering  <meyering@lucent.com>
85438
85439         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85440         They're needed at least for NetBSD 1.5.2.
85441         ($statxfs_includes): Include those same headers.
85442         ($statxfs_includes): Include sys/vfs.h if available.
85443         ($statxfs_includes): Likewise for sys/statvfs.h.
85444         Check for the following members in both structs statfs and statvfs:
85445         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85446
85447 2002-06-01  Jim Meyering  <meyering@lucent.com>
85448
85449         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
85450         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
85451
85452 2002-05-28  Jim Meyering  <meyering@lucent.com>
85453
85454         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
85455         Reported by Volker Borchert.
85456
85457 2002-05-27  Jim Meyering  <meyering@lucent.com>
85458
85459         Fix a problem seen only on nonconforming systems whereby ls.c's
85460         use of localtime, and then of gettimeofday would cause trouble:
85461         the localtime call used to initialize rpl_gettimeofday's save
85462         mechanism would clobber ls's current local time information so
85463         that in any long listing the first file would always be listed
85464         with date 1970-01-01.  Analysis by Volker Borchert.
85465
85466         * lib/gettimeofday.c (localtime): Undefine.
85467         (rpl_localtime): New function.
85468
85469 2002-05-27  Jim Meyering  <meyering@lucent.com>
85470
85471         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
85472         localtime.
85473
85474         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
85475         use the replacement function; it wouldn't resolve at link time.
85476         Reported by Volker Borchert.
85477
85478 2002-05-22  Jim Meyering  <meyering@lucent.com>
85479
85480         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
85481         file-type.h.
85482         * lib/file-type.h: New file.
85483         * lib/file-type.c (file_type): New file/function.  Extracted from
85484         diffutils.
85485
85486 2002-04-30  Jim Meyering  <meyering@lucent.com>
85487
85488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
85489
85490 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85491
85492         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
85493
85494 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85495
85496         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
85497         Do not check for alloca.h (no longer used) or stdbool.h (was never
85498         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
85499
85500 2002-04-29  Paul Eggert  <eggert@twinsun.com>
85501
85502         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
85503
85504 2002-04-29  Jim Meyering  <meyering@lucent.com>
85505
85506         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
85507         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
85508         Use AC_FUNC_STRNLEN here instead.
85509
85510         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
85511         With autoconf-2.53a, it's part of AC_PROG_CC.
85512
85513 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85514
85515         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
85516         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
85517
85518 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85519
85520         * lib/sig2str.h, lib/sig2str.c: New files.
85521         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
85522
85523 2002-04-28  Paul Eggert  <eggert@twinsun.com>
85524
85525         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
85526         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
85527         of 127, since 64 is the largest conceivable number for ancient
85528         nonstandard hosts.
85529         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
85530
85531 2002-04-28  Jim Meyering  <meyering@lucent.com>
85532
85533         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
85534
85535 2002-04-24  Jim Meyering  <meyering@lucent.com>
85536
85537         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
85538         (jm_PREREQ): Use it.
85539
85540         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
85541         mach/mach.h fcntl.h.
85542         Check for this function: setlocale.
85543
85544 2002-04-24  Jim Meyering  <meyering@lucent.com>
85545
85546         * lib/gettext.h: New file, from Gettext.
85547         * lib/Makefile.am (INCLUDES): Remove -I../intl.
85548         (libfetish_a_SOURCES): Add gettext.h.
85549
85550 2002-04-16  Jim Meyering  <meyering@lucent.com>
85551
85552         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
85553         ut_pid, ut_id, ut_exit.
85554
85555 2002-04-16  Jim Meyering  <meyering@lucent.com>
85556
85557         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
85558         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
85559         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
85560
85561 2002-04-12  Jim Meyering  <meyering@lucent.com>
85562
85563         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
85564         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
85565         existence of the getmntinfo function.  Needed for Darwin 5.3.
85566
85567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
85568         This is necessary at least on Darwin 5.3.
85569
85570         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
85571         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
85572         strnlen.o in the library, and that makes some versions of ranlib
85573         object.
85574
85575 2002-04-12  Jim Meyering  <meyering@lucent.com>
85576
85577         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
85578
85579 2002-04-09  Jim Meyering  <meyering@lucent.com>
85580
85581         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
85582         to be more precise.  Rather than saying we're checking whether the
85583         function `works', say what we're testing.
85584         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
85585         Reported by Bruno Haible.
85586
85587 2002-03-10  Jim Meyering  <meyering@lucent.com>
85588
85589         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
85590         Suggestion from Santiago Vila.
85591
85592 2002-03-08  Jim Meyering  <meyering@lucent.com>
85593
85594         * lib/rename.c: Mention that this wrapper is needed also on
85595         mips-dec-ultrix4.4 systems.
85596
85597 2002-03-02  Jim Meyering  <meyering@lucent.com>
85598
85599         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
85600         not HAVE_CLOCK_SETTIME.
85601
85602 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85603
85604         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
85605         Check for clock_settime.
85606
85607 2002-02-27  Paul Eggert  <eggert@twinsun.com>
85608
85609         * lib/nanosleep.h: Rename to....
85610         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
85611
85612         * lib/gettime.c: New file.
85613         * lib/settime.c: New file.
85614         * lib/stime.c: Remove.
85615
85616         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
85617         timespec.h.  Remove nanosleep.h.
85618
85619 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85620
85621         * m4/acl.m4: New file.
85622         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
85623         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
85624
85625 2002-02-25  Paul Eggert  <eggert@twinsun.com>
85626
85627         * lib/acl.c, lib/acl.h: New files.
85628         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
85629
85630 2002-02-24  Jim Meyering  <meyering@lucent.com>
85631
85632         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
85633         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
85634         cause trouble.  Reported by Nelson Beebe.
85635
85636 2002-02-23  Paul Eggert  <eggert@twinsun.com>
85637
85638         * lib/path-concat.c (xpath_concat): Reorder code to pacify
85639         compilers that don't know that xalloc_die never returns.
85640
85641 2002-02-20  Jim Meyering  <meyering@lucent.com>
85642
85643         * lib/getdate.c: Regenerate using bison-1.33.
85644
85645 2002-02-17  Jim Meyering  <meyering@lucent.com>
85646
85647         * config/config.guess (main): Don't use `head -1'; it's no longer
85648         portable. Use `sed 1q' instead.
85649
85650 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
85651
85652         * m4/codeset.m4: Upgrade to gettext-0.11.
85653         * m4/gettext.m4: Upgrade to gettext-0.11.
85654         * m4/glibc21.m4: Upgrade to gettext-0.11.
85655         * m4/iconv.m4: Upgrade to gettext-0.11.
85656         * m4/isc-posix.m4: Upgrade to gettext-0.11.
85657         * m4/lcmessage.m4: Upgrade to gettext-0.11.
85658         * m4/lib-ld.m4: New file, from gettext-0.11.
85659         * m4/lib-link.m4: New file, from gettext-0.11.
85660         * m4/lib-prefix.m4: New file, from gettext-0.11.
85661         * m4/progtest.m4: Upgrade to gettext-0.11.
85662
85663 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85664
85665         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
85666         (jm_PREREQ): Use it.
85667
85668 2002-02-15  Paul Eggert  <eggert@twinsun.com>
85669
85670         * lib/posixver.c, lib/posixver.h: New files.
85671         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85672
85673 2002-02-02  Paul Eggert  <eggert@twinsun.com>
85674             Bruno Haible  <bruno@clisp.org>
85675
85676         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
85677         (fwrite_success_callback): New declaration.
85678         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
85679         print_unicode_char. Call failure callback instead of error.
85680         (fwrite_success_callback): New function.
85681         (exit_failure_callback): New function.
85682         (fallback_failure_callback): New function.
85683         (print_unicode_char): Call unicode_to_mb.
85684
85685 2002-01-26  Jim Meyering  <meyering@lucent.com>
85686
85687         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
85688         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
85689
85690 2002-01-26  Jim Meyering  <meyering@lucent.com>
85691
85692         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
85693
85694 2002-01-22  Paul Eggert  <eggert@twinsun.com>
85695
85696         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
85697
85698 2002-01-22  Jim Meyering  <meyering@lucent.com>
85699
85700         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
85701         Otherwise, some versions of automake would omit the rule that makes
85702         Makefile from Makefile.in.
85703
85704 2002-01-21  Paul Eggert  <eggert@twinsun.com>
85705
85706         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
85707         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
85708         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
85709         (memcoll): Set errno to zero if there is no error.
85710
85711         * lib/quotearg.c (quotearg_buffer_restyled):
85712         Fix bug with quoting buffers containing NUL when backslashing escapes.
85713         This bug was exposed by the other changes in this patch.
85714         (quotearg_n_options): New arg ARGSIZE.
85715         All callers changed.
85716         (quoting_options_from_style): New function.
85717         (quotearg_n_style): Use it.
85718         (quotearg_n_style_mem): New function.
85719
85720         * lib/quotearg.h (quotearg_n_style_mem): New function.
85721
85722 2002-01-19  Jim Meyering  <meyering@lucent.com>
85723
85724         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
85725         Remove useless quotes: DF_PROG="df".
85726         * m4/strnlen.m4: New file.
85727
85728 2002-01-16  Paul Eggert  <eggert@twinsun.com>
85729
85730         * lib/backupfile.c (ISDIGIT): Comment fix.
85731         * lib/getdate.y (ISDIGIT): Likewise.
85732         * lib/posixtm.c (ISDIGIT, year): Likewise.
85733         * lib/strverscmp.c (ISDIGIT): Likewise.
85734         * lib/userspec.c (ISDIGIT): Likewise.
85735
85736 2002-01-16  Jim Meyering  <meyering@lucent.com>
85737
85738         * lib/getdate.y: Add three semicolons, each just before a closing
85739         brace. Bison (as of version 1.31) no longer papers over that mistake.
85740
85741 2002-01-05  Jim Meyering  <meyering@lucent.com>
85742
85743         * lib/version-etc.c (version_etc_copyright): Update copyright year.
85744
85745 2001-12-19  Paul Eggert  <eggert@twinsun.com>
85746
85747         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
85748         not silently exit merely because the output buffer happens to
85749         have nothing pending.
85750
85751 2001-12-18  Paul Eggert  <eggert@twinsun.com>
85752
85753         See the big note in ../ChangeLog.
85754         * lib/human.c (suffixes): Prefer K to k for 1024.
85755         (generate_suffix_backwards): New function.
85756         (human_readable_inexact): Use it.
85757         * lib/xstrtol.c (__xstrtol): If there is no number but there
85758         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
85759         Accept 'K' as well as 'k'.
85760
85761 2001-12-15  Jim Meyering  <meyering@lucent.com>
85762
85763         * lib/regex.h (__restrict_arr): Update from libc.
85764
85765         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
85766         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
85767         (STREQ): Define.
85768
85769 2001-12-14  Jim Meyering  <meyering@lucent.com>
85770
85771         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
85772         Suggestion from Bruno Haible.
85773
85774 2001-12-10  Jim Meyering  <meyering@lucent.com>
85775
85776         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
85777         xrealloc, Instead, include "xalloc.h".
85778         (initbuffer): Don't cast xmalloc return value to char*.
85779         (readline): Reword comment.
85780         Don't cast xrealloc return value to char*
85781         Return NULL, not 0.
85782
85783 2001-12-09  Jim Meyering  <meyering@lucent.com>
85784
85785         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
85786         about `signed and unsigned type in conditional expression'.
85787         * lib/posixtm.c (posix_time_parse): Likewise.
85788
85789         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
85790
85791         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
85792         to avoid a pedantic warning.
85793
85794         * lib/getstr.c: Don't include assert.h.
85795         (getstr): Remove warning-evoking assertions.
85796         Return -1 if offset parameter is out of bounds.
85797         Change the type of a local from int to size_t.
85798
85799         * lib/strftime.c (my_strftime_localtime_r): Include this function
85800         definition in the `#if ! HAVE_TM_GMTOFF' block.
85801
85802         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
85803         Include xalloc.h instead.
85804
85805 2001-12-02  Jim Meyering  <meyering@lucent.com>
85806
85807         * lib/tempname.c: Don't declare getenv, thus reverting the change of
85808         2001-11-18.  It's no longer necessary, now that stdlib.h is always
85809         included.
85810
85811         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
85812         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
85813
85814 2001-11-30  Akim Demaille  <akim@epita.fr>
85815
85816         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
85817         before being defined.
85818
85819 2001-11-27  Paul Eggert  <eggert@twinsun.com>
85820
85821         * lib/quotearg.h (quotearg_n, quotearg_n_style):
85822         First arg is int, not unsigned.
85823         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
85824         (SIZE_MAX, UINT_MAX): New macros.
85825         (quotearg_n_options): Abort if N is negative.
85826         Avoid overflow check on hosts where size_t is 64 bits and int
85827         is 32 bits, as overflow is impossible there.
85828         Fix off-by-one typo that caused unnecessary reallocation.
85829
85830 2001-11-27  Jim Meyering  <meyering@lucent.com>
85831
85832         * lib/tempname.c: Merge with version from libc.
85833         * lib/regex.c: Likewise.
85834
85835         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
85836         systems for which STDC_HEADERS is 0, it was not included, resulting in
85837         a warning about an integer-to-pointer conversion problem with getenv.
85838         Reported by Volker Borchert.
85839
85840 2001-11-26  Jim Meyering  <meyering@lucent.com>
85841
85842         * lib/gtod.h: Remove file.
85843         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
85844         * lib/gettimeofday.c: Don't include gtod.h.
85845         (GTOD_init): Remove function.
85846         (rpl_gettimeofday): Do its job here instead, rather than aborting.
85847         Suggestion from Volker Borchert.
85848
85849 2001-11-23  Jim Meyering  <meyering@lucent.com>
85850
85851         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
85852         it.
85853         * lib/hash.c (struct hash_table): Define it here instead.
85854
85855 2001-11-22  Jim Meyering  <meyering@lucent.com>
85856
85857         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
85858
85859 2001-11-20  Jim Meyering  <meyering@lucent.com>
85860
85861         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
85862         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
85863
85864 2001-11-19  Jim Meyering  <meyering@lucent.com>
85865
85866         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
85867         directory.  Use "conftestXXXXXX" as the template.
85868         Suggestion from Paul Eggert.
85869
85870         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
85871         immediately, so the test doesn't mistakenly hit the max-open-files
85872         limit.
85873
85874 2001-11-18  Paul Eggert  <eggert@twinsun.com>
85875
85876         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
85877         (TEMPORARIES): New macro.
85878         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
85879         removes an artificial limitation (e.g. HP-UX 10.20, where
85880         TMP_MAX is 17576).
85881
85882 2001-11-18  Jim Meyering  <meyering@lucent.com>
85883
85884         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
85885
85886 2001-11-18  Jim Meyering  <meyering@lucent.com>
85887
85888         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
85889         on SunOS 4.
85890
85891         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
85892         files will be created before anything else.
85893
85894 2001-11-17  Paul Eggert  <eggert@twinsun.com>
85895
85896         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
85897         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
85898
85899 2001-11-17  Jim Meyering  <meyering@lucent.com>
85900
85901         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
85902         Prompted by a report from Bob Proulx.
85903
85904         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
85905         Instead, require UTILS_FUNC_MKSTEMP.
85906
85907 2001-11-17  Jim Meyering  <meyering@lucent.com>
85908
85909         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
85910         Now, that's done as part of AC_FUNC_STRTOD.
85911
85912 2001-11-17  Jim Meyering  <meyering@lucent.com>
85913
85914         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
85915         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
85916         rather than group writable.  Patch by Juan F. Codagnone.
85917
85918         * lib/readtokens.c: Remove explicit declarations of xmalloc and
85919         xrealloc, Instead, include "xalloc.h".
85920
85921         * lib/mountlist.c: Include unlocked-io.h after all system headers.
85922         Remove explicit declarations of xmalloc, xrealloc,
85923         and xstrdup.  Instead, include "xalloc.h".
85924
85925         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
85926         unlocked-io.h.
85927         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
85928         Likewise.
85929         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
85930
85931         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
85932         Reported by Padraig Brady.
85933
85934         * lib/mkstemp.c: #undef mkstemp.
85935         Include config.h.
85936         (rpl_mkstemp): Rename from mkstemp.
85937         Protoize.
85938
85939 2001-11-16  Jim Meyering  <meyering@lucent.com>
85940
85941         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
85942         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
85943         determine the amount of total physical memory, use pstat_getstatic.
85944         HPUX-11 doesn't define _SC_PHYS_PAGES.
85945         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
85946         If sysconf couldn't be used to determine the amount of available
85947         physical memory, use both pstat_getstatic and pstat_getdynamic.
85948         Based on a patch from Bob Proulx.
85949
85950 2001-11-10  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
85953         (jm_PREREQ): Use it.
85954
85955 2001-11-09  Jim Meyering  <meyering@lucent.com>
85956
85957         * m4/jm-macros.m4: Require autoconf-2.52f.
85958         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
85959         Use these AC_-prefixed names, not the AM_-prefixed ones.
85960
85961         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
85962
85963 2001-11-05  Jim Meyering  <meyering@lucent.com>
85964
85965         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
85966
85967 2001-11-04  Jim Meyering  <meyering@lucent.com>
85968
85969         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
85970         $DEFS.
85971
85972 2001-11-03  Jim Meyering  <meyering@lucent.com>
85973
85974         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
85975         of AC_DEFUN.
85976
85977         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
85978         know the name of the variable in the macro definition.
85979
85980 2001-11-03  Jim Meyering  <meyering@lucent.com>
85981
85982         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
85983         in argmatch_to_argument call.
85984
85985         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
85986         argument.
85987
85988         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
85989         e.g., a fault due to an attempt to free a NULL pointer.
85990
85991 2001-11-01  Jim Meyering  <meyering@lucent.com>
85992
85993         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
85994         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
85995
85996 2001-11-01  Jim Meyering  <meyering@lucent.com>
85997
85998         * lib/dirfd.c, lib/dirfd.h: New files.
85999         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86000
86001         * lib/hash.c (hash_print) [TESTING]: Clean up.
86002
86003 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86004
86005         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86006         to avoid a warning if -Wall.
86007
86008 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86009
86010         * README: New file
86011         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86012         (per RMS's instructions, this is now the canonical source)
86013         * lgpl/, gpl/: New directories.
86014
86015 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86016
86017         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86018
86019 2001-10-21  Jim Meyering  <meyering@lucent.com>
86020
86021         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86022         this code would end up calling gettext even in packages built
86023         with --disable-nls.
86024         * lib/getopt.c (_): Likewise.
86025         * lib/regex.c (_): Likewise.
86026
86027 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86028
86029         * m4/error.m4 (jm_PREREQ_ERROR):
86030         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86031         AC_FUNC_STRERROR_R does that.
86032         Check for strerror declaration.
86033
86034         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86035         are supposed to have them these days.
86036         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86037         Merge changes from latest Autoconf CVS.
86038         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86039         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86040         POSIX decided to standardize on the int flavor of strerror_r.
86041
86042 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86043
86044         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86045         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86046         Use strerror_r that is only a macro, even if it is not a function.
86047         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86048         (private_strerror): Use prototypes, not old-style function definition.
86049         (print_errno_message): New function.
86050         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86051         char*-flavored one.
86052         (error_tail, error, error_at_line): Use it.
86053
86054 2001-10-11  Jim Meyering  <meyering@lucent.com>
86055
86056         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86057         and quote_n (1, ... to avoid clobbering a buffer.
86058
86059 2001-10-05  Jim Meyering  <meyering@lucent.com>
86060
86061         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86062         hash-pjw.h.
86063         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86064         * lib/hash-pjw.h: New file.
86065
86066 2001-09-30  Jim Meyering  <meyering@lucent.com>
86067
86068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86069         `struct fsstat' has the `f_fstypename' member.
86070         Use that to define FS_TYPE, which is now used to make
86071         the getfsstat link test tighter.
86072
86073 2001-09-30  Jim Meyering  <meyering@lucent.com>
86074
86075         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86076         Include <sys/ucred.h>, for Apple Darwin.
86077         Include sys/mount.h and sys/fs_types.h only if available.
86078         (FS_TYPE): Define.
86079         (read_filesystem_list): Use FS_TYPE.
86080
86081 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86082
86083         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86084         a boolean context.
86085
86086 2001-09-29  Jim Meyering  <meyering@lucent.com>
86087
86088         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86089         [one-argument getmntent function]): Include stdio.h before mntent.h.
86090         SunOS 4.1.x needs it for the declaration of `FILE'.
86091         Patch by Volker Borchert.
86092
86093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86094         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86095         sys/fs_types.h, and make the link-test for getfsstat guard #include
86096         directives with appropriate #if HAVE_*_H tests so that we can
86097         detect getfsstat on Apple Darwin1.3.7 systems.
86098         Reported by Nelson Beebe.
86099         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86100
86101 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86102
86103         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86104         #defines strtoimax.  Also treat the other strto* functions
86105         like strtoimax.
86106
86107         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86108         Check for strtoul and strtoumax,
86109         as those declarations are made even in the signed case.
86110         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86111         Likewise, for strtol and strtoimax.
86112
86113 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86114
86115         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86116         #defines strtoimax.  Also treat the other strto* functions
86117         like strtoimax.
86118
86119         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86120         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86121         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86122
86123 2001-09-26  Jim Meyering  <meyering@lucent.com>
86124
86125         Most macros in unlocked-io.h had the wrong number of arguments.
86126         * lib/gen-uio: New script.
86127         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86128         * lib/unlocked-io.hin: Remove file.
86129         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86130         rather than trying to embed it here.
86131         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86132         Reported by Padraig Brady.
86133
86134 2001-09-25  Volker Borchert  <bt@teknon.de>
86135
86136         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86137         `result'.
86138
86139 2001-09-24  Jim Meyering  <meyering@lucent.com>
86140
86141         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86142
86143 2001-09-23  Jim Meyering  <meyering@lucent.com>
86144
86145         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86146         instead of the mere test for existence of mntent.h.  The latter
86147         would get a false-positive on AIX 3.4 systems.
86148         In the outer getmntent if-block, don't die if neither of the getmntent
86149         tests succeeds.  Instead, just fall through and continue with the
86150         remaining tests.
86151
86152 2001-09-23  Jim Meyering  <meyering@lucent.com>
86153
86154         * lib/mountlist.c: Remove useless parentheses in #if directives.
86155         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86156         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86157
86158 2001-09-22  Jim Meyering  <meyering@lucent.com>
86159
86160         * m4/gettext.m4: New file.  From gettext.
86161         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86162         * m4/progtest.m4: Likewise
86163         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86164         * m4/glibc21.m4: Likewise.
86165
86166         * m4/libintl.m4: Remove.  No longer used.
86167
86168 2001-09-22  Jim Meyering  <meyering@lucent.com>
86169
86170         * lib/localcharset.c: Update from latest gettext.
86171         * lib/config.charset: Likewise.
86172
86173 2001-09-20  Jim Meyering  <meyering@lucent.com>
86174
86175         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86176         strtoimax.
86177         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86178         strtoumax.
86179
86180 2001-09-20  Jim Meyering  <meyering@lucent.com>
86181
86182         * lib/xstrtol.c (strtoimax): Guard declaration with
86183         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86184         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86185         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86186         (strtoumax): Likewise, for completeness (it wasn't necessary).
86187
86188 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/strtoimax.c (HAVE_LONG_LONG):
86191         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86192         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86193         to work around bug in IBM C compiler.
86194
86195 2001-09-17  Jim Meyering  <meyering@lucent.com>
86196
86197         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86198         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86199         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86200         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86201         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86202         whenever the right hand side need not be expanded by the shell.
86203
86204 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86205
86206         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86207         library.  It's not correct, as some older glibcs are buggy.
86208         fnmatch wasn't fixed until glibc 2.2.
86209
86210         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86211         special shell magic here.
86212
86213 2001-09-16  Jim Meyering  <meyering@lucent.com>
86214
86215         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86216         * m4/jm-macros.m4: Require it.
86217
86218 2001-09-16  Jim Meyering  <meyering@lucent.com>
86219
86220         * lib/mkdir.c: New file.
86221
86222 2001-09-15  Jim Meyering  <meyering@lucent.com>
86223
86224         * m4/jm-macros.m4: Check for help2man.
86225
86226 2001-09-11  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86229         The body, by Paul Eggert, was moved here from configure.in.
86230         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86231
86232 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86233
86234         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86235         (jm_PREREQ): Use it.
86236
86237 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86238
86239         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86240         Use ssize_t, not int, to store result of readlink.
86241         Check for ssize_t overflow as well as size_t overflow,
86242         as POSIX says the result of readlink is implementation-defined
86243         when ssize_t overflows.
86244         Remove unnecessary cast to char*.
86245         Use free+malloc instead of realloc, as the storage doesn't need
86246         to be preserved and it's clearer and can be more efficient that way.
86247         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86248         * lib/xreadlink.h (xreadlink): Update prototype.
86249
86250 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86251
86252         * lib/xgetcwd.c: Revert some of the previous change; intead,
86253         fix the HAVE_GETCWD_NULL code to behave more like the
86254         !HAVE_GETCWD_NULL code used to.
86255
86256         Include "xalloc.h".
86257         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86258         invoke xalloc_die.
86259
86260 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86261
86262         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86263         sys/param.h, as pathmax.h includes them.
86264
86265 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86266
86267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86268         (jm_PREREQ_XGETCWD): New macro.
86269
86270         * m4/getcwd.m4: New file.
86271
86272 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86273
86274         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86275         like the HAVE_GETCWD_NULL code.
86276         Include pathmax.h if not HAVE_GETCWD.
86277         Do not include xalloc.h.
86278         (INITIAL_BUFFER_SIZE): New symbol.
86279         Do not use xmalloc / xrealloc, since the caller is responsible for
86280         handling errors.  Preserve errno around `free' during failure.
86281         Do not overrun buffer when using getwd.
86282
86283 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86284
86285         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86286         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86287         getcwd (NULL, 0).
86288
86289 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86290
86291         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86292         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86293         spotted by Jim Meyering.
86294
86295 2001-09-03  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86298         failure.
86299
86300 2001-09-02  Jim Meyering  <meyering@lucent.com>
86301
86302         * lib/error.c: Update from GNU libc.
86303
86304 2001-09-01  Jim Meyering  <meyering@lucent.com>
86305
86306         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86307         Used by df.
86308
86309 2001-09-01  Jim Meyering  <meyering@lucent.com>
86310
86311         * lib/xreadlink.c: New file.
86312         * lib/xreadlink.h: New file.
86313         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86314         xreadlink.h.
86315
86316         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86317         doesn't conflict with sparc Solaris 7's definition in
86318         /usr/include/sys/int_types.h.
86319
86320         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86321         files.
86322         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86323         and strncasecmp as r-values.  Unixware didn't have declarations.
86324
86325 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86326
86327         * lib/xstrtol.h: Add copyright notice.
86328         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86329         LONGINT_INVALID_SUFFIX_CHAR.
86330
86331 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86332
86333         * lib/xstrtol.c (strtoimax): New decl.
86334
86335 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86336
86337         * lib/xgetcwd.c: Don't include pathmax.h.
86338         Include stdlib.h and unistd.h if available.
86339         Include xalloc.h.
86340         (xmalloc, xstrdup, free): Remove decls.
86341         (xgetcwd): Don't assume sizes fit in unsigned.
86342         Check for overflow when computing sizes.
86343         Simplify reallocation code.
86344
86345 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86346
86347         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86348         a directory's st_size can have an arbitrary value, so the old
86349         usage could waste an arbitrary amount of memory.  All uses
86350         changed.
86351         * lib/savedir.h: Update prototype.
86352
86353 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86354
86355         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86356
86357         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86358         old strtoimax.c.
86359
86360         Also, make the following further changes to make this file's
86361         configuration more similar to that of strtol.c:
86362         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86363         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86364         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86365         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86366         changed to signed values.
86367
86368         And make the following changes as well:
86369         Fix copyright notice, as 1999 was missing.
86370         (verify): New macro.
86371         (strtoimax): Check sizes at compile-time, not run-time.
86372         Prefer strtol to strtoll if both work.
86373         (main): Remove; it was not that useful and was a pain to maintain.
86374
86375         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86376
86377 2001-08-31  Jim Meyering  <meyering@lucent.com>
86378
86379         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86380         Use an initial, malloc'd, buffer of length 128 rather than
86381         a statically allocated one of length 1024.
86382
86383 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86384
86385         Simplify code, partly by assuming autoconf 2.52 semantics.
86386
86387         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86388
86389         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86390         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86391         All uses removed.
86392         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86393         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86394         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86395         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86396         jm_AC_HEADER_INTTYPES_H.
86397         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86398
86399         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86400
86401         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86402         Quote first arg of AC_DEFUN.
86403         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86404         since they are needed to parse the include file even if we need
86405         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86406         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86407         but with opposite signedness.
86408
86409 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86410
86411         Merge 'exclude' changes from tar 1.13.22.
86412         This fixes one or two unlikely storage allocation overflow bugs,
86413         but doesn't change user-visible behavior otherwise.
86414
86415 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86416
86417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86418         (jm_PREREQ_EXCLUDE): New macro.
86419
86420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86421
86422         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86423         tm to be declared.
86424
86425 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86426
86427         * lib/hash.c: Remove '2001' from copyright notice.
86428
86429 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86430
86431         * lib/full-write.h: New file.
86432         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86433         * lib/full-write.c: Correct credits, as cccp.c no longer
86434         exists and anyway it was so heavily changed from the old cccp
86435         code as to be unrecognizable.  Include full-write.h.
86436         (full_write): Return size_t, with short writes meaning failure.
86437         All callers changed.  This fixes a bug with large buffers
86438         on 64-bit hosts.
86439         * lib/utime.c: Include full-write.h.
86440
86441 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86442
86443         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86444         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86445         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86446         Include if available.
86447         (<xalloc.h>): Include
86448         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
86449         (verify): New macro.  Use it to verify that EXCLUDE macros do not
86450         collide with FNM macros.
86451         (struct patopts): New struct.
86452         (struct exclude): Use it, as exclude patterns now come with options.
86453         (new_exclude): Support above changes.
86454         (new_exclude, add_exclude_file):
86455         Initial size must now be a power of two to simplify overflow checking.
86456         (free_exclude, fnmatch_no_wildcards): New function.
86457         (excluded_filename): No longer requires options arg, as the options
86458         are determined by add_exclude.  Now returns bool, not int.
86459         (excluded_filename, add_exclude):
86460         Add support for the fancy new exclusion options.
86461         (add_exclude, add_exclude_file): Now takes int options arg.
86462         Check for arithmetic overflow when computing sizes.
86463         (add_exclude_file): xrealloc might modify errno, so don't
86464         realloc until after errno might be used.
86465
86466         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
86467         New macros.
86468         (free_exclude): New decl.
86469         (add_exclude, add_exclude_file): Now takes int options arg.
86470         (excluded_filename): No longer requires options arg, as the options
86471         are determined by add_exclude.  Now returns bool, not int.
86472
86473 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86474
86475         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
86476
86477 2001-08-27  Jim Meyering  <meyering@lucent.com>
86478
86479         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
86480
86481         * lib/version-etc.c (N_): Remove definition.
86482         Revert most of last change.
86483         Instead, simply don't mark the `Copyright...' string for translation.
86484         Based on advice from Paul Eggert.
86485
86486         * lib/strtoxmax.c: Tweak comment.
86487
86488 2001-08-26  Jim Meyering  <meyering@lucent.com>
86489
86490         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
86491
86492         * m4/xstrtoimax.m4: New file.
86493         * m4/xstrtoumax.m4: Add comments explaining why we
86494         AC_REPLACE_FUNCS(strtol).
86495
86496 2001-08-26  Jim Meyering  <meyering@lucent.com>
86497
86498         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
86499         of copyright with `%s' so translators don't get an untranslated
86500         message in 2002.
86501         (COPYRIGHT_YEAR): Define.
86502         (version_etc): Use fprintf rather than fputs.
86503         Suggestion from Ulrich Drepper.
86504
86505         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
86506
86507         * lib/strtoll.c: New file, from GNU libc.
86508         * lib/xstrtoimax.c: New file.
86509
86510         * lib/xstrtol.h: Add xstrtoimax.
86511         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
86512         * lib/strtoimax.c: New file.  Likewise, but first define
86513         STRTOUXMAX_SIGNED.
86514
86515         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
86516         ...
86517         * lib/strtoxmax.c: ... then renamed to this.
86518
86519 2001-08-18  Paul Eggert  <eggert@twinsun.com>
86520
86521         * m4/inttypes.m4: Add AC_PREREQ(2.13).
86522         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
86523         (jm_AC_TYPE_INTMAX_T): New macro.
86524         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
86525
86526         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
86527
86528         * m4/longlong.m4: Renamed from ulonglong.m4.
86529         * m4/inttypes.m4: Renamed from inttypes_h.m4.
86530         * m4/uintmax_t.m4: Removed.
86531
86532 2001-08-13  Paul Eggert  <eggert@twinsun.com>
86533
86534         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
86535         Port to Solaris 8, where 'sed' requires a space after the 'r'
86536         command, and where sh dislikes "$/".  Clean up the spacing a bit.
86537         Redirect output to $tmp just once.
86538
86539 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
86540
86541         * lib/addext.c (<errno.h>): Include.
86542         (errno): Declare if not defined.
86543         (addext): Work correctly when pathconf returns -1 and leaves
86544         errno alone because there is no limit.  Also, work even if
86545         pathconf returns a value greater than SIZE_MAX.
86546
86547 2001-08-12  Jim Meyering  <meyering@lucent.com>
86548
86549         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
86550         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
86551         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
86552         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
86553         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
86554         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
86555         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
86556         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
86557         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
86558         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
86559         utime.m4, utimes.m4, xstrtoumax.m4:
86560         Quote the first argument in each use of AC_DEFUN.
86561
86562 2001-08-12  Jim Meyering  <meyering@lucent.com>
86563
86564         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
86565         Simply `return getcwd (NULL, 0);'.
86566         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
86567         Use 1300 as initial value for length, not PATH_MAX.
86568
86569         * lib/pathmax.h: Clean up cpp syntax.
86570
86571 2001-08-12  Jim Meyering  <meyering@lucent.com>
86572
86573         * lib/gettimeofday.c: New file.
86574         * lib/gtod.h: New file.
86575         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
86576
86577 2001-08-05  Jim Meyering  <meyering@lucent.com>
86578
86579         * m4/jm-macros.m4: Require autoconf-2.52.
86580
86581 2001-08-04  Jim Meyering  <meyering@lucent.com>
86582
86583         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
86584         stmt, to get in sync with glibc.
86585
86586 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86587
86588         The following changes are from gettext 0.10.39 as maintained by
86589         Bruno Haible.
86590
86591         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
86592         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
86593         with inverted sense.  All uses changed.
86594
86595         * lib/mbswidth.c: Don't include <limits.h>.
86596         Include <stdlib.h> and <string.h> unconditionally.
86597         (iswcntrl, mbsinit, ISCNTRL): New macros.
86598         (mbsnwidth): Use K&R style function declarations.
86599         Don't bother checking for MB_LEN_MAX == 1, since the compiler
86600         can optimize it when MB_CUR_MAX == 1.
86601         The width of control characters is zero, not 1.
86602
86603 2001-08-03  Paul Eggert  <eggert@twinsun.com>
86604
86605         The following changes are from gettext 0.10.39 as maintained by
86606         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
86607
86608         * m4/codeset.m4: Upgrade to serial AM1.
86609         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
86610         all uses changed.  Quote first arg of AC_DEFUN.
86611         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
86612
86613         * m4/iconv.m4: Upgrade to serial AM2.
86614         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
86615         Add --with-libconv-prefix.
86616         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
86617         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
86618         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
86619         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
86620         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
86621
86622         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
86623         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
86624         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
86625         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
86626         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
86627         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
86628         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86629         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
86630         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
86631
86632         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
86633         string.h any more.
86634
86635         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
86636         not the default value.
86637
86638         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
86639         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
86640         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
86641         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
86642         Also check for iswcntrl, used for wcwidth fallback.
86643         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
86644         to Autoconf 2.13.
86645
86646 2001-08-03  Jim Meyering  <meyering@lucent.com>
86647
86648         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
86649         as it was in the original.  Reported by Paul Eggert.
86650
86651 2001-07-16  Jim Meyering  <meyering@lucent.com>
86652
86653         * m4/gettimeofday.m4: New file.
86654         Prompted by a report from Bernhard Baehr.
86655
86656 2001-07-15  Jim Meyering  <meyering@lucent.com>
86657
86658         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
86659         stuff. Now it's in ../Makefile.cfg.
86660
86661 2001-07-15  Jim Meyering  <meyering@lucent.com>
86662
86663         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
86664         (BUILT_SOURCES): Add unlocked-io.h.
86665         (io_functions): Define.
86666         (unlocked-io.h): New rule.
86667         (DISTCLEANFILES): Add unlocked-io.h.
86668         (all-local): Depend on unlocked-io.h, to ensure it is created.
86669
86670         * lib/unlocked-io.hin: New file
86671
86672         * lib/regex.c: Update from glibc.
86673
86674 2001-07-05  Jim Meyering  <meyering@lucent.com>
86675
86676         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
86677         recommendation.
86678         (libfetish_a_SOURCES): Put all .h files here instead.
86679         Remove a thus-exposed (better checks in automake) duplicate and
86680         two unnecessary .h files.
86681
86682 2001-07-04  Jim Meyering  <meyering@lucent.com>
86683
86684         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
86685         that generates jm-glibc-io.m4 so that it doesn't trigger any make
86686         distcheck failure.
86687
86688 2001-07-02  Jim Meyering  <meyering@lucent.com>
86689
86690         The following changes were prompted by suggestions from Bruno Haible.
86691
86692         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
86693         is now generated.
86694         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
86695         definition of EXTRA_DIST.
86696         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
86697         ensure that the generated file is created/updated whenever the list
86698         of $(unlocked_functions) is changed.
86699         (jm-glibc-io.m4): New rule.
86700         (unlocked-io.h): New rule -- currently unused.
86701
86702 2001-06-24  Jim Meyering  <meyering@lucent.com>
86703
86704         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
86705         unmatched right bracket, rather than kludging it with an extra,
86706         falsely-matching quote in a comment.  Patch by Akim Demaille.
86707
86708 2001-06-11  Jim Meyering  <meyering@lucent.com>
86709
86710         * lib/regex.c: Update from GNU libc.
86711
86712 2001-05-27  Jim Meyering  <meyering@lucent.com>
86713
86714         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
86715         Check for ut_type in struct utmp.
86716
86717 2001-05-27  Jim Meyering  <meyering@lucent.com>
86718
86719         * lib/readutmp.h (UT_TYPE): Define.
86720
86721 2001-05-24  Jim Meyering  <meyering@lucent.com>
86722
86723         * lib/argmatch.c: Include "quote.h".
86724         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
86725         quote function.  Reported by Göran Uddeborg.
86726
86727 2001-05-22  Jim Meyering  <meyering@lucent.com>
86728
86729         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
86730         now that we use the package-supplied version unconditionally.
86731         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
86732
86733 2001-05-21  Jim Meyering  <meyering@lucent.com>
86734
86735         * m4/regex.m4: Change a couple backticks to single quotes to avoid
86736         shell syntax errors.
86737
86738 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86739
86740         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
86741
86742 2001-05-20  Paul Eggert  <eggert@twinsun.com>
86743
86744         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
86745         Don't bother to check library strftime, since
86746         we'll be using our own my_strftime function anyway.
86747         Define my_strftime instead of strftime.
86748
86749 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
86750
86751         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
86752         which is not yet declared.
86753
86754 2001-05-15  Jim Meyering  <meyering@lucent.com>
86755
86756         * m4/regex.m4: Use proper quoting so brackets appear in the test
86757         program.
86758         Reported by, and with help from, Bruno Haible.
86759
86760 2001-05-13  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
86763         undefined.
86764
86765 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86766
86767         dirname code cleanup.  base_name now behaves more compatibly
86768         with POSIX basename when given file names that have trailing
86769         slashes, and similarly for dir_name.  Add new primitives
86770         base_len and dir_len.  Put the directory-name-related decls
86771         into dirname.h.
86772
86773         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
86774         * lib/backupfile.c (base_name): Likewise.
86775         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
86776         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
86777         * lib/makepath.c (strip_trailing_slashes): Likewise.
86778         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
86779         ISSLASH): Likewise.
86780         * lib/rename.c (strip_trailing_slashes): Likewise.
86781         * lib/same.c (base_name): Likewise.
86782         * lib/stripslash.c (ISSLASH): Likewise.
86783
86784         * lib/addext.c: Include <dirname.h> after size_t is defined.
86785         * lib/backupfile.c: Likewise.
86786
86787         * lib/addext.c (addext): Use base_len to trim redundant
86788         trailing slashes instead of doing it ourselves.
86789         But do not trim the last slash if it is not redundant.
86790
86791         * lib/backupfile.c (find_backup_file_name,
86792         max_backup_version): Use base_len instead of rolling it ourselves.
86793         Handle the case of "" and (on DOS) "C:" correctly.
86794
86795         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
86796         needed. Include <string.h>, <dirname.h>.
86797         (base_name): Allow file names ending in slashes, other than names
86798         that are all slashes.  In this case, return the basename followed
86799         by the slashes.  This is more general, and can be used in places
86800         where the original base_name purposely had an assertion failure.
86801         (base_len): New function.
86802
86803         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
86804         Do not include <assert.h>; no longer needed.
86805         Include xalloc.h.
86806         (memrchr): Remove decl.
86807         (dir_name_r): Remove.
86808         (dir_len): Renamed from dirlen.  All callers changed.
86809         Rewrite in terms of base_name, for simplicity and consistency.
86810         (dir_name): Never return NULL.  All callers changed.
86811         Do not include <stdlib.h> in test program; no longer needed.
86812         return 0; is fine for test program.
86813
86814         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
86815         New macros.
86816         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
86817
86818         * lib/path-concat.c (path_concat): Use base_len to compute
86819         base length, not strlen; this means we cannot rely on memcpy
86820         to null-terminate.
86821
86822         * lib/same.c (STREQ): Remove.
86823         (same_name): Handle the case where the basename ends in trailing '/'.
86824
86825         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
86826         a slash was stripped.  Do not strip the last slash after a
86827         file system prefix.
86828
86829 2001-05-11  Paul Eggert  <eggert@twinsun.com>
86830
86831         * lib/Makefile.am (libfetish_a_SOURCES):
86832         Add strftime.c, since we now compile it on all hosts.
86833
86834         * lib/strftime.c (my_strftime):
86835         Define to nstrftime if emacs, but only if my_strftime is not defined.
86836         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
86837         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
86838         Add one more extra argument: a nanoseconds value.
86839         All uses changed.
86840         (ns): New macro.
86841         (my_strftime function): Add %N format.
86842         (emacs_strftimeu): Renamed from emacs_strftime,
86843         with extra ut argument.
86844
86845 2001-05-09  Paul Eggert  <eggert@twinsun.com>
86846
86847         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
86848
86849 2001-04-21  Jim Meyering  <meyering@lucent.com>
86850
86851         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
86852         doesn't interfere.
86853
86854 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
86855
86856         * m4/ftruncate.m4: Check for chsize.
86857         Link with ftruncate.o unconditionally if ftruncate is missing.
86858         This was required when cross-compiling to i586-mingw32msvc.
86859
86860 2001-04-08  Jim Meyering  <meyering@lucent.com>
86861
86862         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
86863         recomputed; that's necessary when the offset spans a DST transition.
86864         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
86865
86866 2001-04-02  Jim Meyering  <meyering@lucent.com>
86867
86868         * lib/regex.h, regex.c: Update from GNU libc.
86869
86870 2001-03-24  Jim Meyering  <meyering@lucent.com>
86871
86872         * m4/jm-macros.m4: Require autoconf-2.49d.
86873
86874 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
86875
86876         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
86877
86878 2001-03-19  Paul Eggert  <eggert@twinsun.com>
86879
86880         * lib/version-etc.c (version_etc_copyright): Update to 2001.
86881
86882 2001-03-17  Jim Meyering  <meyering@lucent.com>
86883
86884         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
86885         now that the version in autoconf is equivalent.
86886         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
86887
86888         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
86889         Suggestion from Akim Demaille.
86890
86891         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
86892         (jm_PREREQ_TEMPNAME): New function.
86893
86894 2001-03-16  Paul Eggert  <eggert@twinsun.com>
86895
86896         * lib/tempname.c (uint64_t): Define to uintmax_t if
86897         not defined, and if UINT64_MAX is not defined.
86898         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
86899         Reported by John David Anglin.
86900
86901 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
86902
86903         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
86904         resolve alias if codeset is empty.
86905         * lib/config.charset (BeOS): Use wildcard syntax.
86906
86907 2001-03-13  Jim Meyering  <meyering@lucent.com>
86908
86909         * lib/path-concat.c (path_concat)
86910         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
86911         concatenating e.g., `C:' and `foo'.
86912         From Bruno Haible.
86913
86914 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86915
86916         * lib/localcharset.c (locale_charset): Don't use
86917         setlocale(LC_CTYPE,NULL). Don't return NULL.
86918         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
86919
86920 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
86921
86922         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
86923         support for DOS/DJGPP.
86924
86925 2001-03-01  Paul Eggert  <eggert@twinsun.com>
86926
86927         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
86928         lacks mkstemp.  Compile our own tempname.c if we compile our own
86929         mkstemp.c, as mkstemp relies on tempname.
86930
86931 2001-03-01  Jim Meyering  <meyering@lucent.com>
86932
86933         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
86934         AH_VERBATIM really does output its argument verbatim.
86935
86936 2001-02-28  Paul Eggert  <eggert@twinsun.com>
86937
86938         * lib/Makefile.am (libfetish_a_SOURCES):
86939         Add dup-safer.c, fopen-safer.c.
86940         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
86941
86942         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
86943         * lib/unistd-safer.h: New files.
86944
86945 2001-02-25  Paul Eggert  <eggert@twinsun.com>
86946
86947         The mkstemp replacement is taken from glibc 2.2.2, with some
86948         portability fixes for use outside glibc, as follows:
86949
86950         * lib/tempname.c (struct_stat64): New macro.
86951         (direxists, __gen_tempname): Use it.
86952         This avoids a portability problem with Solaris 8.
86953
86954         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
86955         (<stddef.h>, <stdint.h>, <string.h>):
86956         Include only if STDC_HEADERS || _LIBC.
86957         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
86958         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
86959         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
86960         (__set_errno): Define this macro if <errno.h> doesn't.
86961         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
86962         Define these macros if <stdio.h> doesn't.
86963         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
86964         Define these macros if <sys/stat.h>
86965         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
86966         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
86967         __xstat64): Define if not _LIBC.
86968         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
86969         (__gen_tempname): Invoke gettimeofday only if
86970         HAVE_GETTIMEOFDAY || _LIBC;
86971         otherwise, fall back on plain "time".
86972         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
86973
86974         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
86975
86976         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
86977
86978 2001-02-18  Paul Eggert  <eggert@twinsun.com>
86979
86980         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
86981
86982 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86983
86984         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
86985         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
86986         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
86987         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86988
86989 2001-02-17  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
86992         Remove workaround macros for hosts that have mbrtowc but not
86993         mbstate_t, as we now insist on proper declarations for both
86994         before using mbrtowc.
86995
86996 2001-02-17  Jim Meyering  <meyering@lucent.com>
86997
86998         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
86999         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87000         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87001         UnixWare 7.1.1.
87002
87003         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87004         rather than AC_CACHE_VAL.
87005
87006 2001-02-17  Jim Meyering  <meyering@lucent.com>
87007
87008         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87009         around included file name.
87010
87011         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87012
87013         * lib/strftime.c: Update from GNU libc (the only changes were to
87014         comments).
87015
87016 2001-02-17  Jim Meyering  <meyering@lucent.com>
87017
87018         * lib/regex.c: Update from libc.
87019
87020 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87021
87022         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87023         clash.
87024
87025 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87026
87027         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87028         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87029         Reported by Mark Hounschell via Paul Eggert.
87030
87031 2001-02-07  Jim Meyering  <meyering@lucent.com>
87032
87033         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87034
87035 2001-02-05  Jim Meyering  <meyering@lucent.com>
87036
87037         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87038         it includes the patch required for `large file' support with at least
87039         HP-UX's 10.20 /bin/cc.
87040
87041 2001-02-03  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87044         AS_IF, now that it works once again (mysteriously).
87045         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87046
87047 2001-01-30  Jim Meyering  <meyering@lucent.com>
87048
87049         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87050         * m4/chown.m4: Rename conftestchown to conftest.chown.
87051         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87052         s/conftestdir2/conftest.d2/.
87053         * m4/utimes.m4: s/conftestdata/conftest.data/
87054         Inspired by Pavel Roskin's change in autoconf.
87055
87056 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87057
87058         * lib/config.charset: Update for FreeBSD 4.2.
87059
87060 2001-01-27  Jim Meyering  <meyering@lucent.com>
87061
87062         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87063         a use of AS_IF.
87064         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87065
87066 2001-01-26  Jim Meyering  <meyering@lucent.com>
87067
87068         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87069         quotearg.c includes it.
87070
87071 2001-01-26  Jim Meyering  <meyering@lucent.com>
87072
87073         * lib/quotearg.c: Include stddef.h.
87074         * lib/quote.c: Include stddef.h.
87075         Reported by Axel Kittenberger.
87076
87077         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87078         line in double quotes so that it evokes a better diagnostic.
87079         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87080         Reported by Axel Kittenberger.
87081
87082 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87083
87084         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87085         as if it was a `charset'.
87086
87087 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87088
87089         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87090         has const.
87091
87092 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87093
87094         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87095         to avoid a warning.  Add back 'const' to inptr.
87096
87097 2001-01-20  Jim Meyering  <meyering@lucent.com>
87098
87099         Be sure that headers are checked before used in code compiled
87100         for the type checks.
87101         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87102         In place of that, invoke jm_CHECK_ALL_TYPES.
87103         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87104         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87105         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87106         The check for ssize_t was mistakenly run before the test for unistd.h.
87107
87108         The configure-time check for stdbool.h was missing.
87109         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87110         (jm_PREREQ_HASH): New function.
87111
87112 2001-01-17  Jim Meyering  <meyering@lucent.com>
87113
87114         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87115         for autoconf-2.49c.
87116         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87117
87118 2001-01-16  Jim Meyering  <meyering@lucent.com>
87119
87120         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87121         From Bruno Haible.
87122
87123 2001-01-14  Jim Meyering  <meyering@lucent.com>
87124
87125         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87126         foo and bar.  Create conftestdir/ in the script, not in the C code.
87127         Remove directories in the script, not in the C code.
87128         Remove conftestdir{,2} before trying to create the directory.
87129         Make the entire configure script fail if the mkdir fails.
87130
87131 2001-01-14  Jim Meyering  <meyering@lucent.com>
87132
87133         * lib/rename.c: New file.  From Volker Borchert.
87134         Include stdlib.h, string.h or strings.h, and xalloc.h.
87135         Use strip_trailing_slashes rather than open-coding it.
87136
87137 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87138
87139         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87140
87141 2001-01-03  Jim Meyering  <meyering@lucent.com>
87142
87143         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87144         of local `inptr' to avoid warning with some system declarations of
87145         iconv.
87146
87147 2001-01-02  Volker Borchert  <bt@teknon.de>
87148
87149         * m4/rename.m4: New file.
87150         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87151
87152 2001-01-01  Jim Meyering  <meyering@lucent.com>
87153
87154         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87155         even on systems with utmpx.h.  It's necessary for the declaration of
87156         utmp's ut_user member.  Reported by Andreas Jaeger.
87157
87158         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87159         available. They are required for the declarations of getgrgid and
87160         getpwuid resp.
87161         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87162         Reported by Andreas Jaeger.
87163
87164 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87165
87166         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87167         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87168         so `make install' also works in VPATH builds.
87169
87170 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87171
87172         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87173         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87174         can be used in subdirectories.
87175
87176 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87177
87178         * lib/modechange.c: Do not assume that mode_t uses the
87179         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87180         the other-execute bit of FOO even if S_IXOTH != 1.
87181
87182         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87183         WOTH, XOTH, ALLM): New macros.
87184         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87185          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87186         Use them.
87187         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87188         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87189         (mode_compile):
87190         No need to use uintmax_t; unsigned long is long enough.
87191         Don't bother to get suffix since we don't use it.
87192
87193 2000-12-26  Jim Meyering  <meyering@lucent.com>
87194
87195         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87196         better with autoheader.
87197
87198 2000-12-24  Jim Meyering  <meyering@lucent.com>
87199
87200         * lib/hash.c (is_prime): Return explicit boolean values.
87201         (hash_get_first): Return NULL to appease Irix5.6's 89.
87202         Reported by Nelson Beebe.
87203
87204 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87205
87206         * lib/localcharset.c (locale_charset): Add support for Win32.
87207
87208 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87209
87210         * lib/physmem.h, lib/physmem.c: New files.
87211
87212         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87213         (noinst_HEADERS): Add physmem.h.
87214
87215         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87216         't' for compatibility with Solaris 8 sort.
87217
87218 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87219
87220         * lib/config.charset: Add support for BeOS.
87221
87222 2000-12-17  Jim Meyering  <meyering@lucent.com>
87223
87224         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87225         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87226
87227 2000-12-16  Jim Meyering  <meyering@lucent.com>
87228
87229         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87230         N and M) would have treated it like `chown N:N FILE'.
87231
87232         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87233
87234 2000-12-16  Jim Meyering  <meyering@lucent.com>
87235
87236         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87237         SHELLS_FILE to a file name that's useful on djgpp systems.
87238         Include stdlib.h.
87239         (ADDITIONAL_DEFAULT_SHELLS): Define.
87240         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87241         Based mostly on a patch from Prashant TR.
87242
87243 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87244
87245         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87246         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87247         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87248
87249 2000-12-08  Andreas Schwab  <schwab@suse.de>
87250
87251         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87252         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87253
87254 2000-12-07  Jim Meyering  <meyering@lucent.com>
87255
87256         * lib/stripslash.c (ISSLASH): Define.
87257         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87258         `/'.
87259         From Prashant TR.
87260
87261         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87262         (dir_name_r): Declare this function as static.
87263         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87264         manifest itself on a name containing a mix of slashes and
87265         backslashes.
87266         Make this function work with names starting with a DOS-style
87267         drive letter and colon prefix.
87268         (dir_name): Append `.' if necessary.
87269         Based mostly on patches from Prashant TR and Eli Zaretskii.
87270
87271         * lib/dirname.h (dir_name_r): Remove prototype.
87272
87273 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87274
87275         * m4/off_t-format.m4: Remove this file.
87276         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87277
87278 2000-12-06  Jim Meyering  <meyering@lucent.com>
87279
87280         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87281         replacement strtoull, we may well need the replacement strtoul, too.
87282         Check for declarations of strtoul and strtoull.
87283         Check for strtol.  Mainly as a cue to cause automake to include
87284         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87285         Check for limits.h -- strtol.c needs it.
87286
87287 2000-12-05  Jim Meyering  <meyering@lucent.com>
87288
87289         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87290
87291 2000-12-04  Jim Meyering  <meyering@lucent.com>
87292
87293         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87294         Also include memory.h, stdlib.h, unistd.h if appropriate.
87295         Reported by Andreas Jaeger (conflicting declaration of malloc).
87296
87297 2000-12-02  Jim Meyering  <meyering@lucent.com>
87298
87299         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87300         * m4/jm-macros.m4 (jm_MACROS): require it.
87301
87302 2000-12-02  Jim Meyering  <meyering@lucent.com>
87303
87304         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87305
87306 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87307
87308         * lib/memrchr.c: Include <config.h> before any system include file.
87309
87310 2000-11-30  Jim Meyering  <meyering@lucent.com>
87311
87312         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87313
87314 2000-11-30  Jim Meyering  <meyering@lucent.com>
87315
87316         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87317
87318 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87319
87320         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87321
87322 2000-11-26  Jim Meyering  <meyering@lucent.com>
87323
87324         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87325
87326 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87327
87328         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87329         size of (size_t) -1; it's not portable.
87330
87331 2000-11-17  Jim Meyering  <meyering@lucent.com>
87332
87333         * lib/strstr.c: Update from GNU libc.
87334
87335 2000-11-17  Akim Demaille  <akim@epita.fr>
87336
87337         * lib/obstack.h: Formatting changes.
87338         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87339         prevent type checking.
87340         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87341         cast the value to (void *): assigning a `foo *' to a `void *'
87342         variable is valid.
87343         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87344
87345 2000-11-16  Jim Meyering  <meyering@lucent.com>
87346
87347         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87348
87349 2000-11-11  Jim Meyering  <meyering@lucent.com>
87350
87351         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87352
87353 2000-11-10  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/obstack.h: Update from GNU libc.
87356         * lib/obstack.c: Likewise.
87357
87358 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87359
87360         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87361
87362 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87363
87364         * lib/getusershell.c (setusershell): Use rewind rather than
87365         fseek/fseeko, to avoid configuration hassles with fseeko.
87366         Don't bother opening SHELLS_FILE if shellstream is NULL;
87367         it's not necessary.
87368
87369 2000-11-05  Jim Meyering  <meyering@lucent.com>
87370
87371         * lib/makepath.h (make_dir): Declare.
87372         * lib/makepath.c (make_dir): Remove `static' attribute.
87373         Tweak a comment.
87374
87375 2000-11-04  Jim Meyering  <meyering@lucent.com>
87376
87377         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87378
87379 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87380
87381         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87382         last one in a bucket, advance to the next bucket.
87383
87384 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87385
87386         * lib/fnmatch.c: Do not comment out all the code if we are using
87387         the GNU C library, because in some cases we are replacing buggy
87388         code in the GNU C library itself.
87389
87390 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87391
87392         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87393         (regex_compile): Catch bogus \(\1\).
87394
87395 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87396
87397         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87398         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87399         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87400
87401 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87402
87403         * lib/error.h, getline.h, modechange.h:
87404         Remove "2000" from Copyright line, as the file hasn't been
87405         changed this year other than in the copyright notice.
87406
87407         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87408         was changed this year.
87409
87410 2000-10-29  Jim Meyering  <meyering@lucent.com>
87411
87412         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87413         renaming.
87414         * m4/ls-mntd-fs.m4: Likewise
87415
87416 2000-10-29  Jim Meyering  <meyering@lucent.com>
87417
87418         * lib/xstat.in: Fix grammar in comment.
87419
87420 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87421
87422         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87423         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87424         doesn't define __restrict_arr.
87425
87426 2000-10-28  Jim Meyering  <meyering@lucent.com>
87427
87428         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87429         (jm_PREREQ_MEMCHR): New function.
87430
87431 2000-10-28  Jim Meyering  <meyering@lucent.com>
87432
87433         * lib/memchr.c: Update from libc.
87434         Adjust for portability:
87435         [HAVE_STDLIB_H]: Include stdlib.h.
87436         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87437         Undef __memchr, too.
87438         [!weak_alias]: Define __memchr to memchr.
87439
87440         * lib/regex.c: Update from libc.
87441         * lib/regex.h: Likewise.
87442         * lib/getopt1.c: Likewise.
87443         * lib/memcmp.c: Likewise.
87444
87445         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87446         Avoid using fseek, when possible -- it's broken by design.
87447         Patch by Ulrich Drepper.
87448
87449 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
87450
87451         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
87452         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
87453         Giving in to popular pressure to shut up the compiler with casts.
87454
87455 2000-10-26  Jim Meyering  <meyering@lucent.com>
87456
87457         * lib/strftime.c: Update from libc.
87458
87459 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
87460
87461         * regex.c: More `unsigned char' -> `re_char' changes.
87462         Also change several `int' into `re_wchar_t'.
87463         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
87464         (PUSH_FAILURE_POINTER): Don't cast any more.
87465         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
87466         We want GCC to complain, since this piece of code makes
87467         re_match non-reentrant, which *should* be fixed.
87468         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
87469         (EXTEND_BUFFER): Use RETALLOC.
87470         (SET_LIST_BIT): Don't cast.
87471         (re_wchar_t): New type.
87472         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
87473         that those two functions will always properly return.
87474         (IMMEDIATE_QUIT_CHECK): Cast to void.
87475         (analyse_first): Use recursion rather than an explicit stack.
87476         (re_compile_fastmap): Can't fail anymore.
87477         (re_search_2): Don't check re_compile_fastmap for failure.
87478         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
87479         Now also sets the new value (passed in a new argument).
87480         (re_match_2_internal): Use it.
87481         Also, use a new var `reg' of type size_t when looping through regs
87482         rather than reuse the inappropriate `mcnt'.
87483
87484 2000-10-25  Jim Meyering  <meyering@lucent.com>
87485
87486         * lib/obstack.c: Update from libc.
87487
87488 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
87489
87490         * regex.c (regex_compile): Change the way of handling a range from
87491         a char less than 256 to a char not less than 256.
87492
87493 2000-10-24  Andrew Innes  <andrewi@gnu.org>
87494
87495         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
87496         NT-Emacs only.
87497         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
87498         so that re_search functions only quit when callers expect them to.
87499
87500 2000-10-23  Jim Meyering  <meyering@lucent.com>
87501
87502         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
87503         wrong.  That set_locale call must not have any side effects.
87504         From Paul Eggert.
87505
87506 2000-10-22  Jim Meyering  <meyering@lucent.com>
87507
87508         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
87509         [CYCLIC]: Remove now-unused definition.
87510
87511         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
87512         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
87513         Suggestion from Ulrich Drepper.
87514
87515 2000-10-21  Jim Meyering  <meyering@lucent.com>
87516
87517         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
87518         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
87519         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
87520
87521 2000-10-21  Jim Meyering  <meyering@lucent.com>
87522
87523         * lib/dirname.c (memrchr): Declare if necessary.
87524         (dir_name): Remove the restriction that there be no
87525         trailing slashes.  Now, this code skips past them, effectively
87526         ignoring them.
87527         [TEST_DIRNAME] (main): New unit tests.
87528
87529         * lib/memrchr.c: New file from GNU libc.
87530         Undef __memrchr, too.
87531         [!weak_alias]: Define __memrchr to memrchr.
87532         Guard weak_alias use with `#ifdef weak_alias'.
87533
87534 2000-10-21  Jim Meyering  <meyering@lucent.com>
87535
87536         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
87537         (dir_name): Use dir_name_r.
87538         * lib/dirname.h (dir_name_r): Declare it.
87539
87540 2000-10-17  Jim Meyering  <meyering@lucent.com>
87541
87542         * lib/quote.h (PARAMS): Define and use.
87543         Reported by Akim Demaille.
87544
87545         * lib/getopt.c: Update from libc.
87546
87547 2000-10-16  Jim Meyering  <meyering@lucent.com>
87548
87549         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
87550         setlocale.
87551         From Jan Fedak.
87552
87553 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
87554
87555         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
87556
87557 2000-09-25  Jim Meyering  <meyering@lucent.com>
87558
87559         * lib/md5.h (rol): Define (from GnuPG).
87560
87561         * lib/sha.c: Give credit (GnuPG) where due.
87562         (M): Use rol rather than open-coding it.
87563         Add a FIXME comment.
87564
87565 2000-09-21  Jim Meyering  <meyering@lucent.com>
87566
87567         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
87568         Reported by Michael Stone.
87569
87570 2000-09-20  Jim Meyering  <meyering@lucent.com>
87571
87572         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
87573         (noinst_HEADERS): Add sha.h.
87574         Based on code from Scott G. Miller and from GnuPG.
87575
87576 2000-09-18  Jim Meyering  <meyering@lucent.com>
87577
87578         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
87579         LIBS. Otherwise, everyone ends up linking with -lelf for some
87580         configurations.
87581         Reported by Mike Stone.
87582
87583 2000-09-15  Jim Meyering  <meyering@lucent.com>
87584
87585         * lib/regex.c: Update from libc.
87586
87587 2000-09-10  Jim Meyering  <meyering@lucent.com>
87588
87589         * lib/getopt.c (_getopt_internal): Update from glibc.
87590
87591 2000-09-09  Jim Meyering  <meyering@lucent.com>
87592
87593         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
87594         think it should be used as a general replacement for isascii.
87595         * lib/fnmatch.c: Likewise.
87596         * lib/mbswidth.c: Likewise
87597         * lib/regex.c: Likewise.
87598
87599         Don't use atoi.
87600         * lib/userspec.c: Include sys/param.h and limits.h.
87601         Include xstrtol.h.
87602         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87603         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
87604         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
87605         UID, GID.  Check range.
87606
87607 2000-09-06  Jim Meyering  <meyering@lucent.com>
87608
87609         * lib/getopt.c (_getopt_internal): Update from glibc.
87610
87611 2000-08-30  Jim Meyering  <meyering@lucent.com>
87612
87613         * lib/strftime.c: Merge in changes from GNU libc.
87614
87615 2000-08-26  Jim Meyering  <meyering@lucent.com>
87616
87617         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
87618         * m4/fpending.m4: New file.
87619
87620 2000-08-26  Jim Meyering  <meyering@lucent.com>
87621
87622         * lib/closeout.c: Include "__fpending.h".
87623         (close_stdout_status): Return right away if there's nothing to flush.
87624
87625         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
87626         * lib/__fpending.c: New file.
87627         * lib/__fpending.h: New file.
87628
87629 2000-08-20  Jim Meyering  <meyering@lucent.com>
87630
87631         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
87632         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
87633         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
87634
87635 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
87636
87637         Improve fileutils installation on systems where running
87638         programs (like install) can't be unlinked.
87639         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
87640         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
87641
87642 2000-08-07  Paul Eggert  <eggert@twinsun.com>
87643
87644         Standardize on "memory exhausted" instead of "Memory exhausted"
87645         or "virtual memory exhausted".
87646         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
87647         "virtual memory exhausted".
87648         * lib/same.c (same_name): Invoke xalloc_die instead of printing
87649         our own message.
87650         * lib/userspec.c (parse_user_spec): Likewise.
87651         * lib/bumpalloc.h: comment fix
87652         * lib/same.c, userspec.c: Include xalloc.h.
87653
87654         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
87655         not char *const and pointing to a constant array.
87656         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
87657         (xrealloc): Comment fix.
87658
87659         * lib/userspec.c (parse_user_spec):
87660         Don't translate a message until just before returning,
87661         to avoid unnecessary translation.
87662
87663 2000-08-07  Jim Meyering  <meyering@lucent.com>
87664
87665         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
87666         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
87667         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
87668         getgroups.c, gethostname.c, getopt.h, group-member.c,
87669         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
87670         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
87671         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
87672         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
87673         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
87674         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
87675         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
87676         yesno.c: Back out Copyright date changes for each file with no change
87677         this year.  This eases coordination with other programs using the same
87678         source code modules.  From Paul Eggert.
87679
87680 2000-08-06  Paul Eggert  <eggert@twinsun.com>
87681
87682         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
87683         not char, for compatibility with glibc 2.1.3 strftime.c.
87684
87685 2000-08-03  Greg McGary  <greg@mcgary.org>
87686
87687         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
87688         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
87689         (EXTEND_BUFFER): Use them.
87690
87691 2000-08-01  Jim Meyering  <meyering@lucent.com>
87692
87693         * lib/dirname.c (ISSLASH): Define.
87694         (BACKSLASH_IS_PATH_SEPARATOR): Define.
87695         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
87696         both `\' and `/' may be use as path separators.
87697         Based on a patch from Prashant TR.
87698
87699 2000-07-31  Paul Eggert  <eggert@twinsun.com>
87700
87701         * lib/quotearg.c (quotearg_n_options): Don't make the initial
87702         slot vector a constant, since it might get modified.
87703
87704 2000-07-31  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/xmalloc.c: Use `virtual memory exhausted', not
87707         `Memory exhausted'.
87708         * lib/obstack.c (print_and_abort): Likewise.
87709
87710 2000-07-30  Paul Eggert  <eggert@twinsun.com>
87711
87712         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
87713         buffer, so that the caller can always quote one small
87714         component of a "memory exhausted" message in slot 0.
87715         From a suggestion by Jim Meyering.
87716
87717 2000-07-30  Jim Meyering  <meyering@lucent.com>
87718
87719         * lib/makepath.c (make_path): Quote the other instance, too.
87720
87721         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
87722         (STATIC_BUF_SIZE): Define.
87723         (quotearg_n_options): Use only statically allocated storage when
87724         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
87725         than STATIC_BUF_SIZE.
87726
87727 2000-07-29  Jim Meyering  <meyering@lucent.com>
87728
87729         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
87730         * lib/dirname.c (dir_name): Likewise.
87731
87732         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
87733         `/'.
87734
87735         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
87736         (dir_name): Assert that there are no trailing slashes.
87737
87738 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
87739
87740         * lib/mbswidth.h (mbswidth): Add a flags argument.
87741         (mbswidth): New declaration.
87742         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
87743         * lib/mbswidth.c (mbswidth): Add a flags argument.
87744         (mbsnwidth): New function.
87745
87746 2000-07-24  Jim Meyering  <meyering@lucent.com>
87747
87748         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
87749
87750 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87751
87752         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
87753
87754 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87755
87756         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
87757         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
87758         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
87759         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
87760         invoke multibyte primitives.
87761
87762 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87763
87764         * lib/quotearg.c:
87765         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
87766         so that mbstate_t is always defined.
87767
87768         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
87769         be 1 in at least one GCC installation, and this configuration
87770         error is likely to be common.  Ignoring MB_LEN_MAX hurts
87771         performance on hosts that have mbrtowc but have only unibyte
87772         locales, but I assume these hosts are rare.
87773
87774 2000-07-23  Paul Eggert  <eggert@twinsun.com>
87775
87776         * lib/mbswidth.c (_XOPEN_SOURCE):
87777         Don't define; this causes problems on Solaris 7.
87778         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
87779
87780 2000-07-23  Jim Meyering  <meyering@lucent.com>
87781
87782         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
87783         too: getgrgid, getpwuid, getuid.
87784
87785 2000-07-23  Jim Meyering  <meyering@lucent.com>
87786
87787         * lib/basename.c (base_name): Add an assertion.
87788
87789 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
87790
87791         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
87792         shadow its mbsinit function.
87793
87794 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87795
87796         * lib/mbswidth.h: New file.
87797         * lib/mbswidth.c: New file.
87798         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
87799         (noinst_HEADERS): Add mbswidth.h.
87800
87801 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
87802
87803         * lib/config.charset: Add support for FreeBSD. Improve support for
87804         HP-UX and IRIX 6.
87805
87806 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
87807
87808         * m4/mbswidth.m4: New file.
87809         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
87810
87811 2000-07-15  Jim Meyering  <meyering@lucent.com>
87812
87813         * lib/makepath.c: Include quote.h.
87814         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
87815         corresponding argument in a `quote (...)' call.
87816         Give better diagnostics.
87817
87818         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
87819         (noinst_HEADERS): Add quote.h.
87820
87821         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
87822         from tar's src/misc.c.
87823         * lib/quote.h: New file.  Prototypes for same.
87824
87825 2000-07-14  Paul Eggert  <eggert@twinsun.com>
87826
87827         From a suggestion by Bruno Haible.
87828         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
87829         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
87830         to decide whether to define the BeOS workaround macro;
87831         this adjusts to the change to AC_MBSTATE_T.
87832
87833 2000-07-14  Jim Meyering  <meyering@lucent.com>
87834
87835         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
87836         jm_AC_TYPE_UINTMAX_T.
87837
87838 2000-07-13  Paul Eggert  <eggert@twinsun.com>
87839
87840         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
87841
87842         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
87843         quotearg_buffer_restyled): Add support for
87844         clocale_quoting_style.  Undo previous change to
87845         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
87846         and "{RIGHT QUOTATION MARK}" msgids.
87847
87848 2000-07-10  Paul Eggert  <eggert@twinsun.com>
87849
87850         From a suggestion by Bruno Haible.
87851         * m4/mbstate_t.m4 (AC_MBSTATE_T):
87852         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
87853         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
87854         and mbstate_t, to a single-part test that simply defines mbstate_t.
87855         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
87856         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
87857
87858 2000-07-10  Jim Meyering  <meyering@lucent.com>
87859
87860         * m4/strerror_r.m4: Mirror the correction made in autoconf.
87861
87862         * m4/gnu-source.m4: Output to confdefs.h directly.
87863         Suggestion from Akim Demaille.
87864
87865 2000-07-09  Paul Eggert  <eggert@twinsun.com>
87866
87867         The old behavior of quoting `like this' doesn't look good with
87868         newer, ISO-style fonts.  See:
87869         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
87870
87871         Instead, quote "like this" by default.  Let the translator
87872         tailor the locale-specific quoting behavior by providing
87873         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
87874
87875         * lib/quotearg.c (N_): New macro.
87876         (gettext_default): New function.
87877         (quotearg_buffer_restyled): Use
87878         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
87879         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
87880
87881 2000-07-09  Jim Meyering  <meyering@lucent.com>
87882
87883         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
87884         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
87885
87886         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
87887         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
87888
87889 2000-07-09  Jim Meyering  <meyering@lucent.com>
87890
87891         * lib/Most files: Update copyright dates to include 2000.
87892
87893 2000-07-08  Jim Meyering  <meyering@lucent.com>
87894
87895         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
87896         if not defined.
87897         (xgethostname): Remove now-unnecessary #ifdef.
87898         Move declaration of `err' into loop where it's used.
87899
87900 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87901         and Bruno Haible  <haible@clisp.cons.org>
87902
87903         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
87904         only if the test for an object-type mbstate_t fails.  This
87905         prevents us from mistakenly reporting that mbstate_t is a
87906         system object type after we "#define mbstate_t int" to work
87907         around its lack.
87908
87909 2000-07-05  Paul Eggert  <eggert@twinsun.com>
87910         and Bruno Haible  <haible@clisp.cons.org>
87911
87912         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
87913
87914 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87915
87916         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
87917         to strerror_r.
87918         Include <ctype.h> for use of isalpha.
87919
87920 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87921
87922         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
87923         by allocating a larger buffer. Test the gethostname return value for
87924         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
87925         returns an error and ENAMETOOLONG isn't defined.
87926
87927 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
87928
87929         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
87930         dimension.
87931
87932 2000-07-04  Jim Meyering  <meyering@lucent.com>
87933
87934         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
87935         of the deprecated AC_CHECKING.
87936
87937 2000-07-04  Jim Meyering  <meyering@lucent.com>
87938
87939         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
87940         Reported by Bruno Haible.
87941
87942 2000-07-04  Jim Meyering  <meyering@lucent.com>
87943
87944         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
87945         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
87946         lacks mbrtowc.
87947
87948 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87949
87950         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
87951         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
87952
87953 2000-07-03  Paul Eggert  <eggert@twinsun.com>
87954         and Bruno Haible  <haible@clisp.cons.org>
87955
87956         * lib/quotearg.c (mbrtowc):
87957         Assign to *pwc, and return 1 only if result is nonzero.
87958         (iswprint): Use ISPRINT when substituting our own mbrtowc.
87959
87960 2000-07-03  Jim Meyering  <meyering@lucent.com>
87961
87962         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
87963
87964 2000-07-03  Jim Meyering  <meyering@lucent.com>
87965
87966         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
87967         This is necessary to get a definition of e.g., UTMP_FILE on
87968         HP-UX 10.20.
87969         From Bob Proulx.
87970
87971 2000-07-02  Jim Meyering  <meyering@lucent.com>
87972
87973         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
87974
87975         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
87976         AC_LIBOBJ(function_name).
87977         * m4/chown.m4: Likewise.
87978         * m4/fnmatch.m4: Likewise.
87979         * m4/ftruncate.m4: Likewise.
87980         * m4/getgroups.m4: Likewise.
87981         * m4/getline.m4: Likewise.
87982         * m4/group-member.m4: Likewise.
87983         * m4/jm-macros.m4: Likewise.
87984         * m4/lstat.m4: Likewise.
87985         * m4/malloc.m4: Likewise.
87986         * m4/memcmp.m4: Likewise.
87987         * m4/nanosleep.m4: Likewise.
87988         * m4/putenv.m4: Likewise.
87989         * m4/realloc.m4: Likewise.
87990         * m4/regex.m4: Likewise.
87991         * m4/stat.m4: Likewise.
87992         * m4/strftime.m4: Likewise.
87993
87994 2000-07-02  Jim Meyering  <meyering@lucent.com>
87995
87996         * lib/quotearg.c (mbstate_t): Don't define here.
87997
87998 2000-07-02  Jim Meyering  <meyering@lucent.com>
87999
88000         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88001
88002 2000-07-01  Jim Meyering  <meyering@lucent.com>
88003
88004         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88005
88006 2000-07-01  Jim Meyering  <meyering@lucent.com>
88007
88008         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88009         problem.
88010
88011 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88012
88013         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88014         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88015
88016 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88017
88018         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88019         per change in ../m4/ls-mntd-fs.m4.
88020         (read_filesystem_list): Ignore symbolic links.
88021
88022 2000-06-29  Jim Meyering  <meyering@lucent.com>
88023
88024         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88025         for declaration of strcmp.
88026
88027         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88028
88029         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88030         Avoid warning by casting result to `char *' to remove `const'.
88031
88032 2000-06-28  Jim Meyering  <meyering@lucent.com>
88033
88034         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88035         included by quotearg.c, for which we perform this test.  From
88036         Bruno Haible.
88037
88038 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88039
88040         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88041         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88042         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88043
88044 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88045
88046         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88047
88048 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88049
88050         savedir now sets errno on failure and invokes xmalloc to get memory.
88051         Fix a couple of other minor bugs while we're at it.
88052
88053         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88054         (NAMLEN): Remove macro.
88055         (malloc, realloc): Remove decls.
88056         (stpcpy): Likewise.
88057         ("xalloc.h"): Include.
88058         (NAME_SIZE_DEFAULT): New macro.
88059         (savedir): Use xmalloc / xrealloc to allocate memory.
88060         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88061         Skip "" directory entries.
88062         Use strlen to calculate directory entry length, since the old method
88063         is rarely used these days and isn't worth supporting.
88064         Don't use a pointer after freeing it.
88065         Check for integer overflow when calculating allocation size.
88066         Use memcpy to copy entries, instead of stpcpy.
88067         Set errno properly when returning NULL.
88068         Check for readdir error.
88069
88070 2000-06-26  Jim Meyering  <meyering@lucent.com>
88071
88072         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88073
88074 2000-06-25  Jim Meyering  <meyering@lucent.com>
88075
88076         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88077         Linux header bug when _XOPEN_SOURCE is defined to 500.
88078
88079 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88080
88081         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88082         deficiency.
88083
88084 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88085
88086         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88087         Include xalloc.h.
88088         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88089
88090 2000-06-24  Jim Meyering  <meyering@lucent.com>
88091
88092         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88093         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88094         for which strerror does return char*, but which lacks a conveniently
88095         accessible declaration of the function.  If the compile-test says
88096         strerror_r doesn't work, then resort to a `run'-test that works on
88097         BeOS and segfaults on DEC Unix.
88098
88099 2000-06-24  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88102
88103 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88104
88105         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88106         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88107
88108 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88109
88110         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88111         (mbrtowc, mbstate_t): Define substitutes if
88112         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88113         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88114         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88115
88116 2000-06-23  Jim Meyering  <meyering@lucent.com>
88117
88118         * m4/afs.m4: Add missing AC_MSG_RESULT.
88119         Reported by Bruno Haible.
88120
88121         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88122         Suggestion from Bruno Haible.
88123
88124 2000-06-23  Jim Meyering  <meyering@lucent.com>
88125
88126         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88127
88128 2000-06-21  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88131
88132 2000-06-21  Jim Meyering  <meyering@lucent.com>
88133
88134         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88135         (noinst_HEADERS): Add getstr.h.
88136
88137         * lib/getline.c (getstr): Move into a separate file.
88138         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88139         the following changes: new parameter, delim2; both delim[12]
88140         parameters have type `int', not `char'.  The latter would lose
88141         with 8-bit delimiters.
88142         * lib/getstr.h: New file.
88143
88144 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88145
88146         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88147         than 1024, return a memory chunk of least possible size, instead
88148         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88149         Use free/xmalloc instead of xrealloc to avoid copying for very long
88150         paths.
88151
88152 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88153
88154         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88155         the empty string.
88156
88157 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88158
88159         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88160         address, not strdup.  Include <stdlib.h> and don't declare free().
88161
88162 2000-06-19  Jim Meyering  <meyering@lucent.com>
88163
88164         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88165
88166 2000-06-18  Jim Meyering  <meyering@lucent.com>
88167
88168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88169
88170         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88171         `checking whether...' message to be consistent with that of the
88172         lstat test.
88173
88174 2000-06-18  Jim Meyering  <meyering@lucent.com>
88175
88176         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88177         Besides, these days every porting target provides a mkdir function.
88178
88179         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88180         needed. (this snippet comes from src/system.h).
88181
88182 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88183
88184         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88185
88186 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88187
88188         * lib/human.c (adjust_value): New function.
88189         (human_readable_inexact): Apply rounding style even when
88190         printing approximate values.
88191
88192 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88193
88194         * lib/human.c (human_readable_inexact): Allow an input block
88195         size that is not a multiple of the output block size, and vice versa.
88196         Reported by Piergiorgio Sartor.
88197
88198 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88199
88200         * lib/getdate.y (get_date): Apply relative times after time
88201         zone indicator, not before.  Reported by Todd A. Jacobs.
88202
88203 2000-06-13  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88206
88207         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88208
88209 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88210
88211         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88212
88213 2000-06-12  Jim Meyering  <meyering@lucent.com>
88214
88215         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88216         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88217         optional argument.
88218         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88219         the optional argument, `lib'.
88220
88221 2000-06-08  Jim Meyering  <meyering@lucent.com>
88222
88223         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88224
88225 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88226
88227         Rewrite largefile configuration so that we don't need to run
88228         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88229         AC_CANONICAL_HOST in configure.in -- jmm]
88230
88231         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88232         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88233         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88234         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88235         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88236         All uses changed.
88237         Instead of inspecting the output of getconf, try to compile the
88238         test program without and with the macro definition.
88239         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88240         for getconf.  Instead, check for the needed flags by compiling
88241         test programs.
88242
88243 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88244
88245         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88246
88247 2000-06-04  Jim Meyering  <meyering@lucent.com>
88248
88249         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88250         SunOS 4.1.4 for which gid_t is an unsigned type.
88251
88252 2000-06-03  Jim Meyering  <meyering@lucent.com>
88253
88254         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88255         now that autoconf requires that.
88256
88257         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88258         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88259         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88260
88261 2000-06-03  Jim Meyering  <meyering@lucent.com>
88262
88263         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88264
88265 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88266
88267         * m4/glibc21.m4: New file.
88268         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88269
88270 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88271
88272         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88273         newer, don't install charset.alias.
88274         * lib/config.charset: Change the Linux/glibc rules so they become empty
88275         on glibc-2.1 or newer.
88276
88277 2000-06-02  Jim Meyering  <meyering@lucent.com>
88278
88279         * lib/mountlist.c: Back out last change.  Instead, do this...
88280         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88281         me_dummy member using the same `ignore'-testing code.
88282         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88283         fs_type strings.
88284         From Mark D. Roth.
88285
88286 2000-05-29  Jim Meyering  <meyering@lucent.com>
88287
88288         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88289         mounts with the `ignore' attribute.  Based on a patch from
88290         Mark D. Roth.
88291
88292 2000-05-28  Jim Meyering  <meyering@lucent.com>
88293
88294         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88295         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88296         * m4/stat.m4: Likewise.
88297         * m4/lstat.m4: Likewise.
88298         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88299
88300         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88301         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88302
88303 2000-05-26  Jim Meyering  <meyering@lucent.com>
88304
88305         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88306
88307 2000-05-24  Jim Meyering  <meyering@lucent.com>
88308
88309         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88310         autoconf requires that.
88311         * m4/lib-check.m4: Likewise.
88312         * m4/jm-macros.m4: Likewise.
88313         * m4/strftime.m4: Likewise.
88314
88315         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88316         AC_CHECK_DECLS, now that autoconf requires that.
88317
88318 2000-05-22  Jim Meyering  <meyering@lucent.com>
88319
88320         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88321         * m4/lstat.m4: Likewise.
88322
88323 2000-05-22  Jim Meyering  <meyering@lucent.com>
88324
88325         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88326
88327 2000-05-20  Jim Meyering  <meyering@lucent.com>
88328
88329         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88330         (jm_PREREQ): Use it.
88331
88332 2000-05-18  Jim Meyering  <meyering@lucent.com>
88333
88334         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88335         back, too, since it may have been modified by allocate_entry.
88336         (hash_delete): Rewrite to use neither the assignment operator
88337         nor the comma operator in an if-expression.
88338
88339 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88340
88341         * lib/closeout.c:
88342         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88343         Remove; no longer needed.
88344         "quotearg.h": Add include.
88345         (file_name): Do not bother to explicitly initialize to NULL; it's less
88346         efficient on some hosts.
88347         (close_stdout_status): Remove test as to whether stdout was already
88348         closed; it breaks for the case "echo x | sort >&-".
88349         Quote file name colons.
88350         Do not assume that _("write error") lacks format strings.
88351
88352 2000-05-15  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/version-etc.c (version_etc_copyright): Update the copyright
88355         string used in all --version output.
88356
88357 2000-05-14  Jim Meyering  <meyering@lucent.com>
88358
88359         * lib/closeout.c (close_stdout_set_file_name): New function.
88360         (close_stdout_status): Use new file-scoped global.
88361         Return right away if fstat says the stdout file descriptor is invalid.
88362         * lib/closeout.h (close_stdout_set_file_name): Declare.
88363
88364 2000-05-10  Jim Meyering  <meyering@lucent.com>
88365
88366         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88367         (close_stdout_set_status): New function.
88368         * lib/closeout.h (close_stdout_set_status): Declare.
88369
88370 2000-05-09  Jim Meyering  <meyering@lucent.com>
88371
88372         * m4/gettext.m4: Rename this...
88373         * m4/libintl.m4: ...to this.
88374
88375 2000-05-08  Jim Meyering  <meyering@lucent.com>
88376
88377         * lib/long-options.c: Don't include closeout.h.
88378         (parse_long_options): Don't call close_stdout for --version.
88379
88380 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88381
88382         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88383         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88384         2.1.3 bug.  This avoids a clash when files like regex.c define
88385         _GNU_SOURCE.
88386
88387 2000-05-06  Jim Meyering  <meyering@lucent.com>
88388
88389         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88390         (AC_REPLACE_FUNCS): Add strnlen.
88391
88392         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88393         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88394
88395         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88396         AC_SEARCH_LIBS call for nanosleep.
88397         (LIB_NANOSLEEP): Set and AC_SUBST.
88398
88399 2000-05-06  Jim Meyering  <meyering@lucent.com>
88400
88401         * lib/strnlen.c: Undefine __strnlen and strnlen.
88402         [!weak_alias]: Define __strnlen to strnlen.
88403
88404         * lib/atexit.c: New file, from libiberty.
88405
88406 2000-05-06  Jim Meyering  <meyering@lucent.com>
88407
88408         * lib/closeout.c (close_stdout_status): Also check for errors on the
88409         stderr stream.
88410
88411 2000-05-05  Jim Meyering  <meyering@lucent.com>
88412
88413         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88414         AC_SEARCH_LIBS call for clock_gettime.
88415         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88416
88417         * m4/search-libs.m4: Update from autoconf.
88418
88419         su doesn't work on Solaris 2.6.
88420         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88421         <shadow.h>.  Reported by Dragos Harabor.
88422
88423 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88424
88425         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88426         memcpy instead of xmalloc, xrealloc, path_concat.
88427         (locale_charset): Treat empty environment variables as absent.
88428         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88429
88430 2000-05-04  Jim Meyering  <meyering@lucent.com>
88431
88432         * lib/getopt.c: Update from glibc.
88433         * lib/obstack.c: Likewise.
88434         * lib/obstack.h: Likewise.
88435         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88436         file
88437
88438         * lib/regex.h: Likewise.
88439         * lib/strndup.c: Likewise.
88440         * lib/strnlen.c: New file, from glibc.
88441
88442 2000-05-03  Jim Meyering  <meyering@lucent.com>
88443
88444         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88445
88446 2000-05-02  Paul Eggert  <eggert@twinsun.com>
88447
88448         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
88449         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
88450         compile-time test, rather than inspecting host and OS, to
88451         decide whether to define _LARGEFILE_SOURCE.
88452
88453 2000-05-01  Jim Meyering  <meyering@lucent.com>
88454
88455         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
88456
88457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
88458         Based on a patch from Bruno Haible.
88459
88460 2000-05-01  Jim Meyering  <meyering@lucent.com>
88461
88462         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
88463
88464 2000-04-29  Jim Meyering  <meyering@lucent.com>
88465
88466         * lib/path-concat.c: Declare strdup only if it's not defined.
88467         * lib/canon-host.c: Likewise.
88468
88469 2000-04-28  Jim Meyering  <meyering@lucent.com>
88470
88471         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
88472         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
88473         is included first, then limits.h is included by locale.h by libintl.h.
88474         From John David Anglin.
88475
88476 2000-04-25  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/makepath.c (S_IRWXUGO): Define.
88479         (make_path): Always perform explicit chmod if MODE specifies any
88480         of the `special' permission bits.  Prompted by a bug report against
88481         install from Mate Wierdl and Joost van Baal.
88482
88483 2000-04-18  Jim Meyering  <meyering@lucent.com>
88484
88485         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
88486         (jm_PREREQ): Use it.
88487
88488 2000-04-18  Jim Meyering  <meyering@lucent.com>
88489
88490         * lib/README: New file.
88491
88492         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
88493         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
88494
88495 2000-04-17  Jim Meyering  <meyering@lucent.com>
88496
88497         Get it right :-)
88498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
88499         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
88500         Suggestion from Akim Demaille.
88501
88502 2000-04-17  Jim Meyering  <meyering@lucent.com>
88503
88504         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
88505         the definition of it to rpl_strftime also defined-away the system's
88506         declaration.
88507
88508 2000-04-15  Jim Meyering  <meyering@lucent.com>
88509
88510         Use `C' to denote so-called `contiguous' files, the same way
88511         that tar does.
88512         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
88513         (ftypelet): Use S_ISCTG.
88514         From Michael Deutschmann.
88515
88516 2000-04-14  Jim Meyering  <meyering@lucent.com>
88517
88518         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
88519         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
88520         clobbered.
88521
88522 2000-04-14  Jim Meyering  <meyering@lucent.com>
88523
88524         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
88525
88526 2000-04-13  Jim Meyering  <meyering@lucent.com>
88527
88528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
88529         AH_VERBATIM to insert required #ifndef into config.h.in.
88530         Suggestion from Akim Demaille.
88531
88532 2000-04-12  Jim Meyering  <meyering@lucent.com>
88533
88534         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
88535         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
88536         Christian Krackowizer.
88537
88538         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
88539         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
88540         (AC_SYS_LARGEFILE): Require.
88541         (AM_C_PROTOTYPES): Require.
88542
88543 2000-04-08  Jim Meyering  <meyering@lucent.com>
88544
88545         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
88546         names don't conflict.  Reported by Eli Zaretskii.
88547
88548 2000-04-07  Jim Meyering  <meyering@lucent.com>
88549
88550         * lib/putenv.c: Move inclusion of errno.h so it follows that of
88551         sys/types.h, to work around system header problems on AIX 3.2.5.
88552         From Bruno Haible.
88553
88554 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
88555
88556         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
88557         bug.  Deal with the different error behavior of Irix iconv.
88558
88559 2000-04-05  Paul Eggert  <eggert@twinsun.com>
88560
88561         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
88562         IRIX if the installer said otherwise.
88563
88564 2000-04-05  Jim Meyering  <meyering@lucent.com>
88565
88566         Portability tweaks required for ultrix4.3.
88567         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
88568         (jm_CHECK_DECLS): Add getutent to the list of functions.
88569         (_jm_DECL_HEADERS): Add utmpx.h.
88570         From John David Anglin.
88571
88572         * m4/strftime.m4: Back out the 2000-04-02 change.
88573         Instead of that change, simply undefine putenv in the test program.
88574
88575 2000-04-05  Jim Meyering  <meyering@lucent.com>
88576
88577         Portability tweaks required for ultrix4.3.
88578         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
88579         getutent.
88580         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
88581         * lib/canon-host.c: Declare strdup.
88582         * lib/path-concat.c: Likewise.
88583         From John David Anglin.
88584
88585 2000-04-04  Jim Meyering  <meyering@lucent.com>
88586
88587         Be more DOS 8.3-friendly.
88588         * lib/ref-add.sin: Renamed from ref-add.sed.in.
88589         * lib/ref-del.sin: Renamed from ref-del.sed.in.
88590         * lib/Makefile.am: Reflect renaming.
88591         Reported by Eli Zaretskii.
88592
88593         Use a temporary file name that won't clash with `charset.alias'
88594         in the DOS 8.3 name space.
88595         * lib/Makefile.am (charset_tmp): Define.
88596         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
88597         (uninstall-local): Likewise.
88598         Reported by Eli Zaretskii.
88599
88600 2000-04-03  Jim Meyering  <meyering@lucent.com>
88601
88602         * m4/gettext.m4: Fix typo in comment.
88603
88604         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
88605         textutils/configure.in).  Suggestion from Paul Eggert.
88606         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
88607
88608 2000-04-02  Paul Eggert  <eggert@twinsun.com>
88609
88610         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
88611         variable in the shell rather than using putenv, which isn't
88612         portable.  This avoids the configure-time inter-test dependency
88613         on the potentially-renamed putenv function.
88614
88615 2000-03-30  Paul Eggert  <eggert@twinsun.com>
88616
88617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
88618         before checking struct stat.st_blksize, so that
88619         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
88620
88621 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88622
88623         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
88624         since strftime.c uses HAVE_STRFTIME to decide whether to use
88625         the underlying strftime.
88626
88627 2000-03-29  Paul Eggert  <eggert@twinsun.com>
88628
88629         * lib/time/strftime.c (my_strftime): Make sure we call the system
88630         strftime, not ourselves, when invoking the underlying strftime.
88631
88632 2000-03-24  Jim Meyering  <meyering@lucent.com>
88633
88634         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
88635         (charset_alias): Define.
88636         (install-exec-local): Factor out common code.
88637         (uninstall-local): Split lines longer than 80.
88638         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
88639         (SUFFIXES): Define.
88640         (.sed.in.sed): New rule.  Don't redirect directly to $@.
88641         (CLEANFILES): Add ref-add.sed and ref-del.sed.
88642
88643 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
88644
88645         * lib/config.charset: Output a line containing "Packages using this
88646         file".
88647         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
88648         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
88649         ref-del.sed): New rules.
88650
88651 2000-03-17  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
88654         Otherwise, include <strings.h>
88655
88656 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
88657
88658         * lib/unicodeio.c (utf8_wctomb): New function.
88659         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
88660         format instead of in UCS-4 with platform dependent endianness.
88661
88662 2000-03-10  Jim Meyering  <meyering@lucent.com>
88663
88664         * m4/lib-check.m4: Look for getspnam in -lgen, too.
88665         From Marco Franzen.
88666
88667 2000-03-07  Paul Eggert  <eggert@twinsun.com>
88668
88669         * lib/savedir.c (savedir): Work even if directory size is
88670         negative; this can happen with some screwy NFS configurations.
88671
88672 2000-03-06  Jim Meyering  <meyering@lucent.com>
88673
88674         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
88675         if it's NULL (because we ran out of memory).  From Bruno Haible.
88676
88677 2000-03-05  Jim Meyering  <meyering@lucent.com>
88678
88679         * lib/localcharset.c ("path-concat.h"): Include.
88680         (get_charset_aliases): Use path_concat instead of ANSI string
88681         concatenation.
88682
88683         * lib/unicodeio.h (PARAMS): Define.
88684         Use it to guard prototype.
88685
88686 2000-03-04  Jim Meyering  <meyering@lucent.com>
88687
88688         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
88689         for lib/localcharset.c.
88690
88691 2000-03-04  Jim Meyering  <meyering@lucent.com>
88692
88693         * lib/Makefile.am (install-exec-local): Create $(libdir) before
88694         installing into it.
88695         (uninstall-local): Uncomment this rule so `make distcheck' works
88696         once again.
88697
88698         * lib/unicodeio.c (<errno.h>): Include it.
88699         (errno): Declare if not defined.
88700
88701         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
88702
88703         * lib/config.charset: New version, incorporating remarks from a linux
88704         i18n mailing list.  From Bruno Haible.
88705
88706 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
88707
88708         * m4/codeset.m4: New file.
88709         * m4/iconv.m4: New file.
88710         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
88711
88712 2000-03-03  Jim Meyering  <meyering@lucent.com>
88713
88714         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
88715
88716 2000-03-02  Jim Meyering  <meyering@lucent.com>
88717
88718         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
88719         the messages come out on separate lines.
88720
88721         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
88722         rather than jm_CHECK_DECLARATIONS.
88723         * m4/decl.m4: Remove now-unused file.
88724
88725         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
88726         geteuid.
88727
88728 2000-03-02  Jim Meyering  <meyering@lucent.com>
88729
88730         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
88731
88732 2000-03-01  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
88735         * lib/unicodeio.c: Likewise.
88736
88737 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
88738
88739         * lib/config.charset: New file.
88740         * lib/localcharset.c: New file.
88741         * lib/unicodeio.h, lib/unicodeio.c: New files.
88742         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
88743         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
88744         (noinst_HEADERS): Add unicodeio.h.
88745         (all-local, install-exec-local, charset.alias): New targets.
88746
88747 2000-02-28  Paul Eggert  <eggert@twinsun.com>
88748
88749         * lib/quotearg.c (ALERT_CHAR): New macro.
88750         (quotearg_buffer_restyled): Use it.
88751
88752 2000-02-27  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/check-decl.m4: Add getenv to the list.
88755
88756 2000-02-27  Jim Meyering  <meyering@lucent.com>
88757
88758         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
88759         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
88760
88761         * lib/backupfile.c: Guard inclusion of stdlib.h with
88762         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
88763         Declare malloc if needed.
88764
88765         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
88766         `#ifndef HAVE_DECL..'
88767         now that autoconf always defines the HAVE_DECL_ symbols.
88768         * lib/human.c: Likewise.
88769         * lib/same.c: Likewise.
88770         * lib/strtoumax.c: Likewise.
88771
88772         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
88773         declaration check was not run.
88774         * lib/hash.c: Likewise.
88775         * lib/human.c: Likewise.
88776         * lib/same.c: Likewise.
88777         * lib/strtoumax.c: Likewise.
88778
88779         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
88780         `.', then first look up the entire `.'-containing string as a login
88781         name.
88782
88783 2000-02-23  Jim Meyering  <meyering@lucent.com>
88784
88785         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
88786         in place of my hack.
88787
88788 2000-02-18  Paul Eggert  <eggert@twinsun.com>
88789
88790         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
88791         (textint): New typedef.
88792         (parser_control): Member year changed from int to textint.
88793         All uses changed.
88794         (YYSTYPE): Removed; replaced by %union with int and textint members.
88795         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
88796         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
88797         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
88798         (tSNUMBER, tUNUMBER): Now of type <textintval>.
88799         (date, number, to_year): Use width of number in digits, not its value,
88800         to determine whether it's a 2-digit year, or a 2-digit time.
88801         (yylex): Store number of digits of numeric tokens.
88802         Reported by John Kendall.
88803
88804         (parser_control): Changed from struct parser_control to typedef (for
88805         consistency).  All uses changed.
88806
88807         (tID): Removed; not used.
88808         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
88809
88810 2000-02-14  Paul Eggert  <eggert@twinsun.com>
88811
88812         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
88813         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
88814
88815 2000-02-12  Jim Meyering  <meyering@lucent.com>
88816
88817         * lib/userspec.c (ISDIGIT): Define it.
88818         (isdigit): Remove definition.
88819         (is_number): Use ISDIGIT, not isdigit.
88820         <libintl.h>: Include.
88821         (_ and N_): Define.
88822         (parse_user_spec): Mark translatable strings.
88823
88824 2000-02-10  Jim Meyering  <meyering@lucent.com>
88825
88826         With these changes, nanosleep.[ch] are finally enough like the other
88827         lib/* replacement files to compile on a few more losing systems.
88828
88829         * lib/nanosleep.h: Don't include config.h.
88830         Remove prototype from declaration of nanosleep.
88831         (PARAMS): Remove now-unneeded definition.
88832         * lib/nanosleep.c: #undef nanosleep.
88833         (rpl_nanosleep): Rename from nanosleep.
88834
88835 2000-02-10  Jim Meyering  <meyering@lucent.com>
88836
88837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
88838         gnu_nanosleep to rpl_nanosleep.
88839
88840 2000-02-09  Jim Meyering  <meyering@lucent.com>
88841
88842         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
88843         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
88844
88845 2000-02-08  Akim Demaille  <akim@epita.fr>
88846
88847         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
88848         `[' and `]' and remove uses of `changequote'.
88849         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
88850         (AC_SYS_LARGEFILE): Likewise.
88851         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
88852         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
88853         of changequote.
88854         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
88855         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
88856         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
88857         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
88858
88859 2000-02-05  Jim Meyering  <meyering@lucent.com>
88860
88861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
88862         Remove explicit use of AC_HEADER_TIME.  It is required by
88863         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
88864         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
88865         in autoconf whereby the expansion of the latter ended up preceding
88866         the expansion of its prerequisite, AC_HEADER_TIME.
88867         Reported by Volker Borchert.
88868
88869 2000-02-03  Jim Meyering  <meyering@lucent.com>
88870
88871         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
88872
88873 2000-02-03  Jim Meyering  <meyering@lucent.com>
88874
88875         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
88876         rather than with `#if HAVE_UTMPNAME'.
88877
88878 2000-02-02  Jim Meyering  <meyering@lucent.com>
88879
88880         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
88881         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
88882         Reported by Eli Zaretskii.
88883
88884 2000-02-01  Jim Meyering  <meyering@lucent.com>
88885
88886         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
88887
88888 2000-01-31  Jim Meyering  <meyering@lucent.com>
88889
88890         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
88891         functions.  Add the time.h and sys/time.h headers along with the
88892         AC_REQUIRE'ment of AC_HEADER_TIME.
88893
88894 2000-01-31  Jim Meyering  <meyering@lucent.com>
88895
88896         * lib/nanosleep.h (nanosleep): Guard declaration with
88897         `#if ! HAVE_DECL_NANOSLEEP'.
88898         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
88899         the declaration in that vendor's sys/timers.h.
88900         Reported by Christian Krackowizer.
88901
88902         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
88903         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
88904         (ISPRINT): Likewise.
88905         Reported by Tom Tromey.
88906
88907 2000-01-30  Jim Meyering  <meyering@lucent.com>
88908
88909         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
88910
88911         * m4/prereq.m4 (utmp_includes): Define.
88912         Check for ut_user and ut_name members in both struct utmpx
88913         and struct utmp.
88914
88915 2000-01-30  Jim Meyering  <meyering@lucent.com>
88916
88917         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
88918         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
88919         header files where only utmpx.ut_user is declared.
88920
88921         * lib/readutmp.h (UT_USER): Define.
88922
88923 2000-01-29  Jim Meyering  <meyering@lucent.com>
88924
88925         * m4/lib-check.m4: New file containing library-related checks from
88926         fileutils and sh-utils (textutils had none).
88927
88928 2000-01-28  Jim Meyering  <meyering@lucent.com>
88929
88930         * m4/perl.m4: Change format of warning message to look more like that
88931         from the missing script.  Suggestion from François Pinard.
88932
88933 2000-01-25  Jim Meyering  <meyering@lucent.com>
88934
88935         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
88936         well as time.h in the compile check.
88937         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
88938         Fix typo in cross-compiling case: s/yes/no/.
88939
88940 2000-01-23  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/jm-macros.m4: Move df-related tests here from
88943         fileutils/configure.in
88944
88945         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
88946         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
88947
88948         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
88949         s/space/ac_fsusage_space/.
88950         (jm_FILE_SYSTEM_USAGE): Take two parameters.
88951
88952         * m4/ftruncate.m4: New file (derived from part of
88953         fileutils/configure.in).
88954         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
88955         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
88956
88957         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
88958         AC_SUBST these here, rather than just in sh-util/configure.in, so
88959         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
88960         all the same.
88961         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
88962         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
88963         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
88964         (AC_SUBST(POW_LIBM)): Likewise.
88965         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
88966
88967 2000-01-23  Jim Meyering  <meyering@lucent.com>
88968
88969         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
88970         obstack.c.
88971
88972 2000-01-22  Jim Meyering  <meyering@lucent.com>
88973
88974         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
88975
88976         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
88977
88978         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
88979         configure.in
88980         (AC_CHECK_HEADERS): Likewise for sh-utils.
88981         (AC_CHECK_HEADERS): Likewise for textutils.
88982         Merge the three lists of headers.
88983
88984         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
88985         from fileutils' configure.in.
88986
88987         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
88988         code. Moved tests into their own function (_jm_DECL_HEADERS) in
88989         check-decl.m4.
88990
88991         * m4/check-decl.m4: Use #if rather than #ifdef.
88992         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
88993         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
88994         (_jm_DECL_HEADERS): Define new function.
88995         (jm_CHECK_DECLARATIONS): Require it.
88996
88997 2000-01-22  Jim Meyering  <meyering@lucent.com>
88998
88999         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89000         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89001         Required for some AIX systems.  Reported by Christian Krackowizer.
89002         [TESTING] (main): New function.
89003
89004         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89005         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89006         letters.
89007
89008         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89009         iswprint.
89010
89011         * lib/strverscmp.c (ISDIGIT): Define.
89012         (strverscmp): Use ISDIGIT, not isdigit.
89013
89014 2000-01-19  Jim Meyering  <meyering@lucent.com>
89015
89016         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89017         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89018         defines `struct timespec' in <sys/time.h>
89019
89020         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89021         Thanks to Akim for explaining.
89022
89023 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89024
89025         * lib/nanosleep.c (nanosleep):
89026         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89027         POSIX.1 doesn't require SA_INTERRUPT and some systems
89028         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89029         it's been part of POSIX.1 since day 1 (in 1988).
89030
89031 2000-01-17  Jim Meyering  <meyering@lucent.com>
89032
89033         * lib/interlock: Remove unused file.  Reported by François Pinard.
89034
89035 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89036
89037         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89038         alert, backslash, formfeed, and vertical tab unnecessarily in
89039         shell quoting style.
89040
89041 2000-01-16  Jim Meyering  <meyering@lucent.com>
89042
89043         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89044         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89045         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89046         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89047
89048 2000-01-16  Jim Meyering  <meyering@lucent.com>
89049
89050         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89051         because the latter didn't work.
89052
89053 2000-01-15  Jim Meyering  <meyering@lucent.com>
89054
89055         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89056         (AC_REPLACE_FUNCS): Add memcpy and memset.
89057         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89058         Add strpbrk.
89059         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89060
89061 2000-01-12  Jim Meyering  <meyering@lucent.com>
89062
89063         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89064         (jm_PREREQ): Use it.
89065         (jm_PREREQ_READUTMP): New macro.
89066         (jm_PREREQ): Use it.
89067
89068 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89069
89070         Quote multibyte characters correctly.
89071         * m4/c-bs-a.m4: New file.
89072         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89073         (jm_PREREQ): Use it.
89074
89075 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89076
89077         * m4/uintmax_t.m4: Port to autoconf 2.13.
89078
89079 2000-01-08  Jim Meyering  <meyering@ascend.com>
89080
89081         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89082         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89083
89084 2000-01-04  Jim Meyering  <meyering@ascend.com>
89085
89086         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89087         jm_STRUCT_DIRENT_D_TYPE.
89088         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89089         jm_STRUCT_DIRENT_D_INO.
89090         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89091         jm_STRUCT_UTIMBUF.
89092         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89093         renamings.
89094         * m4/utime.m4: Likewise.
89095
89096         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89097         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89098
89099 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89100
89101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89102         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89103
89104 2000-01-02  Jim Meyering  <meyering@ascend.com>
89105
89106         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89107         remember if this is necessary.
89108
89109 1999-12-26  Jim Meyering  <meyering@ascend.com>
89110
89111         * m4/jm-macros.m4: Use it here.
89112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89113
89114 1999-12-23  Jim Meyering  <meyering@ascend.com>
89115
89116         * m4/jm-macros.m4: Check for clock_gettime (moved from
89117         fileutils/configure.in)
89118         Check for gettimeofday.
89119
89120 1999-12-20  Jim Meyering  <meyering@ascend.com>
89121
89122         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89123         autoconf-2.14a-1999-12-20.
89124
89125 1999-12-19  Jim Meyering  <meyering@ascend.com>
89126
89127         * m4/lstat-slash.m4: New file.
89128         * m4/jm-macros.m4: Use the new macro:
89129         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89130
89131 1999-12-07  Jim Meyering  <meyering@ascend.com>
89132
89133         * m4/perl.m4: Require that File::Compare be available, too.
89134         Too many systems seem to lack it.
89135
89136         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89137         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89138
89139 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89140
89141         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89142         problem with the QNX 4.25 shell, which doesn't propagate exit
89143         status of failed commands inside shell assignments.
89144
89145 1999-11-17  Jim Meyering  <meyering@ascend.com>
89146
89147         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89148
89149 1999-11-07  Jim Meyering  <meyering@ascend.com>
89150
89151         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89152
89153 1999-11-06  Jim Meyering  <meyering@ascend.com>
89154
89155         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89156         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89157
89158 1999-11-05  Jim Meyering  <meyering@ascend.com>
89159
89160         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89161         configure.in of textutils, fileutils, and sh-utils into this one
89162         (shared between those packages) file.
89163         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89164         AC_STRUCT_ST_BLKSIZE.
89165
89166 1999-11-03  Jim Meyering  <meyering@ascend.com>
89167
89168         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89169         of AC_CHECK_TYPE checks includes unistd.h.
89170         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89171         Suggestion from Akim Demaille.
89172
89173 1999-10-30  Jim Meyering  <meyering@ascend.com>
89174
89175         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89176         m4-quoted string.
89177         * m4/ls-mntd-fs.m4: Likewise.
89178         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89179         * m4/jm-winsz1.m4: Likewise.
89180
89181         * m4/const.m4: Remove file, since the fix made it into the experimental
89182         version of autoconf.
89183         * m4/mktime.m4: Likewise.
89184
89185         * m4/check-type.m4: Remove file, now that the latest version of
89186         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89187
89188         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89189         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89190         AC_CHECK_TYPE.
89191
89192 1999-10-04  Jim Meyering  <meyering@ascend.com>
89193
89194         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89195
89196 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89197
89198         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89199         2.95.1 bug with HP-UX 10.20.
89200
89201 1999-09-17  Jim Meyering  <meyering@ascend.com>
89202
89203         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89204         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89205         due to missing strdup (against sh-utils-2.0).
89206
89207 1999-08-29  Jim Meyering  <meyering@ascend.com>
89208
89209         * m4/jm-macros.m4: Require jm_BISON.
89210         * m4/bison.m4: New file.
89211
89212 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89213
89214         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89215         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89216
89217 1999-08-05  Jim Meyering  <meyering@ascend.com>
89218
89219         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89220         to avoid conflicts with `conftest' on 8+3 filesystems.
89221         Suggestion from Eli Zaretskii.
89222
89223 1999-08-04  Jim Meyering  <meyering@ascend.com>
89224
89225         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89226         fileutils and sh-utils (textutils's getline test was inadequate).
89227         (AM_FUNC_GETLINE): Run this test.
89228         (AC_CHECK_FUNCS): Check for getdelim.
89229         Reported by Bob Proulx.
89230
89231 1999-08-02  Jim Meyering  <meyering@ascend.com>
89232
89233         * m4/jm-macros.m4: Add a comment.
89234
89235 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89236
89237         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89238         <inttypes.h> defines strtoumax as a macro (and not as a
89239         function).
89240
89241 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89242
89243         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89244         that we can shift, multiply and divide unsigned long long
89245         values; Ultrix cc can't do it.
89246
89247 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89248
89249         * m4/mktime.m4: New file, which is a preview of what should appear
89250         in the next public autoconf release.
89251
89252 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89253
89254         * m4/lfs.m4: Remove this file.
89255         * m4/largefile.m4: New file.  It contains the old contents of
89256         lfs.m4, except that all names with prefix AC_LFS have been
89257         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89258         compatible with future autoconf versions.  Also, some minor m4
89259         quoting problems have been fixed.
89260
89261 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89262
89263         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89264         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89265         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89266         and simplify the shell code.
89267
89268 1999-08-01  Jim Meyering  <meyering@ascend.com>
89269
89270         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89271         m4.
89272
89273 1999-07-20  Jim Meyering  <meyering@ascend.com>
89274
89275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89276
89277 1999-07-15  Jim Meyering  <meyering@ascend.com>
89278
89279         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89280
89281 1999-05-22  Jim Meyering  <meyering@ascend.com>
89282
89283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89284
89285 1999-05-20  Jim Meyering  <meyering@ascend.com>
89286
89287         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89288         Add a colon after each `then' in case $4 is empty.
89289
89290 1999-05-16  Jim Meyering  <meyering@ascend.com>
89291
89292         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89293
89294 1999-05-10  Jim Meyering  <meyering@ascend.com>
89295
89296         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89297
89298         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89299         AC_FUNC_MKTIME.
89300
89301 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89302
89303         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89304
89305 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89306
89307         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89308         not CPPFLAGS, so that linking works correctly in IRIX.
89309
89310 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89311
89312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89313
89314 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89315
89316         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89317         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89319         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89320         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89321
89322         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89323
89324 1999-04-20  Jim Meyering  <meyering@ascend.com>
89325
89326         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89327         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89328         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89329
89330 1999-04-18  Jim Meyering  <meyering@ascend.com>
89331
89332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89333         * m4/jm-macros.m4: Use it.
89334
89335 1999-04-06  Jim Meyering  <meyering@ascend.com>
89336
89337         * m4/strftime.m4: Remove test for %f.
89338
89339 1999-03-29  Jim Meyering  <meyering@ascend.com>
89340
89341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89342         superset of the AC_TYPE_* checks in the textutils, fileutils,
89343         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89344         AC_TYPE_PID_T.
89345
89346 1999-03-28  Jim Meyering  <meyering@ascend.com>
89347
89348         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89349         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89350         replaced e.g., in the *.sh files of the sh-utils.
89351
89352 1999-03-20  Jim Meyering  <meyering@ascend.com>
89353
89354         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89355         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89356         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89357
89358 1999-03-19  Jim Meyering  <meyering@ascend.com>
89359
89360         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89361
89362 1999-03-12  Jim Meyering  <meyering@ascend.com>
89363
89364         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89365
89366 1999-03-07  Jim Meyering  <meyering@ascend.com>
89367
89368         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89369         declared.
89370
89371 1999-02-17  Jim Meyering  <meyering@ascend.com>
89372
89373         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89374         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89375
89376 1999-02-07  Jim Meyering  <meyering@ascend.com>
89377
89378         * m4/group-member.m4: New file -- extracted from sh-utils'
89379         configure.in.
89380
89381         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89382         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89383
89384 1999-02-06  Jim Meyering  <meyering@ascend.com>
89385
89386         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89387         * m4/fnmatch.m4: Likewise.
89388         * m4/getgroups.m4: Likewise.
89389         * m4/lstat.m4: Likewise.
89390         * m4/malloc.m4: Likewise.
89391         * m4/putenv.m4: Likewise.
89392         * m4/realloc.m4: Likewise.
89393         * m4/regex.m4: Likewise.
89394         * m4/stat.m4: Likewise.
89395         * m4/strftime.m4: Likewise.
89396         Suggestion from Alain Magloire.
89397
89398         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89399         * m4/fnmatch.m4: Likewise.
89400         * m4/getgroups.m4: Likewise.
89401         * m4/getline.m4: Likewise.
89402         * m4/lstat.m4: Likewise.
89403         * m4/malloc.m4: Likewise.
89404         * m4/memcmp.m4: Likewise.
89405         * m4/putenv.m4: Likewise.
89406         * m4/realloc.m4: Likewise.
89407         * m4/regex.m4: Likewise.
89408         * m4/stat.m4: Likewise.
89409         * m4/strftime.m4: Likewise.
89410         Suggestion from Alain Magloire.
89411
89412         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89413         an argument.
89414
89415         * m4/regex.m4: Add a run-time Test for proper operation of
89416         re_compile_pattern.
89417
89418 1999-01-31  Jim Meyering  <meyering@ascend.com>
89419
89420         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89421
89422 1999-01-30  Jim Meyering  <meyering@ascend.com>
89423
89424         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89425
89426         * m4/jm-mktime.m4: Make this a wrapper around the official
89427         AM_FUNC_MKTIME rather than my private copy, now that the official one
89428         is up to date.
89429         * m4/mktime.m4: Remove file.
89430
89431         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89432         * m4/uptime.m4: Likewise.
89433         * m4/uintmax_t.m4: Likewise.
89434
89435 1999-01-28  Jim Meyering  <meyering@ascend.com>
89436
89437         * m4/jm-macros.m4: Use jm_AFS.
89438         * m4/afs.m4: New file (from fileutils' configure.in).
89439
89440         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89441         * m4/chown.m4: Likewise.
89442         * m4/d-ino.m4: Likewise.
89443         * m4/d-type.m4: Likewise.
89444         * m4/fnmatch.m4: Likewise.
89445         * m4/getgroups.m4: Likewise.
89446         * m4/gettext.m4: Likewise.
89447         * m4/jm-mktime.m4: Likewise.
89448         * m4/jm-winsz2.m4: Likewise.
89449         * m4/lcmessage.m4: Likewise.
89450         * m4/ls-mntd-fs.m4: Likewise.
89451         * m4/malloc.m4: Likewise.
89452         * m4/memcmp.m4: Likewise.
89453         * m4/putenv.m4: Likewise.
89454         * m4/realloc.m4: Likewise.
89455         * m4/st_mtim.m4: Likewise.
89456         * m4/strftime.m4: Likewise.
89457
89458 1999-01-16  Jim Meyering  <meyering@ascend.com>
89459
89460         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
89461         (ARGMATCH_DIE_DECL): Define.
89462
89463 1999-01-12  Jim Meyering  <meyering@ascend.com>
89464
89465         * m4/Makefile.am.in: Rewrite to avoid using fmt.
89466         Reported by Lars Hecking.
89467
89468 1999-01-10  Jim Meyering  <meyering@ascend.com>
89469
89470         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
89471         gross kludge.
89472         * m4/inttypes_h.m4: Likewise.
89473         * m4/lstat.m4: Likewise.
89474         * m4/malloc.m4: Likewise.
89475         * m4/readdir.m4: Likewise.
89476         * m4/realloc.m4: Likewise.
89477         * m4/st_dm_mode.m4: Likewise.
89478         * m4/stat.m4: Likewise.
89479         * m4/utimbuf.m4: Likewise.
89480         * m4/utimes.m4: Likewise.
89481
89482         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
89483         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
89484         comments in config.h.in are meaningful.
89485
89486         * m4/jm-macros.m4: Require autoconf-2.13 here.
89487
89488         * m4/regex.m4: By default, don't use the included regex.c on systems
89489         with glibc 2.  Suggestion from Uli Drepper.
89490
89491 1999-01-02  Jim Meyering  <meyering@ascend.com>
89492
89493         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
89494
89495 1998-12-18  Jim Meyering  <meyering@ascend.com>
89496
89497         * m4/Makefile.am.in (Makefile.am): Simplify rule.
89498         Based on a suggestion from Lars Hecking.
89499
89500 1998-11-16  Paul Eggert  <eggert@twinsun.com>
89501
89502         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
89503
89504 1998-11-16  Jim Meyering  <meyering@ascend.com>
89505
89506         * m4/lfs.m4: Double-quote the `uname...` expression.
89507
89508 1998-11-14  Jim Meyering  <meyering@ascend.com>
89509
89510         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
89511         * m4/stat.m4: Likewise.
89512
89513 1998-11-03  Jim Meyering  <meyering@ascend.com>
89514
89515         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
89516         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
89517
89518 1998-10-18  Jim Meyering  <meyering@ascend.com>
89519
89520         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
89521
89522 1998-10-17  Jim Meyering  <meyering@ascend.com>
89523
89524         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
89525         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
89526         calls for those previously hard-coded headers.  Instead, take a new
89527         parameter.
89528         (jm_CHECK_DECLARATIONS): Reflect interface change.
89529         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
89530         (jm_CHECK_DECL_LOCALTIME_R): New macro.
89531
89532         * m4/mktime.m4: Test for spring-forward gap before long-running test.
89533
89534 1998-10-14  Jim Meyering  <meyering@ascend.com>
89535
89536         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
89537         instead of "TZ=America/Vancouver".  From Paul Eggert.
89538
89539 1998-10-11  Jim Meyering  <meyering@ascend.com>
89540
89541         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
89542         This adds a test for a recently added compatibility fix for mktime.c.
89543         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
89544
89545 1998-09-27  Jim Meyering  <meyering@ascend.com>
89546
89547         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
89548
89549         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
89550         ../configure.in, including a change from Gordon Matzigkeit to allow
89551         cross-compiling for the Hurd.
89552
89553         * m4/glibc.m4: New file/macro to test for the GNU C Library
89554         versions 1 and 2.  From Gordon Matzigkeit.
89555         Indent.
89556
89557 1998-09-21  Jim Meyering  <meyering@ascend.com>
89558
89559         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
89560
89561 1998-08-18  Paul Eggert  <eggert@twinsun.com>
89562
89563         Port nanosecond-resolution times to UnixWare 2.1.2 and
89564         pedantic Solaris 2.6.
89565
89566         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
89567         AC_STRUCT_ST_MTIM.
89568         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
89569         Generate name of ns member, instead of just 1 or undef.
89570         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
89571
89572 1998-08-15  Jim Meyering  <meyering@ascend.com>
89573
89574         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
89575         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
89576         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
89577         instead of jm_TYPE_SSIZE_T.
89578
89579 1998-08-12  Jim Meyering  <meyering@ascend.com>
89580
89581         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
89582
89583 1998-08-02  Jim Meyering  <meyering@ascend.com>
89584
89585         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
89586         in acconfig.h manually.
89587
89588 1998-07-31  Paul Eggert  <eggert@twinsun.com>
89589
89590         * m4/st_mtim.m4: New file.
89591
89592 1998-07-28  Jim Meyering  <meyering@ascend.com>
89593
89594         * m4/utimes.m4: Undef stat.
89595
89596 1998-07-25  Jim Meyering  <meyering@ascend.com>
89597
89598         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
89599         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
89600
89601 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
89602
89603         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
89604         uid and gid actually remain unchanged.
89605
89606 1998-07-07  Jim Meyering  <meyering@ascend.com>
89607
89608         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
89609
89610 1998-07-04  Jim Meyering  <meyering@ascend.com>
89611
89612         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
89613         to prove that this macro can be used in packages without regex.c.
89614
89615 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
89616
89617         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
89618         is to be used.
89619
89620 1998-07-03  Jim Meyering  <meyering@ascend.com>
89621
89622         * m4/gettext.m4: Add -lintl if it's found to be necessary.
89623
89624         * m4/gettext.m4: New file -- from gettext-0.10.35.
89625         * m4/lcmessage.m4: Likewise.
89626         * m4/progtest.m4: Likewise.
89627
89628         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
89629         * m4/jm-macros.m4: Require the new macro.
89630
89631 1998-06-29  Jim Meyering  <meyering@ascend.com>
89632
89633         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
89634         for the definition of NGROUPS (used in a system header included
89635         by sys/mount.h).
89636
89637 1998-06-28  Jim Meyering  <meyering@ascend.com>
89638
89639         * m4/ls-mntd-fs.m4: New file.
89640         * m4/fstypename.m4: New file.
89641
89642         * m4/jm-macros.m4: Require the new macro.
89643         * m4/jm-glibc-io.m4: New file.
89644
89645 1998-05-19  Jim Meyering  <meyering@ascend.com>
89646
89647         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
89648         * m4/lchown.m4: New file.
89649
89650         * m4/Makefile.am.in: New file.
89651         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
89652
89653 1998-05-14  Jim Meyering  <meyering@ascend.com>
89654
89655         * m4/Makefile.am (EXTRA_DIST): Add them.
89656         * m4/jm-macros.m4: New file.
89657         * m4/utimbuf.m4: New file.
89658
89659 1998-05-12  Jim Meyering  <meyering@ascend.com>
89660
89661         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
89662
89663 1998-05-11  Jim Meyering  <meyering@ascend.com>
89664
89665         * m4/isc-posix.m4: New file.
89666
89667 1998-05-10  Jim Meyering  <meyering@ascend.com>
89668
89669         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
89670
89671 1998-05-09  Jim Meyering  <meyering@ascend.com>
89672
89673         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
89674         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
89675         with automake.
89676
89677         * m4/ssize_t.m4: New file.
89678         * m4/mktime.m4: Remove file -- the new automake has this now.
89679
89680 1998-04-26  Jim Meyering  <meyering@ascend.com>
89681
89682         * m4/assert.m4: New file.
89683         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
89684
89685 1998-04-05  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
89688         (jm_PREREQ): Use it here.
89689
89690 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
89691
89692         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
89693         in acconfig.h.
89694
89695 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
89696
89697         * m4/prereq.m4: New file.
89698         * m4/error.m4: New file.
89699         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
89700
89701 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
89702
89703         * m4/getline.m4: Don't set am_cv_func_working_getline before the
89704         cache-check for the same variable -- that defeated the purpose of
89705         the test; the test program was never run.  This was a problem only
89706         on systems with losing getline functions -- HP-UX 10.20 is one.
89707         Reported by Bjorn Helgaas.
89708
89709 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
89710
89711         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
89712
89713 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
89714
89715         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
89716
89717         * m4/const.m4: New file.  Use an initializer in this declaration
89718         typedef int charset[2]; const charset x;
89719         Reported by Bob Glickstein.
89720
89721 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
89722
89723         * m4/chown.m4: Fix reversed types on -1 args to chown.
89724         From Kaveh Ghazi.
89725
89726 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
89727
89728         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
89729         Add lseek and memchr.
89730
89731         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
89732         T.E.Dickey <dickey@clark.net> said that some older preprocessors
89733         have a 20-character limit on names.
89734
89735 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
89736
89737         * m4/inttypes_h.m4: New file.
89738         * m4/uintmax_t.m4: New file.
89739         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
89740
89741
89742         -----
89743
89744         Local Variables:
89745         coding: utf-8
89746         End:
89747
89748         Copyright (C) 1997-2011 Free Software Foundation, Inc.
89749
89750         Copying and distribution of this file, with or without
89751         modification, are permitted provided the copyright notice
89752         and this notice are preserved.